/**
 * Grid
 */
.mswp {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    align-items: start; /* center */
}

.mswp-preview {
    flex: 1;
    margin-right: 4rem;
}

.mswp-sidebar {
    flex-basis: 260px;
    max-width: 260px;
}

@media (max-width: 608px) {
    .mswp-preview,
    .mswp-sidebar {
        flex-basis: 100%;
        max-width: 100%;
    }

    .mswp-preview {
        margin-right: 2rem;
    }
}

/**
 * Main
 */
.mswp {
    /*
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    margin: 0 auto;
    */
}

.mswp-success {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, .7);
    z-index: 2;
}

.mswp.is-success .mswp-success {
    display: flex;
}

/**
 * Preview
 */
.mswp-preview {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

/**
 * Preview / Area
 */
.mswp-preview-area {
    display: grid;
    grid-template-columns: 30px auto;
    grid-template-rows: 30px auto;
    justify-content: center;
    align-items: center;
}

/**
 * Preview / Loading
 */
.mswp-preview-loading {
    grid-column: 1/2;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

/**
 * Preview / Width & Height
 */
.mswp-preview-width {
    grid-column: 2/3;
    padding-top: 1rem;
}

.mswp-preview-height {
    padding-left: 1rem; /* "left", потому что блок у нас перевёрнут вверх тормашками */
    transform: rotate(180deg);
    writing-mode: vertical-lr;
}

.mswp-preview-width,
.mswp-preview-height {
    width: 100%;
    height: 100%;
    font-size: .85em;
    line-height: 1em;
    text-align: center;
    white-space: nowrap;
}

/**
 * Preview / Image
 */
.mswp-preview-image {
    box-sizing: content-box;
    position: relative;
    width: 250px;
    height: 150px;
    border: 1px dashed #5a5a5a;
    overflow-x: hidden;
    overflow-y: hidden;
    cursor: grab;
    user-select: none;
    overflow-scrolling: auto;
    -webkit-overflow-scrolling: auto;
}

.mswp-preview-image:active {
    cursor: grabbing;
}

.mswp-preview-image-strips {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAACCAYAAAAqyZ49AAAAGklEQVQYlWNkGKRA8CvDZgYGBgamgXYIIQAAI+gBvRSD0/gAAAAASUVORK5CYII=') repeat 0 0 transparent;
    background-size: 10%;
    z-index: 2;
}

.mswp_strips .mswp-preview-image-strips {
    display: block;
}

.mswp-preview-image-canvas {
}

.mswp-preview-image-canvas canvas {
    display: block;
    /*touch-action: none;*/
    user-select: none;
}

.mswp_flip .mswp-preview-image-canvas canvas {
    -moz-transform: scale(-1, 1);
    -webkit-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    transform: scale(-1, 1);
    /*filter: FlipH;*/
}

.mswp_grayscale .mswp-preview-image-canvas canvas {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: grayscale(100%);
    filter: gray; /* IE 6-9 */
}

/**
 * Preview / Buttons
 */
.mswp-preview-buttons {
    grid-column: 2/3;
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    padding: 0 0 0 30px;
    margin: .4rem 0;
    justify-content: center;
    align-items: center;
}

.mswp-preview-buttons__item {
    display: block;
    flex-basis: 100px;
    max-width: 100px;
    margin: .4rem;
}

/**
 * Sidebar
 */
.mswp-sidebar {
    padding: 2rem;
    margin-top: 3rem;
    border: 1px solid #d3d3d3;
    /*text-align: center;*/
}

.mswp-sidebar-header {
    padding: 0;
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
    font-size: 1.1em;
    font-weight: 400;
    line-height: 1.4em;
    text-align: center;
    text-transform: uppercase;
}

/**
 * Sidebar / Fieldset
 */
.mswp-sidebar-fieldset {
    display: flex;
    flex-flow: row;
    margin: 1.2rem 0;
}

.mswp-sidebar-fieldset__col {
 /*  ***   flex-basis: 50%;  */
 /*  ***  max-width: 50%;  */
}

.mswp-sidebar-fieldset__col:first-child {
    padding-right: 1rem;
}

.mswp-sidebar-fieldset__col:last-child {
    padding-left: 1rem;
}

/**
 * Sidebar / Size
 */
.mswp-sidebar-size {
    padding: 0;
    margin: 1.2rem 0;
    color: #444;
    font-size: 1.1em;
    font-weight: 400;
    line-height: 1.4em;
    text-align: center;
}

/**
 * Sidebar / Min size
 */
.mswp-sidebar-min-size {
    padding: 0;
    margin: 1.2rem 0;
    color: #444;
    font-size: 1em;
    font-weight: 400;
    line-height: 1.4em;
    text-align: center;
}

/**
 * Sidebar / Cost & Price
 */
.mswp-sidebar-cost {
    margin: 1.4rem 0 .5rem;
    font-size: 1.4em;
    font-weight: 500;
    line-height: 1.4em;
}

.mswp-sidebar-price {
    margin: .5rem 0 1.4rem;
    color: #444;
    font-size: 1.2em;
    /* font-weight: 300; */
    line-height: 1.4em;
}

/**
 * Sidebar / Add to cart
 */
.mswp-sidebar-addtocart {
    display: block;
    padding: 0;
    margin: 1.4rem 0 0;
}

.mswp.is-success .mswp-sidebar-addtocart {
    display: none;
}

.mswp-button-addtocart {
    display: block;
    margin: 1rem 0;
}

/**
 * Sidebar / Go to cart
 */
.mswp-sidebar-gotocart {
    display: none;
    position: relative;
    padding: 0;
    margin: 1.4rem 0 0;
    z-index: 3;
}

.mswp.is-success .mswp-sidebar-gotocart {
    display: block;
}

.mswp-sidebar-gotocart__success {
    display: block;
    margin: 1rem 0;
    color: green;
    /*font-weight: 500;*/
}

.mswp-sidebar-gotocart__success-svg {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    margin-bottom: 1px;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
    vertical-align: middle;
}

.mswp-button-gotocart {
    display: block;
    margin: 1rem 0;
}

.mswp-button-continue {
    display: block;
    margin: 1rem 0;
}

/**
 * Sidebar Hint
 */
.mswp-sidebar-hint {
    margin: 1.4rem 0;
    color: #999;
    font-size: .85em;
    line-height: 1.4em;
}

/**
 * Sidebar Strips
 */
.mswp-sidebar-strips {
    margin: 1.4rem 0;
}

/**
 * Sidebar Comment
 */
.mswp-sidebar-comment {
    margin: 1.2rem 0 0;
}

/**
 * Inputs
 */
.mswp label {
    display: block;
    margin: 0;
    color: #0a0a0a;
    font-size: .9em;
    font-weight: 400;
    line-height: 1.6em;
}

.mswp input[type="text"],
.mswp input[type="number"],
.mswp textarea {
    transition: box-shadow .5s, border-color .25s ease-in-out;
    display: block;
    width: 100%;
    background-color: #fefefe;
    padding: .6rem;
    margin: 0;
    border: 1px solid #cacaca;
    border-radius: 0;
    box-shadow: inset 0 1px 2px hsla(0, 0%, 4%, .1);
    color: #0a0a0a;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.4em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.mswp input[type="text"]:focus,
.mswp input[type="number"]:focus,
.mswp textarea:focus {
    transition: box-shadow .5s, border-color .25s ease-in-out;
    background-color: #fefefe;
    border: 1px solid #8a8a8a;
    box-shadow: 0 0 5px #cacaca;
    outline: none;
}

/**
 * Buttons
 */
.mswp-button,
.mswp-button:hover,
.mswp-button:focus {
    outline: none;
    transition: box-shadow .5s, border-color .25s ease-in-out, background-color .25s ease-in-out;
    display: block;
    width: 100%;
    background-color: transparent;
    padding: 1.2rem 1rem;
    border: 1px solid currentColor;
    font-size: .9em;
    font-weight: 400;
    line-height: 1.2em;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.mswp-button_primary {
    background-color: #5a6075;
    border-color: #5a6075;
    color: #fff;
}

.mswp-button_primary:hover,
.mswp-button_primary:focus {
    background-color: #7e96ad;
    border-color: #7e96ad;
    color: #fff;
}

.mswp-button_secondary,
.mswp-button_secondary:hover {
    background-color: #fff;
    border-color: #000;
    color: #000;
}

.mswp-button_secondary.is-active {
    box-shadow: inset 0 0 0 2px #000;
}

/**
 * Preloader
 */
.mswp-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, .7);
    z-index: 2;
    justify-content: center;
    align-items: center;
}

.mswp.is-loading .mswp-loading {
    /*display: flex;*/
}

.mswp-loading-spinner {
    display: none;
    position: relative;
    z-index: 9;
}

.mswp.is-loading .mswp-loading-spinner {
    display: block;
}

.mswp-loading-spinner-icon {
    width: 17px;
    height: 17px;

    border: solid 2px transparent;
    border-top-color: #777;
    border-left-color: #777;
    border-radius: 50%;

    -webkit-animation: loading-spinner 400ms linear infinite;
    -moz-animation: loading-spinner 400ms linear infinite;
    -ms-animation: loading-spinner 400ms linear infinite;
    -o-animation: loading-spinner 400ms linear infinite;
    animation: loading-spinner 400ms linear infinite;
}

@-webkit-keyframes loading-spinner {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-moz-keyframes loading-spinner {
    0% {
        -moz-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -moz-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-o-keyframes loading-spinner {
    0% {
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-ms-keyframes loading-spinner {
    0% {
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes loading-spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/**
 * Others
 */
.mswp hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid #d3d3d3;
}