@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

:root {
    --baran-pl-primary: #4A90A4;
    --baran-pl-secondary: #2C3E50;
    --baran-pl-accent: #E74C3C;
    --baran-pl-success: #27AE60;
    --baran-pl-warning: #F39C12;
    --baran-pl-bg: #F5F7FA;
    --baran-pl-white: #FFFFFF;
    --baran-pl-text: #2C3E50;
    --baran-pl-text-light: #7F8C8D;
    --baran-pl-border: #E0E6ED;
    --baran-pl-shadow: rgba(44, 62, 80, 0.1);
    --baran-pl-shadow-strong: rgba(44, 62, 80, 0.2);
}

.baran-pl-product-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    margin: 15px 0;
    border: 2px solid;
    font-family: 'Vazir', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    animation: baran-pl-fadeIn 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.baran-pl-product-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--baran-pl-primary), var(--baran-pl-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.baran-pl-product-message:hover::before {
    transform: scaleX(1);
}

@keyframes baran-pl-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.baran-pl-limit-reached {
    background: linear-gradient(145deg, rgba(255, 243, 205, 0.9), rgba(255, 234, 167, 0.7));
}

.baran-pl-remaining {
    background: linear-gradient(145deg, rgba(232, 245, 233, 0.9), rgba(165, 214, 167, 0.7));
}

.baran-pl-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.baran-pl-product-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    flex: 1;
}

.baran-pl-message-container {
    margin: 15px 0;
    font-family: 'Vazir', Tahoma, sans-serif;
}

.baran-pl-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid;
    position: relative;
    animation: baran-pl-slideIn 0.3s ease-out;
}

@keyframes baran-pl-slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.baran-pl-close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    background: none;
    border: none;
    color: inherit;
}

.baran-pl-close-btn:hover {
    opacity: 1;
}

.baran-pl-message-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    flex: 1;
}

.baran-pl-shortcode-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 22px;
    border-radius: 12px;
    border: 2px solid;
    margin: 15px 0;
    font-family: 'Vazir', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    animation: baran-pl-fadeIn 0.4s ease-out;
}

.baran-pl-shortcode-icon {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: inherit;
}

.baran-pl-shortcode-detail {
    font-size: 13px;
    opacity: 0.9;
    margin: 5px 0 0;
}

.baran-pl-cart-limited {
    background: linear-gradient(145deg, rgba(255, 243, 205, 0.95), rgba(255, 234, 167, 0.8));
}

.baran-pl-cart-limited-list {
    margin: 10px 0 0;
    padding-right: 20px;
}

.baran-pl-cart-limited-list li {
    margin-bottom: 5px;
    font-size: 13px;
}

.baran-pl-purchase-summary,
.baran-pl-purchase-history {
    padding: 18px 22px;
    border-radius: 12px;
    border: 2px solid;
    margin: 15px 0;
    font-family: 'Vazir', Tahoma, sans-serif;
    direction: rtl;
}

.baran-pl-purchase-summary p,
.baran-pl-purchase-history p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.6;
}

.baran-pl-purchase-summary h4,
.baran-pl-purchase-history h4 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
}

.baran-pl-purchase-history ul {
    margin: 10px 0 0;
    padding-right: 20px;
}

.baran-pl-purchase-history li {
    margin-bottom: 8px;
    font-size: 13px;
}

.baran-pl-error {
    color: var(--baran-pl-accent);
    font-family: 'Vazir', Tahoma, sans-serif;
    direction: rtl;
    font-size: 14px;
}

.baran-pl-account-section {
    font-family: 'Vazir', Tahoma, sans-serif;
    direction: rtl;
    padding: 20px;
}

.baran-pl-account-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--baran-pl-text);
    margin: 0 0 20px;
}

.baran-pl-account-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--baran-pl-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--baran-pl-shadow);
}

.baran-pl-account-table th,
.baran-pl-account-table td {
    padding: 14px 18px;
    text-align: right;
    border-bottom: 1px solid var(--baran-pl-border);
}

.baran-pl-account-table th {
    background: linear-gradient(135deg, var(--baran-pl-primary), var(--baran-pl-secondary));
    color: var(--baran-pl-white);
    font-weight: 600;
    font-size: 14px;
}

.baran-pl-account-table tr:last-child td {
    border-bottom: none;
}

.baran-pl-account-table tr:hover td {
    background: var(--baran-pl-bg);
}

.baran-pl-account-table a {
    color: var(--baran-pl-primary);
    text-decoration: none;
    font-weight: 500;
}

.baran-pl-account-table a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .baran-pl-product-message {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .baran-pl-icon {
        margin-bottom: 5px;
    }
    
    .baran-pl-account-table {
        font-size: 12px;
    }
    
    .baran-pl-account-table th,
    .baran-pl-account-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .baran-pl-product-message {
        padding: 14px 16px;
    }
    
    .baran-pl-product-message p {
        font-size: 13px;
    }
}
