.avb-scope {
    --avb-primary: #1f6049;
    --avb-accent: #e99376;
    --avb-ink: #24362f;
    --avb-muted: #708078;
    --avb-line: #dce6de;
    --avb-sage: #edf4eb;
    --avb-cream: #fbf8ef;
    width: min(100%, 1040px);
    margin: 0 auto;
    color: var(--avb-ink);
    font-family: inherit;
    box-sizing: border-box;
}
.avb-scope *, .avb-scope *::before, .avb-scope *::after { box-sizing: border-box; }
.avb-hero { position: relative; overflow: hidden; margin-bottom: 24px; padding: clamp(26px,5vw,48px); color: #fff; background: linear-gradient(135deg, #174936, var(--avb-primary)); border-radius: 25px; }
.avb-hero::after { content: ''; position: absolute; top: -70px; right: -50px; width: 190px; height: 190px; border: 28px solid rgba(255,255,255,.08); border-radius: 50%; }
.avb-hero > span { display: block; margin-bottom: 8px; color: #f5c3b1; font-size: 11px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; }
.avb-hero h2 { position: relative; z-index: 1; margin: 0 0 8px !important; color: #fff !important; font-size: clamp(31px,5vw,50px) !important; line-height: 1.08 !important; }
.avb-hero p { position: relative; z-index: 1; max-width: 720px; margin: 0; color: rgba(255,255,255,.8); line-height: 1.65; }
.avb-progress { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
.avb-progress button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 9px 12px; color: var(--avb-muted); background: #fff; border: 1px solid var(--avb-line); border-radius: 14px; font: inherit; font-size: 12px; font-weight: 800; cursor: default; }
.avb-progress button span { display: grid; place-items: center; width: 26px; height: 26px; color: var(--avb-muted); background: var(--avb-sage); border-radius: 50%; }
.avb-progress button.is-active { color: #fff; background: var(--avb-primary); border-color: var(--avb-primary); }
.avb-progress button.is-active span { color: var(--avb-primary); background: #fff; }
.avb-progress button.is-complete { color: var(--avb-primary); border-color: #bcd5c3; }
.avb-form, .avb-empty, .avb-success { padding: clamp(22px,4vw,38px); background: #fff; border: 1px solid var(--avb-line); border-radius: 24px; box-shadow: 0 20px 55px rgba(25,75,55,.08); }
.avb-step__head { margin-bottom: 24px; }
.avb-step__head > span { color: var(--avb-accent); font-size: 10px; font-weight: 900; letter-spacing: 1.1px; text-transform: uppercase; }
.avb-step__head h3 { margin: 4px 0 4px !important; color: var(--avb-primary) !important; font-size: clamp(24px,4vw,34px) !important; }
.avb-step__head p { margin: 0; color: var(--avb-muted); }
.avb-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.avb-grid label, .avb-date-field, .avb-timezone { display: grid; gap: 7px; color: var(--avb-ink); font-size: 13px; font-weight: 800; }
.avb-grid label > span, .avb-date-field > span, .avb-timezone > span { display: block; }
.avb-grid input, .avb-grid select, .avb-grid textarea, .avb-date-field input, .avb-timezone select { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--avb-ink); background: #fff; border: 1px solid #cfdcd2; border-radius: 12px; font: inherit; font-weight: 500; outline: none; }
.avb-grid textarea { min-height: 92px; resize: vertical; }
.avb-grid label small { color: var(--avb-muted); font-size: 11px; font-weight: 500; }
.avb-grid input:focus, .avb-grid select:focus, .avb-grid textarea:focus, .avb-date-field input:focus, .avb-timezone select:focus { border-color: var(--avb-primary); box-shadow: 0 0 0 3px rgba(31,96,73,.13); }
.avb-field--wide { grid-column: 1 / -1; }
.avb-date-field, .avb-timezone { max-width: 520px; margin-bottom: 16px; }
.avb-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.avb-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; color: var(--avb-primary) !important; background: var(--avb-sage); border: 1px solid #d4e1d6; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 850; line-height: 1.2; text-decoration: none !important; cursor: pointer; }
.avb-button--primary { color: #fff !important; background: var(--avb-accent); border-color: var(--avb-accent); box-shadow: 0 10px 22px rgba(191,109,80,.2); }
.avb-button--danger { color: #8b3f34 !important; background: #fff1ed; border-color: #f0d1c8; }
.avb-button:disabled { opacity: .55; cursor: not-allowed; }
.avb-slots { display: grid; grid-template-columns: repeat(auto-fill,minmax(110px,1fr)); gap: 10px; min-height: 70px; }
.avb-slot { min-height: 46px; padding: 9px; color: var(--avb-primary); background: #fff; border: 1px solid #cddfd2; border-radius: 12px; font: inherit; font-weight: 800; cursor: pointer; }
.avb-slot:hover, .avb-slot.is-selected { color: #fff; background: var(--avb-primary); border-color: var(--avb-primary); }
.avb-no-slots { grid-column: 1 / -1; padding: 20px; color: var(--avb-muted); background: var(--avb-cream); border-radius: 14px; text-align: center; }
.avb-alert { margin-bottom: 18px; padding: 13px 15px; color: #873b2c; background: #fff1ec; border: 1px solid #efd3c8; border-radius: 12px; font-weight: 700; }
.avb-alert[hidden], .avb-step[hidden], .avb-success[hidden], .avb-form[hidden], .avb-progress[hidden] { display: none !important; }
.avb-account-options { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 18px; margin-bottom: 22px; padding: 16px; background: var(--avb-cream); border: 1px solid #eee7d6; border-radius: 15px; }
.avb-account-options strong, .avb-signed-in strong { display: block; color: var(--avb-primary); }
.avb-account-options p, .avb-signed-in p { margin: 3px 0 0; color: var(--avb-muted); font-size: 12px; }
.avb-account-options > span { color: var(--avb-muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.avb-account-options__links { display: flex; gap: 8px; }
.avb-account-options__links a { padding: 9px 14px; color: var(--avb-primary); background: #fff; border: 1px solid #d7e2d8; border-radius: 999px; font-size: 12px; font-weight: 850; text-decoration: none; }
.avb-signed-in { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding: 14px 16px; background: #eff8ef; border: 1px solid #cee3d1; border-radius: 14px; }
.avb-signed-in > span, .avb-consent__icon { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; color: #fff; background: var(--avb-primary); border-radius: 50%; font-weight: 900; }
.avb-consent { display: grid; gap: 9px; margin-top: 20px; padding: 17px; background: var(--avb-cream); border: 1px solid #eee5d2; border-radius: 15px; }
.avb-consent label { display: flex; align-items: flex-start; gap: 11px; margin: 0; color: var(--avb-ink); font-weight: 750; line-height: 1.5; }
.avb-consent input[type="checkbox"] { flex: 0 0 auto; width: 21px; height: 21px; margin-top: 1px; accent-color: var(--avb-primary); }
.avb-consent a { justify-self: start; color: var(--avb-primary); font-size: 12px; font-weight: 850; }
.avb-consent details { color: var(--avb-muted); font-size: 12px; }
.avb-consent summary { width: max-content; color: var(--avb-primary); cursor: pointer; font-weight: 850; }
.avb-consent details p { margin: 8px 0 0; line-height: 1.55; }
.avb-consent small { color: var(--avb-muted); }
.avb-consent--accepted { grid-template-columns: auto minmax(0,1fr); align-items: center; background: #eff8ef; border-color: #cee3d1; }
.avb-consent--accepted strong { color: var(--avb-primary); }
.avb-consent--accepted p { margin: 3px 0; color: var(--avb-muted); font-size: 13px; }
.avb-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 10px; margin-top: 20px; padding: 14px; background: var(--avb-sage); border-radius: 14px; }
.avb-summary div { display: grid; gap: 3px; }
.avb-summary span { color: var(--avb-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.avb-summary strong { color: var(--avb-primary); font-size: 13px; }
.avb-success { text-align: center; }
.avb-success > span { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 17px; color: #fff; background: var(--avb-primary); border-radius: 50%; font-size: 30px; }
.avb-success h3 { color: var(--avb-primary) !important; }
.avb-success > strong { display: inline-block; margin-top: 12px; padding: 10px 16px; color: var(--avb-primary); background: var(--avb-sage); border-radius: 999px; }
.avb-empty { text-align: center; }
.avb-empty strong { color: var(--avb-primary); font-size: 20px; }
.avb-appointment-list { display: grid; gap: 12px; }
.avb-appointment { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 17px; background: #fff; border: 1px solid var(--avb-line); border-radius: 17px; }
.avb-appointment__date { display: grid; place-items: center; width: 58px; height: 62px; color: #fff; background: var(--avb-primary); border-radius: 14px; }
.avb-appointment__date strong { font-size: 22px; line-height: 1; }
.avb-appointment__date span { font-size: 10px; font-weight: 900; text-transform: uppercase; }
.avb-appointment__copy h3 { margin: 5px 0 3px !important; color: var(--avb-ink) !important; font-size: 17px !important; }
.avb-appointment__copy p { margin: 0; color: var(--avb-muted); font-size: 13px; }
.avb-appointment__copy small { color: var(--avb-muted); }
.avb-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.avb-status--approved { color: #23643d; background: #e7f5e9; }
.avb-status--pending { color: #805a16; background: #fff4d6; }
.avb-status--cancelled, .avb-status--rejected, .avb-status--no-show { color: #8b3f34; background: #fff0ec; }
.avb-status--completed { color: #315b7c; background: #eaf3fb; }
.avb-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

@media (max-width: 720px) {
    .avb-progress { grid-template-columns: repeat(4,1fr); gap: 5px; }
    .avb-progress button { min-height: 42px; padding: 7px 4px; font-size: 0; }
    .avb-progress button span { font-size: 12px; }
    .avb-grid { grid-template-columns: 1fr; }
    .avb-field--wide { grid-column: auto; }
    .avb-account-options { grid-template-columns: 1fr; gap: 11px; }
    .avb-account-options > span { display: none; }
    .avb-account-options__links a { flex: 1; text-align: center; }
    .avb-actions { align-items: stretch; flex-direction: column-reverse; }
    .avb-actions .avb-button { width: 100%; }
    .avb-appointment { grid-template-columns: auto minmax(0,1fr); }
    .avb-appointment > .avb-button { grid-column: 1 / -1; width: 100%; }
}

/* Calendar-first Normal booking. Scoped to the plugin only. */
.avb-scope [hidden] { display: none !important; }
.avb-progress--normal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.avb-calendar { max-width: 540px; margin: 0 auto; }
.avb-calendar__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.avb-calendar__nav strong { font-size: 21px; color: var(--avb-primary); }
.avb-calendar__nav .avb-button { min-width: 44px; padding: 10px; }
.avb-calendar__week, .avb-calendar__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.avb-calendar__week { margin-bottom: 9px; color: var(--avb-muted); font-size: 12px; font-weight: 700; text-align: center; }
.avb-calendar__day { aspect-ratio: 1; min-width: 0; padding: 4px; font: inherit; font-size: 16px; font-weight: 700; color: var(--avb-primary); background: var(--avb-sage); border: 1px solid #c6d9cb; border-radius: 12px; cursor: pointer; }
.avb-calendar__day:disabled { background: #f6f7f6; color: #8b958e; border-color: transparent; cursor: not-allowed; }
.avb-calendar__day:not(:disabled):hover, .avb-calendar__day[aria-pressed="true"] { background: var(--avb-primary); color: #fff; }
.avb-scope button:focus-visible, .avb-scope a:focus-visible { outline: 3px solid var(--avb-accent); outline-offset: 3px; }
.avb-calendar [role="status"] { margin: 18px 0 8px; color: var(--avb-primary); font-size: 14px; }
.avb-calendar small { color: var(--avb-muted); }
.avb-booking[data-mode="normal"] { max-width: 820px; }
.avb-booking[data-mode="normal"] .avb-hero { padding: 30px; }
.avb-booking[data-mode="normal"] .avb-hero h2 { font-size: clamp(28px, 5vw, 40px) !important; }
@media (max-width: 480px) {
    .avb-calendar__week, .avb-calendar__days { gap: 4px; }
    .avb-calendar__day { border-radius: 8px; font-size: 14px; }
    .avb-form { padding: 18px 14px; }
    .avb-progress--normal button { font-size: 11px; }
    .avb-progress--normal button span { width: 21px; height: 21px; }
}

/* Keep calendar cells compact when a theme applies global button dimensions. */
.avb-scope .avb-calendar{width:100%;max-width:720px;min-width:0}.avb-scope .avb-calendar__days,.avb-scope .avb-calendar__week{width:100%;max-width:100%;min-width:0;gap:5px}
.avb-scope .avb-calendar__days{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:5px}
.avb-scope .avb-calendar__day{appearance:none!important;display:grid!important;place-items:center;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:1/1;padding:0!important;margin:0!important;border:1px solid var(--avb-line)!important;border-radius:10px!important;background:#fff!important;color:var(--avb-primary)!important;box-shadow:none!important;font-weight:700;font-family:inherit;font-size:13px!important;line-height:1!important;text-align:center;letter-spacing:0!important}
.avb-scope .avb-calendar__day:disabled{background:#f4f6f3!important;color:#7c8980!important;border-color:transparent!important;opacity:.65!important;cursor:default}
.avb-scope .avb-calendar__day:not(:disabled):hover,.avb-scope .avb-calendar__day[aria-pressed="true"]{background:var(--avb-primary)!important;color:#fff!important;border-color:var(--avb-primary)!important}
.avb-scope .avb-calendar__day:focus-visible,.avb-scope .avb-calendar__nav button:focus-visible{outline:2px solid var(--avb-accent);outline-offset:2px}
.avb-scope .avb-calendar__nav button{appearance:none;display:grid;place-items:center;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;margin:0!important;border-radius:50%;line-height:1!important;box-shadow:none}
.avb-scope .avb-progress button{min-width:0;max-width:100%;padding:9px 6px!important;line-height:1.25!important;margin:0!important;letter-spacing:0!important}
.avb-scope .avb-progress button span{flex-shrink:0}
.avb-scope .avb-grid input,.avb-scope .avb-grid select,.avb-scope .avb-grid textarea,.avb-scope .avb-timezone select{min-width:0;max-width:100%}
.avb-scope .avb-button,.avb-scope .avb-slot{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.avb-scope .avb-actions,.avb-scope .avb-account-options__links{flex-wrap:wrap}
.avb-scope .avb-consent label span,.avb-scope .avb-signed-in>div,.avb-scope .avb-account-options>div,.avb-scope .avb-appointment__copy{min-width:0;overflow-wrap:anywhere}
.avb-scope .avb-calendar__nav strong{min-width:0;font-size:clamp(15px,4vw,20px);text-align:center}
@media(max-width:480px){.avb-scope .avb-form{padding:16px}.avb-scope .avb-calendar__days,.avb-scope .avb-calendar__week{gap:4px}.avb-scope .avb-calendar__day{border-radius:8px!important;font-size:12px!important}.avb-scope .avb-grid input,.avb-scope .avb-grid select,.avb-scope .avb-timezone select{font-size:16px}.avb-scope .avb-progress{gap:5px}.avb-scope .avb-progress button{gap:4px;font-size:11px}.avb-scope .avb-progress button span{width:20px;height:20px}.avb-scope .avb-consent{padding:12px}.avb-scope .avb-slots{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Guest consent review stays inside the booking form, with one pair of links per document. */
.avb-scope .avb-consent-documents{min-width:0;max-width:100%;margin:0;border:0}
.avb-scope .avb-consent-documents>summary{min-height:44px;padding:10px 0;color:var(--avb-primary);font-size:13px;font-weight:800;line-height:1.5;cursor:pointer;overflow-wrap:anywhere}
.avb-scope .avb-consent-documents>summary:focus-visible{outline:3px solid var(--avb-accent);outline-offset:3px;border-radius:4px}
.avb-scope .avb-consent-documents__list{display:grid;gap:10px;list-style:none!important;margin:0!important;padding:0!important}
.avb-scope .avb-consent-documents__item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin:0;padding:12px;background:#fff;border:1px solid var(--avb-line);border-radius:12px}
.avb-scope .avb-consent-documents__item>strong{min-width:0;font-size:13px;font-weight:700;line-height:1.5;overflow-wrap:anywhere;color:var(--avb-ink)}
.avb-scope .avb-consent-documents__actions{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.avb-scope .avb-consent-documents__actions>a{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:9px 14px;margin:0;border:1px solid var(--avb-line);border-radius:24px;background:var(--avb-sage);color:var(--avb-primary)!important;font-size:12px;font-weight:800;line-height:1.4;text-decoration:none!important;white-space:normal}
.avb-scope .avb-consent-documents__actions>a:hover{background:var(--avb-primary);color:#fff!important}
@media(max-width:600px){.avb-scope .avb-consent-documents__item{grid-template-columns:minmax(0,1fr);gap:10px}.avb-scope .avb-consent-documents__actions>a{flex:1}}
