.atb-tryon-widget {
    position: relative;
    z-index: 1200;
}


.atb-tryon-widget *,
.atb-tryon-widget *::before,
.atb-tryon-widget *::after {
    box-sizing: border-box;
}


.atb-tryon-widget .is-hidden {
    display: none !important;
}


/* =========================================================
   LAUNCHER
========================================================= */

.atb-tryon-widget__launcher {
    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 1202;

    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 52px;

    padding: 0 20px;

    border: 0;
    border-radius: 30px;

    background: #020203;
    color: #fff;

    font-family: inherit;
    font-size: 13px;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, 0.18);

    transition:
        transform .2s ease,
        opacity .2s ease;
}


.atb-tryon-widget__launcher:hover {
    transform: translateY(-2px);
}


.atb-tryon-widget__launcher-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}


.atb-tryon-widget__launcher-text {
    white-space: nowrap;
}


/* =========================================================
   OVERLAY
========================================================= */

.atb-tryon-widget__overlay {
    position: fixed;

    inset: 0;

    z-index: 1203;

    background:
        rgba(0, 0, 0, .22);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}


.atb-tryon-widget.is-open
.atb-tryon-widget__overlay {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   PANEL
========================================================= */

.atb-tryon-widget__panel {
    position: fixed;

    top: 0;
    right: 0;
    bottom: 0;

    z-index: 1204;

    width: min(460px, 100vw);

    background: #fff;

    transform:
        translateX(100%);

    transition:
        transform .3s ease;

    display: flex;
    flex-direction: column;

    box-shadow:
        -10px 0 40px
        rgba(0, 0, 0, .10);
}


.atb-tryon-widget.is-open
.atb-tryon-widget__panel {
    transform:
        translateX(0);
}


.atb-tryon-widget__header {
    min-height: 82px;

    padding:
        19px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom:
        1px solid #e8e8e8;
}


.atb-tryon-widget__eyebrow {
    margin-bottom: 5px;

    color: #888;

    font-size: 10px;
    letter-spacing: .14em;
}


.atb-tryon-widget__title {
    font-size: 18px;
}


.atb-tryon-widget__close {
    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;

    background: transparent;

    font-size: 30px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
}


.atb-tryon-widget__body {
    flex: 1;

    overflow-y: auto;

    padding: 32px 24px 40px;
}


/* =========================================================
   COMMON
========================================================= */

.atb-tryon-widget__step-number {
    margin-bottom: 14px;

    color: #929292;

    font-size: 11px;
    letter-spacing: .12em;
}


.atb-tryon-widget__heading {
    margin:
        0 0 12px;

    font-size: 26px;
    font-weight: 400;
    line-height: 1.15;
}


.atb-tryon-widget__description {
    margin-bottom: 28px;

    color: #777;

    font-size: 13px;
    line-height: 1.55;
}


.atb-tryon-widget__back {
    margin:
        0 0 28px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #777;

    font-size: 12px;

    cursor: pointer;
}


/* =========================================================
   UPLOAD
========================================================= */

.atb-tryon-widget__upload {
    min-height: 210px;

    padding: 28px;

    border:
        1px dashed #aaa;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease;
}


.atb-tryon-widget__upload:hover {
    border-color: #020203;

    background:
        #fafafa;
}


.atb-tryon-widget__upload input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}


.atb-tryon-widget__upload-plus {
    margin-bottom: 14px;

    font-size: 34px;
    font-weight: 200;
}


.atb-tryon-widget__upload-title {
    margin-bottom: 8px;

    font-size: 14px;
}


.atb-tryon-widget__upload-note {
    color: #929292;

    font-size: 11px;
}


.atb-tryon-widget__preview {
    margin-top: 20px;

    text-align: center;
}


.atb-tryon-widget__preview img {
    display: block;

    width: auto;
    max-width: 100%;
    max-height: 360px;

    margin: 0 auto 12px;

    object-fit: contain;
}


.atb-tryon-widget__change-photo {
    padding: 0;

    border: 0;

    background: none;

    text-decoration: underline;

    font-size: 12px;

    cursor: pointer;
}


/* =========================================================
   BUTTONS
========================================================= */

.atb-tryon-widget__primary,
.atb-tryon-widget__secondary {
    width: 100%;

    min-height: 52px;

    margin-top: 22px;

    padding:
        0 18px;

    border:
        1px solid #020203;

    font-family: inherit;
    font-size: 13px;

    cursor: pointer;
}


.atb-tryon-widget__primary {
    background:
        #020203;

    color:
        #fff;
}


.atb-tryon-widget__primary:disabled {
    opacity: .35;

    cursor: default;
}


.atb-tryon-widget__secondary {
    margin-top: 10px;

    background:
        #fff;

    color:
        #020203;
}


/* =========================================================
   OCCASIONS
========================================================= */

.atb-tryon-widget__occasions {
    border-top:
        1px solid #e7e7e7;
}


.atb-tryon-widget__occasion {
    width: 100%;

    min-height: 66px;

    padding:
        0 2px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 0;
    border-bottom:
        1px solid #e7e7e7;

    background:
        #fff;

    color:
        #020203;

    font-family: inherit;
    font-size: 16px;

    text-align: left;

    cursor: pointer;
}


/* =========================================================
   PRODUCTS
========================================================= */

.atb-tryon-widget__products {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
}


.atb-tryon-widget__product {
    padding: 0;

    border: 0;

    background: none;

    text-align: left;

    cursor: pointer;
}


.atb-tryon-widget__product-image {
    position: relative;

    width: 100%;

    aspect-ratio:
        3 / 4;

    margin-bottom: 10px;

    overflow: hidden;

    background:
        #f3f3f3;
}


.atb-tryon-widget__product-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .3s ease;
}


.atb-tryon-widget__product:hover
.atb-tryon-widget__product-image img {
    transform:
        scale(1.025);
}


.atb-tryon-widget__product-name {
    font-size: 11px;
    line-height: 1.35;
}


.atb-tryon-widget__products-empty {
    grid-column:
        1 / -1;

    padding:
        30px 0;

    color:
        #777;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   LOADING
========================================================= */

.atb-tryon-widget__center {
    min-height: 55vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}


.atb-tryon-widget__center.is-hidden {
    display: none !important;
}


.atb-tryon-widget__spinner {
    width: 34px;
    height: 34px;

    margin-bottom: 28px;

    border:
        1px solid #d4d4d4;

    border-top-color:
        #020203;

    border-radius:
        50%;

    animation:
        atbTryOnSpin .8s linear infinite;
}


@keyframes atbTryOnSpin {

    to {
        transform:
            rotate(360deg);
    }

}


/* =========================================================
   RESULT
========================================================= */

.atb-tryon-widget__result {
    background:
        #f5f5f5;
}


.atb-tryon-widget__result img {
    display: block;

    width: 100%;
    height: auto;
}


.atb-tryon-widget__product-link {
    display: block;

    margin-top: 22px;

    color: #020203;

    font-size: 12px;

    text-align: center;
    text-decoration: underline;
}


/* =========================================================
   ERROR
========================================================= */

.atb-tryon-widget__error {
    margin-top: 18px;

    padding: 12px 14px;

    background:
        #f8eeee;

    color:
        #8c2626;

    font-size: 12px;
    line-height: 1.45;
}


/* =========================================================
   MOBILE
========================================================= */

@media (
    max-width: 767px
) {

    .atb-tryon-widget__launcher {
        right: 14px;
        bottom: 14px;

        min-height: 48px;

        padding:
            0 15px;
    }


    .atb-tryon-widget__launcher-text {
        font-size: 11px;
    }


    .atb-tryon-widget__panel {
        width: 100%;
    }


    .atb-tryon-widget__header {
        padding:
            15px 18px;
    }


    .atb-tryon-widget__body {
        padding:
            26px 18px 30px;
    }


    .atb-tryon-widget__heading {
        font-size: 23px;
    }


    .atb-tryon-widget__products {
        gap: 7px;
    }


    .atb-tryon-widget__product-name {
        font-size: 10px;
    }

}