/**
 * Public styles for GBP Reviews Carousel
 */

/* This CSS is loaded globally for all instances of the reviews carousel outside the DIVI module */

/* Google logo for attribution */
.gbp-google-logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.gbp-google-logo img {
    height: 18px;
    margin-left: 5px;
}

/* Reviews error message */
.gbp-reviews-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
}

/* Shortcode default styling */
.gbp-reviews-shortcode {
    margin: 30px 0;
}

/* For browsers without JS or while JS is loading */
.gbp-reviews-shortcode .gbp-review-item {
    margin-bottom: 20px;
}

/* Carousel loading state */
.gbp-reviews-loading {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 4px;
    color: #666;
}

.gbp-reviews-loading .gbp-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #2ea3f2;
    border-radius: 50%;
    animation: gbp-spin 1s linear infinite;
    margin-bottom: 15px;
}

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

/* Responsive layout for mobile */
@media (max-width: 767px) {
    .gbp-reviews-shortcode {
        margin: 20px 0;
    }
    
    .gbp-reviews-loading {
        padding: 20px;
    }
    
    .gbp-reviews-loading .gbp-loading-spinner {
        width: 30px;
        height: 30px;
        border-width: 3px;
    }
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}