/************************
Breadcrumbs
 ************************/

.single-product .x-crumbs .x-crumbs-list > *:last-child {
    display: none !important;
}

/************************
 Related product color swatches
 ************************/

.single-product .products .mt-color-swatches {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    padding-left: 2px;
}

.single-product .products .mt-swatch-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 28px;
    padding: 0 10px;
    border: 1px solid #d8dce2;
    border-radius: 999px;
    background: #f5f6f8;
    color: #07111f;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.single-product .products .mt-swatch-more:hover,
.single-product .products .mt-swatch-more:focus-visible {
    border-color: #07111f;
    background: #ffffff;
    color: #07111f;
    outline: none;
}

/************************
 Variation selectors
 ************************/

.woo-variation-swatches .wvs-style-rounded.variable-items-wrapper .variable-item:not(.radio-variable-item) .variable-item-span {
    line-height: 2;;
}

/* Product variation swatches with longer labels, such as "One Size". */
.single-product .variable-items-wrapper .variable-item.button-variable-item {
    width: auto !important;
    min-width: 50px !important;
    height: auto !important;
    min-height: 40px !important;
    padding: 0 8px !important;
}

.single-product .variable-items-wrapper .variable-item.button-variable-item .variable-item-contents {
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-product .variable-items-wrapper .variable-item.button-variable-item .variable-item-span {
    line-height: 1.15 !important;
    white-space: normal;
    text-align: center;
}

/************************
 Product description
 ************************/
.single-product .x-wc-add-to-cart-form + .x-text-headline + .x-text.x-content,
.single-product .x-wc-add-to-cart-form + .x-text-headline + .x-text.x-content p {
    font-size: 1.2rem !important;
}

/************************
 Product sets bundle price
 ************************/

 .woosb-summary.woosb-text {
    display: none !important;
 }

/************************
 PDP product badges
 ************************/
.single-product .x-col:has(> .mt-card-badges-shortcode + .x-wc-product-gallery) {
    position: relative;
}

.single-product .x-col:has(> .mt-card-badges-shortcode + .x-wc-product-gallery) > .mt-card-badges-shortcode {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    pointer-events: none;
}

.single-product .mt-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 6px;
    border-radius: 0;
    background: #000000;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

/************************
 PDP price block
 ************************/

.mt-pdp-price-block {
    display: grid;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    color: #07111f;
}

.mt-pdp-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.mt-pdp-price-current {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #07111f;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.mt-pdp-price-regular {
    color: #808080;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
}

.mt-pdp-price-omnibus {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    color: #808080;
    font-size: 11px;
    font-weight: 300;
    line-height: 1.25;
}

.mt-pdp-price-omnibus .wc-price-history-shortcode,
.mt-pdp-price-omnibus .wc-price-history-lowest-inner,
.mt-pdp-price-omnibus .wc-price-history.prior-price.lowest {
    display: inline;
    width: auto;
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-decoration: none;
}

.mt-pdp-price-omnibus .woocommerce-Price-amount,
.mt-pdp-price-omnibus .wc-price-history.prior-price-value,
.mt-pdp-price-omnibus .wc-price-history-lowest-raw-value {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-decoration: none;
}

/************************
 PDP promotions
 ************************/
.mt-pdp-promotions {
    display: grid;
    gap: 8px;
    width: 100%;
    margin: 12px 0 18px;
}

.mt-pdp-promotions-mobile {
    display: none;
}

.mt-pdp-promotion {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 5px 14px;
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #e4e7ec;
    border-radius: 4px;
    background: #f5f6f8;
    color: #07111f;
}

.mt-pdp-promotion-main,
.mt-pdp-promotion-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mt-pdp-promotion-main {
    grid-column: 1;
    grid-row: 1;
    flex-wrap: wrap;
}

.mt-pdp-promotion-label {
    order: 1;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.mt-pdp-promotion-discount {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 4px;
    background: #07111f;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.mt-pdp-promotion-code {
    order: 2;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.mt-pdp-promotion-meta {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    color: #344054;
    font-size: 12px;
    line-height: 1.25;
    text-align: right;
}

.mt-pdp-promotion-copy {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 1px solid #07111f;
    border-radius: 4px;
    background: transparent;
    color: #07111f;
    cursor: pointer;
}

.mt-pdp-promotion-copy:hover,
.mt-pdp-promotion-copy:focus-visible {
    border-color: #07111f;
    background: #07111f;
    color: #ffffff;
    outline: none;
}

.mt-pdp-promotion-copy:hover .mt-pdp-promotion-copy-icon,
.mt-pdp-promotion-copy:focus-visible .mt-pdp-promotion-copy-icon {
    filter: invert(1);
}

.mt-pdp-promotion-copy-icon {
    display: block;
    width: 18px;
    height: 18px;
}

.mt-pdp-promotion-copy-icon-copied,
.mt-pdp-promotion-copy.is-copied .mt-pdp-promotion-copy-icon-default {
    display: none;
}

.mt-pdp-promotion-copy.is-copied .mt-pdp-promotion-copy-icon-copied {
    display: block;
}

.mt-pdp-promotion-sale {
    grid-template-columns: minmax(0, 1fr);
}

.mt-pdp-promotion-sale .mt-pdp-promotion-main,
.mt-pdp-promotion-sale .mt-pdp-promotion-meta {
    grid-column: 1;
}

.mt-pdp-promotion-sale .mt-pdp-promotion-main {
    justify-content: flex-start;
}

.mt-pdp-promotion-sale .mt-pdp-promotion-label {
    white-space: normal;
}

.mt-pdp-promotion-sale .mt-pdp-promotion-discount {
    order: 2;
    margin-left: 0;
    text-align: left;
}

.mt-pdp-promotion-sale .mt-pdp-promotion-meta {
    justify-content: flex-start;
    text-align: left;
}

.mt-pdp-promotion-sale [data-mt-promo-countdown] {
    font-weight: 700;
}

@media (max-width: 560px) {
    .mt-pdp-promotion {
        grid-template-columns: minmax(0, 1fr) 34px;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 5px 10px;
    }

    .mt-pdp-promotion-main {
        grid-column: 1;
        grid-row: 1;
    }

    .mt-pdp-promotion-meta {
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-start;
        text-align: left;
    }

    .mt-pdp-promotion-copy {
        grid-column: 2;
        grid-row: 1 / span 2;
        height: 100%;
        min-height: 0;
    }
}

/************************
 Complete the set
 ************************/
.mt-complete-set {
    width: 100%;
    margin: 26px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    color: #07111f;
}

.mt-accordion + .mt-complete-set {
    margin-top: 0;
    padding-top: 24px;
    border-top: 0;
}

.mt-complete-set-title {
    margin: 0 0 16px;
    color: #07111f;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

.mt-complete-set-product {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 18px;
}

.mt-complete-set-media {
    display: block;
    background: #f5f6f8;
}

.mt-complete-set-image {
    display: block;
    width: 84px;
    height: 112px;
    object-fit: cover;
}

.mt-complete-set-name {
    display: inline-block;
    color: #07111f;
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.125;
    text-decoration: none;
}

.mt-complete-set-name:hover,
.mt-complete-set-name:focus-visible {
    color: #004f91;
    outline: none;
}

.mt-complete-set-color {
    margin-top: 6px;
    color: #344054;
    font-size: 13px;
    line-height: 1.4;
}

.mt-complete-set-color span {
    color: #07111f;
    font-weight: 700;
}

.mt-complete-set-form .variations {
    width: 100%;
    margin: 0 0 12px;
    border: 0;
}

.mt-complete-set-form .variations tbody {
    display: block;
}

.mt-complete-set-form .variations tr,
.mt-complete-set-form .variations th,
.mt-complete-set-form .variations td {
    display: block;
    padding: 0;
    border: 0;
}

.mt-complete-set-form .variations tr {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.mt-complete-set-form .variations tr + tr {
    margin-top: 10px;
}

.mt-complete-set-form .variations .label {
    color: #07111f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.mt-complete-set-form .variations select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #07111f;
    border-radius: 4px;
    background-color: #ffffff;
    color: #07111f;
    font-size: 14px;
    line-height: 1.2;
}

.mt-complete-set-form .reset_variations,
.mt-complete-set-form .woocommerce-variation-description,
.mt-complete-set-form .woocommerce-variation-price,
.mt-complete-set-form .woocommerce-variation-availability {
    display: none !important;
}

.mt-complete-set-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    border: 1px solid #07111f !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    color: #07111f !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mt-complete-set-button:hover,
.mt-complete-set-button:focus-visible {
    background: #07111f !important;
    color: #ffffff !important;
    outline: none;
}

.mt-complete-set-button-price::after {
    content: "\00b7";
    margin-left: 8px;
}

@media (max-width: 479px) {
    .mt-complete-set-form .variations tr {
        grid-template-columns: 44px minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .mt-pdp-promotions {
        margin: 0 calc(50% - 50vw) 18px;
        width: 100vw;
    }

    .mt-pdp-promotions-desktop {
        display: none;
    }

    .mt-pdp-promotions-mobile {
        display: grid;
    }

    .mt-pdp-promotion {
        border-radius: 0;
        padding: 14px 20px;
    }

    .mt-pdp-promotion-main {
        width: 100%;
    }

    .mt-pdp-promotion-code {
        overflow-wrap: anywhere;
    }

    .mt-pdp-promotion-meta {
        justify-content: space-between;
        width: 100%;
        text-align: left;
    }
}

@media (min-width: 768px) {
    .mt-pdp-promotions-mobile {
        display: none;
    }
}

/************************
 Product gallery lightbox
 ************************/
.medviewer,
.medviewer.open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 24px;
    background: #f5f6f8 !important;
    cursor: zoom-out;
    overflow: hidden;
}

.medviewer {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.medviewer.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.medviewer img {
    display: block;
    width: auto;
    max-width: min(100%, 1320px);
    height: auto;
    max-height: calc(100vh - 48px);
    object-fit: contain;
    box-shadow: 0 18px 48px rgba(7, 17, 31, 0.12);
}

.pswp__bg {
    background: #f5f6f8 !important;
    opacity: 1 !important;
}

.pswp__top-bar,
.pswp__caption {
    background: rgba(245, 246, 248, 0.92) !important;
}

.pswp__counter {
    color: #07111f !important;
}

.pswp__button {
    filter: invert(1) grayscale(1) contrast(1.4);
    opacity: 0.9 !important;
}

.pswp__button:hover,
.pswp__button:focus-visible {
    opacity: 1 !important;
}

/************************
 Product gallery navigation
 ************************/
.woocommerce-product-gallery .flex-direction-nav {
    display: none !important;
}

@media (min-width: 768px) {
    .woocommerce-product-gallery {
        position: relative;
    }

    .woocommerce-product-gallery .flex-viewport {
        position: relative;
    }

    .woocommerce-product-gallery .flex-direction-nav {
        position: absolute;
        top: 50%;
        right: 0;
        left: 0;
        z-index: 20;
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        pointer-events: none;
        transform: translateY(-50%);
    }

    .woocommerce-product-gallery .flex-direction-nav li {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .woocommerce-product-gallery .flex-direction-nav a {
        position: absolute;
        top: 50%;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px !important;
        height: 44px !important;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.94) !important;
        box-shadow: 0 8px 22px rgba(7, 17, 31, 0.16);
        color: #07111f !important;
        font-size: 0;
        line-height: 1;
        opacity: 1 !important;
        overflow: hidden;
        pointer-events: auto;
        text-decoration: none;
        transform: translateY(-50%);
        transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease;
    }

    .woocommerce-product-gallery .flex-direction-nav a:hover,
    .woocommerce-product-gallery .flex-direction-nav a:focus-visible {
        background: #ffffff !important;
        box-shadow: 0 10px 26px rgba(7, 17, 31, 0.22);
        color: #004f91 !important;
        outline: none;
    }

    .woocommerce-product-gallery .flex-direction-nav a::before {
        content: "";
        display: block;
        width: 10px;
        height: 10px;
        border-top: 2px solid currentColor;
        border-right: 2px solid currentColor;
    }

    .woocommerce-product-gallery .flex-direction-nav .flex-prev {
        right: auto !important;
        left: 16px !important;
    }

    .woocommerce-product-gallery .flex-direction-nav .flex-prev::before {
        transform: translateX(2px) rotate(-135deg);
    }

    .woocommerce-product-gallery .flex-direction-nav .flex-next {
        right: 16px !important;
        left: auto !important;
    }

    .woocommerce-product-gallery .flex-direction-nav .flex-next::before {
        transform: translateX(-2px) rotate(45deg);
    }

    .woocommerce-product-gallery .flex-direction-nav .flex-prev::before,
    .woocommerce-product-gallery .flex-direction-nav .flex-next::before {
        color: #07111f;
    }
}

/************************
 Accordion
 ************************/
.mt-accordion {
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    color: #07111f;
}

.mt-accordion details {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding: 10px 0 !important;
}

.mt-accordion details > summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50px;
    margin: 0;
    padding: 0 44px 0 0 !important;
    color: #07111f;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
    list-style: none;
    cursor: pointer;
}

.mt-accordion details > summary::marker,
.mt-accordion details > summary::-webkit-details-marker {
    content: "";
    display: none;
}

.mt-accordion details > summary::before {
    content: none !important;
}

.mt-accordion details > summary::after {
    content: "+" !important;
    position: absolute;
    top: 50%;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: transparent !important;
    color: currentColor;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    transform: translateY(-50%);
    transition: color 160ms ease;
}

.mt-accordion details[open] > summary::after {
    content: "-" !important;
}

.mt-accordion .acc-content {
    padding: 0 48px 16px 0;
    color: #344054;
    font-size: 1.2rem !important;
    line-height: 1.65;
    letter-spacing: 0;
}

.mt-accordion .acc-content > :first-child {
    margin-top: 0;
}

.mt-accordion .acc-content > :last-child {
    margin-bottom: 0;
}

/************************
 Size chart modal table 
 ************************/
.mt-product-size-chart-content table {
    min-width: max-content;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.mt-product-size-chart-content th,
.mt-product-size-chart-content td {
    min-width: 128px;
    white-space: normal;
}

.mt-product-size-chart-content th:first-child,
.mt-product-size-chart-content td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    background: #ffffff;
    box-shadow:
        inset 0 -1px 0 #d7dde4,
        inset -1px 0 0 #d7dde4,
        10px 0 14px -14px rgba(7, 17, 31, 0.55);
    overflow-wrap: break-word;
    white-space: normal;
}

.mt-product-size-chart-content th:first-child {
    z-index: 3;
    background: #f5f7f9;
}

.mt-product-size-chart-content::before {
    content: none !important;
}

.mt-product-size-chart-dialog:has(.mt-product-size-chart-can-scroll-right)::after {
    content: "";
    position: absolute;
    top: 94px;
    right: 28px;
    bottom: 46px;
    z-index: 4;
    width: 30px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #ffffff);
    pointer-events: none;
}

@media (max-width: 767px) {
    .mt-accordion details > summary {
        min-height: 48px;
        padding-right: 38px !important;
        font-size: 14px;
    }

    .mt-accordion .acc-content {
        padding: 0 42px 14px 0;
    }

    .mt-product-size-chart-content th,
    .mt-product-size-chart-content td {
        min-width: 96px;
    }

    .mt-product-size-chart-content th:first-child,
    .mt-product-size-chart-content td:first-child {
        width: 154px;
        min-width: 154px;
        max-width: 154px;
        white-space: normal;
    }

    .mt-product-size-chart-dialog:has(.mt-product-size-chart-can-scroll-right)::after {
        top: 82px;
        right: 20px;
        bottom: 42px;
    }
}

/****************
  Buy now button
 ****************/

.single_add_to_cart_button.wc-variation-selection-needed,
.single_add_to_cart_button.disabled {
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* The custom size tooltip below handles incomplete bundle selections. */
.single-product .woosb-alert {
    display: none !important;
}

.mt-size-tooltip {
    position: absolute;
    z-index: 99999;
    background: #111;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.3;
    max-width: 260px;
    box-shadow: 0 4px 14px rgba(0,0,0,.22);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.mt-size-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.mt-size-tooltip::after {
    content: "";
    position: absolute;
    top: -6px;
    left: 18px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #111;
}
