/* CSS for OrderProductComments Module - Premium Mercado Livre Style */

.order-comment-section {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
    font-family: "Outfit", "Inter", sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.order-comment-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.order-comment-product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f6f6f6;
}

.order-comment-product-row:last-child {
    border-bottom: none;
}

.order-comment-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.order-comment-product-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.order-comment-product-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.order-comment-action-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-comment-stars-trigger {
    display: flex;
    gap: 4px;
    cursor: pointer;
}

.order-comment-stars-trigger span {
    font-size: 24px;
    color: #ccc;
    transition: color 0.2s ease, transform 0.1s ease;
}

.order-comment-stars-trigger span:hover {
    transform: scale(1.15);
}

.order-comment-stars-trigger.active span,
.order-comment-stars-trigger span.active {
    color: #3483fa;
}

.order-comment-reviewed-badge {
    background: #eaf8ea;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* My Account - Opinions Page */
.opc-page-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

/* Tab Headers */
.opc-tabs-header {
    display: flex;
    gap: 25px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.opc-tab-btn {
    background: none;
    border: none;
    padding: 10px 0;
    color: #888;
    cursor: pointer;
    position: relative;
    outline: none;
    transition: color 0.2s ease;
}

.opc-tab-btn:hover {
    color: #3483fa;
}

.opc-tab-btn.active {
    color: #3483fa;
}

.opc-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #3483fa;
    border-radius: 2px;
}

.opc-tab-content {
    display: none;
}

.opc-tab-content.active {
    display: block;
}

.opc-empty-msg {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 15px;
}

/* Product Cards */
.opc-product-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.2s ease;
}

.opc-product-card:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.opc-card-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.opc-card-left img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.opc-card-details {
    display: flex;
    flex-direction: column;
}

.opc-card-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.opc-card-meta {
    font-size: 12px;
    color: #888;
}

.opc-card-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Modal styling */
.ordercomment-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.ordercomment-modal-content {
    background-color: #f7f7f7;
    margin: 5% auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 620px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.ordercomment-modal-header {
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ordercomment-modal-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.ordercomment-modal-close {
    font-size: 24px;
    font-weight: 700;
    color: #aaa;
    cursor: pointer;
    border: none;
    background: none;
    line-height: 1;
}

.ordercomment-modal-close:hover {
    color: #333;
}

.ordercomment-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Modal Card Blocks */
.ordercomment-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ordercomment-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.ordercomment-product-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.ordercomment-product-meta img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.ordercomment-product-meta .product-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

/* File Upload & Preview */
.ordercomment-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    background: #fafafa;
}

.ordercomment-upload-zone:hover {
    border-color: #3483fa;
    background: #f4f8ff;
}

.ordercomment-upload-icon {
    font-size: 30px;
    color: #aaa;
    margin-bottom: 8px;
}

.ordercomment-upload-text {
    font-size: 13px;
    color: #666;
    text-align: center;
}

.ordercomment-upload-text span {
    color: #3483fa;
    font-weight: 600;
}

.ordercomment-image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.ordercomment-image-preview-item {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.ordercomment-image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ordercomment-image-preview-item .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Textarea styling */
.ordercomment-textarea-wrapper {
    position: relative;
}

.ordercomment-textarea-wrapper textarea {
    width: 100%;
    height: 120px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease;
}

.ordercomment-textarea-wrapper textarea:focus {
    border-color: #3483fa;
}

.ordercomment-char-counter {
    text-align: right;
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

/* Criterion/Characteristics styling */
.ordercomment-criterion-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.ordercomment-criterion-row:last-child {
    border-bottom: none;
}

.ordercomment-criterion-name {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

/* Footer & Buttons */
.ordercomment-modal-footer {
    background: #fff;
    padding: 15px 20px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Product Reviews Tab */

.opc-comment-item {
    padding: 20px 0;
    border-bottom: 1px solid #f2f2f2;
}

.opc-comment-item:last-child {
    border-bottom: none;
}

.opc-comment-content {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 12px;
}

.opc-comment-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.opc-comment-images img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.opc-comment-images img:hover {
    border-color: #ffb700;
}

.star-on {
    color: #ffb700;
}

.star-off {
    opacity: .5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
    }

    to {
        transform: translateY(0);
    }
}

.opc-comment-item.opc-comment-hidden {
    display: none !important;
}

.opc-load-more-wrapper {
    padding: 15px 0 5px 0;
    text-align: center;
}