/* Reuse Madrigal's design tokens; fallbacks keep the plugin portable. */
.mg-gallery-page, .mg-booking, .mg-gallery-checkout {
    --mg-ink: var(--ink, #25282d); --mg-muted: var(--mut, #68625b);
    --mg-line: var(--line, #d8d1c7); --mg-paper: var(--surface, #f8f6f2); --mg-brand: var(--brand-text, #684a29); --mg-control-line: #8c857c;
    color: var(--mg-ink); font-family: var(--font-sans, "Helvetica Neue", Helvetica, Arial, sans-serif); text-align: left;
}
.mg-gallery-landing .prose-head, .mg-gallery-landing .despre-nav, .mg-gallery-landing main > .wp-block-post-title { display: none; }
.mg-gallery-landing .despre-grid { display: block; }
.mg-gallery-landing .despre-continut, .mg-gallery-landing .prose, .mg-gallery-checkout .prose { max-width: none; }
.mg-gallery-landing .prose.section { padding-top: 0; }
.mg-gallery-page { max-width: 1160px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) 0 0; }
.mg-gallery-page > p { max-width: 800px; line-height: 1.75; margin: 0 0 1.4em; }
.mg-gallery-page .mg-gallery-eyebrow, .mg-booking .mg-gallery-eyebrow { color: var(--mg-brand); font-size: .75rem; font-weight: 600; line-height: 1.6; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 20px; }
.mg-gallery-page .mg-gallery-title { max-width: 1000px; font-family: inherit; font-size: clamp(38px, 5.5vw, 72px); font-weight: 650; line-height: 1.03; letter-spacing: -.05em; color: var(--mg-ink); margin: 0 0 32px; }
.mg-gallery-page .mg-gallery-lead { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.65; }
.mg-gallery-exhibitions { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; border-block: 1px solid var(--mg-line); padding: 32px 0; margin: 40px 0; }
.mg-gallery-exhibitions section { min-width: 0; }
.mg-gallery-exhibitions .mg-gallery-eyebrow { margin-bottom: 12px; font-size: .7rem; letter-spacing: .04em; }
.mg-gallery-exhibitions h2 { color: var(--mg-ink); font-family: inherit; font-size: clamp(25px, 2.8vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; margin: 0 0 18px; }
.mg-gallery-exhibitions p { margin: 0; font-size: 16px; line-height: 1.75; }
.mg-gallery-page .mg-gallery-address { font-size: 14px; line-height: 1.7; margin-top: 28px; color: var(--mg-muted); }

.mg-gallery-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin: 0 0 36px; }
.mg-gallery-page .mg-gallery-cta, .mg-gallery-actions .mg-gallery-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 54px; padding: 14px 24px; background: var(--brand-text, #684a29); border: 1px solid var(--brand-text, #684a29); border-radius: var(--radius-cta, 6px); color: white; font: 600 16px/1.5 var(--font-sans, Arial, sans-serif); text-decoration: none; }
.mg-gallery-cta span { font-size: 22px; font-weight: 400; }
.mg-gallery-actions p { margin: 0; max-width: 350px; color: var(--mg-muted, #68625b); font-size: 13px; line-height: 1.6; }
.mg-gallery-actions p span { margin: 0 6px; }
.mg-gallery-cta:hover { filter: brightness(.9); }
.mg-gallery-cta:focus-visible { outline: 3px solid var(--brand-text, #684a29); outline-offset: 4px; }

/* Original gallery photographs, deliberately identified as archive material. */
.mg-gallery-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 48px; margin: 0 0 56px; }
.mg-gallery-hero .mg-gallery-title { font-size: clamp(38px, 4.7vw, 62px); margin-bottom: 24px; }
.mg-hero-copy { min-width: 0; }
.mg-hero-invitation { font-size: 17px; line-height: 1.7; color: var(--mg-muted); margin: 0 0 26px; }
.mg-gallery-hero .mg-gallery-actions { margin: 0; gap: 18px; }
.mg-gallery-page .mg-hero-photos { position: relative; min-width: 0; margin: 0; padding: 0 0 80px 0; }
.mg-gallery-page .mg-hero-main { display: block; width: 91%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 42% center; border-radius: 3px; }
.mg-gallery-page .mg-hero-detail { position: absolute; right: -10px; bottom: 50px; width: 51%; height: auto; aspect-ratio: 1; object-fit: cover; border: 7px solid var(--bg, #fff); border-radius: 2px; box-shadow: 0 12px 32px #3326191a; }
.mg-hero-photos figcaption { margin-top: 15px; max-width: 55%; color: var(--mg-muted); font-size: 10px; line-height: 1.6; }
.mg-gallery-page .mg-hero-official { padding: 0; }
.mg-gallery-page .mg-hero-official .mg-hero-main { width: 100%; aspect-ratio: auto; }
.mg-booking .mg-exhibition-step { grid-column: 1 / -1; border-bottom: 1px solid var(--mg-line); padding-bottom: 28px; }
.mg-exhibition-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.mg-exhibition-choice { display: block; position: relative; margin: 0; cursor: pointer; }
.mg-exhibition-choice > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mg-exhibition-face { display: block; height: 100%; border: 1px solid var(--mg-control-line); border-radius: 5px; padding: 24px 48px 22px 22px; background: var(--mg-paper); }
.mg-exhibition-face strong { display: block; font-size: 23px; font-weight: 550; letter-spacing: -.025em; line-height: 1.15; max-width: 320px; }
.mg-exhibition-face small { display: block; margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--mg-muted); }
.mg-exhibition-pick { display: block; margin-top: 20px; font-size: 12px; font-weight: 600; color: var(--mg-brand); }
.mg-exhibition-marker { position: absolute; right: 20px; top: 24px; width: 20px; height: 20px; border: 1px solid var(--mg-control-line); border-radius: 50%; }
.mg-exhibition-choice input:checked + .mg-exhibition-face { background: #ece4d7; border: 2px solid var(--mg-brand); padding: 23px 47px 21px 21px; }
.mg-exhibition-choice input:checked + .mg-exhibition-face .mg-exhibition-marker { border: 6px solid var(--mg-brand); }
.mg-exhibition-choice input:focus-visible + .mg-exhibition-face { outline: 3px solid var(--mg-brand); outline-offset: 4px; }
.mg-exhibition-choice input:disabled + .mg-exhibition-face { opacity: .5; }
.mg-booking .mg-exhibition-help { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--mg-muted); }
@media (max-width: 860px) {
    .mg-gallery-hero { grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
    .mg-gallery-page .mg-hero-photos { padding-bottom: 35px; }
    .mg-gallery-page .mg-hero-main { width: 85%; aspect-ratio: 4 / 3; }
    .mg-gallery-page .mg-hero-detail { width: 36%; right: 0; bottom: 25px; border-width: 5px; }
    .mg-gallery-page .mg-hero-official .mg-hero-main { width: 100%; }
}
@media (max-width: 540px) {
    .mg-exhibition-options { grid-template-columns: 1fr; gap: 12px; }
    .mg-exhibition-face strong { font-size: 21px; }
    .mg-exhibition-face { padding: 20px 45px 18px 18px; }
    .mg-exhibition-choice input:checked + .mg-exhibition-face { padding: 19px 44px 17px 17px; }
    .mg-exhibition-pick { margin-top: 12px; }
}

/* Booking workspace: all choices visible; a native POST form underneath. */
.mg-booking { display: block; margin-top: 64px; border-top: 1px solid var(--mg-line); padding-top: 40px; scroll-margin-top: 128px; }
.mg-booking:focus { outline: none; }
.mg-booking:focus-visible { outline: 2px solid var(--mg-brand); outline-offset: 8px; }
.mg-booking *, .mg-booking *::before, .mg-booking *::after { box-sizing: border-box; }
.mg-booking-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.mg-booking-intro .mg-gallery-eyebrow { margin-bottom: 14px; }
.mg-booking-intro h2 { color: var(--mg-ink); font-family: inherit; font-size: clamp(32px, 3.8vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; margin: 0 0 16px; }
.mg-booking-intro p { line-height: 1.65; font-size: 15px; margin: 0; max-width: 540px; }
.mg-visit-facts { flex: 0 0 auto; text-align: right; padding-bottom: 4px; font-size: 13px; line-height: 1.8; color: var(--mg-muted); }
.mg-visit-facts span { display: block; }
.mg-visit-facts span:first-child { color: var(--mg-brand); font-weight: 600; }
.mg-program { margin: 28px 0; }
.mg-program > div { padding: 16px 0; border-top: 1px solid var(--mg-line); }
.mg-program dt { font-size: 13px; color: var(--mg-muted); margin-bottom: 5px; }
.mg-program dd { font-size: 18px; font-weight: 500; margin: 0; font-variant-numeric: tabular-nums; }
.mg-booking .mg-booking-note { font-size: 13px; line-height: 1.65; margin: 18px 0 0; color: var(--mg-muted); }
.mg-booking-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; min-width: 0; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--mg-line); border-radius: 8px; background: var(--mg-paper); margin: 0; align-items: start; }
.mg-booking-left, .mg-booking-right { min-width: 0; }
.mg-booking-right { position: sticky; top: 128px; border-left: 1px solid var(--mg-line); padding-left: 32px; }
.mg-booking .mg-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mg-booking .mg-fieldset + .mg-fieldset { margin-top: 28px; }
.mg-booking .mg-fieldset legend { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 0 20px; color: var(--mg-ink); font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.mg-fieldset legend span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--mg-line); border-radius: 50%; color: var(--mg-brand); font-size: 11px; font-weight: 500; letter-spacing: .02em; flex-shrink: 0; }
.mg-date-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
.mg-booking .mg-field label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.mg-booking input[type="date"], .mg-booking input[type="number"], .mg-booking select { display: block; width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--mg-control-line); border-radius: 4px; background: var(--mg-paper); color: var(--mg-ink); padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.4; box-shadow: none; }
.mg-booking select { padding-right: 28px; }
.mg-booking :is(input, select, button, a):focus-visible, .mg-gallery-checkout .woocommerce :is(input, select, textarea, button, a):focus-visible { outline: 3px solid var(--mg-brand); outline-offset: 3px; }
.mg-booking select:disabled { color: var(--mg-muted); opacity: 1; background-color: var(--bg, #f1eee9); }
.mg-booking .mg-availability { color: var(--mg-muted); font-size: 13px; line-height: 1.6; margin: 10px 0 0; min-height: 1.6em; }
.mg-booking .mg-exhibition-note { font-size: 13px; line-height: 1.65; color: var(--mg-muted); padding: 0; margin: 8px 0 0; }
.mg-ticket-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; grid-template-areas: "label count" "price count"; gap: 6px 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--mg-line); }
.mg-ticket-row:first-of-type { border-top: 1px solid var(--mg-line); }
.mg-ticket-row label { grid-area: label; display: block; margin: 0; cursor: pointer; }
.mg-ticket-row label strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; }
.mg-ticket-row label small { display: block; color: var(--mg-muted); font-size: 12px; line-height: 1.5; margin-top: 4px; }
.mg-ticket-price { grid-area: price; color: var(--mg-brand); font-size: 14px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mg-counter { grid-area: count; display: flex; align-items: center; border: 1px solid var(--mg-control-line); border-radius: 5px; overflow: visible; background: var(--mg-paper); }
.mg-booking .mg-counter input { width: 36px; flex: 1 1 36px; padding: 8px 0; text-align: center; border: 0; background: transparent; appearance: textfield; -moz-appearance: textfield; font-weight: 600; }
.mg-counter input::-webkit-inner-spin-button, .mg-counter input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mg-counter button { flex: 0 0 36px; border: 0; border-radius: 4px; padding: 0; min-height: 46px; background: transparent; color: var(--mg-brand); font: 400 23px/1 var(--font-sans, Arial, sans-serif); cursor: pointer; }
.mg-counter button:hover:not(:disabled) { background: #eae4da; }
.mg-counter button:disabled { color: #aaa39a; cursor: not-allowed; }
.mg-booking-summary { margin-top: 28px; }
.mg-booking .mg-summary-heading { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--mg-brand); margin: 0 0 16px; font-weight: 600; }
.mg-summary-details { margin: 0 0 20px; font-size: 14px; line-height: 1.65; }
.mg-summary-details > div { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 5px; }
.mg-summary-details dt { color: var(--mg-muted); }
.mg-summary-details dd { margin: 0; font-weight: 500; text-align: right; }
.mg-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 20px; border-top: 1px dashed var(--mg-line); }
.mg-total > span { font-size: 17px; font-weight: 600; }
.mg-total small { display: block; margin-top: 4px; color: var(--mg-muted); font-size: 13px; font-weight: 400; }
.mg-total strong { font-size: 32px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.mg-booking .mg-form-message { margin: 0 0 14px; color: #8b2f25; font-size: 14px; line-height: 1.6; }
.mg-booking .mg-form-message:empty { display: none; }
.mg-booking .mg-book-button, .mg-gallery-checkout .woocommerce #place_order { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; padding: 14px 20px; margin: 0; background: var(--mg-brand); color: #fff; border: 1px solid var(--mg-brand); border-radius: var(--radius-cta, 6px); font: 600 16px/1.4 var(--font-sans, Arial, sans-serif); text-transform: none; letter-spacing: 0; cursor: pointer; text-decoration: none; transition: background-color .15s; }
.mg-booking .mg-book-button:hover:not(:disabled), .mg-gallery-checkout .woocommerce #place_order:hover { background: var(--mg-brand); border-color: var(--mg-brand); }
.mg-booking-recovery .mg-booking-form > p { font-size: 15px; line-height: 1.7; }
.mg-booking .mg-book-button:disabled { background: var(--mg-line); border-color: var(--mg-line); color: var(--mg-muted); cursor: not-allowed; }
.mg-booking .mg-retry { color: var(--mg-brand); border: 1px solid var(--mg-line); border-radius: 4px; padding: 10px 14px; background: transparent; font: inherit; font-size: 14px; cursor: pointer; min-height: 44px; margin-top: 10px; }
.mg-booking [hidden] { display: none !important; }
.mg-booking .woocommerce-error { padding: 16px 20px; margin: 0 0 24px; background: var(--mg-paper); font-size: 14px; line-height: 1.6; }
.mg-booking .woocommerce-error::before { display: none; }
.mg-booking-form > :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) { grid-column: 1 / -1; }
.mg-booking .mg-next-note { text-align: center; margin: 10px 0 0; font-size: 12px; color: var(--mg-muted); line-height: 1.6; }
.mg-calendar-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; gap: 12px; }
.mg-booking .mg-calendar-toolbar h3 { margin: 0; font-family: inherit; font-size: 18px; font-weight: 600; letter-spacing: -.015em; text-transform: capitalize; }
.mg-calendar-toolbar button { width: 42px; min-height: 42px; border: 1px solid var(--mg-line); border-radius: 5px; color: var(--mg-ink); background: transparent; font: 400 21px/1 Arial, sans-serif; cursor: pointer; }
.mg-calendar-toolbar button:disabled { opacity: .3; cursor: default; }
.mg-calendar-week, .mg-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.mg-calendar-week span { padding: 12px 0; color: var(--mg-muted); font-size: 12px; font-weight: 500; }
.mg-calendar-days button { min-width: 0; min-height: 45px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--mg-ink); font: 500 15px/1 var(--font-sans, Arial, sans-serif); cursor: pointer; padding: 0; font-variant-numeric: tabular-nums; }
.mg-calendar-days button:hover:not(:disabled) { background: #e9e2d7; border-color: var(--mg-line); }
.mg-calendar-days button[aria-pressed="true"] { color: white; background: var(--mg-brand); border-color: var(--mg-brand); }
.mg-calendar-days button[aria-pressed="true"]:hover { background: var(--mg-brand); }
.mg-calendar-days button:disabled { color: #a8a199; cursor: not-allowed; text-decoration: line-through; text-decoration-thickness: 1px; }
.mg-booking .mg-calendar-key { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--mg-muted); margin: 14px 0 4px; }
.mg-calendar-key > span { width: 8px; height: 8px; background: var(--mg-brand); border-radius: 2px; }
.mg-calendar-key small { margin-left: auto; font-size: inherit; }
.mg-booking .mg-manual-date { display: inline-block; color: var(--mg-brand); font: inherit; font-size: 12px; background: none; border: 0; padding: 10px 0; min-height: 40px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mg-slot-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mg-slot { position: relative; display: block; margin: 0; cursor: pointer; }
.mg-slot input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.mg-slot-face { display: block; text-align: center; border: 1px solid var(--mg-control-line); border-radius: 5px; padding: 16px 4px; transition: background-color .15s; }
.mg-slot-face strong { display: block; font-size: 14px; line-height: 1.4; font-weight: 600; white-space: nowrap; }
.mg-slot-face small { display: block; font-size: 10px; line-height: 1.5; margin-top: 5px; color: var(--mg-muted); }
.mg-slot input:checked + .mg-slot-face { background: #eae2d4; border: 2px solid var(--mg-brand); padding: 15px 3px; }
.mg-slot input:checked + .mg-slot-face strong { color: var(--mg-brand); }
.mg-slot input:focus-visible + .mg-slot-face { outline: 3px solid var(--mg-brand); outline-offset: 3px; }
.mg-slot input:disabled { cursor: not-allowed; }
.mg-slot input:disabled + .mg-slot-face { color: #8c857c; background: #eeebe5; border-color: var(--mg-line); }
.mg-slot input:disabled + .mg-slot-face strong { text-decoration: line-through; }
.mg-slot:hover input:not(:disabled):not(:checked) + .mg-slot-face { background: #efebe4; }
.mg-slot-loading { grid-column: 1 / -1; min-height: 74px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--mg-line); border-radius: 5px; color: var(--mg-muted); font-size: 13px; }
.mg-booking-recovery .mg-booking-form { display: block; }

/* Native Woo markup: no template replacements and no gateway overrides. */
.mg-gallery-checkout main .container { max-width: 1200px; }
.mg-gallery-checkout .prose-head h1 { max-width: 850px; font-size: clamp(32px, 4vw, 54px); letter-spacing: -.045em; line-height: 1.08; }
.mg-gallery-checkout .prose.section { padding-top: 20px; }
.mg-checkout-intro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-block: 1px solid var(--mg-line); margin-bottom: 32px; padding: 10px 0; font-size: 13px; }
.mg-checkout-intro a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--mg-brand); font-weight: 600; text-decoration: none; }
.mg-checkout-intro > span { color: var(--mg-muted); }
.mg-gallery-checkout .woocommerce form.checkout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: min-content 1fr; column-gap: clamp(28px, 4vw, 52px); align-items: start; }
.mg-gallery-checkout form.checkout::before, .mg-gallery-checkout form.checkout::after { display: none; }
.mg-gallery-checkout #customer_details { grid-column: 1; grid-row: 1 / 3; width: 100%; }
.mg-gallery-checkout #customer_details :is(.col-1, .col-2) { float: none; width: 100%; }
.mg-gallery-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; padding: 24px 24px 16px; background: var(--mg-paper); border: 1px solid var(--mg-line); border-bottom: 0; border-radius: 6px 6px 0 0; }
.mg-gallery-checkout #order_review { grid-column: 2; grid-row: 2; min-width: 0; padding: 0 24px 24px; background: var(--mg-paper); border: 1px solid var(--mg-line); border-top: 0; border-radius: 0 0 6px 6px; }
.mg-gallery-checkout .woocommerce h3 { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.025em; margin: 0 0 24px; }
.mg-gallery-checkout .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 16px; }
.mg-gallery-checkout #customer_details .form-row { float: none; width: auto; padding: 0; margin: 0; min-width: 0; }
.mg-gallery-checkout :is(#billing_company_field, #billing_country_field, #billing_address_1_field, #billing_address_2_field) { grid-column: 1 / -1; }
.mg-gallery-checkout .woocommerce form .form-row label { display: block; font-size: 13px; line-height: 1.5; margin-bottom: 7px; font-weight: 500; }
.mg-gallery-checkout .woocommerce form .form-row .optional { color: var(--mg-muted); }
.mg-gallery-checkout .woocommerce form .form-row :is(input.input-text, textarea, select) { width: 100%; min-height: 48px; padding: 11px 12px; color: var(--mg-ink); background: var(--mg-paper); border: 1px solid var(--mg-control-line); border-radius: 4px; font: 400 16px/1.4 var(--font-sans, Arial, sans-serif); box-shadow: none; }
.mg-gallery-checkout .woocommerce form .form-row textarea { min-height: 96px; resize: vertical; }
.mg-gallery-checkout .select2-container .select2-selection--single { min-height: 48px; height: auto; background: var(--mg-paper); border: 1px solid var(--mg-control-line); border-radius: 4px; }
.mg-gallery-checkout .select2-container .select2-selection__rendered { line-height: 46px; padding: 0 36px 0 12px; font-size: 16px; color: var(--mg-ink); }
.mg-gallery-checkout .select2-container .select2-selection__arrow { height: 46px; right: 8px; }
.mg-gallery-checkout .select2-dropdown { font-size: 16px; border-color: var(--mg-line); }
.mg-gallery-checkout .woocommerce-additional-fields { margin-top: 32px; }
.mg-gallery-checkout .woocommerce table.shop_table { width: 100%; margin: 0 0 24px; border: 0; border-collapse: collapse; border-radius: 0; text-align: left; font-size: 14px; line-height: 1.6; }
.mg-gallery-checkout .woocommerce table.shop_table :is(th, td) { padding: 14px 0; border: 0; border-bottom: 1px solid var(--mg-line); vertical-align: top; }
.mg-gallery-checkout .woocommerce table.shop_table :is(th, td):last-child { text-align: right; padding-left: 16px; }
.mg-gallery-checkout .woocommerce table.shop_table thead { color: var(--mg-muted); font-size: 12px; }
.mg-gallery-checkout .woocommerce .product-name { overflow-wrap: anywhere; }
.mg-gallery-checkout .woocommerce .product-quantity { font-size: 12px; font-weight: 400; }
.mg-gallery-checkout .woocommerce dl.variation { margin: 12px 0 0; color: var(--mg-muted); font-size: 13px; }
.mg-gallery-checkout #order_review dl.variation :is(dt, dd) { float: none; margin: 0; padding: 0; }
.mg-gallery-checkout .woocommerce dl.variation dt { color: var(--mg-ink); font-weight: 500; margin-top: 8px; }
.mg-gallery-checkout .woocommerce dl.variation p { margin: 0; }
.mg-gallery-checkout .woocommerce .amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mg-gallery-checkout .woocommerce .order-total :is(th, td) { font-size: 20px; border-bottom: 0; padding-bottom: 0; }
.mg-gallery-checkout #payment { background: transparent; border-radius: 0; }
.mg-gallery-checkout #payment ul.payment_methods { padding: 0 0 20px; border-bottom: 1px solid var(--mg-line); font-size: 14px; list-style: none; margin: 0; }
.mg-gallery-checkout #payment ul.payment_methods li { margin: 0; }
.mg-gallery-checkout #payment ul.payment_methods label { font-size: 15px; font-weight: 600; }
.mg-gallery-checkout #payment ul.payment_methods img { max-width: 160px; max-height: 36px; object-fit: contain; margin: 0 0 0 10px; }
.mg-gallery-checkout #payment div.payment_box { margin: 12px 0 0; padding: 14px; background: var(--bg, #f1eee9); color: var(--mg-ink); font-size: 13px; }
.mg-gallery-checkout #payment div.payment_box::before { display: none; }
.mg-gallery-checkout #payment div.form-row { padding: 0; margin: 20px 0 0; }
.mg-gallery-checkout .woocommerce-privacy-policy-text, .mg-gallery-checkout .woocommerce .mg-checkout-note { font-size: 12px; line-height: 1.65; color: var(--mg-muted); }
.mg-gallery-checkout .woocommerce-privacy-policy-text p { margin: 0 0 18px; }
.mg-gallery-checkout .woocommerce .mg-checkout-note { margin: 16px 0 20px; }
.mg-gallery-checkout .woocommerce .mg-access-consent label { font-size: 13px; line-height: 1.65; font-weight: 400; }
.mg-gallery-checkout .woocommerce input[type="checkbox"] { width: 18px; height: 18px; vertical-align: middle; margin: 0 6px 3px 0; accent-color: var(--mg-brand); }
.mg-gallery-checkout .woocommerce #place_order { justify-content: center; float: none; }
.mg-gallery-checkout form.checkout:has(> :is(.woocommerce-error, .woocommerce-NoticeGroup)) { grid-template-rows: min-content min-content 1fr; }
.mg-gallery-checkout form.checkout > :is(.woocommerce-error, .woocommerce-NoticeGroup) { grid-column: 1 / -1; grid-row: 1; margin-bottom: 24px; }
.mg-gallery-checkout form.checkout:has(> :is(.woocommerce-error, .woocommerce-NoticeGroup)) #customer_details { grid-row: 2 / 4; }
.mg-gallery-checkout form.checkout:has(> :is(.woocommerce-error, .woocommerce-NoticeGroup)) #order_review_heading { grid-row: 2; }
.mg-gallery-checkout form.checkout:has(> :is(.woocommerce-error, .woocommerce-NoticeGroup)) #order_review { grid-row: 3; }

@media (max-width: 860px) {
    .mg-booking-intro { align-items: start; }
    .mg-visit-facts { display: none; }
    .mg-program { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0 0; }
    .mg-booking-form { grid-template-columns: 1fr; padding: 24px; gap: 28px; }
    .mg-booking-right { position: static; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--mg-line); }
    .mg-gallery-checkout .woocommerce form.checkout { display: block; }
    .mg-gallery-checkout #order_review_heading { margin-top: 32px; }
}
@media (max-width: 540px) {
    .mg-gallery-page { padding-top: 24px; }
    .mg-gallery-exhibitions { grid-template-columns: 1fr; gap: 28px; padding: 28px 0; }
    .mg-gallery-exhibitions section + section { border-top: 1px solid var(--mg-line); padding-top: 28px; }
    .mg-booking { margin-top: 40px; padding-top: 28px; scroll-margin-top: 105px; }
    .mg-booking-form { padding: 18px 14px; }
    .mg-gallery-actions { gap: 12px; margin-bottom: 28px; }
    .mg-gallery-actions .mg-gallery-cta { width: 100%; }
    .mg-gallery-actions p { font-size: 12px; }
    .mg-date-grid { grid-template-columns: 1fr; gap: 18px; }
    .mg-program { gap: 16px; }
    .mg-program dd { font-size: 16px; }
    .mg-ticket-row { gap: 6px 10px; grid-template-columns: minmax(0, 1fr) 112px; }
    .mg-ticket-price { font-size: 13px; }
    .mg-ticket-row label strong { font-size: 15px; }
    .mg-booking .mg-fieldset legend { font-size: 18px; }
    .mg-slot-options { gap: 6px; }
    .mg-slot-face strong { font-size: 12px; }
    .mg-slot-face small { font-size: 10px; }
    .mg-booking .mg-calendar-key { font-size: 10px; gap: 5px; }
    .mg-gallery-checkout .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; }
    .mg-gallery-checkout #order_review_heading { padding: 20px 16px 12px; }
    .mg-gallery-checkout #order_review { padding: 0 16px 20px; }
    .mg-checkout-intro { margin-bottom: 24px; padding-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .mg-booking .mg-book-button, .mg-slot-face, .mg-gallery-checkout .woocommerce #place_order { transition: none; }
}
