/* S60 Orders — base styles */

/* Forms */
.s60-form { max-width: 520px; }
.s60-field { margin-bottom: 14px; }
.s60-field label { display: block; font-weight: 500; margin-bottom: 4px; font-size: 14px; color: #333; }
.s60-field input, .s60-field select, .s60-field textarea,
.s60-dialog-form input, .s60-dialog-form select {
    width: 100%; padding: 6px 10px; border: 1px solid #d0d0d0; border-radius: 6px;
    font-size: 14px; font-family: inherit; box-sizing: border-box;
    line-height: 1.4;
}
.s60-field input:focus, .s60-field select:focus, .s60-field textarea:focus {
    border-color: #2271b1; outline: none; box-shadow: 0 0 0 2px rgba(34,113,177,0.12);
}
.s60-field-row { display: flex; gap: 12px; }
.s60-form-section { padding: 16px; background: #f8f9fa; border-radius: 8px; margin-bottom: 16px; }

.s60-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.s60-checkbox input { width: auto; margin: 0; }

/* Buttons */
.s60-btn {
    display: inline-block; padding: 10px 20px; border-radius: 6px; border: none;
    font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center;
    transition: background 0.15s;
}
.s60-btn-primary { background: #2271b1; color: #fff; }
.s60-btn-primary:hover { background: #1a5a8e; color: #fff; }
.s60-btn-secondary { background: #f0f0f0; color: #333; }
.s60-btn-secondary:hover { background: #e0e0e0; }
.s60-btn-small { padding: 6px 12px; font-size: 13px; }
.s60-btn-large { padding: 12px; font-size: 16px; }
.s60-btn-link { background: none; color: #666; font-size: 13px; text-decoration: underline; }

/* Currency */
.s60-currency-toggle { display: flex; gap: 4px; }
.s60-currency-btn { padding: 8px 14px; border: 1px solid #ddd; background: #fff; border-radius: 4px; cursor: pointer; font-size: 14px; }
.s60-currency-btn.active { background: #2271b1; color: #fff; border-color: #2271b1; }

/* Voucher */
.s60-voucher-result { margin-top: 4px; font-size: 13px; }
.s60-voucher-ok { color: #00a32a; }
.s60-voucher-err { color: #d63638; }

/* Checkout total */
.s60-checkout-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; background: #f0f7fc; border-radius: 8px; margin: 16px 0;
    font-size: 16px;
}
.s60-checkout-total strong { font-size: 20px; }

.s60-checkout-summary-table { width: 100%; margin-bottom: 12px; }
.s60-checkout-summary-table td { padding: 6px 0; border-bottom: 1px solid #eee; }
.s60-checkout-summary-table small { color: #666; }

.s60-gdpr { font-size: 13px; color: #666; }
.s60-gdpr a { color: #2271b1; }
.s60-error { color: #d63638; padding: 10px 14px; background: #fef0f0; border-radius: 6px; margin-top: 10px; font-size: 14px; }
.s60-loading { color: #999; }

/* Dialog */
.s60-dialog { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.s60-dialog-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.s60-dialog-content {
    position: relative; background: #fff; border-radius: 12px; padding: 28px;
    max-width: 420px; width: 90%; box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.s60-dialog-content h3 { margin: 0 0 4px; font-size: 18px; }
.s60-dialog-subtitle { color: #666; font-size: 14px; margin: 0 0 20px; }
.s60-dialog-form .s60-field { margin-bottom: 10px; }
.s60-dialog-form input,
.s60-dialog input,
.s60-dialog-content input {
    padding: 5px 10px !important;
    height: auto !important;
    min-height: 0 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}
.s60-optional { cursor: help; font-size: 12px; }
.s60-dialog-legend { color: #999; font-size: 12px; margin: 12px 0 0; }
.s60-dialog-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.s60-dialog-actions .s60-btn { width: 100%; }
.s60-dialog-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 24px; color: #999; cursor: pointer; }
/* Added to cart notice — centered overlay */
.s60-added-notice {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9);
    z-index: 100000;
    background: #00a32a; color: #fff; padding: 24px 40px; border-radius: 12px;
    font-size: 20px; font-weight: 600; box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    opacity: 0; transition: opacity 0.3s, transform 0.3s;
    text-align: center;
}
.s60-added-notice.s60-notice-show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.s60-radio-group { display: flex; gap: 16px; }
.s60-radio { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; font-weight: 400; }
.s60-radio input { width: auto; margin: 0; }
.s60-dialog-hint { color: #888; font-size: 13px; font-style: italic; margin: 8px 0 0; }

/* Terms list */
.s60-terms-table { width: 100%; border-collapse: collapse; }
.s60-terms-table th { text-align: left; padding: 8px 10px; border-bottom: 2px solid #eee; font-size: 13px; color: #666; }
.s60-terms-table td { padding: 10px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.s60-term-closed { opacity: 0.5; }
.s60-term-full { color: #d63638; font-weight: 600; }
.s60-term-unavailable { color: #999; font-size: 13px; }
.s60-terms-voucher { margin-top: 16px; }

@media (max-width: 768px) {
    .s60-terms-table thead { display: none; }
    .s60-terms-table, .s60-terms-table tbody {
        display: block !important; width: 100%;
    }
    .s60-terms-table tr.s60-term {
        display: flex !important; flex-wrap: wrap; align-items: baseline;
        border: 1px solid #eee; border-radius: 8px; padding: 12px; margin-bottom: 10px;
    }
    .s60-terms-table td { padding: 0 !important; border: none !important; }
    .s60-terms-table td.s60-terms-date {
        order: 1; font-weight: 600; flex: 1;
    }
    .s60-terms-table td.s60-terms-price {
        order: 2; font-weight: 600; text-align: right;
    }
    .s60-terms-table td.s60-terms-location {
        order: 3; width: 100%; color: #666; font-size: 13px; margin: 4px 0;
    }
    .s60-terms-table td.s60-terms-action {
        order: 4; width: 100%; margin-top: 6px;
    }
    .s60-terms-table td.s60-terms-action .s60-btn { width: 100%; }
    .s60-terms-table td.s60-terms-instructor,
    .s60-terms-table td.s60-terms-capacity { display: none !important; }
}

/* Course cards */
.s60-courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.s60-course-card { border: 1px solid #eee; border-radius: 12px; overflow: hidden; transition: box-shadow 0.2s; }
.s60-course-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.s60-course-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.s60-course-body { padding: 16px; }
.s60-course-title { margin: 0 0 8px; font-size: 18px; }
.s60-course-desc { color: #555; font-size: 14px; line-height: 1.4; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s60-course-next-term { color: #666; font-size: 13px; margin: 4px 0; }
.s60-course-terms-count { color: #999; font-size: 12px; margin: 2px 0 12px; }
.s60-course-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.s60-course-price { font-weight: 700; font-size: 18px; }

/* Thank you */
.s60-thankyou { max-width: 520px; }
.s60-thankyou-header { margin-bottom: 20px; }
.s60-payment-info { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 20px; margin: 16px 0; }
.s60-payment-table { width: 100%; }
.s60-payment-table td { padding: 6px 0; }
.s60-payment-label { color: #666; width: 150px; }
.s60-payment-value { font-weight: 600; }
.s60-payment-vs { font-size: 1.2em; }
.s60-payment-qr { text-align: center; margin-top: 14px; }
.s60-qr-image { max-width: 180px; border: 1px solid #ddd; border-radius: 4px; }
.s60-payment-pdf { margin-top: 10px; }

/* Cart */
.s60-cart-items-list { margin-bottom: 16px; }
.s60-cart-item { border: 1px solid #eee; border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.s60-cart-item-main { display: flex; align-items: flex-start; gap: 12px; }
.s60-cart-item-info { flex: 1; }
.s60-cart-item-info strong { font-size: 15px; }
.s60-cart-item-link { color: inherit; text-decoration: none; }
.s60-cart-item-link:hover { color: #2271b1; }
.s60-cart-item-term { color: #666; font-size: 13px; }
.s60-cart-item-price { font-weight: 700; font-size: 16px; white-space: nowrap; }
.s60-cart-item-participant { margin-top: 8px; padding-top: 8px; border-top: 1px solid #f0f0f0; font-size: 13px; color: #555; }
.s60-cart-participant-label { color: #999; }
.s60-cart-participant-name { font-weight: 600; }
.s60-cart-participant-detail { color: #888; }
.s60-cart-edit-participant { margin-left: 8px; font-size: 12px; }
.s60-cart-total { font-size: 18px; margin: 16px 0; text-align: right; }
.s60-cart-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; }
.s60-cart-bulk { margin-bottom: 12px; }
.s60-cart-remove { background: none; border: none; color: #d63638; font-size: 18px; cursor: pointer; }

/* Cart badge */
.s60-cart-count, .cart-count {
    background: #d63638; color: #fff; font-size: 11px; font-weight: 700;
    min-width: 18px; height: 18px; line-height: 18px; text-align: center;
    border-radius: 50%; display: inline-block; vertical-align: top;
    margin-left: 4px;
}

/* Upcoming terms */
.s60-upcoming-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.s60-upcoming-card { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid #eee; border-radius: 8px; }
.s60-upcoming-date { text-align: center; min-width: 50px; }
.s60-upcoming-day { display: block; font-size: 24px; font-weight: 700; }
.s60-upcoming-month { display: block; font-size: 12px; color: #666; text-transform: uppercase; }
.s60-upcoming-body { flex: 1; }
.s60-upcoming-title { margin: 0 0 4px; font-size: 15px; }
.s60-upcoming-location { margin: 0; color: #666; font-size: 13px; }
.s60-upcoming-daterange { margin: 2px 0 0; color: #999; font-size: 12px; }

/* =========================================================================
   s60-course-dates Bricks element
   ========================================================================= */
.s60-course-dates-wrapper { max-width: 900px; margin: 0 auto; }
.s60-cd-heading { font-family: 'DM Serif Display', serif; font-size: 36px; font-weight: 700; color: #1c1814; margin-bottom: 12px; line-height: 1.2; }
.s60-cd-subheading { font-size: 16px; color: #6b6058; margin-bottom: 8px; line-height: 1.8; }
.s60-dates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 32px; }
.s60-date-card { background: #fff; border: 1px solid #e4ddd4; border-radius: 12px; padding: 20px 24px; display: flex; align-items: center; gap: 20px; transition: all 0.3s; }
.s60-date-card:hover { border-color: #0b6e80; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.s60-date-badge { background: #0b6e80; color: #fff; border-radius: 10px; padding: 12px 16px; text-align: center; min-width: 60px; flex-shrink: 0; }
.s60-date-day { font-size: 24px; font-weight: 700; line-height: 1; }
.s60-date-month { font-size: 11px; text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em; }
.s60-date-detail { flex: 1; }
.s60-date-detail strong { font-size: 15px; color: #1c1814; display: block; }
.s60-date-detail span { font-size: 13px; color: #6b6058; display: block; }
.s60-date-last-seats { font-size: 12px !important; color: #c0392b !important; font-weight: 600; }
.s60-date-link { background: #e09030; color: #fff; padding: 8px 20px; border-radius: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background 0.2s; text-decoration: none; border: none; cursor: pointer; }
.s60-date-link:hover { background: #c47820; color: #fff; }
.s60-date-card-closed { opacity: 0.5; }
.s60-date-closed-label { color: #999; font-size: 13px; }
.s60-date-location { font-size: 15px; font-weight: 600; color: #1c1814; }
.s60-date-bottom { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.s60-date-range { font-size: 13px; color: #6b6058; flex: 1; }

/* Sidebar — sticky support */
.kvt-course-sidebar { position: sticky; top: 80px; }
.brxe-shortcode:has(.kvt-course-sidebar) { align-self: start; }
.s60-sidebar-header { margin-bottom: 16px; }
.s60-sidebar-price { font-size: 28px; font-weight: 700; color: #1c1814; }
.s60-sidebar-price-eur { font-size: 16px; color: #6b6058; }
.s60-sidebar-no-terms { color: #999; font-style: italic; }
.s60-sidebar-voucher { margin-top: 16px; }

@media (max-width: 600px) {
    .s60-date-bottom { flex-wrap: wrap; }
    .s60-date-link { width: 100%; text-align: center; margin-top: 4px; }
}
@media (max-width: 600px) {
    .s60-dates-grid { grid-template-columns: 1fr; }
    .s60-cd-heading { font-size: 28px; }
}
