/* ===================================================================
   Embed Templates CSS
   Supports 4 template styles: Classic, Modern, Minimal, Bold
   ================================================================ */

/* ===================================================================
   Theme Toggle Button (Fixed Bottom-Right)
   ================================================================ */

.embed-theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.embed-theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.embed-theme-toggle:active {
    transform: scale(0.95);
}

.embed-theme-toggle.changing {
    opacity: 0.6;
    pointer-events: none;
}

.embed-theme-toggle i {
    transition: transform 0.3s ease;
}

.embed-theme-toggle:hover i {
    transform: rotate(15deg);
}

/* ===================================================================
   Base Embed Container
   ================================================================ */

.embed-container {
    min-height: 100vh;
    padding: 1rem;
}

/* ===================================================================
   Dark Mode Enhancements
   Cleaner surfaces, richer depth, subtle gradients
   ================================================================ */

[data-theme="dark"] .embed-header {
    background: linear-gradient(135deg, rgba(12, 16, 22, 0.98) 0%, rgba(10, 13, 18, 0.92) 100%);
    border-bottom: 1px solid rgba(90, 109, 134, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .embed-header-btn {
    background: rgba(16, 22, 32, 0.9);
    border-color: rgba(92, 112, 136, 0.45);
    color: #e6edf5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .embed-header-btn:hover {
    background: rgba(24, 33, 46, 0.95);
    border-color: rgba(126, 157, 194, 0.6);
}

[data-theme="dark"] .embed-theme-toggle {
    background: rgba(17, 24, 36, 0.95);
    border-color: rgba(92, 112, 136, 0.5);
    color: #e6edf5;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .embed-theme-toggle:hover {
    background: rgba(26, 36, 52, 0.95);
}

[data-theme="dark"] .cart-backdrop {
    background: rgba(6, 8, 12, 0.65);
}

[data-theme="dark"] .cart-panel {
    background: #0f141b;
    color: #e6edf5;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .cart-panel .card {
    background: #151c25;
    border-color: rgba(90, 109, 134, 0.4);
}

[data-theme="dark"] .cart-panel .btn-outline-secondary {
    color: #d6deea;
    border-color: rgba(90, 109, 134, 0.5);
}

[data-theme="dark"] .cart-panel .btn-outline-secondary:hover {
    background: rgba(90, 109, 134, 0.2);
    color: #ffffff;
}

[data-theme="dark"] .cart-panel .btn-link.text-muted {
    color: #9aa7b6 !important;
}

/* ===================================================================
   Modal Dark Mode
   Event slot and combo detail modals
   ================================================================ */

[data-theme="dark"] .modal-content {
    background: #151c25;
    border-color: rgba(90, 109, 134, 0.4);
    color: #e6edf5;
}

[data-theme="dark"] .modal-header {
    border-bottom-color: rgba(90, 109, 134, 0.4);
}

[data-theme="dark"] .modal-header .modal-title {
    color: #e6edf5;
}

[data-theme="dark"] .modal-header .btn-close {
    filter: invert(1) brightness(0.8);
}

[data-theme="dark"] .modal-footer {
    border-top-color: rgba(90, 109, 134, 0.4);
}

[data-theme="dark"] .modal-body .text-muted {
    color: #9aa7b6 !important;
}

[data-theme="dark"] .modal-body .card {
    background: #1a2330;
    border-color: rgba(90, 109, 134, 0.4);
}

[data-theme="dark"] .modal-body .card-subtitle {
    color: #9aa7b6 !important;
}

[data-theme="dark"] .modal-body .list-unstyled li span {
    color: #c5d0dc;
}

[data-theme="dark"] .modal-body .form-label {
    color: #e6edf5;
}

[data-theme="dark"] .modal-body .btn-group .btn-outline-secondary {
    color: #c5d0dc;
    border-color: rgba(90, 109, 134, 0.5);
    background: transparent;
}

[data-theme="dark"] .modal-body .btn-group .btn-outline-secondary:hover:not(:disabled) {
    background: rgba(90, 109, 134, 0.2);
    color: #ffffff;
}

[data-theme="dark"] .modal-body .btn-group .btn-outline-secondary.disabled {
    background: #1a2330;
    color: #c5d0dc;
    border-color: rgba(90, 109, 134, 0.5);
}

[data-theme="dark"] .modal-body hr {
    border-color: rgba(90, 109, 134, 0.4);
}

[data-theme="dark"] .modal-footer .btn-secondary {
    background: #2a3545;
    border-color: rgba(90, 109, 134, 0.5);
    color: #c5d0dc;
}

[data-theme="dark"] .modal-footer .btn-secondary:hover {
    background: #384558;
    color: #ffffff;
}

/* ===================================================================
   Template 0: Classic
   Traditional layout, simple and functional
   ================================================================ */

.embed-template-classic .embed-container {
    background-color: var(--bg-primary);
    max-width: 900px;
    margin: 0 auto;
}

/* Offset sticky date picker to account for embed header height */
.embed-template-classic .sticky-top {
    top: 57px !important;
    background-color: var(--bg-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.embed-template-classic .ticket-group-card {
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.embed-template-classic .ticket-group-header {
    background-color: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.embed-template-classic .ticket-slot {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color-light);
}

.embed-template-classic .ticket-slot:last-child {
    border-bottom: none;
}

.embed-template-classic .ticket-slot:hover {
    background-color: var(--bg-hover);
}

[data-theme="dark"] .embed-template-classic .embed-container {
    background: radial-gradient(1200px circle at 10% 0%, #1c2432 0%, #0f141b 50%, #0b0e14 100%);
}

[data-theme="dark"] .embed-template-classic .sticky-top {
    background: rgba(13, 18, 26, 0.95) !important;
    border-bottom: 1px solid rgba(88, 107, 131, 0.35) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .embed-template-classic .ticket-group-card,
[data-theme="dark"] .embed-template-classic .ticket-card {
    background: #121923;
    border-color: rgba(88, 107, 131, 0.45);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    color: #e6edf5;
}

[data-theme="dark"] .embed-template-classic .ticket-group-header {
    background: linear-gradient(135deg, rgba(34, 93, 91, 0.6) 0%, rgba(24, 58, 74, 0.6) 100%);
    color: #eaf6f5;
    border-bottom-color: rgba(88, 107, 131, 0.45);
}

[data-theme="dark"] .embed-template-classic .ticket-slot {
    border-bottom-color: rgba(60, 76, 95, 0.6);
}

[data-theme="dark"] .embed-template-classic .ticket-slot:hover {
    background: rgba(66, 156, 152, 0.12);
}

/* Classic template text colors in dark mode */
[data-theme="dark"] .embed-template-classic h3,
[data-theme="dark"] .embed-template-classic h4,
[data-theme="dark"] .embed-template-classic h5,
[data-theme="dark"] .embed-template-classic h6,
[data-theme="dark"] .embed-template-classic .fw-bold {
    color: #e6edf5;
}

[data-theme="dark"] .embed-template-classic p,
[data-theme="dark"] .embed-template-classic span:not(.badge) {
    color: #c5d0dc;
}

[data-theme="dark"] .embed-template-classic .small,
[data-theme="dark"] .embed-template-classic small {
    color: #9aa7b6;
}

[data-theme="dark"] .embed-template-classic .card-body {
    background: rgba(18, 25, 35, 0.8);
    color: #c5d0dc;
}

[data-theme="dark"] .embed-template-classic .collapse .card-body {
    background: rgba(22, 30, 42, 0.9);
}

/* Classic template button styling in dark mode */
[data-theme="dark"] .embed-template-classic .btn-primary {
    background: linear-gradient(135deg, #2ec4b6 0%, #2b7a78 100%);
    border: none;
}

[data-theme="dark"] .embed-template-classic .btn-primary:hover {
    background: linear-gradient(135deg, #37d6c7 0%, #1f6f72 100%);
}

[data-theme="dark"] .embed-template-classic .btn-outline-primary {
    color: #5dd9cf;
    border-color: #5dd9cf;
}

[data-theme="dark"] .embed-template-classic .btn-outline-primary:hover {
    background-color: #5dd9cf;
    color: #0f141b;
}

[data-theme="dark"] .embed-template-classic .btn-outline-secondary {
    color: #9aa7b6;
    border-color: rgba(90, 109, 134, 0.5);
}

[data-theme="dark"] .embed-template-classic .btn-outline-secondary:hover {
    background: rgba(90, 109, 134, 0.25);
    color: #e6edf5;
}

[data-theme="dark"] .embed-template-classic .btn-outline-success {
    color: #75b798;
    border-color: #75b798;
}

[data-theme="dark"] .embed-template-classic .btn-outline-success:hover {
    background-color: #75b798;
    color: #0f141b;
}

[data-theme="dark"] .embed-template-classic .btn-outline-danger {
    color: #ea868f;
    border-color: #ea868f;
}

[data-theme="dark"] .embed-template-classic .text-center.text-secondary {
    color: #9aa7b6 !important;
}

/* Form controls in dark mode for Classic */
[data-theme="dark"] .embed-template-classic .form-control {
    background-color: rgba(16, 22, 32, 0.9);
    border-color: rgba(90, 109, 134, 0.5);
    color: #e6edf5;
}

[data-theme="dark"] .embed-template-classic .form-control:focus {
    background-color: rgba(20, 28, 40, 0.95);
    border-color: #5dd9cf;
    color: #e6edf5;
}

/* HR divider in dark mode */
[data-theme="dark"] .embed-template-classic hr {
    border-color: rgba(90, 109, 134, 0.4);
    opacity: 1;
}

/* ===================================================================
   Template 1: Modern
   Card-based design with shadows, hover effects, rounded corners
   ================================================================ */

.embed-template-modern .embed-container {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.embed-template-modern .sticky-top {
    top: 57px !important;
    background: var(--card-bg) !important;
    border-radius: 1rem;
    padding: 1rem !important;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: none !important;
}

.embed-template-modern .ticket-group-card {
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.embed-template-modern .ticket-group-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.embed-template-modern .ticket-group-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    color: white;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
}

[data-theme="dark"] .embed-template-modern .ticket-group-header {
    background: linear-gradient(135deg, #1aa3a3 0%, #1f5b7a 100%);
}

.embed-template-modern .ticket-slot {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.embed-template-modern .ticket-slot:last-child {
    border-bottom: none;
}

.embed-template-modern .ticket-slot:hover {
    background-color: var(--bg-hover);
}

.embed-template-modern .btn {
    border-radius: 0.5rem;
}

.embed-template-modern .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    border: none;
}

.embed-template-modern .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d80 100%);
}

[data-theme="dark"] .embed-template-modern .embed-container {
    background: radial-gradient(1200px circle at 15% 0%, #1c2635 0%, #111821 45%, #0b1016 100%);
}

[data-theme="dark"] .embed-template-modern .sticky-top {
    background: rgba(16, 22, 32, 0.92) !important;
    border: 1px solid rgba(90, 109, 134, 0.35) !important;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .embed-template-modern .ticket-group-card {
    background: rgba(16, 23, 33, 0.92);
    border: 1px solid rgba(90, 109, 134, 0.35);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .embed-template-modern .ticket-group-card:hover {
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .embed-template-modern .ticket-slot {
    border-bottom-color: rgba(60, 76, 95, 0.6);
}

[data-theme="dark"] .embed-template-modern .ticket-slot:hover {
    background: rgba(57, 141, 145, 0.12);
}

[data-theme="dark"] .embed-template-modern .btn-primary {
    background: linear-gradient(135deg, #2ec4b6 0%, #2563eb 100%);
    border: none;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

[data-theme="dark"] .embed-template-modern .btn-primary:hover {
    background: linear-gradient(135deg, #37d6c7 0%, #1d4ed8 100%);
}

/* ===================================================================
   Template 2: Minimal
   Clean white-space focused design, subtle borders, light typography
   ================================================================ */

.embed-template-minimal .embed-container {
    background-color: var(--bg-primary);
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.embed-template-minimal .sticky-top {
    top: 57px !important;
    background-color: transparent !important;
    border: none !important;
    padding-bottom: 1.5rem !important;
}

.embed-template-minimal .ticket-group-card {
    border: none;
    border-bottom: 1px solid var(--border-color-light);
    border-radius: 0;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

.embed-template-minimal .ticket-group-card:last-child {
    border-bottom: none;
}

.embed-template-minimal .ticket-group-header {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0 0 0.5rem 0;
    background: transparent;
    border: none;
}

.embed-template-minimal .ticket-slot {
    padding: 0.875rem 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.embed-template-minimal .ticket-slot:hover {
    background: transparent;
}

.embed-template-minimal .ticket-slot:hover .ticket-time {
    color: var(--text-primary);
}

.embed-template-minimal .ticket-time {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.embed-template-minimal .btn {
    border-radius: 0;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.embed-template-minimal .btn-primary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.embed-template-minimal .btn-primary:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.embed-template-minimal hr {
    opacity: 0.15;
}

[data-theme="dark"] .embed-template-minimal .embed-container {
    background: linear-gradient(180deg, #0f141b 0%, #0b0f15 100%);
}

[data-theme="dark"] .embed-template-minimal .ticket-group-card {
    border-bottom-color: rgba(62, 78, 98, 0.55);
}

[data-theme="dark"] .embed-template-minimal .ticket-group-header {
    color: #9aa7b6;
}

[data-theme="dark"] .embed-template-minimal .ticket-time {
    color: #aeb8c6;
}

[data-theme="dark"] .embed-template-minimal .ticket-slot:hover .ticket-time {
    color: #e6edf5;
}

[data-theme="dark"] .embed-template-minimal .btn-primary {
    color: #e6edf5;
    border-color: rgba(90, 109, 134, 0.7);
}

[data-theme="dark"] .embed-template-minimal .btn-primary:hover {
    background-color: #e6edf5;
    color: #0f141b;
}

[data-theme="dark"] .embed-template-minimal hr {
    opacity: 0.35;
}

/* ===================================================================
   Template 3: Bold
   Vibrant gradients, strong typography, expressive design
   ================================================================ */

.embed-template-bold .embed-container {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    color: #ffffff;
}

[data-theme="light"] .embed-template-bold .embed-container {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

[data-theme="dark"] .embed-template-bold .embed-container {
    background: radial-gradient(1200px circle at 10% 0%, #1c2a3a 0%, #0f1b2a 45%, #0b121a 100%);
}

.embed-template-bold .sticky-top {
    top: 57px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 1.25rem !important;
    margin-bottom: 2rem;
}

.embed-template-bold .sticky-top * {
    color: white !important;
}

.embed-template-bold .sticky-top .btn {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.embed-template-bold .sticky-top .form-control {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.embed-template-bold .sticky-top .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.embed-template-bold .ticket-group-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.embed-template-bold .ticket-group-header {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.embed-template-bold .ticket-slot {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.embed-template-bold .ticket-slot:last-child {
    border-bottom: none;
}

.embed-template-bold .ticket-slot:hover {
    background: rgba(255, 255, 255, 0.05);
}

.embed-template-bold .btn-primary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1.5rem;
}

.embed-template-bold .btn-primary:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: scale(1.05);
}

[data-theme="dark"] .embed-template-bold .sticky-top {
    background: rgba(17, 26, 38, 0.7) !important;
    border-color: rgba(120, 146, 175, 0.35) !important;
}

[data-theme="dark"] .embed-template-bold .ticket-group-card {
    background: rgba(16, 24, 36, 0.75);
    border-color: rgba(120, 146, 175, 0.35);
}

[data-theme="dark"] .embed-template-bold .ticket-group-header {
    background: linear-gradient(90deg, rgba(34, 93, 91, 0.7) 0%, rgba(24, 58, 74, 0.5) 100%);
    color: #eaf6f5;
}

[data-theme="dark"] .embed-template-bold .ticket-slot {
    border-bottom-color: rgba(120, 146, 175, 0.25);
    color: rgba(230, 237, 245, 0.9);
}

[data-theme="dark"] .embed-template-bold .btn-primary {
    background: linear-gradient(135deg, #2ec4b6 0%, #1f6f72 100%);
}

[data-theme="dark"] .embed-template-bold .btn-primary:hover {
    background: linear-gradient(135deg, #37d6c7 0%, #1b5a5f 100%);
}

.embed-template-bold .btn-outline-secondary,
.embed-template-bold .btn-outline-primary {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.embed-template-bold .btn-outline-secondary:hover,
.embed-template-bold .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.embed-template-bold .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.embed-template-bold hr {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Bold theme toggle override */
.embed-template-bold .embed-theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.embed-template-bold .embed-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .embed-template-bold .embed-theme-toggle {
    background: rgba(16, 24, 36, 0.8);
    border-color: rgba(120, 146, 175, 0.45);
    color: #e6edf5;
}

[data-theme="dark"] .embed-template-bold .embed-theme-toggle:hover {
    background: rgba(22, 32, 46, 0.9);
}

/* ===================================================================
   Responsive Adjustments
   ================================================================ */

@media (max-width: 768px) {
    .embed-template-modern .embed-container,
    .embed-template-bold .embed-container {
        padding: 1rem;
    }

    .embed-template-modern .ticket-group-card,
    .embed-template-bold .ticket-group-card {
        border-radius: 0.75rem;
    }

    .embed-theme-toggle {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .embed-template-minimal .embed-container {
        padding: 1rem;
    }

    .embed-template-bold .ticket-group-header {
        font-size: 1rem;
    }
}

/* ===================================================================
   Custom Embed Designer CSS Variable Overrides
   These variables are injected per-client from EmbedConfigDTO
   ================================================================ */

/* Apply custom font family when set */
.modern-template,
.minimal-template,
.bold-template,
.embed-container.classic-embed {
    font-family: var(--embed-font-family, inherit);
}

.modern-title,
.minimal-date-day,
.bold-headline,
.modern-category-header,
.minimal-section-title,
.bold-section-title,
.classic-section-title {
    font-family: var(--embed-heading-font, var(--embed-font-family, inherit));
}

/* Apply custom primary color to buttons */
.modern-template .btn-modern-primary,
.classic-embed .btn-primary,
.minimal-time-btn,
.bold-time-btn.available {
    background-color: var(--embed-primary, revert);
    border-color: var(--embed-primary, revert);
}

/* Apply custom accent color to gift/accent buttons */
.modern-template .btn-modern-gift,
.bold-gift-btn,
.bold-action-btn {
    background-color: var(--embed-accent, revert);
    border-color: var(--embed-accent, revert);
}

/* Apply custom background */
.modern-template,
.minimal-template,
.bold-template,
.embed-container.classic-embed {
    background-color: var(--embed-bg, revert);
}

/* Apply custom text color */
.modern-template,
.minimal-template,
.bold-template,
.embed-container.classic-embed {
    color: var(--embed-text, revert);
}

/* Apply custom card background */
.modern-date-card,
.modern-event-card,
.modern-combo-card,
.bold-event-card,
.bold-combo-card,
.classic-embed .card {
    background-color: var(--embed-card-bg, revert);
}

/* ===================================================================
   Urgency Badge Styles
   ================================================================ */

.urgency-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    background: #dc3545;
    color: white;
    margin-left: 0.35rem;
    animation: urgency-pulse 2s ease-in-out infinite;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1;
}

@@keyframes urgency-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Urgency badge in Bold template - white on translucent */
.bold-time-btn .urgency-badge {
    background: rgba(255, 80, 80, 0.9);
}

/* Urgency badge in Minimal template - subtle */
.minimal-time-btn .urgency-badge {
    background: #e74c3c;
    font-size: 0.6rem;
}

/* ===================================================================
   Section Header Icon/Image
   ================================================================ */

.section-header-icon {
    height: 24px;
    width: 24px;
    object-fit: contain;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* ===================================================================
   Section Description
   ================================================================ */

.section-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ===================================================================
   Reduced Motion Support
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
    .embed-template-modern .ticket-group-card,
    .embed-template-bold .btn-primary,
    .embed-theme-toggle {
        transition: none;
    }

    .embed-template-modern .ticket-group-card:hover,
    .embed-theme-toggle:hover {
        transform: none;
    }

    .urgency-badge {
        animation: none;
    }
}
