/**
 * Booking V3 – base reset inside .bsv3.
 *
 * The theme (Divi) prints generic element rules AFTER the plugin stylesheets, e.g.
 *   h1…h6 { color:#333; padding-bottom:10px; line-height:1em; font-weight:500 }   (0,0,1)
 *   a { color:#2ea3f2 }, p { padding-bottom:1em }                                  (0,0,1)
 *   input[type=text], select, textarea { border:1px solid #bbb; padding:2px; … }  (0,1,1)
 *   input[type=text]:focus { border-color:#2d3940 }                                 (0,2,1)
 * Specificity plan (no !important):
 *   - text elements:  .bsv3 :where(…)            (0,1,0)  beats the (0,0,1) theme rules
 *   - form controls:  .bsv3.bsv3 :where(…)       (0,2,0)  beats input[type=text] (0,1,1)
 *   - control focus:  .bsv3.bsv3 :where(…):focus (0,3,0)  beats input[type=text]:focus (0,2,1)
 * Component and step CSS use ".bsv3 .bsv3-<class>" (0,2,0) and load after this file,
 * so they win over the reset by source order.
 */

html.bsv3-open,
html.bsv3-open body {
    overflow: hidden;
}

html.bsv3-open body {
    overscroll-behavior: none;
}

.bsv3 {
    font-family: var(--bs-font);
    font-size: var(--bs-fs-body);
    font-weight: 500;
    line-height: var(--bs-lh-body);
    color: var(--bs-text);
    text-align: start;
    text-transform: none;
    letter-spacing: normal;
    word-spacing: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

.bsv3 *,
.bsv3 *::before,
.bsv3 *::after {
    box-sizing: border-box;
}

/* ------------------------------------------------------------------ text elements */

.bsv3 :where(h1, h2, h3, h4, h5, h6) {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    line-height: 1.25;
    color: inherit;
    letter-spacing: inherit;
    text-transform: none;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.bsv3 :where(p, blockquote, figure, dl, dd, pre) {
    margin: 0;
    padding: 0;
}

.bsv3 :where(p, li, dd) {
    text-wrap: pretty;
    overflow-wrap: break-word;
}

.bsv3 :where(ul, ol) {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bsv3 :where(li) {
    margin: 0;
    padding: 0;
}

.bsv3 :where(a) {
    color: var(--bs-lead);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    background: transparent;
    border: 0;
    outline: 0;
}

.bsv3 :where(a):hover {
    color: var(--bs-lead-600);
    text-decoration: underline;
}

.bsv3 :where(strong, b) {
    font-weight: 700;
}

.bsv3 :where(small) {
    font-size: var(--bs-fs-small);
}

.bsv3 :where(img, picture, video, canvas) {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

.bsv3 :where(svg) {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
    overflow: visible;
}

.bsv3 :where(hr) {
    height: 1px;
    margin: 0;
    border: 0;
    background: var(--bs-line);
}

.bsv3 :where(table) {
    border-collapse: collapse;
    border-spacing: 0;
}

.bsv3 :where(fieldset) {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.bsv3 :where(legend) {
    padding: 0;
}

.bsv3 :where(label) {
    margin: 0;
    padding: 0;
    font-weight: inherit;
}

/* ------------------------------------------------------------------ form controls */

.bsv3.bsv3 :where(button, input, select, textarea) {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: none;
    color: inherit;
}

.bsv3.bsv3 :where(button) {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: inherit;
    text-decoration: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.bsv3.bsv3 :where(button:disabled, button[aria-disabled="true"]) {
    cursor: not-allowed;
}

.bsv3.bsv3 :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), select, textarea) {
    width: auto;
    max-width: 100%;
    padding: 0;
    border: 1px solid var(--bs-line-strong);
    border-radius: var(--bs-r-control);
    background-color: var(--bs-surface);
    box-shadow: none;
    color: var(--bs-text);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.bsv3.bsv3 :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), select, textarea):focus {
    border-color: var(--bs-lead);
    color: var(--bs-text);
    outline: none;
}

.bsv3.bsv3 :where(input[type="checkbox"], input[type="radio"]) {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--bs-lead);
    -webkit-appearance: auto;
    appearance: auto;
}

.bsv3 :where(textarea) {
    resize: vertical;
}

.bsv3 :where(input, textarea)::placeholder {
    color: var(--bs-muted-text);
    opacity: 1;
}

/* ------------------------------------------------------------------ state + a11y */

/* Components set display on their classes; [hidden] must still win. */
.bsv3 [hidden] {
    display: none !important;
}

.bsv3 :focus {
    outline: none;
}

.bsv3 :focus-visible {
    outline: 2px solid transparent; /* visible in forced-colors mode */
    outline-offset: 2px;
    box-shadow: var(--bs-focus);
}

/* Headings and scroll regions focused from script never show a ring. */
.bsv3 :is(h1, h2, h3, [data-bsv3-title], [data-shell-scroll])[tabindex="-1"]:focus-visible {
    box-shadow: none;
}

.bsv3 ::selection {
    background: rgba(118, 156, 193, 0.28);
    color: inherit;
}

.bsv3-sr-only,
.bsv3 .bsv3-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .bsv3,
    .bsv3 *,
    .bsv3 *::before,
    .bsv3 *::after,
    .bsv3::backdrop {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
}
