/**
 * Afriyah Legal Compliance - Premium UX with Round Edges
 */

/* Cookie Consent Banner */
.afriyah-cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0a1027 0%, #1e293b 100%);
    color: #ffffff;
    padding: 24px 28px;
    z-index: 999999;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
    border-top: 3px solid #fe4322;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: auto;
}

.afriyah-cookie-consent:not(.show) {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.afriyah-cookie-consent.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.afriyah-cookie-consent h4,
.afriyah-cookie-consent .cookie-consent-title {
    color: #ffffff !important;
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.afriyah-cookie-consent p,
.afriyah-cookie-consent .cookie-consent-message {
    color: #e2e8f0 !important;
    margin: 0;
}

.afriyah-cookie-consent a {
    color: #6ee7b7 !important;
    text-decoration: underline;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-consent-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.cookie-consent-message {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #e0e0e0;
}

.cookie-policy-link,
.cookie-terms-link {
    color: #90EE90;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-policy-link:hover,
.cookie-terms-link:hover {
    color: #ffffff;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cookie-accept-all,
.cookie-reject-optional,
.cookie-customize {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-accept-all {
    background: linear-gradient(135deg, #fe4322 0%, #005000 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 100, 0, 0.3);
}

.cookie-accept-all:hover {
    background: linear-gradient(135deg, #005000 0%, #004000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 100, 0, 0.4);
}

.cookie-reject-optional {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cookie-reject-optional:hover {
    background: #ffffff;
    color: #1a1a1a;
}

.cookie-customize {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-customize:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Trust Badges - Product Page */
.afriyah-trust-badges {
    display: flex;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #fe4322;
}

.trust-icon {
    font-size: 24px;
    line-height: 1;
}

.trust-text {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Checkout Trust Badges */
.afriyah-checkout-trust-badges {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 2px solid #e0f0e0;
    box-shadow: 0 4px 15px rgba(0, 100, 0, 0.1);
}

.checkout-trust-header {
    text-align: center;
    margin-bottom: 20px;
}

.checkout-trust-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.checkout-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.checkout-trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.checkout-trust-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #fe4322;
}

.checkout-trust-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.checkout-trust-content {
    flex: 1;
}

.checkout-trust-content strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.checkout-trust-content p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Checkout — country-specific consumer protection */
.afriyah-country-terms {
    background: #f9f9f9;
    padding: 14px 16px;
    margin: 14px 0;
    border-radius: 8px;
    border-left: 4px solid #0070a0;
}

.afriyah-country-terms__title {
    margin: 0 0 10px;
    font-size: 15px;
    color: #1a1a1a;
}

.afriyah-country-terms__law,
.afriyah-country-terms__marketplace,
.afriyah-country-terms__placeholder {
    font-size: 14px;
    line-height: 1.55;
    color: #333;
    margin: 0 0 8px;
}

.afriyah-country-terms__marketplace {
    color: #555;
    font-size: 13px;
}

.afriyah-country-terms__links {
    margin: 10px 0 0;
    font-size: 13px;
}

.afriyah-country-terms__links a {
    color: #0070a0;
    text-decoration: underline;
}

.afriyah-country-terms__placeholder {
    font-style: italic;
    color: #666;
}

/* Country-Specific Terms (legacy) */
.country-specific-terms {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe6e6 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #fe4322;
    box-shadow: 0 2px 10px rgba(0, 100, 0, 0.1);
}

.country-specific-terms h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.country-specific-terms p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .afriyah-cookie-consent {
        padding: 20px;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-text {
        min-width: auto;
    }
    
    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-accept-all,
    .cookie-reject-optional,
    .cookie-customize {
        flex: 1;
        min-width: 120px;
    }
    
    .afriyah-trust-badges {
        flex-direction: column;
    }
    
    .trust-badge {
        width: 100%;
    }
    
    .checkout-trust-grid {
        grid-template-columns: 1fr;
    }
}

