/* Back in stock notification block. Neutral styling so it inherits the theme. */

.jm-bis {
    margin: 14px 0 0;
    /* The script lifts the block out of the 50% product column; these keep it full
       width whether it ends up in a normal block flow or in a flex container. */
    width: 100%;
    flex: 1 1 100%;
    box-sizing: border-box;
}

.jm-bis__toggle {
    display: inline-block;
    padding: 12px 22px;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    /* 44px minimum touch target - the audit found 34 of 51 targets below it. */
    min-height: 44px;
}

.jm-bis__toggle:hover,
.jm-bis__toggle:focus-visible {
    background: #111;
    border-color: #111;
    color: #fff;
}

.jm-bis__form {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

.jm-bis__intro {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
}

.jm-bis__label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
}

.jm-bis__email {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    min-height: 44px;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    font: inherit;
    font-size: 16px; /* below 16px iOS zooms the page on focus */
}

.jm-bis__consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.jm-bis__consent input {
    margin-top: 3px;
    flex: 0 0 auto;
}

.jm-bis__submit {
    display: inline-block;
    padding: 12px 22px;
    min-height: 44px;
    border: 0;
    border-radius: 4px;
    background: #111;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.jm-bis__submit[disabled] {
    opacity: .6;
    cursor: default;
}

.jm-bis__msg {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
    min-height: 1em;
}

.jm-bis__msg--ok {
    color: #157a2b;
}

.jm-bis__msg--error {
    color: #b32020;
}

/* Honeypot: kept out of sight without display:none, which some bots detect. */
.jm-bis__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .jm-bis__toggle,
    .jm-bis__submit {
        transition: none;
    }
}
