/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
/* stylelint-disable */
textarea {
    width: 100%;
    resize: vertical;
}
/* stylelint-enable */

/* Theme button look. Bare element selectors use :where() on the type
 * attribute so their specificity stays at a single element (0,0,1): a
 * plugin's own one-class button rule wins, while unstyled buttons still
 * get the theme style. Only .button opts in at full specificity. */
/* stylelint-disable */
input:where([type="button"], [type="reset"], [type="submit"]),
button:where([type="submit"]),
a.read-more.button,
button.button {
    font-family: inherit;
    font-size: inherit;
    color: var(--button-text-color);
    background-color: var(--button-background-color);
    border-radius: var(--button-border-radius);
    padding: 10px 20px;
    font-weight: 500;
    font-style: normal;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    line-height: 1.3;
    border: 1px solid var(--button-border-color);
    outline: 0;
    vertical-align: middle;
    -webkit-transition: all linear .2s;
    transition: all linear .2s;
}

/* Not a visual override; kept at the original specificity so it still
 * beats the normalize rule `[type="submit"] { appearance: button }`. */
input[type="button"],
input[type="reset"],
input[type="submit"],
button[type="submit"],
a.read-more.button,
button.button {
    -webkit-appearance: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.customize-partial-edit-shortcut button,
.widget .customize-partial-edit-shortcut button {
    color: #fff !important; /* fixed: WP Customizer edit-shortcut chrome */
    font-size: 18px !important;
    border-radius: 50% !important;
    border: 2px solid #fff !important; /* fixed: WP Customizer edit-shortcut chrome */
    padding: 3px !important;
}
/* stylelint-enable */


input:where([type="button"], [type="reset"], [type="submit"]):hover,
button:where([type="submit"]):hover,
a.read-more.button:hover,
button.button:hover {
    color: var(--button-text-hover-color);
    background-color: var(--button-background-hover-color);
    border: 1px solid var(--button-border-hover-color);
}

button:active,
button:focus,
input:where([type="button"], [type="reset"], [type="submit"]):active,
input:where([type="button"], [type="reset"], [type="submit"]):focus {
    border-color: var(--bx-color-border-strong);
}

button:focus-visible {
    outline: 2px solid var(--bx-color-fg);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    color: var(--bx-color-fg-muted, #666);
    border: 1px solid var(--global-border-color);
    border-radius: var(--form-border-radius);
    padding: 10px;
    min-height: 38px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
    color: var(--bx-color-fg, #111);
}

a.menu-close:focus-visible {
    outline: 2px solid var(--bx-color-fg-inverse);
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    margin: 0 0 1rem;
    border: 1px solid var(--global-border-color);
}

table td,
table th {
    padding: 1rem;
    border: 1px solid var(--global-border-color);
}

.widget_calendar table th {
    padding: 0.2em;
}

select {
    display: inline-block;
    font-family: inherit;
    font-style: inherit;
    font-size: 15px;
    height: auto;
    min-height: 35px;
    outline: none;
    vertical-align: middle;
    background-color: var(--bx-color-bg-elevated, #fff);
    border: 1px solid var(--global-border-color);
    border-radius: 3px;
    box-shadow: none;
    padding: 0 40px 0 12px;
    color: inherit;
    appearance: none;
    background-image: url(../images/arrow-down.svg);
    background-repeat: no-repeat;
    background-position: var(--bx-select-arrow-x, right) 1rem center;
}

:root[data-bx-mode="dark"] select {
    background-image: url(../images/arrow-down-white.svg);
}

/* The native option popup does not inherit the dark select surface; without
 * an explicit background the inherited light text lands on a white list. */
select option {
    background-color: var(--bx-color-bg-elevated, #fff);
    color: var(--bx-color-fg, #111);
}

@supports (-webkit-touch-callout: none) {

    @media (hover: none) and (pointer: coarse) {
        input[type="text"],
        input[type="email"],
        input[type="url"],
        input[type="password"],
        input[type="search"],
        input[type="number"],
        input[type="tel"],
        input[type="date"],
        input[type="month"],
        input[type="week"],
        input[type="time"],
        input[type="datetime"],
        input[type="datetime-local"],
        select,
        textarea,
        .menu-icons-wrapper #searchform input[type="search"] {
            font-size: 16px;
        }
    }
}
