/*
 * PSPVault Back in Stock
 * Sold-out cards, the waitlist button, and the popup.
 */

/* ---------------------------------------------------------------- sold-out card */

.pspv-so .box-image {
    position: relative;
}

.pspv-so .box-image img {
    filter: grayscale(1) contrast(.95) brightness(.84);
    -webkit-filter: grayscale(1) contrast(.95) brightness(.84);
    transition: filter .3s ease;
}

/* Flatsome paints its own translucent band across the thumbnail, and the homepage
   carries a "Limited Release" pill on one card. Neither belongs on a sold-out card. */
.pspv-so .out-of-stock-label {
    display: none !important;
}

body .pspv-so .box-image::after {
    content: none !important;
}

.pspv-so__badge {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: #fff;
    font-weight: 800;
    font-size: clamp(13px, 3.1vw, 18px);
    letter-spacing: .16em;
    text-transform: uppercase;
    line-height: 1;
    text-align: center;
    padding: 0 10px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .5);
}

/* ---------------------------------------------------------------- waitlist button */

.pspv-remind {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    font-family: inherit;
}

/* Flatsome uppercases every button on the site. The card label only fits on one line in
   sentence case, so that one opts out. */
.pspv-remind--card {
    text-transform: none !important;
}

.pspv-remind--card {
    display: block;
    width: 100%;
    margin: 4px 0 2px;
    padding: 10px 8px;
    background: #161616;
    color: #fff;
    border: 0;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
    text-align: center;
    text-transform: none;
    transition: background .2s ease, transform .12s ease;
}

.pspv-remind--card:hover {
    background: #2e2e2e;
    color: #fff;
}

.pspv-remind--card:active {
    transform: translateY(1px);
}

@media (min-width: 850px) {
    .pspv-remind--card {
        font-size: 12.5px;
        padding: 12px 14px;
    }
}

.pspv-remind--product {
    display: inline-block;
    padding: 14px 26px;
    background: #161616;
    color: #fff;
    border: 0;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pspv-remind-wrap {
    margin: 0 0 18px;
}

.pspv-remind.is-joined {
    background: #f1f1ee;
    color: #5f5f5c;
    cursor: default;
}

.pspv-remind.is-joined:hover {
    background: #f1f1ee;
    color: #5f5f5c;
}

/* ---------------------------------------------------------------- popup */

/* Sized independently of whatever box model the theme happens to set. */
.pspv-rm__card,
.pspv-rm__input,
.pspv-rm__submit,
.pspv-rm__ok,
.pspv-remind {
    box-sizing: border-box;
}

.pspv-rm[hidden] {
    display: none;
}

.pspv-rm {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.pspv-rm__scrim {
    position: absolute;
    inset: 0;
    background: rgba(12, 12, 14, .58);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .22s ease;
}

.pspv-rm.is-open .pspv-rm__scrim {
    opacity: 1;
}

.pspv-rm__card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 22px 22px 0 0;
    padding: 26px 22px 24px;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, .26);
    transform: translateY(18px);
    opacity: 0;
    transition: transform .26s cubic-bezier(.22, .9, .3, 1), opacity .2s ease;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pspv-rm.is-open .pspv-rm__card {
    transform: translateY(0);
    opacity: 1;
}

@media (min-width: 700px) {
    .pspv-rm {
        align-items: center;
    }

    .pspv-rm__card {
        border-radius: 22px;
        padding: 30px 28px 26px;
        transform: translateY(10px) scale(.985);
    }

    .pspv-rm.is-open .pspv-rm__card {
        transform: translateY(0) scale(1);
    }
}

.pspv-rm__x {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #f2f2ef;
    color: #5f5f5c;
    cursor: pointer;
    padding: 0;
}

.pspv-rm__tag {
    display: inline-block;
    background: #161616;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 99px;
    margin: 0 0 12px;
}

.pspv-rm__title {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.24;
    letter-spacing: -.012em;
    color: #141414;
}

.pspv-rm__product {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #161616;
}

.pspv-rm__product:empty {
    display: none;
}

.pspv-rm__intro {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.55;
    color: #6d6d6a;
}

.pspv-rm__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.pspv-rm__form {
    margin: 0;
}

.pspv-rm__input {
    width: 100%;
    height: 52px;
    margin: 0 0 10px;
    padding: 0 16px;
    font-size: 16px;
    color: #161616;
    background: #f7f7f5;
    border: 1.5px solid #e4e4e0;
    border-radius: 14px;
    box-shadow: none;
    transition: border-color .18s ease, background .18s ease;
}

.pspv-rm__input:focus {
    outline: 0;
    background: #fff;
    border-color: #161616;
}

.pspv-rm__input.has-error {
    border-color: #c8402f;
    background: #fdf5f4;
}

.pspv-rm__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.pspv-rm__submit {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: #161616;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .18s ease;
}

.pspv-rm__submit[disabled] {
    opacity: .6;
    cursor: default;
}

.pspv-rm__error {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    color: #c8402f;
}

.pspv-rm__note {
    margin: 14px 0 0;
    font-size: 11.5px;
    line-height: 1.55;
    color: #9a9a97;
}

.pspv-rm__done {
    text-align: center;
    padding: 12px 0 4px;
}

.pspv-rm__tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #eaf6ee;
    color: #1f8a4c;
    margin: 0 0 14px;
}

.pspv-rm__donetxt {
    margin: 0 0 20px;
    font-size: 15.5px;
    line-height: 1.5;
    font-weight: 700;
    color: #161616;
}

.pspv-rm__ok {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 14px;
    background: #f1f1ee;
    color: #3d3d3b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
}

body.pspv-rm-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .pspv-rm__card,
    .pspv-rm__scrim {
        transition: none;
    }
}

/* ---------------------------------------------------------------- product page takeover */

/* The takeover's own buttons are anchors, so the button element needs the resets they
   never needed, and the sticky bar has to keep its label on one line beside the price. */
.pspv-remind--bar,
.pspv-remind--desk {
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
}

.pspv-bar__btn.pspv-remind--bar {
    white-space: nowrap;
    max-width: 58%;
    justify-content: center;
}

.pv5-dbuy__btn.pspv-remind--desk {
    width: 100%;
    border: 0;
    cursor: pointer;
}

#pv5 .pspv-remind--product {
    display: block;
    width: 100%;
    height: 52px;
    margin: 10px 0 0;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
}

#pv5 .pspv-remind--product.is-joined,
.pspv-bar__btn.pspv-remind--bar.is-joined,
.pv5-dbuy__btn.pspv-remind--desk.is-joined {
    background: #e9e9e5 !important;
    color: #6d6d68 !important;
    cursor: default;
}
