/* TrustPilot Widget Frontend Styles */

/* Trustpilot Section - Large Horizontal */
.trustpilot-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 16px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
    z-index: 1;
}

.trustpilot-badge:hover {
    border-color: #00b67a;
    box-shadow: 0 4px 12px rgba(0, 182, 122, 0.15);
    transform: translateY(-2px);
}

.trustpilot-logo {
    width: 120px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-bottom: 5px;
}

.trustpilot-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.trustpilot-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.trustpilot-divider {
    width: 1px;
    height: 35px;
    background: #e5e7eb;
}

.trustpilot-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.trustpilot-rating {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.trustpilot-reviews {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.trustpilot-label {
    font-size: 15px;
    color: #00b67a;
    font-weight: 700;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trustpilot-label i {
    font-size: 15px;
}

/* Legacy widget container styles for backward compatibility */
.tpw-widget-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-width: 200px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
    z-index: 1;
}

.tpw-widget-container:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    border-color: #00B67A;
}

.tpw-logo {
    margin-bottom: 15px;
}

.tpw-logo img {
    max-width: 150px;
    max-height: 80px;
    height: auto;
    object-fit: contain;
}

.tpw-brand-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1c1c1c;
    text-align: center;
}

.tpw-stars {
    margin-bottom: 8px;
}

.tpw-stars svg {
    width: 140px;
    height: auto;
    display: block;
}

.tpw-rating {
    font-size: 18px;
    font-weight: 600;
    color: #00B67A;
}

/* Popup Styles - Matching the provided structure */
.ai-modal-overlay-azmtpnvjtsjhluw1ioaigenblock057aae0uzhmnw {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ai-modal-overlay-azmtpnvjtsjhluw1ioaigenblock057aae0uzhmnw.active {
    display: flex;
}

.ai-modal-container-azmtpnvjtsjhluw1ioaigenblock057aae0uzhmnw {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 90vh;
    max-height: 900px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Close button positioned outside the modal container, relative to overlay */
.ai-modal-close-azmtpnvjtsjhluw1ioaigenblock057aae0uzhmnw {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000002;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    padding: 0;
}

.ai-modal-close-azmtpnvjtsjhluw1ioaigenblock057aae0uzhmnw:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.ai-modal-close-azmtpnvjtsjhluw1ioaigenblock057aae0uzhmnw svg {
    width: 20px;
    height: 20px;
}

.ai-modal-loading-azmtpnvjtsjhluw1ioaigenblock057aae0uzhmnw {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    transition: opacity 0.3s ease;
}

.ai-modal-loading-azmtpnvjtsjhluw1ioaigenblock057aae0uzhmnw.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.ai-modal-loading-spinner-azmtpnvjtsjhluw1ioaigenblock057aae0uzhmnw {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00B67A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-modal-loading-text-azmtpnvjtsjhluw1ioaigenblock057aae0uzhmnw {
    text-align: center;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
    padding: 0 20px;
}

.ai-modal-loading-text-azmtpnvjtsjhluw1ioaigenblock057aae0uzhmnw b {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    color: #1c1c1c;
}

.ai-modal-iframe-azmtpnvjtsjhluw1ioaigenblock057aae0uzhmnw {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Tablet Responsive */
@media (max-width: 768px) {
    .trustpilot-badge {
        padding: 14px 16px;
        gap: 12px;
    }

    .trustpilot-logo {
        width: 48px;
        height: 48px;
    }

    .trustpilot-content {
        gap: 12px;
    }

    .trustpilot-divider {
        height: 32px;
    }

    .trustpilot-rating {
        font-size: 18px;
    }

    .trustpilot-reviews {
        font-size: 13px;
    }

    .trustpilot-label {
        font-size: 14px;
    }
    
    /* Legacy styles */
    .tpw-popup-content {
        margin: 40px 10px 20px;
    }
    
    .tpw-popup-close {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 30px;
    }
    
    .tpw-widget-container {
        padding: 15px;
        min-width: 150px;
    }
    
    .tpw-brand-name {
        font-size: 18px;
    }
    
    .tpw-stars svg {
        width: 120px;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .trustpilot-badge {
        padding: 12px 14px;
        gap: 10px;
    }

    .trustpilot-logo {
        width: 40px;
        height: 40px;
    }

    .trustpilot-content {
        gap: 8px;
    }

    .trustpilot-divider {
        height: 28px;
    }

    .trustpilot-rating {
        font-size: 16px;
    }

    .trustpilot-reviews {
        font-size: 12px;
    }

    .trustpilot-label {
        font-size: 13px;
        gap: 3px;
    }

    .trustpilot-label i {
        font-size: 13px;
    }
}

