/* ==========================================================================
   Cart & Checkout Template Styles
   ========================================================================== */

:root {
    --cm-system-font: inherit;
    --cm-font-family: inherit;
    --cm-heading-font-family: inherit;
}

.cm-cart-page-container,
.cm-event-checkout-wrap {
    font-family: var(--cm-font-family, inherit) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cm-cart-page-container *,
.cm-cart-page-container input,
.cm-cart-page-container select,
.cm-cart-page-container textarea,
.cm-cart-page-container button,
.cm-event-checkout-wrap *,
.cm-event-checkout-wrap input,
.cm-event-checkout-wrap select,
.cm-event-checkout-wrap textarea,
.cm-event-checkout-wrap button {
    font-family: inherit !important;
    box-sizing: border-box;
}

.cm-cart-page-container h1,
.cm-cart-page-container h2,
.cm-cart-page-container h3,
.cm-cart-page-container h4,
.cm-cart-page-container h5,
.cm-cart-header-title,
.cm-cart-item-title,
.cm-attendee-section-title,
.cm-summary-card-title,
.cm-event-checkout-wrap h1,
.cm-event-checkout-wrap h2,
.cm-event-checkout-wrap h3,
.cm-event-checkout-wrap h4,
.cm-event-checkout-wrap h5 {
    font-family: var(--cm-heading-font-family, var(--cm-font-family, inherit)) !important;
}

/* ── Container Structure ── */
.cm-cart-page-container {
    color: var(--cm-text-color, #1e293b);
    background: var(--cm-surface, #ffffff);
    border-radius: var(--cm-r-xl, 20px);
    padding: clamp(24px, 3.5vw, 40px);
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
    border: 1px solid var(--cm-line, #e2e8f0);
    max-width: var(--cm-container-width, 1280px) !important;
    width: 100% !important;
    margin: 32px auto !important;
    box-sizing: border-box !important;
}

/* ── Currency Symbol & Price Typography Consistency ── */
.cm-currency-sym {
    display: inline-block;
    font-weight: inherit;
    font-size: 1em;
    margin-right: 2.5px;
    letter-spacing: 0;
    vertical-align: baseline;
}

/* ── Cart Main Header ── */
.cm-cart-header-main {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--cm-line, #e2e8f0);
    padding-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}
.cm-cart-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cm-cart-header-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--cm-brand-light, rgba(227, 85, 34, 0.08));
    border: 1px solid var(--cm-brand-mid, rgba(227, 85, 34, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--cm-brand-glow, rgba(227, 85, 34, 0.15));
}
.cm-cart-header-icon {
    width: 24px;
    height: 24px;
    color: var(--cm-brand, #e35522);
    display: block;
    flex-shrink: 0;
}
.cm-cart-header-title {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em;
    color: var(--cm-heading-color, #0f172a) !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    margin: 0 !important;
    line-height: 1.2;
}
.cm-cart-header-subtitle {
    font-size: 0.88rem;
    color: var(--cm-ink-3, #64748b);
    margin: 4px 0 0 0;
    line-height: 1.4;
    font-weight: 400;
}
.cm-cart-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cm-cart-event-switcher-wrap {
    display: inline-flex;
    align-items: center;
}
.cm-cart-event-selector {
    padding: 8px 34px 8px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--cm-line, #cbd5e1);
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    background-color: var(--cm-white, #fff);
    color: var(--cm-text-color, #1e293b);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.2s ease;
}
.cm-cart-event-selector:focus {
    border-color: var(--cm-brand, #e35522);
    box-shadow: 0 0 0 3px var(--cm-brand-glow, rgba(227, 85, 34, 0.15));
}
.cm-cart-item-count {
    font-size: 0.825rem;
    color: var(--cm-ink-2, #334155);
    font-weight: 600;
    background: #f8fafc;
    padding: 7px 16px;
    border-radius: 9999px;
    border: 1px solid var(--cm-line, #e2e8f0);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.cm-cart-count-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* ── Layout Grid ── */
.cm-cart-body {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(330px, 1fr);
    gap: 32px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}
.cm-cart-items-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}
.cm-cart-summary-column {
    min-width: 0;
}

/* ── Ticket / Pass Item Card ── */
.cm-cart-item-card {
    background: var(--cm-white, #ffffff);
    border: 1px solid var(--cm-line, #e2e8f0);
    border-radius: var(--cm-r-lg, 16px);
    padding: clamp(20px, 2.5vw, 26px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 12px -2px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.cm-cart-item-card:hover {
    box-shadow: 0 6px 20px -2px rgba(15, 23, 42, 0.07);
    border-color: #cbd5e1;
}
.cm-cart-item-card-inner,
.cm-cart-membership-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
}

/* ── Ticket Hero Section ── */
.cm-cart-ticket-hero {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}
.cm-cart-ticket-media {
    flex-shrink: 0;
}
.cm-cart-ticket-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--cm-line, #e2e8f0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    display: block;
}
.cm-cart-ticket-date-badge {
    width: 62px;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid var(--cm-line, #e2e8f0);
    background: #ffffff;
    text-align: center;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}
.cm-date-badge-month {
    display: block;
    background: var(--cm-brand, #e35522);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 3px 0;
    text-transform: uppercase;
}
.cm-date-badge-day {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cm-heading-color, #0f172a);
    padding: 5px 0 7px;
    line-height: 1;
}
.cm-cart-ticket-icon-badge {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    background: var(--cm-brand-light, rgba(227, 85, 34, 0.08));
    border: 1px solid var(--cm-brand-mid, rgba(227, 85, 34, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cm-brand, #e35522);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}
.cm-cart-ticket-content {
    flex: 1;
    min-width: 0;
}
.cm-cart-ticket-top-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 4px;
}
.cm-cart-ticket-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.cm-ticket-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px 9px;
    border-radius: 6px;
    font-weight: 500;
    line-height: 1;
}
.cm-ticket-meta-pill svg {
    color: var(--cm-brand, #e35522);
    display: block;
    flex-shrink: 0;
}
.cm-cart-ticket-price-box {
    text-align: right;
    flex-shrink: 0;
    padding-left: 12px;
    display: flex;
    align-items: center;
}

/* Badges */
.cm-item-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}
.cm-cart-badge-icon {
    width: 13px;
    height: 13px;
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
}
.cm-badge-membership {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.cm-badge-event {
    background: var(--cm-brand-light, rgba(227, 85, 34, 0.08));
    color: var(--cm-brand, #e35522);
    border: 1px solid var(--cm-brand-mid, rgba(227, 85, 34, 0.22));
}

/* Remove button */
.cm-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
    text-decoration: none !important;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.cm-remove-btn:hover {
    color: #ef4444 !important;
    background: #fef2f2;
}
.cm-remove-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Title & Price */
.cm-cart-item-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.cm-cart-item-title {
    margin: 0 !important;
    font-size: clamp(1.15rem, 1.6vw, 1.35rem) !important;
    font-weight: 700 !important;
    color: var(--cm-heading-color, #0f172a) !important;
    line-height: 1.35;
    flex: 1;
    min-width: 200px;
}
.cm-cart-item-price {
    font-size: clamp(1.2rem, 1.6vw, 1.45rem) !important;
    font-weight: 700 !important;
    color: var(--cm-heading-color, #0f172a);
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    font-variant-numeric: tabular-nums;
}
.cm-cart-item-desc {
    margin: 6px 0 0 0;
    font-size: 0.88rem;
    color: var(--cm-ink-3, #64748b);
    line-height: 1.55;
}

/* ── Ticket Action Toolbar (Stepper & Update) ── */
.cm-cart-ticket-toolbar,
.cm-cart-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--cm-line, #f1f5f9);
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 12px;
}
.cm-cart-qty-wrapper,
.cm-cart-qty-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.cm-cart-qty-label {
    font-size: 0.85rem;
    color: var(--cm-ink-2, #475569);
    font-weight: 600;
    margin: 0 !important;
    line-height: 1;
}
/* ── Quantity Stepper Frame ── */
.cm-qty-stepper-wrap,
.cm-cart-page-container .cm-qty-stepper-wrap {
    display: inline-flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1.5px solid var(--cm-brand, #e35522) !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
    height: 36px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    vertical-align: middle !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

button.cm-qty-stepper-btn,
.cm-cart-page-container button.cm-qty-stepper-btn,
.cm-qty-stepper-wrap button.cm-qty-stepper-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    background: var(--cm-brand, #e35522) !important;
    color: #ffffff !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    flex-shrink: 0 !important;
}

button.cm-qty-stepper-dec,
.cm-qty-stepper-wrap button.cm-qty-stepper-dec {
    border-radius: 9999px 0 0 9999px !important;
}

button.cm-qty-stepper-inc,
.cm-qty-stepper-wrap button.cm-qty-stepper-inc {
    border-radius: 0 9999px 9999px 0 !important;
}

button.cm-qty-stepper-btn:hover,
.cm-qty-stepper-wrap button.cm-qty-stepper-btn:hover {
    background: var(--cm-brand, #e35522) !important;
    filter: brightness(1.08) !important;
    color: #ffffff !important;
}

button.cm-qty-stepper-btn:active,
.cm-qty-stepper-wrap button.cm-qty-stepper-btn:active {
    filter: brightness(0.92) !important;
}

button.cm-qty-stepper-btn svg.cm-qty-icon,
.cm-qty-stepper-wrap button.cm-qty-stepper-btn svg.cm-qty-icon {
    width: 13px !important;
    height: 13px !important;
    display: block !important;
    margin: auto !important;
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
    pointer-events: none !important;
    flex-shrink: 0 !important;
}

.cm-qty-input,
.cm-cart-page-container .cm-qty-input,
.cm-qty-stepper-wrap .cm-qty-input {
    width: 44px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    border: none !important;
    border-radius: 0 !important;
    text-align: center !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--cm-heading-color, #0f172a) !important;
    outline: none !important;
    background: #ffffff !important;
    -moz-appearance: textfield !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    line-height: 36px !important;
}

.cm-qty-input::-webkit-outer-spin-button,
.cm-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.cm-cart-qty-price-each {
    font-size: 0.84rem;
    color: var(--cm-ink-3, #64748b);
    font-weight: 500;
    display: inline-flex;
    align-items: baseline;
}

.cm-btn-update-cart-inline,
.cm-cart-page-container .cm-btn-update-cart-inline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 16px !important;
    height: 36px !important;
    min-height: 36px !important;
    font-size: 0.825rem !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    background: var(--cm-brand, #e35522) !important;
    color: #ffffff !important;
    border: 1.5px solid var(--cm-brand, #e35522) !important;
    cursor: pointer !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px var(--cm-brand-glow, rgba(227, 85, 34, 0.22)) !important;
}
.cm-btn-update-cart-inline:hover,
.cm-cart-page-container .cm-btn-update-cart-inline:hover {
    background: var(--cm-brand, #e35522) !important;
    filter: brightness(1.08) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px var(--cm-brand-glow, rgba(227, 85, 34, 0.32)) !important;
}
.cm-btn-update-cart-inline:hover .cm-cart-update-icon {
    transform: rotate(60deg);
}
.cm-btn-update-cart-inline .cm-cart-update-icon {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}
.cm-btn-update-cart-inline:hover {
    background: var(--cm-brand, #e35522) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px var(--cm-brand-glow, rgba(227, 85, 34, 0.25)) !important;
}
.cm-btn-update-cart-inline:hover .cm-cart-update-icon {
    transform: rotate(60deg);
}
.cm-btn-update-cart-inline .cm-cart-update-icon {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

/* ── Attendee Details Section ── */
.cm-attendee-details-section {
    padding-top: 22px;
    border-top: 1px solid var(--cm-line, #f1f5f9);
    margin-top: 20px;
}
.cm-attendee-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
}
.cm-attendee-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cm-attendee-header-icon-bubble {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--cm-brand-light, rgba(227, 85, 34, 0.08));
    color: var(--cm-brand, #e35522);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cm-attendee-section-title {
    margin: 0 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--cm-heading-color, #0f172a);
    line-height: 1.2;
}
.cm-attendee-section-subtitle,
.cm-attendee-count-hint {
    display: none !important;
}

/* Attendee Group Card */
.cm-attendee-group {
    background: #ffffff;
    border: 1px solid var(--cm-line, #e2e8f0);
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
    transition: all 0.2s ease;
}
.cm-attendee-group:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    border-color: #cbd5e1;
}
.cm-attendee-group-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    gap: 10px;
}
.cm-attendee-pass-identity {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cm-attendee-pass-name {
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--cm-heading-color, #0f172a);
    line-height: 1.2;
}
.cm-attendee-primary-tag,
.cm-attendee-pass-hint,
.cm-attendee-pass-avatar {
    display: none !important;
}

.cm-attendee-badges-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cm-attendee-price-badge {
    font-size: 0.825rem !important;
    font-weight: 600 !important;
    color: var(--cm-brand, #e35522) !important;
    background: var(--cm-brand-light, rgba(227, 85, 34, 0.08));
    border: 1px solid var(--cm-brand-mid, rgba(227, 85, 34, 0.2));
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.2;
    display: inline-flex;
    align-items: baseline;
    font-variant-numeric: tabular-nums;
}
.cm-attendee-req-badge {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 3px 7px;
    border-radius: 5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}
.cm-attendee-affects-badge,
.cm-affects-price-tag {
    display: none !important;
}

/* Attendee Fields Grid */
.cm-attendee-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cm-attendee-fields-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-start;
}
.cm-attendee-field-name {
    flex: 2 1 200px;
    min-width: 180px;
}
.cm-attendee-field-age {
    width: 80px;
    min-width: 80px;
    flex: 0 0 80px;
}
.cm-attendee-field-gender {
    width: 130px;
    min-width: 110px;
    flex: 0 1 130px;
}
.cm-attendee-field-tier {
    width: 100%;
    margin-top: 2px;
}
.cm-attendee-field-custom {
    width: 100%;
    margin-top: 2px;
}

.cm-attendee-label {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    margin-bottom: 6px !important;
    line-height: 1 !important;
}
.cm-attendee-label svg {
    display: none !important;
}
.cm-req-star {
    color: var(--cm-accent-red, #ef4444);
    font-weight: 700;
}
.cm-attendee-input,
.cm-checkout-input {
    width: 100%;
    height: 42px;
    border: 1.5px solid var(--cm-line, #e2e8f0);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
    background: #f8fafc;
    color: var(--cm-text-color, #0f172a);
    outline: none;
    transition: all 0.2s ease;
}
.cm-attendee-input:hover,
.cm-checkout-input:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}
select.cm-attendee-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.cm-attendee-input:focus,
.cm-checkout-input:focus {
    border-color: var(--cm-brand, #e35522) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px var(--cm-brand-glow, rgba(227, 85, 34, 0.15)) !important;
}
.cm-attendee-input-age {
    text-align: center;
    padding: 10px 6px !important;
    -moz-appearance: textfield;
}
.cm-attendee-input-age::-webkit-outer-spin-button,
.cm-attendee-input-age::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Seat Selection ── */
.cm-cart-seat-selection-row {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed var(--cm-line, #e2e8f0);
}
.cm-cart-seat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.cm-cart-seat-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cm-heading-color, #0f172a);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
}
.cm-cart-seat-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    flex-shrink: 0;
    color: var(--cm-brand, #e35522);
}
.cm-choose-seat-cart-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    background: var(--cm-white, #ffffff);
    border: 1.5px solid var(--cm-brand, #e35522);
    color: var(--cm-brand, #e35522);
    transition: all 0.2s ease;
}
.cm-choose-seat-cart-btn:hover {
    background: var(--cm-brand, #e35522);
    color: #ffffff;
}
.cm-selected-seats-display {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cm-text-color, #475569);
    padding: 10px 14px;
    background: var(--cm-surface, #f8fafc);
    border-radius: 8px;
    border: 1px solid var(--cm-line, #e2e8f0);
}
.cm-seat-warning {
    color: #d97706;
    font-size: 0.82rem;
    font-weight: 500;
}

/* ── Order Summary Card ── */
.cm-summary-card {
    background: var(--cm-white, #ffffff);
    border-radius: var(--cm-r-lg, 16px);
    border: 1px solid var(--cm-line, #e2e8f0);
    padding: 24px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 24px;
    box-sizing: border-box;
}
.cm-summary-card-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--cm-line, #e2e8f0);
}
.cm-summary-header-icon-wrap,
.cm-summary-card-subtitle {
    display: none !important;
}
.cm-summary-card-title {
    margin: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--cm-heading-color, #0f172a);
    line-height: 1.25;
}

/* Items breakdown list */
.cm-summary-items-breakdown {
    border-bottom: 1px dashed var(--cm-line, #e2e8f0);
    padding-bottom: 12px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cm-summary-item-row {
    margin-bottom: 0 !important;
    font-size: 0.88rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.cm-summary-item-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.cm-summary-item-icon {
    display: none !important;
}
.cm-summary-item-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.cm-summary-item-name {
    color: var(--cm-heading-color, #0f172a);
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
    font-size: 0.88rem;
}
.cm-summary-item-qty-tag {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 2px;
}
.cm-summary-item-price {
    font-weight: 600;
    color: var(--cm-heading-color, #0f172a);
    white-space: nowrap;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: baseline;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

/* Pricing Table */
.cm-summary-pricing-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 6px;
}
.cm-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--cm-ink-3, #64748b);
    font-weight: 500;
}
.cm-summary-row-label {
    color: #64748b;
}
.cm-summary-value {
    color: var(--cm-heading-color, #0f172a);
    font-weight: 600;
    display: inline-flex;
    align-items: baseline;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

/* Total Amount Box */
.cm-summary-total-box,
.cm-summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 16px 0;
}
.cm-summary-total-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.cm-summary-total-label {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--cm-heading-color, #0f172a);
}
.cm-summary-total-sub {
    display: none !important;
}
.cm-summary-total-value {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    color: var(--cm-brand, #e35522);
    letter-spacing: 0.01em;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    font-variant-numeric: tabular-nums;
}

/* Actions */
.cm-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cm-btn-modern-primary {
    width: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 13px 20px !important;
    font-size: 0.975rem !important;
    border-radius: var(--cm-btn-radius, 10px) !important;
    border: none;
    cursor: pointer;
    font-weight: 700 !important;
    background: var(--cm-gradient-primary, var(--cm-brand, #e35522)) !important;
    color: #ffffff !important;
    transition: all 0.25s ease;
    box-shadow: 0 3px 12px var(--cm-brand-glow, rgba(227, 85, 34, 0.28)) !important;
    line-height: 1.25;
    text-decoration: none !important;
    box-sizing: border-box;
}
.cm-btn-modern-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--cm-brand-glow, rgba(227, 85, 34, 0.38)) !important;
    filter: brightness(1.04);
}
.cm-btn-modern-primary:active {
    transform: translateY(0);
}
.cm-btn-modern-primary:hover .cm-btn-arrow-icon {
    transform: translateX(3px);
}
.cm-btn-arrow-icon {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* Trust Badges */
.cm-summary-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--cm-line, #f1f5f9);
}
.cm-trust-badge-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.775rem;
    color: var(--cm-ink-3, #64748b);
    font-weight: 500;
}
.cm-trust-badge-item svg {
    color: #10b981;
    flex-shrink: 0;
}

/* ── Responsive Breakpoints ── */
@media (max-width: 992px) {
    .cm-cart-body {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .cm-summary-card {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .cm-cart-page-container {
        padding: 20px 16px !important;
        margin: 16px auto !important;
        border-radius: 14px;
    }
    .cm-cart-header-main {
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }
    .cm-cart-item-card {
        padding: 16px 14px;
        border-radius: 12px;
    }
    .cm-attendee-group {
        padding: 14px 12px;
    }
    .cm-summary-card {
        padding: 18px 16px;
        border-radius: 12px;
    }
}

@media (max-width: 580px) {
    .cm-cart-header-main {
        flex-direction: column;
        align-items: flex-start;
    }
    .cm-cart-header-right {
        width: 100%;
        justify-content: space-between;
    }
    .cm-cart-ticket-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .cm-cart-ticket-price-box {
        text-align: left;
        padding-left: 0;
        margin-top: 6px;
    }
    .cm-cart-ticket-toolbar,
    .cm-cart-qty-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .cm-btn-update-cart-inline {
        width: 100%;
    }
    .cm-attendee-fields-row {
        display: grid !important;
        grid-template-columns: 1fr 85px !important;
        gap: 12px !important;
    }
    .cm-attendee-field-name {
        grid-column: 1 / 2;
        width: 100% !important;
        min-width: 0 !important;
    }
    .cm-attendee-field-age {
        grid-column: 2 / 3;
        width: 100% !important;
        min-width: 0 !important;
    }
    .cm-attendee-field-gender {
        grid-column: 1 / -1;
        width: 100% !important;
        min-width: 0 !important;
    }
    .cm-attendee-field-tier {
        grid-column: 1 / -1;
        width: 100% !important;
    }
    .cm-attendee-field-custom {
        grid-column: 1 / -1;
        width: 100% !important;
    }
    /* Mobile font size >= 16px prevents iOS Safari auto-zoom */
    .cm-attendee-input,
    .cm-qty-input,
    .cm-cart-event-selector,
    select.cm-attendee-input {
        font-size: 16px !important;
    }
}

/* ==========================================================================
   Checkout Page Styles & Harmonization
   ========================================================================== */
.cm-event-checkout-wrap {
    margin: 20px auto 40px !important;
    padding-top: 10px !important;
    max-width: var(--cm-container-width, 1280px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.cm-checkout-card {
    display: grid !important;
    grid-template-columns: 1fr 1.45fr !important;
    gap: 0 !important;
    align-items: stretch !important;
    background: var(--cm-white, #ffffff) !important;
    border: 1px solid var(--cm-line, #e2e8f0) !important;
    border-radius: var(--cm-r-xl, 16px) !important;
    box-shadow: var(--cm-shadow-card, 0 4px 6px rgba(0, 0, 0, 0.02)) !important;
    overflow: hidden !important;
    padding: 0 !important;
}

/* Left — Summary Panel */
.cm-checkout-summary {
    background: var(--cm-gradient-primary, linear-gradient(145deg, #1e293b 0%, #0f172a 100%)) !important;
    padding: 32px 26px !important;
    color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    height: 100% !important;
    box-sizing: border-box !important;
}
.cm-checkout-summary-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.cm-checkout-summary-header svg,
.cm-checkout-summary-header .dashicons {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    flex-shrink: 0 !important;
}
.cm-checkout-summary h3 {
    margin: 0 !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}
.cm-checkout-summary .cm-event-details-box {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: var(--cm-r, 12px) !important;
    padding: 18px !important;
    box-sizing: border-box !important;
}
.cm-checkout-summary .cm-event-details-box h4 {
    margin: 0 0 12px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.35 !important;
}
.cm-checkout-summary .cm-event-meta-list {
    list-style: none !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
}
.cm-checkout-summary .cm-event-meta-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.88) !important;
    line-height: 1.4 !important;
}
.cm-checkout-summary .cm-event-meta-list svg,
.cm-checkout-summary .cm-event-meta-list .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Price Breakdown Rows inside details box */
.cm-event-details-box .cm-checkout-price-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-top: 10px !important;
    margin-top: 9px !important;
    gap: 8px !important;
}
.cm-event-details-box .cm-checkout-price-row .cm-price-label {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}
.cm-event-details-box .cm-checkout-price-row .cm-price-value {
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: flex-end !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    text-align: right !important;
}
.cm-event-details-box .cm-checkout-price-row .cm-price-value em,
.cm-event-details-box .cm-checkout-price-row .cm-price-value .cm-currency-symbol {
    font-style: normal !important;
    font-size: 0.9em !important;
    font-weight: 600 !important;
    opacity: 0.9 !important;
    margin-right: 3px !important;
}

/* Grand Total Row */
.cm-checkout-summary .cm-checkout-total-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    padding-top: 16px !important;
    margin-top: 16px !important;
    gap: 8px !important;
}
.cm-checkout-summary .cm-checkout-total-row .cm-price-label {
    font-size: 0.925rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}
.cm-checkout-summary .cm-checkout-total-row .cm-price-value {
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: flex-end !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    letter-spacing: -0.01em !important;
    line-height: 1 !important;
    text-align: right !important;
}
.cm-checkout-summary .cm-checkout-total-row .cm-price-value em,
.cm-checkout-summary .cm-checkout-total-row .cm-price-value .cm-currency-symbol {
    font-style: normal !important;
    font-size: 0.85em !important;
    font-weight: 700 !important;
    margin-right: 3px !important;
}

/* Right — Payment & Details Panel */
.cm-checkout-gateways {
    padding: 32px 26px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}
.cm-guest-details-section h4,
.cm-checkout-gateways-header h3 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--cm-heading-color, #0f172a) !important;
    margin: 0 0 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
}
.cm-checkout-gateways-header svg,
.cm-guest-details-section h4 svg,
.cm-checkout-gateways-header .dashicons,
.cm-guest-details-section h4 .dashicons {
    font-size: 19px !important;
    width: 19px !important;
    height: 19px !important;
    color: var(--cm-brand, #2563eb) !important;
    flex-shrink: 0 !important;
}
.cm-guest-details-section .cm-form-grid {
    background: var(--cm-surface, #f8fafc) !important;
    border: 1px solid var(--cm-line, #e2e8f0) !important;
    border-radius: var(--cm-r, 12px) !important;
    padding: 18px !important;
    box-sizing: border-box !important;
}
.cm-form-row label,
.cm-form-grid label {
    display: block !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    color: var(--cm-heading-color, #334155) !important;
    margin-bottom: 6px !important;
    letter-spacing: normal !important;
}

@media (max-width: 860px) {
    .cm-checkout-card {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Empty Cart Banner (Global Theme Styling)
   ========================================================================== */
.cm-empty-cart-wrap {
    max-width: 580px !important;
    margin: 50px auto !important;
    text-align: center !important;
    padding: 56px 36px !important;
    background: var(--cm-white, #ffffff) !important;
    border-radius: var(--cm-r-xl, 20px) !important;
    box-shadow: var(--cm-shadow-card, 0 8px 24px rgba(0, 0, 0, 0.04)) !important;
    border: 1px solid var(--cm-line, #e2e8f0) !important;
    font-family: var(--cm-font-family, inherit) !important;
    box-sizing: border-box !important;
}

.cm-empty-cart-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 88px !important;
    height: 88px !important;
    background: var(--cm-brand-light, rgba(var(--cm-brand-rgb, 37, 99, 235), 0.08)) !important;
    color: var(--cm-brand, #2563eb) !important;
    border: 1px solid var(--cm-brand-mid, rgba(var(--cm-brand-rgb, 37, 99, 235), 0.15)) !important;
    border-radius: 50% !important;
    margin-bottom: 24px !important;
}

.cm-empty-cart-icon svg {
    width: 44px !important;
    height: 44px !important;
    color: inherit !important;
    stroke: currentColor !important;
}

.cm-empty-cart-title {
    font-family: var(--cm-heading-font-family, inherit) !important;
    font-size: var(--cm-h2-size, 1.85rem) !important;
    font-weight: var(--cm-heading-weight, 700) !important;
    color: var(--cm-heading-color, #0f172a) !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
}

.cm-empty-cart-desc {
    font-family: var(--cm-font-family, inherit) !important;
    font-size: 1.05rem !important;
    color: var(--cm-text-color, var(--cm-ink-3, #64748b)) !important;
    margin: 0 auto 32px auto !important;
    max-width: 440px !important;
    line-height: 1.6 !important;
}

.cm-empty-cart-actions {
    display: flex !important;
    gap: 14px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.cm-empty-cart-actions .cm-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 28px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: var(--cm-r, 10px) !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
    cursor: pointer !important;
    line-height: 1.2 !important;
}

.cm-empty-cart-actions .cm-btn-primary,
.cm-empty-cart-actions .cm-btn-primary:visited {
    background: var(--cm-gradient-primary, var(--cm-gradient-h, var(--cm-brand, #2563eb))) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px var(--cm-brand-glow, rgba(37, 99, 235, 0.25)) !important;
}

.cm-empty-cart-actions .cm-btn-primary:hover,
.cm-empty-cart-actions .cm-btn-primary:focus {
    background: var(--cm-gradient-primary, var(--cm-gradient-h, var(--cm-brand, #2563eb))) !important;
    filter: brightness(0.92) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px var(--cm-brand-glow, rgba(37, 99, 235, 0.35)) !important;
    color: #ffffff !important;
}

.cm-empty-cart-actions .cm-btn-primary:active {
    transform: translateY(0) !important;
    filter: brightness(0.86) !important;
    box-shadow: 0 2px 8px var(--cm-brand-glow, rgba(37, 99, 235, 0.2)) !important;
}

.cm-empty-cart-actions .cm-btn-outline {
    background: var(--cm-white, #ffffff) !important;
    color: var(--cm-heading-color, #1e293b) !important;
    border: 1.5px solid var(--cm-line, #e2e8f0) !important;
}

.cm-empty-cart-actions .cm-btn-outline:hover {
    background: var(--cm-surface, #f8fafc) !important;
    border-color: var(--cm-brand, #2563eb) !important;
    color: var(--cm-brand, #2563eb) !important;
    transform: translateY(-1px) !important;
}

@media (max-width: 600px) {
    .cm-empty-cart-wrap {
        margin: 28px 16px !important;
        padding: 40px 20px !important;
    }
    .cm-empty-cart-actions {
        flex-direction: column !important;
        width: 100% !important;
    }
    .cm-empty-cart-actions .cm-btn {
        width: 100% !important;
    }
}
