/* ==========================================================
   PRODUCT PREVIEW STAGE
   Contains the base image and all recolor mask layers.
========================================================== */

.asc-stage {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-inline: auto;
    overflow: hidden;

    /* Keeps blend modes contained inside this preview area */
    isolation: isolate;
}


/* ==========================================================
   BASE PRODUCT IMAGE
   Provides the realistic texture, stitching, highlights,
   shadows, and dimensionality.
========================================================== */

.asc-stage-base {
    display: block;
    width: 100%;
    height: auto;
}


/* ==========================================================
   SHARED COLOR MASK LAYERS
   Multiply preserves the photographic shadows and texture.

   Opacity is controlled per selected color so dark colors
   can remain dark while lighter colors can stay softer.
========================================================== */

.asc-stage-mask {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;

    mix-blend-mode: multiply;

    opacity: var(--asc-mask-opacity, 1);
}


/* ==========================================================
   COLOR SWATCHES
========================================================== */

.asc-swatch {
    width: 42px;
    height: 42px;

    padding: 0;

    border: 2px solid #d7d7d7;
    border-radius: 50%;

    background: var(--asc-swatch-color);

    box-shadow: 0 0 0 2px transparent;
}


/* ==========================================================
   COLOR SWATCH HOVER / KEYBOARD FOCUS
========================================================== */

.asc-swatch:hover,
.asc-swatch:focus-visible {
    border-color: #777;
}


/* ==========================================================
   ACTIVE COLOR SWATCH
========================================================== */

.asc-swatch.is-active {
    border-color: #111;

    box-shadow:
        0 0 0 2px #fff,
        0 0 0 4px #111;
}

/* ==========================================================
   LOGO PREVIEW LAYER
========================================================== */

.asc-logo-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    cursor: grab;
    touch-action: none;
}

.asc-logo-canvas:active {
    cursor: grabbing;
}

/* ==========================================================
   CUSTOMIZER RANGE SLIDERS
========================================================== */

.asc-customizer .form-range::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    background: #dc3545;
    border: 0;
    border-radius: 50%;
    margin-top: -7px;
}

.asc-customizer .form-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #dc3545;
    border: 0;
    border-radius: 50%;
}


/* ==========================================================
   CUSTOMIZER RANGE SLIDERS - MOBILE
========================================================== */

@media (max-width: 767.98px) {

    .asc-customizer .form-range {
        min-height: 40px;
    }

    .asc-customizer .form-range::-webkit-slider-thumb {
        width: 30px;
        height: 30px;
        margin-top: -11px;
    }

    .asc-customizer .form-range::-moz-range-thumb {
        width: 30px;
        height: 30px;
    }
}


/* ==========================================================
   LOGO FILE UPLOAD FIELDS
========================================================== */

.asc-customizer input[type="file"].form-control {
    height: 52px;
    padding: 0;

    border: 1px solid #ced4da;
    border-radius: 0.375rem;

    background-color: #fff;
    color: #212529;

    font-size: 0.95rem;
    line-height: 50px;
}


/* ==========================================================
   LOGO FILE UPLOAD BUTTON
========================================================== */

.asc-customizer input[type="file"].form-control::file-selector-button {
    height: 50px;

    margin: 0 0.75rem 0 0;
    padding: 0 1rem;

    border: 0;
    border-right: 1px solid #ced4da;

    background: #f8f9fa;
    color: #212529;

    font-weight: 500;
    vertical-align: top;
}

/* ==========================================================
   MOBILE CUSTOMIZER TABS
========================================================== */

.asc-mobile-tabs {
    display: none;
}


/* ==========================================================
   MOBILE CUSTOMIZER PANELS - DESKTOP
   Show all panels normally on desktop.
========================================================== */

.asc-mobile-panel {
    display: block;
}


/* ==========================================================
   MOBILE CUSTOMIZER TABS - MOBILE
========================================================== */

@media (max-width: 767.98px) {

    .asc-mobile-tabs {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .asc-mobile-tab {
        flex: 1;

        padding: 0.75rem 0.5rem;

        border: 1px solid #d7d7d7;
        border-radius: 0.375rem;

        background: #fff;
        color: #212529;

        font-weight: 600;
        text-align: center;
    }

    .asc-mobile-tab.is-active {
        border-color: #dc3545;
        background: #dc3545;
        color: #fff;
    }


    /* ======================================================
       MOBILE CUSTOMIZER PANELS
    ====================================================== */

    .asc-mobile-panel {
        display: none;
    }

    .asc-mobile-panel.is-active {
        display: block;
    }
}


/* ==========================================================
   MOBILE LOGO TOOLS
   Hidden on desktop and until a logo has been uploaded.
========================================================== */

.asc-mobile-logo-tools {
    display: none;
}


/* ==========================================================
   MOBILE LOGO TOOLS - MOBILE
========================================================== */

@media (max-width: 767.98px) {

    /* The touch tools replace the sliders on mobile. */
    .asc-logo-range-controls {
        display: none;
    }

    .asc-customizer.asc-has-logo .asc-mobile-logo-tools {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .asc-mobile-logo-tool {
        flex: 1;

        min-height: 44px;
        padding: 0.5rem 0.75rem;

        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;

        border: 1px solid #111;
        border-radius: 0.375rem;

        background: #111;
        color: #fff;

        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1;

        touch-action: manipulation;
    }

    .asc-mobile-logo-tool.is-active {
        box-shadow:
            inset 0 0 0 2px #fff;
    }

    .asc-mobile-logo-tool-icon {
        width: 19px;
        height: 19px;

        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
}

/* ==========================================================
   EMAIL MOCKUP MODAL
   Matches the Athletic Seating contact form style.
========================================================== */

#asc-email-mockup-modal .modal-dialog {
    max-width: 650px;
}

#asc-email-mockup-modal .modal-content {
    border: 0;
    border-radius: 0;
    background: #f5f6f7;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}


/* ==========================================================
   EMAIL MOCKUP MODAL HEADER
========================================================== */

#asc-email-mockup-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 1px solid #d9dde1;
    background: #f5f6f7;
}

#asc-email-mockup-modal .modal-title {
    margin: 0;
    font-family: inherit;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.15;
    color: #212529;
}

#asc-email-mockup-modal .btn-close {
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    padding: 0.5rem;
    background-size: 1.25rem;
    filter: invert(14%) sepia(96%) saturate(5700%) hue-rotate(355deg) brightness(84%) contrast(116%);
    opacity: 1;
}

#asc-email-mockup-modal .btn-close:hover,
#asc-email-mockup-modal .btn-close:focus {
    opacity: 0.8;
}


/* ==========================================================
   EMAIL MOCKUP MODAL FORM
========================================================== */


/* ==========================================================
   EMAIL MOCKUP MODAL FORM
========================================================== */


/* ==========================================================
   EMAIL MOCKUP MODAL FORM
========================================================== */

#asc-email-mockup-modal .modal-body {
    padding: 2rem 2.5rem 2.5rem;
    background: #f5f6f7;
}

#asc-email-mockup-modal .mb-3 {
    margin-bottom: 1rem !important;
}

#asc-email-mockup-modal .form-control {
    width: 100%;
    height: 58px;
    min-height: 58px;
    padding: 0 1.25rem;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #212529;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.4;
    box-shadow: none;
}

#asc-email-mockup-modal .form-control::placeholder {
    color: #737373;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 400;
    opacity: 1;
}

#asc-email-mockup-modal .form-control:focus {
    outline: 1px solid #b00000;
    box-shadow: none;
}


/* ==========================================================
   EMAIL MOCKUP MODAL BUTTON
========================================================== */

#asc-email-mockup-modal [data-asc-email-mockup-submit] {
    width: auto;
    min-width: 210px;
    margin-top: 0.25rem;
    padding: 1rem 1.75rem;
    border: 0;
    border-radius: 0;
    background: #b00000;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#asc-email-mockup-modal [data-asc-email-mockup-submit]:hover,
#asc-email-mockup-modal [data-asc-email-mockup-submit]:focus {
    background: #8f0000;
    color: #fff;
}


/* ==========================================================
   EMAIL MOCKUP MODAL MESSAGES
========================================================== */

#asc-email-mockup-modal .alert {
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
}


/* ==========================================================
   EMAIL MOCKUP MODAL - MOBILE
========================================================== */

@media (max-width: 767.98px) {

    #asc-email-mockup-modal .modal-dialog {
        margin: 1rem;
    }

    #asc-email-mockup-modal .modal-header {
        padding: 1.5rem 1.25rem 1rem;
    }

    #asc-email-mockup-modal .modal-title {
        font-size: 1.75rem;
    }

    #asc-email-mockup-modal .modal-body {
        padding: 1.5rem 1.25rem;
    }

    #asc-email-mockup-modal .form-control,
    #asc-email-mockup-modal .form-control::placeholder {
        font-size: 1rem;
    }

}


/* ==========================================================
   END EMAIL MOCKUP MODAL
========================================================== */


