.widget-feature {
    --studio-accent: #4b34c4;
    --widget-cream: #fbf3ef;
}
.widget-feature .booking-feature-hero-layout { grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr); }
.widget-feature .booking-feature-hero h1 { font-size: clamp(39px, 3.85vw, 58px); }
.widget-feature .booking-feature-hero h1 + p { max-width: 52ch; }
.widget-feature [hidden] { display: none; }
.widget-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.widget-site-frame {
    min-width: 0;
    padding: clamp(8px, 1vw, 14px);
    border: 1px solid rgb(255 255 255 / .9);
    border-radius: 23px;
    background: rgb(253 251 255 / .83);
    box-shadow: 0 15px 36px rgb(62 39 117 / .14);
}
.widget-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
}
.widget-modes label { position: relative; flex: 1; cursor: pointer; }
.widget-modes label > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 45px;
    padding: 6px 8px;
    border: 1px solid #e2dbf1;
    border-radius: 11px;
    background: #fff;
    font-size: clamp(13px, 1.15vw, 16px);
    font-weight: 720;
    text-align: center;
}
.widget-modes label img { flex: none; }
.widget-modes input:checked + span { border-color: #5941e9; background: #efe9ff; color: #3522ad; }
.widget-site {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 0;
    border: 1px solid #ded6ea;
    border-radius: 17px;
    background: var(--widget-cream);
}
.widget-site-bar {
    display: flex;
    align-items: center;
    height: 19px;
    padding-inline: 12px;
    border-bottom: 1px solid #e7dfef;
    background: #f0edf7;
    opacity: .9;
}
.widget-site-bar img { opacity: .58; }
.widget-site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: clamp(9px, 1.2vw, 17px) clamp(9px, 1.4vw, 21px);
    color: #211732;
}
.widget-site-header span:first-child { display: flex; align-items: center; gap: 6px; font-family: Georgia, serif; font-size: clamp(17px, 1.6vw, 23px); font-weight: 700; }
.widget-site-header span:last-child { color: #492f55; font-size: clamp(10px, .9vw, 13px); font-weight: 570; }
.widget-site-header img { border-radius: 7px; }
.widget-site-body { position: relative; isolation: isolate; min-height: 0; padding: 0 clamp(11px, 1.7vw, 25px) clamp(16px, 2vw, 29px); }
.widget-site-wave { position: absolute; inset: auto 0 0; z-index: -2; width: 100%; height: 42%; object-fit: cover; object-position: center bottom; }
.widget-site-foliage { position: absolute; inset: auto auto 0 0; z-index: -1; width: clamp(35px, 8.7vw, 125px); height: auto; }
.widget-site .widget-site-title { margin: 2px 0 clamp(8px, 1.3vw, 19px); color: #201333; font-size: clamp(20px, 2.1vw, 30px); font-weight: 750; line-height: 1.14; letter-spacing: -.045em; }
.widget-site-popup { min-height: clamp(225px, 25vw, 365px); padding-top: clamp(15px, 4vw, 59px); padding-bottom: 76px; }
.widget-site-popup .widget-site-title { margin-bottom: 8px; font-family: Georgia, serif; font-size: clamp(28px, 2.95vw, 43px); letter-spacing: -.035em; }
.widget-site-popup .widget-site-description { color: #603b5d; font-size: clamp(14px, 1.15vw, 17px); }
.widget-site-button {
    position: absolute;
    inset: auto 12px 12px auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100% - 24px);
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    background: var(--studio-accent);
    color: #fff;
    font-size: clamp(13px, 1.13vw, 16px);
    font-weight: 700;
    text-align: start;
    overflow-wrap: anywhere;
    box-shadow: 0 6px 16px rgb(56 30 105 / .21);
}
.widget-site-button img { flex: none; filter: brightness(0) invert(1); }
button.widget-site-button { cursor: pointer; }
button.widget-site-button:hover { background: #39259f; }

.widget-calendar {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
    align-items: stretch;
    gap: clamp(8px, 1.05vw, 15px);
    font-size: clamp(11px, 1.02vw, 15px);
}
.widget-calendar-month, .widget-calendar-times {
    min-width: 0;
    padding: clamp(8px, 1.03vw, 15px);
    border: 1px solid #eee6f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 15px rgb(43 28 80 / .05);
}
.widget-calendar-month > p { margin-bottom: 7px; color: var(--ink); font-size: 1em; font-weight: 740; text-align: center; }
.widget-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.widget-calendar-grid span {
    display: grid;
    place-items: center;
    min-height: clamp(17px, 1.73vw, 25px);
    border-radius: 999px;
    color: #374260;
    font-size: .89em;
}
.widget-calendar-grid span:nth-child(-n+7) { font-weight: 660; }
.widget-calendar-grid .is-available { background: #f3edfd; color: #372292; font-weight: 680; }
.widget-calendar-grid .is-selected { background: var(--studio-accent); color: #fff; font-weight: 730; }
.widget-calendar-times { position: relative; display: grid; align-content: start; gap: 6px; margin: 0; }
.widget-calendar-times legend {
    float: inline-start;
    width: 100%;
    padding: 0;
    margin-bottom: 2px;
    color: var(--ink);
    font-size: 1em;
    font-weight: 720;
    line-height: 1.2;
}
.widget-calendar-times label { position: relative; cursor: pointer; }
.widget-calendar-times > span, .widget-calendar-times label span {
    display: grid;
    place-items: center;
    min-height: 28px;
    border: 1px solid #dfd7ee;
    border-radius: 7px;
    background: #fcfaff;
    color: var(--ink);
    font-weight: 660;
}
.widget-calendar-times label span { min-height: 44px; }
.widget-calendar-times .is-selected, .widget-calendar-times input:checked + span { border-color: #cbbcf8; background: #e7ddfc; color: #362296; }
.widget-calendar-times label:hover span { border-color: var(--studio-accent); }
.widget-site:has(.widget-site-dialog[open])::after { position: absolute; inset: 0; z-index: 1; background: rgb(24 20 43 / .54); content: ""; }
.widget-site-dialog {
    position: absolute;
    inset: 9px;
    z-index: 2;
    width: min(500px, calc(100% - 18px));
    max-height: calc(100% - 18px);
    padding: clamp(9px, 1.1vw, 16px);
    border: 1px solid #e9dff5;
    border-radius: 16px;
    overflow: auto;
    background: #fdfbff;
    color: var(--ink);
    box-shadow: 0 13px 36px rgb(14 8 40 / .3);
}
.widget-site-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 6px; line-height: 1.1; }
.widget-site-dialog-head strong { font-size: clamp(17px, 1.65vw, 24px); letter-spacing: -.04em; }
.widget-site-dialog-head button { display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.widget-site-dialog-head button:hover { background: #eee8fb; }

.widget-formats > h2, .widget-steps > h2 { text-align: center; }
.widget-formats > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 25px); }
.widget-format-card {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
    align-items: start;
    gap: 12px;
    padding: clamp(12px, 1.15vw, 16px);
    border: 1px solid var(--booking-edge);
    border-radius: 21px;
    background: #fbf9fd;
}
.widget-format-card > div:not(.widget-site-frame) { padding-block: 4px; }
.widget-format-card h3 { margin: 0 0 9px; font-size: clamp(18px, 1.6vw, 23px); }
.widget-format-card p { font-size: clamp(15px, 1.17vw, 17px); }
.widget-format-card .widget-site-frame, .widget-customization .widget-site-frame { padding: 6px; border-radius: 14px; box-shadow: none; background: #efe8f7; }
.widget-format-card .widget-site, .widget-customization .widget-site { border-radius: 11px; }
.widget-format-card .widget-site-header, .widget-customization .widget-site-header { padding: 7px; }
.widget-format-card .widget-site-header span:first-child, .widget-customization .widget-site-header span:first-child { font-size: 15px; }
.widget-format-card .widget-site-header img, .widget-customization .widget-site-header img { width: 19px; height: 19px; }
.widget-format-card .widget-site-header span:last-child, .widget-customization .widget-site-header span:last-child { font-size: 8px; }
.widget-format-card .widget-site-body, .widget-customization .widget-site-body { padding-inline: 8px; }
.widget-format-card .widget-site-title, .widget-customization .widget-site-title { margin: 0 0 7px; font-size: clamp(16px, 1.4vw, 20px); }
.widget-format-card .widget-site-popup, .widget-customization .widget-site-popup { min-height: 204px; padding-top: 29px; }
.widget-format-card .widget-calendar { gap: 5px; }
.widget-format-card .widget-calendar-month, .widget-format-card .widget-calendar-times { padding: 6px; font-size: 10px; }
.widget-format-card .widget-calendar-grid span { min-height: 16px; }
.widget-format-card .widget-calendar-times { gap: 5px; }
.widget-format-card .widget-calendar-times > span { min-height: 22px; }
.widget-format-card .widget-site-foliage, .widget-customization .widget-site-foliage { width: 55px; }
.widget-format-card .widget-site-button { min-height: 33px; font-size: 11px; }

.widget-customization {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--booking-edge);
    border-radius: 22px;
    background: #f6f0fb;
}
.widget-customization:has(input[value="blue"]:checked) { --studio-accent: #175dc0; }
.widget-customization:has(input[value="mint"]:checked) { --studio-accent: #00776b; }
.widget-customization:has(input[value="pink"]:checked) { --studio-accent: #9b3656; }
.widget-customization-settings { display: grid; align-content: center; gap: 10px; min-width: 0; padding: 13px; border-radius: 12px; background: #fff; }
.widget-customization-settings > label { font-weight: 700; font-size: clamp(14px, 1.18vw, 17px); }
.widget-customization-settings > input { width: 100%; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid #d9ceec; border-radius: 9px; background: #fcfaff; color: var(--ink); font: inherit; font-size: 14px; }
.widget-customization .widget-site-description, .widget-format-card .widget-site-description { font-size: 13px; }
.widget-steps .booking-feature-steps li { display: grid; grid-template-columns: 43px minmax(0, 1fr); align-items: start; align-content: start; gap: 7px 13px; }
.widget-steps .booking-feature-steps li > span { grid-row: span 2; width: 42px; }
.widget-steps .booking-feature-steps h3 { margin: 4px 0 0; }
.widget-steps .booking-feature-steps p { grid-column: 2; }

.widget-example { scroll-margin-top: 22px; text-align: center; }
.widget-example > h2 { margin-bottom: 13px; }
.widget-example > p { max-width: 73ch; margin: 0 auto 23px; }
.widget-example > .widget-site-frame { width: min(100%, 980px); margin-inline: auto; text-align: start; }
.widget-example .widget-site { isolation: isolate; }
.widget-example .widget-site-popup { padding-inline: clamp(15px, 4vw, 59px); }
.widget-example .booking-feature-actions { justify-content: center; margin-top: 21px; }
.widget-faq-section, .widget-closing { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; column-gap: clamp(16px, 4vw, 57px); }
.widget-closing { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; text-align: left; }
.widget-closing p { margin-bottom: 0; }
.widget-closing .booking-feature-actions { justify-content: flex-end; }

@media (max-width: 1100px) {
    .widget-format-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .widget-feature .booking-feature-hero-layout { grid-template-columns: minmax(0, 1fr); }
    .widget-feature .booking-feature-hero-layout > .widget-site-frame { width: min(100%, 690px); }
    .widget-faq-section, .widget-closing { grid-template-columns: minmax(0, 1fr); }
    .widget-closing { gap: 16px; text-align: center; }
    .widget-closing .booking-feature-actions { justify-content: center; }
}
@media (max-width: 630px) {
    .widget-feature .booking-feature-hero h1 { font-size: clamp(31px, 9.2vw, 44px); }
    .widget-formats > div, .widget-customization { grid-template-columns: minmax(0, 1fr); }
    .widget-format-card .widget-site-header, .widget-customization .widget-site-header { padding: 10px; }
    [data-widget-demo] .widget-calendar { grid-template-columns: minmax(0, 1fr); }
    [data-widget-demo] .widget-calendar-month { padding: 7px; }
    [data-widget-demo] .widget-calendar-times { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2px; padding: 7px; }
    [data-widget-demo] .widget-calendar-times legend { grid-column: 1 / -1; }
    [data-widget-demo] .widget-site-popup { min-height: 365px; }
    .widget-modes { gap: 5px; }
    .widget-modes label > span { gap: 4px; padding-inline: 4px; }
    .widget-modes label img { width: 17px; height: 17px; }
    .widget-example .booking-feature-actions .button { width: 100%; }
}
