/* Styles apply only to the new booking controls. Existing event styles stay intact. */
.hse-booking-tools {
    --hse-tool-background: #FFC84A;
    --hse-tool-text: #000;
    --hse-tool-hover: #FFD778;
    --hse-tool-active: #fff;
    --hse-tool-border: #FFC84A;
    margin: 0 0 1.5rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid #FFC84A;
    border-radius: 18px;
    background: #fff8e6;
    color: #111;
}
.hse-booking-tools p { margin: 0; line-height: 1.55; }
:is(#hse-ip-event, body) .hse-booking-tools .hse-booking-tools__cart-message { margin-bottom: 1rem; }
:is(#hse-ip-event, body) .mpwem_summery[data-hse-in-cart-summary][hidden] { display: none; }
.hse-booking-tools__booking,
.hse-booking-tools__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}
.hse-booking-tools__booking { justify-content: space-between; margin-bottom: 1rem; }
.hse-booking-tools__actions {
    --hse-tool-background: #000;
    --hse-tool-text: #fff;
    --hse-tool-hover: #fff;
    --hse-tool-active: #FFC84A;
    --hse-tool-border: #000;
    margin-top: 1rem;
}
/* Match the registration button's typography in the supplied event stylesheet. */
:is(#hse-ip-event, body) a.hse-booking-tools__button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    opacity: 1 !important;
    filter: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 13px 20px;
    border: 1px solid var(--hse-tool-border);
    border-radius: 12px;
    background-color: var(--hse-tool-background);
    background-image: none;
    background-clip: padding-box;
    color: var(--hse-tool-text);
    text-decoration: none;
    font: 700 12px/1.35 'Oxanium', Arial, sans-serif;
    letter-spacing: .015em;
    text-transform: uppercase;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}
:is(#hse-ip-event, body) a.hse-booking-tools__button:hover {
    background-color: var(--hse-tool-hover);
    border-color: rgba(255, 255, 255, .65);
    color: #000;
    transform: translateY(-2px);
}
:is(#hse-ip-event, body) a.hse-booking-tools__button:is(:active, .hse-booking-pressed) {
    background-color: var(--hse-tool-hover);
    border-color: rgba(255, 200, 74, .65);
    color: #000;
    transform: translateY(0);
    box-shadow: 0 0 14px #ffc84a55;
}
/* A decorative surface moves only while pressed; the label is never duplicated. */
:is(#hse-ip-event, body) a.hse-booking-tools__button::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;
    background: var(--hse-tool-active);
    clip-path: inset(0 100% 0 0);
}
:is(#hse-ip-event, body) a.hse-booking-tools__button:is(:active, .hse-booking-pressed)::before {
    animation: hse-booking-active-fill .32s cubic-bezier(.22,1,.36,1) both;
}
@keyframes hse-booking-active-fill {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}
:is(#hse-ip-event, body) a.hse-booking-tools__button:focus-visible { outline: 2px solid #111; outline-offset: 4px; }
.hse-booking-tools__status { margin-top: .75rem; }

.hse-booking-notices {
    margin-top: 1rem;
}
:is(#hse-ip-event, body) .hse-booking-notices :is(.woocommerce-info, .woocommerce-error) {
    margin: 0;
    border: 1px solid #FFC84A;
    border-radius: 18px;
    background: #FFF3D2;
    color: #82590F;
}
:is(#hse-ip-event, body) :is(.hse-booking-notices, .hse-booking-tools, .hse-ip-event__booking) .woocommerce-message {
    position:relative;
    margin:0;
    padding:20px 20px 20px 72px;
    border:1px solid #FFC84A !important;
    border-radius:18px;
    background:#FFF3D2 !important;
    background-image:none !important;
    color:#151515;
    outline:none !important;
    box-shadow:none !important;
}
:is(#hse-ip-event, body) :is(.hse-booking-notices, .hse-booking-tools, .hse-ip-event__booking) .woocommerce-message::before {
    content:'✓';
    position:absolute;
    left:22px;
    top:50%;
    transform:translateY(-50%);
    display:grid;
    place-items:center;
    width:36px;
    height:36px;
    border-radius:999px;
    background:#FFC84A;
    color:#fff;
    font:700 22px/1 Arial,sans-serif;
    box-shadow:none;
}
:is(#hse-ip-event, body) :is(.hse-booking-notices, .hse-booking-tools, .hse-ip-event__booking) .woocommerce-message::after {
    content:none;
}
:is(#hse-ip-event, body) :is(.hse-booking-notices, .hse-booking-tools, .hse-ip-event__booking) .woocommerce-message:focus,
:is(#hse-ip-event, body) :is(.hse-booking-notices, .hse-booking-tools, .hse-ip-event__booking) .woocommerce-message:focus-visible {
    outline:none !important;
    box-shadow:none !important;
}
:is(#hse-ip-event, body) .hse-booking-notices :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) :is(a, strong, span) {
    color: inherit;
}

@media (max-width: 600px) {
    .hse-booking-tools__actions > a { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
    :is(#hse-ip-event, body) a.hse-booking-tools__button { transition: none; }
    :is(#hse-ip-event, body) a.hse-booking-tools__button:is(:active, .hse-booking-pressed)::before { animation: none; clip-path: inset(0); }
}

