/**
 * Real Shine Event – Frontend Product Page Styles
 *
 * Styles for vendor category selection, product list, and agreement fields.
 */

/* Vendor Fields Container */
.rse-vendor-fields {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9ff;
    border: 1px solid #e0e5f0;
    border-radius: 10px;
}

.rse-vendor-fields h4 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f3460;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0f3460;
}

/* Field Rows */
.rse-field {
    margin-bottom: 1rem;
}

.rse-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #333;
    font-size: 0.95rem;
}

.rse-field label abbr.required {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 700;
}

/* Select */
.rse-select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccd0da;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 12px;
}

.rse-select:focus {
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.12);
    outline: none;
}

.rse-select option:disabled {
    color: #c0c0c0;
}

/* Textarea */
.rse-textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccd0da;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rse-textarea:focus {
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.12);
    outline: none;
}

/* Checkbox */
.rse-checkbox-field label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 400;
    color: #444;
    line-height: 1.5;
    cursor: pointer;
}

.rse-checkbox-field input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #0f3460;
}

/* Error States */
.rse-field-error .rse-select,
.rse-field-error .rse-textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.rse-field-error label {
    color: #e74c3c;
}

.rse-error-msg {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: #e74c3c;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .rse-vendor-fields {
        padding: 1rem;
        margin: 1rem 0;
    }

    .rse-vendor-fields h4 {
        font-size: 1rem;
    }
}

/* ===== Date Badge (Shop/Category Loop) ===== */
.rse-date-badge {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0.4rem 0 0;
    padding: 0.4rem 0.6rem;
    background: linear-gradient(135deg, #f0f4ff, #e8edf8);
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #444;
}

.rse-date-badge-line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rse-countdown-line {
    padding-left: 1.4rem;
}

.rse-date-badge-icon {
    font-size: 0.9rem;
}

.rse-date-badge-text {
    font-weight: 500;
    color: #333;
}

.rse-date-duration {
    display: inline-block;
    margin-left: 0.3rem;
    padding: 0.1rem 0.4rem;
    background: #0f3460;
    color: #fff;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    vertical-align: middle;
}

/* ===== Countdown Badge ===== */
.rse-countdown {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    margin-left: auto;
}

.rse-countdown-urgent {
    background: #ffe0e0;
    color: #c0392b;
}

.rse-countdown-soon {
    background: #fff3e0;
    color: #e67e22;
}

.rse-countdown-active {
    background: #e0f8e8;
    color: #27ae60;
}

.rse-countdown-ended {
    background: #f0f0f0;
    color: #999;
}

/* ===== Product Date Info (Single Product Page) ===== */
.rse-product-date-info {
    margin: 1rem 0;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, #f8f9ff, #f0f3fa);
    border: 1px solid #e0e5f0;
    border-radius: 10px;
}

.rse-date-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.rse-date-row+.rse-date-row {
    border-top: 1px solid #e8ecf4;
}

.rse-countdown-row {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    border-top: none !important;
}

.rse-date-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.rse-date-details {
    flex: 1;
    min-width: 0;
}

.rse-date-label {
    display: block;
    font-size: 0.78rem;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
}

.rse-date-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
}

.rse-duration-tag {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.12rem 0.5rem;
    background: linear-gradient(135deg, #0f3460, #16213e);
    color: #fff;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .rse-date-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }

    .rse-product-date-info {
        padding: 0.75rem 1rem;
    }

    .rse-date-row {
        flex-wrap: wrap;
    }

    .rse-countdown {
        margin-left: 0;
        margin-top: 0.3rem;
    }
}