@charset "utf-8";

/* windows */

.bttn_window { cursor: pointer; }

.overlay_w {
    background: rgba(0,0,0,0.4);
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.w_wrapper {
    width: 100%;
    max-height: 100%;
}

.w_container { padding: 3rem; }
.overlay_w:not(.show_on_load) { display: none; }
.overlay_w.show_on_load { display: flex; }

*[class^=window_] {
    background: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 0.0625rem 0.25rem rgba(0,0,0,0.4);
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%rem;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: none;
    position: relative;
    margin: auto;
}

@media screen and (min-width: 35.75em) {
    
    *[class^=window_] {
        width: 32.5rem;
        max-width: 100%;
    }

}

.overlay_w *[class^=window_] { display: block; }

*[class^=window_] > .inner {
    position: relative;
    max-height: 100%;
    padding: 2rem;
}

*[class^=window_] img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}

*[class^=window_] .close_bttn, .panel .close_bttn {
    background: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: absolute;
    z-index: 1;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
}

*[class^=window_] .close_bttn span { display: none; }

*[class^=window_] .close_bttn::before, .panel .close_bttn::before {
    content: '';
    background: url(../images/sprite.svg#close_button) center / cover no-repeat;
    display: block;
    width: 1rem;
    height: 1rem;
    opacity: 0.3;
    transition: opacity 0.2s linear, transform 0.2s ease-out;
}

*[class^=window_] .close_bttn:hover::before, .panel .close_bttn:hover::before {
    opacity: 0.7;
    transform: rotate(90deg);
}

/* login window etc. */

@media screen and (min-width: 27.5em) {
    
    *[class^=window_].mid_width {
        width: 25rem;
        max-width: 100%;
    }

}

*[class^=window_].titled_window .close_bttn {
    top: 1.5rem;
    right: 1.5rem;
}

.wndw_title {
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.25;
    padding: 0.125 2rem 0 0;
    margin-bottom: 1rem;
}

*[class^=window_] .fieldset input[type=text], *[class^=window_] .fieldset input[type=password],
*[class^=window_] .fieldset input[type=tel], *[class^=window_] .fieldset input[type=email], *[class^=window_] .fieldset select { width: 100%; }
*[class^=window_] .controls .button, *[class^=window_] .controls input { flex: 1; }

.show_psswd {
    background: url(../images/sprite.svg#eye_hide) center / cover no-repeat;
    text-indent: -999rem;
    overflow: hidden;
    position: absolute;
    top: 0;
    right: 0;
    width: 2.25rem;
    height: 2.25rem;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s linear;
}

.psswd_vsbl .show_psswd { background: url(../images/sprite.svg#eye_show) center / cover no-repeat; }
.show_psswd:hover { opacity: 1; }

*[class^=window_] .controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1rem;
}

.under_form {
    border-top: solid 0.0625rem #ebebeb;
    font-size: 0.875rem;
    line-height: 1.25;
    padding: 1rem 2rem 0 2rem;
    margin: 1rem -2rem 0 -2rem;
}

.window_login .text_reg {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.text_reg a:hover { text-decoration: none; }

.text_reg i {
    display: block;
    background: #ebebeb;
    width: 0.0625rem;
    height: 1rem;
    margin: 0 0.5rem;
}

.note {
    font-size: 0.75rem;
    line-height: 1.25;
    color: #999;
}

.window_login .text_reg + .note { margin-top: 1rem; }

/* modal */

*[class^=window_].modal .inner { padding-top: 1rem; }

.wndw_modal_title {
    background: #fbfbfb;
    font-size: 1.125rem;
    font-weight: 700;
    min-height: 3rem;
    padding: 0.9375rem 5rem 0.9375rem 2rem;
    box-sizing: border-box;
}

*[class^=window_].modal .close_bttn {
    background: none;
    top: 0.25rem;
}

*[class^=window_].modal p {
    line-height: 1.25;
}

/* cart */

.window_cart:not(.empty) { width: 100%; }
@media screen and (min-width: 50.875em) { .window_cart:not(.empty) { width: 46.25rem; } }


.window_cart:not(.empty) .inner { padding: 0; }

.window_cart .cart_title {
    background: #fdc101;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    height: 3rem;
    padding: 0 2.5rem;
}

.window_cart:not(.empty) .close_bttn {
    background: none;
    top: 0.3125rem;
}

.window_cart:not(.empty) .close_bttn::before { opacity: 0.5; }
.window_cart:not(.empty) .close_bttn:hover::before { opacity: 0.7; }

@media screen and (max-width: 63.9375em) { /* 1023 */
    
    .w_container { padding: 5%; }
    .overlay_w { top: 3.125rem; }
    
}

/* custom scrollbar */

.overlay_w .mCustomScrollBox.mCSB_vertical  { width: 100%; }

.overlay_w .mCustomScrollBox:hover > .mCSB_scrollTools { opacity: 0.75; }

.overlay_w .mCSB_scrollTools_vertical {
    width: 1rem;
    transition: opacity 0.2s linear;
}

.overlay_w .mCSB_inside > .mCSB_container { margin-right: 0; }
.overlay_w .mCustomScrollBox .mCSB_scrollTools:hover { opacity: 1; }
.mobile .overlay_w .mCSB_scrollTools_vertical { width: 0; }
.overlay_w .mCSB_draggerContainer, .overlay_w .mCSB_scrollTools_vertical .mCSB_dragger { position: relative; }

.overlay_w .mCSB_draggerContainer::after {
    content: '';
    background: #666;
    border-radius: 0.125rem;
    position: absolute;
    top: 0.25rem;
    left: 0.375rem;
    right: 0.375rem;
    bottom: 0.25rem;
}

.overlay_w .mCSB_scrollTools_vertical .mCSB_dragger::after {
    content: '';
    background: #efefef;
    border-radius: 0.125rem;
    display: block;
    position: absolute;
    top: 0.25rem;
    left: 0.375rem;
    right: 0.375rem;
    bottom: 0.25rem;
}