/* استایل پاپ‌آپ دریافت اطلاعات بعد از پرداخت */
.pco-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    overflow-y: auto;
    direction: rtl;
}

.pco-popup-overlay.active {
    display: block;
}

.pco-popup-content {
    position: relative;
    background: #fff;
    margin: 50px auto;
    max-width: 800px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: pco-popup-fadein 0.3s ease;
}

@keyframes pco-popup-fadein {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pco-popup-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.pco-popup-close:hover {
    background: #f0f0f0;
    color: #333;
}

.pco-popup-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
    text-align: center;
}

.pco-popup-content > p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

#post-checkout-popup-form {
    margin-top: 20px;
}

.pco-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.pco-form-col {
    flex: 1;
}

.pco-form-col-full {
    width: 100%;
}

.pco-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.pco-form-row .required {
    color: #e74c3c;
}

.pco-form-row input[type="text"],
.pco-form-row input[type="tel"],
.pco-form-row input[type="email"],
.pco-form-row input[type="number"],
.pco-form-row select,
.pco-form-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.pco-form-row input:focus,
.pco-form-row select:focus,
.pco-form-row textarea:focus {
    outline: none;
    border-color: #332dec;
}

.pco-form-row textarea {
    resize: vertical;
    min-height: 80px;
}

.pco-form-submit {
    margin-top: 25px;
    text-align: center;
}

.pco-submit-btn {
    background: #332dec;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
}

.pco-submit-btn:hover {
    background: #2a25c7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 45, 236, 0.3);
}

.pco-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.pco-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    display: none;
}

.pco-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.pco-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* استایل باکس اطلاعات سفارش در پاپ‌آپ (جمع و جور) */
.pco-order-info-box-compact {
    background: #f8f9fa;
    border: 1px solid #332dec;
    border-radius: 6px;
    padding: 12px 15px;
    margin: 15px 0;
    direction: rtl;
}

.pco-order-info-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pco-order-info-icon {
    font-size: 18px;
    line-height: 1;
}

.pco-order-number-compact {
    color: #332dec;
    font-size: 14px;
    font-weight: 600;
}

.pco-order-number-compact strong {
    color: #332dec;
    font-weight: 700;
}

.pco-products-compact {
    color: #666;
    font-size: 13px;
    margin-right: auto;
}

/* استایل فیلدهای بارداری - همیشه نمایش داده می‌شوند */
.pco-pregnancy-row {
    display: block !important;
}

.pco-pregnancy-row.show-pregnancy {
    display: block !important;
}

/* استایل آیکن زنگوله و دراپ‌داون */
.pco-bell-container {
    position: relative !important;
    display: inline-block !important;
    direction: rtl !important;
    z-index: 1000 !important;
}

.pco-bell-wrapper {
    position: relative;
}

.pco-bell-icon {
    position: relative !important;
    background: #fff !important;
    border: 2px solid #332dec !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    color: #332dec !important;
    box-shadow: 0 2px 8px rgba(51, 45, 236, 0.2) !important;
}

.pco-bell-icon:hover {
    background: #332dec;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(51, 45, 236, 0.3);
}

.pco-bell-icon svg {
    width: 20px;
    height: 20px;
}

.pco-bell-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pco-bell-dropdown {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    background: #fff !important;
    border: 2px solid #332dec !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    min-width: 280px !important;
    max-width: 400px !important;
    display: none !important;
    z-index: 1001 !important;
    direction: rtl !important;
    overflow: hidden !important;
}

.pco-bell-dropdown.active {
    display: block !important;
    animation: pco-dropdown-fadein 0.3s ease;
}

@keyframes pco-dropdown-fadein {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pco-dropdown-header {
    background: #332dec;
    color: #fff;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
}

.pco-dropdown-orders {
    max-height: 400px;
    overflow-y: auto;
}

.pco-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 15px;
}

.pco-order-item:last-child {
    border-bottom: none;
}

.pco-order-item:hover {
    background: #f8f9fa;
    padding-right: 22px;
}

.pco-order-item:active {
    background: #f0f0f0;
}

.pco-order-item-right {
    flex: 1;
    min-width: 0;
}

.pco-order-item-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pco-order-item-number {
    font-size: 13px;
    color: #666;
}

.pco-order-item-left {
    flex-shrink: 0;
    color: #332dec;
    display: flex;
    align-items: center;
}

.pco-order-item-left svg {
    width: 20px;
    height: 20px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .pco-popup-content {
        margin: 20px;
        padding: 20px;
    }
    
    .pco-form-row {
        flex-direction: column;
    }
    
    .pco-order-info-box-compact {
        padding: 10px 12px;
    }
    
    .pco-order-info-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .pco-products-compact {
        font-size: 12px;
        margin-right: 0;
        margin-top: 5px;
    }
    
    .pco-bell-icon {
        width: 40px;
        height: 40px;
    }
    
    .pco-bell-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .pco-bell-badge {
        width: 20px;
        height: 20px;
        font-size: 11px;
        top: -4px;
        right: -4px;
    }
    
    .pco-bell-dropdown-overlay {
        display: none;
    }
    
    @media (max-width: 768px) {
        .pco-bell-dropdown-overlay {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            background: rgba(0, 0, 0, 0.5) !important;
            z-index: 1000 !important;
        }
        
        .pco-bell-dropdown-overlay.active {
            display: block !important;
        }
        
        .pco-bell-dropdown {
            position: fixed !important;
            top: 50% !important;
            left: 50% !important;
            right: auto !important;
            transform: translate(-50%, -50%) !important;
            min-width: 280px !important;
            max-width: 90vw !important;
            max-height: 70vh !important;
            overflow-y: auto !important;
            z-index: 1001 !important;
            margin: 0 !important;
        }
        
        body.pco-dropdown-open {
            overflow: hidden !important;
            position: fixed !important;
            width: 100% !important;
            height: 100% !important;
        }
        
        html.pco-dropdown-open {
            overflow: hidden !important;
        }
    }
    
    .pco-dropdown-header {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .pco-order-item {
        padding: 12px 15px;
    }
    
    .pco-order-item-name {
        font-size: 14px;
    }
    
    .pco-order-item-number {
        font-size: 12px;
    }
    
    .pco-order-item-left svg {
        width: 18px;
        height: 18px;
    }
}

/* استایل بخش اطلاعات رژیم در صفحه جزئیات سفارش */
.pco-order-diet-info {
    margin-top: 30px;
    margin-bottom: 30px;
}

.pco-order-diet-info h2 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.pco-diet-info-box {
    background: #f8f9fa;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    direction: rtl;
}

.pco-diet-info-table {
    width: 100%;
    border-collapse: collapse;
}

.pco-diet-info-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.pco-diet-info-table tr:last-child {
    border-bottom: none;
}

.pco-diet-info-table td {
    padding: 12px 0;
}

.pco-diet-info-table td:first-child {
    font-weight: 600;
    width: 180px;
    vertical-align: top;
    color: #333;
}

.pco-diet-info-table td:last-child {
    color: #666;
}

/* ریسپانسیو برای بخش اطلاعات رژیم */
@media (max-width: 768px) {
    .pco-diet-info-box {
        padding: 15px;
    }
    
    .pco-diet-info-table {
        font-size: 14px;
    }
    
    .pco-diet-info-table td {
        padding: 10px 0;
    }
    
    .pco-diet-info-table td:first-child {
        width: 140px;
        font-size: 13px;
    }
}

