/* Options selector(checkbox) */
body.sizechart-templates-edit,
.options-listing {
    border: 1px solid #d1d1d1;
    margin: 0 0 3rem;
    max-width: 70rem;
    padding: 1rem;
}

body.sizechart-templates-edit,
.options-listing-top {
    display: flex;
    margin: 0 0 1rem;
    justify-content: space-between;
}

body.sizechart-templates-edit,
span.draggable-handle {
    cursor: default !important;
    display: inline-block;
    padding: 0 1rem 0 0;
}

body.sizechart-templates-edit,
.options-listing-title-block {
    display: flex;
}

body.sizechart-templates-edit,
.options-listing-title {
    display: inline;
    font-size: 1.8rem;
}

body.sizechart-templates-edit,
.options-listing-block {
    display: inline-block;
    margin-left: 1rem;
    line-height: 2.3rem;
}

body.sizechart-templates-edit,
ul.sizechart-options {
    font-size: 0;
}

body.sizechart-templates-edit,
li.sizechart-option {
    box-sizing: border-box;
    display: inline-block;
    font-size: 1.4rem;
    padding: 0 0.5rem 1rem 0;
    width: 33.33%;
}

body.sizechart-templates-edit li.sizechart-option label.error:before {
    border: 1px solid tomato;
}

body.sizechart-templates-edit #gn-template.error {
    border: 1px solid tomato;
}

body.sizechart-templates-edit,
.gn-template {
    margin: auto;
    width: 44%;
    padding: 10px;
}

body.sizechart-templates-edit,
button#gn-template {
    font-size: 1.6rem;
    letter-spacing: .025em;
    padding-bottom: 0.6875em;
    padding-top: 0.6875em;
}

/* custom size chart fieldset */
body.sizechart-templates-edit,
li:has(#tab_custom_template) {
    display: none;
}

body.sizechart-templates-edit,
#custom-template-grid {
    width: 70%;
    overflow: hidden;
    overflow-y: auto;
    height: 615px;
}

body.mpsizecharttemplate-templates-edit #custom-template-grid tbody td .delete-icon:after {
    content: '\e630';
    font-family: 'Admin Icons';
    float: right;
    line-height: 32px;
    font-size: 18px;
    cursor: pointer;
}

body.sizechart-templates-edit,
#custom-template-grid .admin__control-table tbody td {
    vertical-align: middle;
}

/* Size chart matrix */
#chart_matrix {
    margin: 0 0 3rem;
    max-width: 72rem;
    padding: 1rem;
    overflow: auto;
    margin: auto;
}

.chart-table thead td {
    background-color: #514943;
    border-color: #514943;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
}

.chart-table td {
    padding: 18px;
    text-align: center;
}

.chart-table tbody tr:nth-child(odd) td:first-child,
.chart-table tbody tr:nth-child(even) td:first-child {
    background-color: #ccc;
    font-weight: bold;
    text-align: center;
}

body.sizechart-templates-edit .chart-table tbody tr:nth-child(odd) td:first-child,
body.sizechart-templates-edit .chart-table tbody tr:nth-child(even) td:first-child {
    cursor: n-resize;
}

.chart-table tbody tr:nth-child(odd) td {
    background-color: #eee;
}

table.chart-table {
    text-transform: uppercase;
    margin: auto;
    float: left;
    width: fit-content;
}

#chart_matrix .chart-table tbody .wk-sm-value.error {
    border-bottom: 1px solid tomato;
}

#chart_matrix .chart-table tbody tr:nth-child(odd) td input {
    background-color: #eee;
}

#chart_matrix .chart-table tbody .wk-sm-value {
    text-align: center;
    width: 7rem;
    min-width: 7rem;
}

/* .chart-table tr:last-child td {
    border-bottom: 0.1rem solid #d6d6d6;
} */


/* Measurement save */
#image-uploader-container .admin__field {
    margin-left: -30px;
}

#image-uploader-container .admin__field-label {
    width: calc((100%) * 0.25 - 30px);
    float: left;
    margin-left: 30px;
}

#image-uploader-container .admin__field-control {
    width: calc((100%) * 0.5 - 30px);
    float: left;
    margin-left: 30px;
}

/* Frontend PDP */
body.catalog-product-view .modal-inner-wrap:has(#chart_matrix) {
    width: 55%;
}

body.catalog-product-view table.chart-table {
    float: inherit;
}

/* body.catalog-product-view span.wk_size_chart_button {
    color: #006bb4;
    border: 1px solid #006bb4;
    padding: 6px 7px;
    cursor: pointer;
} */
body.catalog-product-view button.wk_size_chart_button {
    line-height: 2.2rem;
    padding: 14px 17px;
    font-size: 1.4rem;
    border: 1px solid #006bb4;
    background-color: #ffffff;
    color: #006bb4;
    padding-right: 45px;
}

body.catalog-product-view button.wk_size_chart_button:after {
    content: '';
    background-image: url(../images/sizechart-icon.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    position: absolute;
    width: 35px;
    height: 25px;
}

body.catalog-product-view #chart_matrix .tab_sizes_buttons_container.nav {
    border: solid #bbbbbb 1px;
    height: 40px;
    margin: 0 auto 20px auto;
    box-sizing: content-box;
}

body.catalog-product-view #chart_matrix a.tab_sizes_button.sizes_chart.active {
    color: #ffffff !important;
    background-color: #514943;
}

body.catalog-product-view #chart_matrix a.tab_sizes_button {
    height: 100%;
    float: left;
    font-size: 20px;
    text-transform: uppercase;
    text-align: center;
    color: #514943;
    font-weight: 600;
    padding: 5px;
    box-sizing: border-box;
    width: 50%;
    text-decoration: none;
    cursor: pointer;
}

body.catalog-product-view #custom_size_chart .container-header {
    border-bottom: 1px solid #e9ecef;
}

body.catalog-product-view #custom_size_chart h5.header-title {
    font-size: 18px;
    font-weight: 400;
}

body.catalog-product-view #custom_size_chart .container-body .row {
    display: flex;
}

body.catalog-product-view #custom_size_chart .container-body h3.text-left {
    font-size: 25px;
    margin-top: 0;
}

body.catalog-product-view #custom_size_chart .container-body .row .col-5 {
    padding: 0 10px;
}

body.catalog-product-view #custom_size_chart .container-body .row .col-5:has(div) {
    width: 48%;
}

body.catalog-product-view #custom_size_chart .container-body .row .col-5:has(div)+.col-7 {
    width: 52%;
}

body.catalog-product-view #custom_size_chart .container-body .row .col-7 {
    padding: 0 10px;
    padding-left: 25px;
}

body.catalog-product-view #custom_size_chart .container-body #measurements_title_holder {
    margin-left: 35px;
    margin-right: 35px;
    font-size: 22px;
    font-weight: 400;
}

body.catalog-product-view #custom_size_chart .container-body .measurements_heading_grey {
    padding-top: 5px;
    padding-bottom: 5px;
    display: block;
    text-align: center;
    background-color: #f2f2f2;
}

body.catalog-product-view #custom_size_chart .container-body .col-7 .row {
    flex-wrap: wrap;
}

body.catalog-product-view #custom_size_chart .container-body .col-7 .row .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

body.catalog-product-view #custom_size_chart .container-body #custom_measurements .form-group {
    margin-bottom: 30px;
    line-height: 1;
    width: 80%;
}

body.catalog-product-view #custom_size_chart .container-body .form-group.inputActive::before {
    content: '\e601';
    font-family: 'luma-icons';
    font-size: 20px;
    line-height: 26px;
    position: relative;
    right: 25px;
    top: 25px;
    color: #007bff;
}

body.catalog-product-view #custom_size_chart .container-body .form-group.inputComplete::before {
    content: '\e60e';
    font-family: 'luma-icons';
    color: green;
    font-size: 23px;
}

body.catalog-product-view #custom_size_chart .container-body .form-group.inputIncomplete::before {
    content: '\e61f';
    font-family: 'luma-icons';
    color: #b30000;
    font-size: 23px;
}

body.catalog-product-view #custom_size_chart .container-body .form-group::before {
    content: '\e602';
    font-family: 'luma-icons';
    font-size: 21px;
    position: relative;
    right: 25px;
    top: 25px;
    line-height: 25px;
}

body.catalog-product-view #custom_size_chart .container-body #custom_measurements label {
    padding-top: 5px;
    padding-bottom: 5px;
    display: block;
    text-align: center;
    background-color: #f2f2f2;
    font-size: 15px;
}

body.catalog-product-view #custom_size_chart .container-body #custom_measurements .inputWrapper input {
    text-align: center;
    border-radius: 6px;
}

body.catalog-product-view #custom_size_chart .container-body #custom_measurements .inputWrapper input[readonly] {
    background-color: #e9ecef;
}

body.catalog-product-view #custom_size_chart .container-body #custom_measurements .inputWrapper input[readonly]:focus {
    box-shadow: none;
}

body.catalog-product-view #custom_size_chart .container-body .row .col-7 h5 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
}

body.catalog-product-view #custom_size_chart .container-body .row .col-7 .size-options {
    padding-left: 10px;
    margin-bottom: 20px;
}

body.catalog-product-view #custom_size_chart .container-body .row .col-7 .form-check-inline {
    display: inline-block;
    margin-right: 0.75rem;
}

body.catalog-product-view #custom_size_chart .container-body .row .col-7 .form-check {
    margin-top: 10px;
}

body.catalog-product-view #custom_size_chart .container-body .row .col-7 .form-check p {
    font-size: 13px;
}

body.catalog-product-view #custom_size_chart .container-body .row .col-7 #custom_measures_save {
    margin-left: 25%;
    background-color: #514943;
    border-color: #514943;
    color: #ffffff;
    padding: 5px 15px;
    font-weight: 500;
    text-decoration: none;
}

body.catalog-product-view #custom_size_chart .container-body .measurements_heading_grey.note {
    font-size: 15px;
    font-weight: 400;
}

body.catalog-product-view #custom_size_chart .container-body .wk_display_none {
    display: none;
}

/* Hide all steps by default: */
.tab {
    display: none;
}

/* Make circles that indicate the steps of the form: */
.step {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbbbbb;
    border: none;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.5;
}

.step.active {
    opacity: 1;
}

/* Mark the steps that are finished and valid: */
.step.finish {
    background-color: #1979c3;
}

#custom_customer_sizes {
    display: flex;
    align-items: center;
}

@media screen and (min-width: 726px) and (max-width: 736px) {
    a.tab_sizes_button.sizes_chart {
        height: 4.5rem !important;
        width: 100% !important;
    }
}

@media (max-width: 736px) {
    a.tab_sizes_button.sizes_chart {
        border: solid #bbbbbb 1px;
        width: 100% !important;
    }

    [chart-type="#custom_size_chart"] {
        margin-bottom: 20px;
    }

    body.catalog-product-view #chart_matrix .tab_sizes_buttons_container.nav {
        border: none;
    }

    #custom_size_chart {
        margin-bottom: 10px;
    }
}

@media (max-width: 881px) {
    body.catalog-product-view #chart_matrix a.tab_sizes_button {
        width: 100%;
        border: solid #bbbbbb 1px;
    }

    [chart-type="#custom_size_chart"] {
        margin-bottom: 20px;
    }
}

@media (max-width: 540px) {
    .tab_sizes_buttons_container.nav {
        display: table-row;
    }
}

@media (max-width: 768px) {
    body.catalog-product-view #custom_size_chart .container-body .row {
        display: block;
    }
    body.catalog-product-view #custom_size_chart .container-body #custom_measurements .form-group {
        width: max-content;
    }
    #custom_size_chart {
        width: fit-content;
    }
}
@media (max-width: 1190px) {
    body.catalog-product-view #custom_size_chart .container-body .col-7 .row .col-md-6 {
        flex: 0 0 75%;
        max-width: 75%;
    }
}