.amazon-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0073e6; /* You can choose any color */
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Compact Form Container */
.cosmic-review-form {
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    max-width: 700px; /* smaller width for mobile */
    margin: 15px auto;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 10px; /* smaller spacing between fields */
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* Labels */
.cosmic-review-form label {
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
}

/* Inputs & Textarea */
.cosmic-review-form input[type="text"],
.cosmic-review-form input[type="email"],
.cosmic-review-form textarea,
.cosmic-review-form input[type="file"] {
    width: 100%;
    padding: 10px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cosmic-review-form input[type="text"]:focus,
.cosmic-review-form input[type="email"]:focus,
.cosmic-review-form textarea:focus {
    border-color: #ff6600;
    box-shadow: 0 0 6px rgba(255,102,0,0.25);
}

textarea {
    min-height: 70px; /* smaller height for compact view */
    resize: vertical;
}

/* Rating stars */
.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.rating-stars label {
    font-size: 1.5em;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-stars input[type="radio"]:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #ff9500;
}

/* Submit button */
.cosmic-review-form .btn-dark {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background-color: #ff6600;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.cosmic-review-form .btn-dark:hover {
    background-color: #e65c00;
    transform: translateY(-1px);
}

/* File input */
.cosmic-review-form input[type="file"] {
    padding: 5px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 5px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .cosmic-review-form {
        padding: 12px 10px;
        width: 95%;
        gap: 10px;
        font-size: 13px;
    }
    .rating-stars label {
        font-size: 1.3em;
    }
    .cosmic-review-form .btn-dark {
        padding: 5px 10px;
        font-size: 13px;
    }
    textarea {
        min-height: 60px;
    }
}





/* Form container styling */
.cosmic-review-form {
    background-color: #fdfdfd; /* light background */
    padding: 25px 30px;
    border-radius: 15px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: Arial, sans-serif;
}

/* Labels */
.cosmic-review-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

/* Input and Textarea styling */
.cosmic-review-form input[type="text"],
.cosmic-review-form input[type="email"],
.cosmic-review-form textarea,
.cosmic-review-form input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cosmic-review-form input[type="text"]:focus,
.cosmic-review-form input[type="email"]:focus,
.cosmic-review-form textarea:focus {
    border-color: #08a85b;
    box-shadow: 0 0 8px rgba(255,102,0,0.3);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Rating stars */
.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}

.rating-stars input[type="radio"] {
    display: none;
}

.rating-stars label {
    font-size: 1.8em;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-stars input[type="radio"]:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #08a85b;
}

/* Submit button */
.cosmic-review-form .btn-dark {
    padding: 12px 18px;
    border: none;
    background-color: #08a85b;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s, transform 0.1s;
}

.cosmic-review-form .btn-dark:hover {
    background-color: #08a85b;
    transform: translateY(-1px);
}

/* File input styling */
.cosmic-review-form input[type="file"] {
    padding: 8px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cosmic-review-form {
        padding: 20px 15px;
        width: 90%;
    }
    .rating-stars label {
        font-size: 1.5em;
    }
    .cosmic-review-form .btn-dark {
        font-size: 14px;
    }
}







.modal-image-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-info-box {
    margin-top: auto;   /* 👈 ye line usko bilkul bottom push karegi */
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    text-align: center;
}
.product-info-box {
    margin-top: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    text-align: center;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-link {
    display: inline-block;
    margin-bottom: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.product-link:hover {
    text-decoration: underline;
}

.delivery-text {
    font-size: 14px;
    color: green;
    font-weight: 500;
}
/* AMAZON STYLE MODAL */
.amazon-review-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.amazon-review-content {
    background: #fff;
    width: 85%;
    max-width: 1000px;
    height: 80%;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.amazon-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

.amazon-review-left {
    width: 55%;
    background: #f3f3f3;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.amazon-review-left img {
    max-width: 90%;
    max-height: 90%;
}

.amazon-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
}

.amazon-prev { left: 10px; }
.amazon-next { right: 10px; }

.amazon-review-right {
    width: 45%;
    padding: 25px;
    overflow-y: auto;
}

.amazon-review-right h4 {
    margin-bottom: 5px;
    font-weight: 600;
}

.amazon-stars {
    color: #ff7b24;
    margin-bottom: 10px;
}

.amazon-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.amazon-thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #ddd;
    cursor: pointer;
}
    /* Reset default styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* Container for all reviews */
    .cosmic-reviews-wrapper {
        margin: 0 auto;
        text-align: left;
        margin-bottom: 50px;
    }

    .cosmic-reviews-wrapper h1 {
        font-size: 1.8em;
        color: #333;
        margin-bottom: 10px;
        font-weight: 600;
    }

    /* Add Review Button */
    .cosmic-add-review-btn {
        display: inline-block;
        margin-bottom: 20px;
        padding: 8px 15px;
        font-size: 1em;
        color: #ffffff;
        background: #08a85b;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background 0.3s;
    }

    .cosmic-add-review-btn:hover {
        background: #268256;
    }

    /* Review Submission Form */
    .cosmic-form-wrapper {
        display: none;
        background: #fff;
        padding: 20px;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }

    .cosmic-form-wrapper h2 {
        font-size: 1.4em;
        color: #333;
        margin-bottom: 15px;
    }

    .cosmic-review-form label {
        display: block;
        font-size: 1em;
        color: #555;
        margin-bottom: 5px;
    }

    .cosmic-review-form input,
    .cosmic-review-form textarea,
    .cosmic-review-form select {
        width: 100%;
        padding: 8px;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 1em;
    }

    .cosmic-review-form textarea {
        height: 100px;
        resize: vertical;
    }

    .cosmic-review-form button {
        padding: 10px 20px;
        font-size: 1em;
        color: #fff;
        background: #08a85b;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background 0.3s;
    }

    .cosmic-review-form button:hover {
        background: #268256;
    }

    /* Individual review card */
    .cosmic-review-item {
        border-bottom: 1px solid #e0e0e0;
        padding: 20px 0;
        display: none;
    }

    .cosmic-review-item:nth-child(-n+11) {
        display: block;
    }

    .cosmic-product-title {
        font-size: 13px;
        color: #3c3c3c;
        font-weight: 600;
        margin-bottom: 2px;
        
    }

    .cosmic-customer-name {
        font-size: 14px;
        color: #2c6529;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .cosmic-rating-stars {
        font-size: 15px;
        color: #ff7b24;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .cosmic-review-content {
        font-size: 14px;
        line-height: 1.5;
        color: #444;
        margin-bottom: 10px;
    }

    .cosmic-image-collection {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .cosmic-image-collection img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 5px;
        border: 1px solid #ddd;
        cursor: pointer;
        transition: transform 0.2s;
    }

    .cosmic-image-collection img:hover {
        transform: scale(1.05);
    }

    .cosmic-fullscreen-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .cosmic-fullscreen-img {
        max-width: 90%;
        max-height: 80%;
        border-radius: 5px;
    }

    .cosmic-close-btn {
        position: absolute;
        top: 100px;
        right: 20px;
        font-size: 2em;
        color: #fff;
        background: #08a85b;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        cursor: pointer;
        transition: background 0.3s;
    }

    .cosmic-close-btn:hover {
        background: #268256;
    }

    .cosmic-load-more-btn {
        display: none;
        margin: 20px auto;
        padding: 10px 20px;
        font-size: 1em;
        color: #fff;
        background: #08a85b;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        text-align: center;
        transition: background 0.3s;
    }

    .cosmic-load-more-btn:hover {
        background: #268256;
    }

    .cosmic-review-item:last-child {
        border-bottom: none;
    }

    @media (max-width: 600px) {
        .cosmic-review-item {
            padding: 15px 0;
        }

        .cosmic-product-title {
            font-size: 13px;
        }

        .cosmic-image-collection img {
            width: 80px;
            height: 80px;
        }
    }




    