/* My Account Reviews Styling */

/* Review Notice on Product Page */
.zetpy-review-notice {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.zetpy-review-notice .notice-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.zetpy-review-notice .notice-icon {
    font-size: 2rem;
}

.zetpy-review-notice .notice-text {
    text-align: center;
}

.zetpy-review-notice .notice-text strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
}

.zetpy-review-notice .notice-text p {
    margin: 0 0 1rem 0;
    color: #666;
}

.zetpy-review-notice .notice-text a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.zetpy-review-notice .notice-text a:hover {
    text-decoration: underline;
}

.zetpy-review-notice .review-btn {
    background-color: #0073aa;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.zetpy-review-notice .review-btn:hover {
    background-color: #005177;
    color: white;
}

.zetpy-my-reviews {
    max-width: 100%;
}

.reviews-tabs {
    margin-bottom: 2rem;
}

.reviews-tab-nav {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 2rem;
}

.reviews-tab-nav .tab-link {
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.reviews-tab-nav .tab-link:hover {
    color: #333;
    background-color: #f8f8f8;
}

.reviews-tab-nav .tab-link.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
    font-weight: 600;
}

.reviews-tab-nav .tab-link .count {
    background-color: #0073aa;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.reviews-tab-nav .tab-link.active .count {
    background-color: #005177;
}

/* Product Items */
.unreviewed-products {
    display: grid;
    gap: 1.5rem;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-item .product-image {
    flex-shrink: 0;
    margin-right: 1rem;
}

.product-item .product-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.product-item .product-details {
    flex-grow: 1;
    margin-right: 1rem;
}

.product-item .product-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.product-item .product-name a {
    color: #333;
    text-decoration: none;
}

.product-item .product-name a:hover {
    color: #0073aa;
}

.product-item .product-price {
    color: #666;
    font-weight: 500;
}

.product-item .product-order {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.product-item .product-order a {
    color: #0073aa;
    text-decoration: none;
}

.product-item .product-order a:hover {
    color: #005177;
    text-decoration: underline;
}

.product-item .product-actions {
    flex-shrink: 0;
}

.review-product-btn {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.review-product-btn:hover {
    background-color: #005177;
}

/* Existing Reviews */
.existing-reviews {
    display: grid;
    gap: 2rem;
}

.review-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #fff;
}

.review-item .review-product {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    gap: 1rem;
}

.review-item .product-image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.review-item .product-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.review-item .product-details {
    flex-grow: 1;
    min-width: 0;
}

.review-item .product-name {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
}

.review-item .product-name a {
    color: #333;
    text-decoration: none;
}

.review-item .product-name a:hover {
    color: #0073aa;
}

.review-item .review-rating {
    margin-bottom: 0.5rem;
}

.review-item .review-meta {
    margin-top: 0.5rem;
    overflow: hidden; /* Clear floats */
}

.review-item .review-date {
    color: #666;
    font-size: 0.9rem;
    float: left;
}

.review-item .review-order-separator {
    color: #666;
}

.review-item .review-order-link {
    color: #0073aa;
    text-decoration: none;
}

.review-item .review-order-link:hover {
    color: #005177;
    text-decoration: underline;
}

.review-item .review-content {
    margin-bottom: 1rem;
}

.review-item .review-text {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    color: #555;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Media Gallery Styling for My Account */
.review-item .review-media {
    margin-bottom: 1rem;
}

.review-item .media-gallery {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.review-item .media-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e1e8ed;
    transition: all 0.2s ease;
}

.review-item .media-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.review-item .media-item.media-image:hover {
    cursor: pointer;
}

.review-item .media-item.media-image:hover img {
    filter: brightness(1.1);
}

.review-item .image-container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: block;
}

.review-item .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-item .media-overlay,
.review-item .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.review-item .media-item:hover .media-overlay,
.review-item .media-item:hover .video-overlay {
    opacity: 1;
}

.review-item .video-duration {
    position: absolute !important;
    bottom: 4px !important;
    right: 4px !important;
    left: auto !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.review-item .video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-item .review-helpful {
    margin-bottom: 1rem;
}

.review-item .helpful-count {
    color: #666;
    font-size: 0.9rem;
}

.review-item .review-status {
    margin-bottom: 0;
    float: right;
}

.review-item .status-pending {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.review-item .status-approved {
    background-color: #d4edda;
    color: #155724;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.review-item .status-rejected {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.view-product-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.view-product-btn:hover {
    background-color: #218838;
    color: white;
}

/* No content states */
.no-products,
.no-reviews {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.no-products p,
.no-reviews p {
    font-size: 1.1rem;
    margin: 0;
}

/* Review Form Page */
.zetpy-review-form-page {
    max-width: 800px;
    margin: 0 auto;
}

.review-breadcrumb {
    margin-bottom: 1.5rem;
}

.review-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.review-breadcrumb a:hover {
    text-decoration: underline;
}

.review-form-container {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.review-form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.review-form-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

/* Reviews List Page */
.zetpy-reviews-list {
    max-width: 100%;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.reviews-header h2 {
    margin: 0;
    color: #333;
}

.reviews-grid {
    display: grid;
    gap: 1.5rem;
}

.review-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.review-card .review-product {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review-card .product-image {
    margin-right: 1rem;
    flex-shrink: 0;
}

.review-card .product-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.review-card .product-details {
    flex: 1;
}

.review-card .product-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.review-card .product-name a {
    color: #333;
    text-decoration: none;
}

.review-card .product-name a:hover {
    color: #0073aa;
}

.review-card .review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-card .review-order-separator {
    color: #666;
}

.review-card .review-order-link {
    color: #0073aa;
    text-decoration: none;
}

.review-card .review-order-link:hover {
    color: #005177;
    text-decoration: underline;
}

.review-card .review-content {
    margin-top: 1rem;
}

.review-card .review-text {
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.review-card .media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.review-card .media-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.review-card .media-item img,
.review-card .media-item video {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.no-reviews-content {
    text-align: center;
    padding: 3rem 1rem;
}

.no-reviews-content h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.no-reviews-content p {
    margin: 0 0 1.5rem 0;
    color: #666;
    font-size: 1.1rem;
}

.product-info {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f8f8;
    border-radius: 4px;
}

.product-info .product-image {
    margin-right: 1rem;
    flex-shrink: 0;
}

.product-info .product-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.product-info .product-details {
    flex: 1;
    min-width: 0;
}

.product-info .product-details h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-info .product-details div {
    color: #666;
    font-weight: 500;
}

/* Form styling */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group .required {
    color: #dc3545;
}

.rating-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
    margin: 0;
}

.rating-input label:hover,
.rating-input label.hover,
.rating-input label.active {
    color: #ffc107;
}

/* Anonymous Toggle Styling */
.anonymous-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.anonymous-toggle input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: normal;
    color: #333;
    font-size: 0.9rem;
}

.toggle-text {
    line-height: 26px;
    vertical-align: middle;
    display: flex;
    align-items: center;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 26px;
    transition: all 0.3s ease;
    display: inline-block;
    flex-shrink: 0;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.anonymous-toggle input[type="checkbox"]:checked + .toggle-switch .toggle-slider {
    background-color: #0073aa;
}

.anonymous-toggle input[type="checkbox"]:checked + .toggle-switch .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch:hover .toggle-slider {
    background-color: #999;
}

.anonymous-toggle input[type="checkbox"]:checked + .toggle-switch:hover .toggle-slider {
    background-color: #005177;
}

.anonymous-description {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 0.1rem;
}

textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
}

textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.char-count {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.char-count .current.error {
    color: #dc3545;
    font-weight: 600;
}

input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed #e1e8ed;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #0073aa;
    background-color: #f0f8ff;
}

input[type="file"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Drag and drop area styling */
.file-upload-area {
    border: 2px dashed #e1e8ed;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 1rem;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.file-upload-area .upload-icon {
    font-size: 2rem;
    color: #0073aa;
    margin-bottom: 0.5rem;
}

.file-upload-area .upload-text {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.file-upload-area .upload-hint {
    font-size: 0.9rem;
    color: #666;
}

.description {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.media-preview {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.media-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: visible;
    border: 2px solid #e1e8ed;
    background: #f8f9fa;
    transition: all 0.2s ease;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.media-preview-item:hover {
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
}

.media-preview-item .media-content {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.media-preview-item img,
.media-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-preview-item video {
    background: #000;
}

.media-preview-item .remove-media {
    position: absolute;
    top: 3px;
    right: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: 1px solid white;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 15;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    line-height: 1;
}

.media-preview-item .remove-media:hover {
    background: #b02a37;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.5);
}

.media-preview-item .remove-media:active {
    transform: scale(0.95);
}

.media-preview-item .remove-media.pulse-highlight {
    animation: pulseGlow 2s ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(220, 53, 69, 0.6), 0 0 20px rgba(220, 53, 69, 0.4);
        transform: scale(1.1);
    }
}

.video-duration {
    position: absolute !important;
    bottom: 4px !important;
    right: 4px !important;
    left: auto !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.file-count {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #0073aa;
    font-weight: 600;
}

/* Form Error Styling */
.form-errors {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

.error-message {
    color: #dc3545;
    font-weight: 600;
    margin: 0;
}

.success-message {
    color: #155724;
    font-weight: 600;
    margin: 0;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error .file-upload-area {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2) !important;
}

.form-group.has-error label {
    color: #dc3545;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.button-primary {
    background-color: #0073aa;
    color: white;
}

.button-primary:hover {
    background-color: #005177;
}

.button-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.cancel-review {
    background-color: #6c757d;
    color: white;
}

.cancel-review:hover {
    background-color: #545b62;
}

/* Rating stars */
.zetpy-rating-stars {
    display: inline-flex;
    gap: 2px;
}

.zetpy-rating-stars .star {
    color: #ddd;
}

.zetpy-rating-stars .star.filled {
    color: #ffc107;
}

/* Responsive design */
@media (max-width: 768px) {
    .reviews-tab-nav {
        flex-direction: column;
    }
    
    .reviews-tab-nav .tab-link {
        border-bottom: 1px solid #e0e0e0;
        border-right: none;
    }
    
    .reviews-tab-nav .tab-link.active {
        border-bottom-color: #e0e0e0;
        border-left: 3px solid #0073aa;
    }
    
    .product-item {
        flex-direction: column;
        text-align: center;
    }
    
    .product-item .product-details {
        margin: 1rem 0;
    }
    
    .review-item .review-product {
        flex-direction: column;
        text-align: center;
    }
    
    .review-item .product-details {
        margin-top: 1rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
        max-width: calc(100vw - 1rem);
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1rem 1rem 1rem;
    }
    
    .product-info {
        flex-direction: column;
        text-align: center;
    }
    
    .product-info .product-image {
        margin: 0 0 1rem 0;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    textarea {
        min-height: 80px;
    }
    
    .file-upload-area {
        padding: 1.5rem 1rem;
    }
    
    .file-upload-area .upload-icon {
        font-size: 1.5rem;
    }
    
    .file-upload-area .upload-text {
        font-size: 0.9rem;
    }
    
    .file-upload-area .upload-hint {
        font-size: 0.8rem;
    }
    
    .media-preview-item {
        width: 80px;
        height: 80px;
    }
    
    .remove-file {
        width: 22px;
        height: 22px;
        font-size: 12px;
        top: -6px;
        right: -6px;
        border: 2px solid white;
    }
    
    .video-duration {
        font-size: 10px !important;
        padding: 1px 4px !important;
        right: 4px !important;
        left: auto !important;
    }
}

/* Form Error Messages */
.form-errors {
    margin-bottom: 1.5rem;
    padding: 0;
    border-radius: 6px;
    animation: slideDown 0.3s ease-out;
}

.form-errors .error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-errors .error-message:before {
    /* content: "⚠️";
    flex-shrink: 0; */
}

.form-errors .success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-errors .success-message:before {
    content: "✅";
    flex-shrink: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form field error states */
.form-group.has-error .rating-input {
    border: 1px solid #dc3545;
    border-radius: 4px;
    padding: 0.5rem;
}

.form-group.has-error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group.has-error .file-upload-area {
    border-color: #dc3545;
    background-color: #f8d7da;
}

/* Media Preview Modal Styles */
.media-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
    z-index: 9999;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 10000;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.modal-media-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    min-height: 200px;
}

.modal-info {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.modal-filename {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    word-break: break-all;
}

.modal-filesize {
    font-size: 0.80rem;
    color: #666;
}

/* Make media preview items clickable */
.media-preview-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-preview-item:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.2);
}

.media-preview-item .media-content {
    pointer-events: none;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Clickable media items in reviews */
.clickable-media {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
}

.clickable-media:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.2);
}

.clickable-media img,
.clickable-media video {
    transition: opacity 0.2s ease;
}

.clickable-media:hover img,
.clickable-media:hover video {
    opacity: 0.9;
}

/* Review media gallery styling */
.review-media .media-gallery {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.review-media .media-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    transition: all 0.2s ease;
}

.review-media .media-item img,
.review-media .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-media .media-item video {
    background: #000;
}

/* Responsive styles for product layout */
@media (max-width: 768px) {
    .review-item .review-product {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    
    .review-item .product-image {
        min-width: auto;
    }
    
    .review-item .product-image img {
        width: 100px;
        height: 100px;
    }
    
    .review-item .product-details {
        width: 100%;
    }
    
    .review-item .product-name {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .review-item .review-meta {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .review-item .product-image img {
        width: 80px;
        height: 80px;
    }
    
    .review-item .product-name {
        font-size: 1rem;
    }
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 10px;
    }
    
    .modal-media-container {
        padding: 10px;
    }
    
    .modal-close {
        top: 5px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .review-media .media-item {
        width: 80px;
        height: 80px;
    }
}