.nstl {
    --nstl-background: #ffffff;
    --nstl-foreground: #171614;
    --nstl-muted: #716d67;
    --nstl-line: #dedbd6;
    --nstl-soft: #f5f3f0;
    color: var(--nstl-foreground);
    background: var(--nstl-background);
    font-size: 16px;
    line-height: 1.45;
    width: 100%;
}

body.nstl-portfolio-page .page-title,
body.nstl-portfolio-page .wd-page-title,
body.nstl-portfolio-page .elementor-page-title,
body.nstl-portfolio-page .entry-header:has(> .entry-title) {
    display: none !important;
}

.nstl *,
.nstl *::before,
.nstl *::after {
    box-sizing: border-box;
}

.nstl a {
    color: inherit;
    text-decoration-color: currentColor;
    text-underline-offset: 3px;
}

.nstl__grid {
    display: grid;
    grid-template-columns: minmax(190px, 0.52fr) minmax(360px, 1fr) minmax(260px, 0.68fr);
    gap: clamp(22px, 3vw, 42px);
    align-items: start;
    padding: clamp(28px, 4vw, 58px) clamp(18px, 3vw, 44px);
}

.nstl__info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nstl__eyebrow {
    color: var(--nstl-muted);
    font-size: 0.78em;
    letter-spacing: 0.16em;
    margin: 0;
    text-transform: uppercase;
}

.nstl__title,
.nstl h3 {
    color: var(--wd-primary-color, #147f83);
    font-family: "Handlee", cursive;
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1.05;
    margin: 0;
    text-transform: uppercase;
}

.nstl__title {
    font-size: clamp(2.5rem, 4.5vw, 4.6rem);
    overflow-wrap: anywhere;
}

.nstl__title--long {
    font-size: clamp(2.05rem, 3vw, 3.3rem);
    hyphens: none;
    letter-spacing: 0.02em;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
}

.nstl__title--very-long {
    font-size: clamp(1.75rem, 2.5vw, 2.75rem);
    hyphens: none;
    letter-spacing: 0.015em;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
}

.nstl h3 {
    font-size: clamp(2rem, 3.2vw, 3.25rem);
}

.nstl__facts {
    margin: 0;
}

.nstl__facts > div {
    border-bottom: 1px solid var(--nstl-line);
    padding: 14px 0;
}

.nstl__facts dt {
    color: var(--nstl-muted);
    font-size: 0.9em;
    margin-bottom: 4px;
}

.nstl__facts dd {
    margin: 0;
}

.nstl__main-image {
    align-self: start;
    line-height: 0;
    overflow: hidden;
    position: relative;
}

.nstl__main-image img,
.nstl__gallery-grid img {
    display: block;
    height: auto;
    max-width: none;
    width: 100%;
}

.nstl__hotspot {
    align-items: center;
    background: color-mix(in srgb, var(--wd-primary-color, #147f83) 72%, transparent);
    border: 0;
    border-radius: 50% !important;
    box-shadow: 0 3px 12px color-mix(in srgb, var(--wd-primary-color, #147f83) 34%, transparent);
    color: transparent;
    cursor: pointer;
    display: flex;
    font-size: 0;
    height: 40px;
    justify-content: center;
    left: var(--nstl-x);
    padding: 0;
    position: absolute;
    top: var(--nstl-y);
    transform: translate(-50%, -50%);
    width: 40px;
    z-index: 2;
}

.nstl__hotspot::after {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    content: "";
    height: 9px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
}

.nstl__hotspot:hover,
.nstl__hotspot:focus-visible,
.nstl__hotspot[aria-pressed="true"] {
    outline: 3px solid color-mix(in srgb, var(--wd-primary-color, #147f83) 38%, transparent);
    outline-offset: 3px;
}

.nstl__used {
    padding-top: 10px;
}

.nstl__used > h3 {
    margin: 7px 0 20px;
}

.nstl__component-list,
.nstl__additional ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nstl__component-list li {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(35, 35, 35, 0.12);
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(20, 20, 20, 0.06);
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    margin-bottom: 10px;
    min-width: 0;
    padding: 8px;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.nstl__product-thumb {
    align-items: center;
    background: var(--nstl-soft);
    border-radius: 9px;
    color: var(--nstl-muted);
    display: flex;
    font: 600 13px/1 system-ui, sans-serif;
    height: 70px;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    width: 70px;
}

.nstl__product-thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.nstl__product-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.nstl__component-list li.is-active {
    background: color-mix(in srgb, var(--wd-primary-color, #147f83) 7%, #fff);
    border-color: color-mix(in srgb, var(--wd-primary-color, #147f83) 50%, transparent);
    box-shadow: 0 3px 14px color-mix(in srgb, var(--wd-primary-color, #147f83) 16%, transparent);
}

.nstl__component-list strong,
.nstl__additional strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.nstl__component-list small,
.nstl__additional small {
    color: var(--nstl-muted);
    display: block;
    font-size: 13px;
    line-height: 1.25;
}

.nstl__statuses {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.nstl__chip {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.35;
    padding: 2px 7px;
    white-space: nowrap;
    width: fit-content;
}

.nstl__chip--stock {
    background: #d9f4e5;
    color: #16784a;
}

.nstl__chip--preorder {
    background: #ffe8bd;
    color: #9a6200;
}

.nstl__product-action {
    align-items: center;
    color: var(--wd-alternative-color, #8a178a) !important;
    display: flex;
    font-size: 0.8em;
    font-weight: 700;
    gap: 3px;
    padding: 10px 2px 10px 5px;
    text-decoration: none !important;
    white-space: nowrap;
}

.nstl__product-action b {
    font-size: 1.8em;
    font-weight: 300;
    line-height: 0.8;
}

.nstl__additional {
    margin-top: 28px;
}

.nstl__additional ul {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.nstl__additional .nstl__product-card {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(35, 35, 35, 0.12);
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(20, 20, 20, 0.06);
    display: grid;
    gap: 12px;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    min-width: 0;
    padding: 8px;
}

.nstl__gallery {
    border-top: 1px solid var(--nstl-line);
    padding: clamp(30px, 4vw, 52px) clamp(18px, 3vw, 44px);
}

.nstl__gallery > h3 {
    margin: 6px 0 24px;
}

.nstl__gallery-grid {
    align-items: start;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nstl__gallery-grid figure {
    margin: 0;
}

.nstl__gallery-open {
    appearance: none;
    background: transparent;
    border: 0;
    cursor: zoom-in;
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nstl__gallery-open:focus-visible {
    outline: 3px solid var(--wd-primary-color, #147f83);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .nstl__grid {
        grid-template-columns: minmax(170px, 0.55fr) minmax(330px, 1fr);
    }

    .nstl__used {
        grid-column: 1 / -1;
    }

    .nstl__component-list {
        column-gap: 26px;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

html.nstl-look-open {
    overflow: hidden !important;
}

.nstl__look-modal {
    align-items: center;
    background: rgba(18, 18, 18, 0.72);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 999998;
}

.nstl__look-content[hidden] {
    display: none !important;
}

.nstl__look-sheet {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr);
    height: min(90vh, 860px);
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    width: min(1220px, calc(100vw - 48px));
}

.nstl__look-modal.is-image-only .nstl__look-sheet {
    grid-template-columns: minmax(0, 1fr);
    width: min(820px, calc(100vw - 48px));
}

.nstl__look-hero {
    align-items: center;
    background: #eef1f0;
    display: flex;
    height: 100%;
    justify-content: center;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    touch-action: none;
}

.nstl__look-image-wrap {
    flex: 0 0 auto;
    line-height: 0;
    overflow: hidden;
    position: relative;
}

.nstl__look-image {
    display: block;
    height: 100%;
    object-fit: contain;
    user-select: none;
    width: 100%;
    -webkit-user-drag: none;
    -webkit-user-select: none;
}

.nstl__look-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    padding: 30px 24px 24px;
}

.nstl__look-content h2 {
    color: var(--wd-primary-color, #147f83);
    flex: 0 0 auto;
    font-family: "Handlee", cursive;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1.2;
    margin: 0 54px 18px 0;
    text-transform: uppercase;
}

.nstl__look-products {
    align-content: start;
    display: grid;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 5px 8px 2px;
    scrollbar-gutter: stable;
}

.nstl__look-products .nstl__product-card {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(35, 35, 35, 0.12);
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(20, 20, 20, 0.06);
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    min-width: 0;
    padding: 9px;
}

.nstl__look-products .nstl__product-thumb {
    height: 76px;
    width: 76px;
}

.nstl__look-products .nstl__product-copy strong {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.nstl__look-products .nstl__product-copy small {
    color: #777;
    font-size: 13px;
}

.nstl__look-products .nstl__product-card.is-active {
    background: color-mix(in srgb, var(--wd-primary-color, #147f83) 7%, #fff);
    border-color: color-mix(in srgb, var(--wd-primary-color, #147f83) 50%, transparent);
    box-shadow: 0 3px 14px color-mix(in srgb, var(--wd-primary-color, #147f83) 16%, transparent);
}

.nstl__look-empty {
    color: var(--nstl-muted);
    margin: 4px 0;
}

.nstl__look-close,
.nstl__look-nav {
    appearance: none;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.35) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.82) !important;
    border-radius: 50% !important;
    box-shadow: 0 8px 22px rgba(11, 54, 68, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
    color: #fff !important;
    cursor: pointer;
    display: grid !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center;
    position: fixed;
    z-index: 1000000;
    -webkit-backdrop-filter: blur(8px);
}

.nstl__look-close:hover,
.nstl__look-close:focus-visible,
.nstl__look-nav:hover,
.nstl__look-nav:focus-visible {
    background: rgba(255, 255, 255, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.95) !important;
    outline: none;
}

.nstl__look-nav {
    height: 60px !important;
    min-height: 60px !important;
    min-width: 60px !important;
    top: 50%;
    transform: translateY(-50%);
    width: 60px !important;
}

.nstl__look-nav--prev::before,
.nstl__look-nav--next::before {
    border-right: 4px solid currentColor;
    border-top: 4px solid currentColor;
    content: "";
    display: block;
    height: 16px;
    width: 16px;
}

.nstl__look-nav--prev::before {
    transform: translateX(3px) rotate(-135deg);
}

.nstl__look-nav--next::before {
    transform: translateX(-3px) rotate(45deg);
}

.nstl__look-close {
    height: 46px !important;
    min-height: 46px !important;
    min-width: 46px !important;
    right: 18px;
    top: 18px;
    width: 46px !important;
}

.nstl__look-close::before {
    background: linear-gradient(45deg, transparent calc(50% - 2px), currentColor calc(50% - 2px), currentColor calc(50% + 2px), transparent calc(50% + 2px)), linear-gradient(-45deg, transparent calc(50% - 2px), currentColor calc(50% - 2px), currentColor calc(50% + 2px), transparent calc(50% + 2px));
    content: "";
    height: 18px;
    width: 18px;
}

@media (max-width: 680px) {
    .nstl__look-modal {
        align-items: flex-end;
        padding: 0;
    }

    .nstl__look-sheet {
        border-radius: 18px 18px 0 0;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(250px, 55vh) minmax(0, 1fr);
        height: 94dvh;
        max-height: 94dvh;
        width: 100%;
    }

    .nstl__look-modal.is-image-only .nstl__look-sheet {
        grid-template-rows: minmax(0, 1fr);
        max-height: 94dvh;
        width: 100%;
    }

    .nstl__look-content {
        padding: 22px 16px 16px;
    }

    .nstl__look-content h2 {
        font-size: 25px;
        margin-bottom: 14px;
    }

    .nstl__look-products .nstl__product-card {
        grid-template-columns: 62px minmax(0, 1fr) auto;
    }

    .nstl__look-products .nstl__product-thumb {
        height: 62px;
        width: 62px;
    }

    .nstl__look-nav {
        height: 42px !important;
        min-height: 42px !important;
        min-width: 42px !important;
        width: 42px !important;
    }

    .nstl__look-nav--prev::before,
    .nstl__look-nav--next::before {
        border-right-width: 3px;
        border-top-width: 3px;
        height: 11px;
        width: 11px;
    }

    .nstl__look-close {
        height: 40px !important;
        min-height: 40px !important;
        min-width: 40px !important;
        right: 10px;
        top: 10px;
        width: 40px !important;
    }

}

@media (max-width: 680px) {
    .nstl__grid {
        grid-template-columns: 1fr;
    }

    .nstl__used {
        grid-column: auto;
    }

    .nstl__component-list {
        grid-template-columns: 1fr;
    }

    .nstl__component-list li,
    .nstl__additional .nstl__product-card {
        grid-template-columns: 62px minmax(0, 1fr) auto;
    }

    .nstl__product-thumb {
        height: 62px;
        width: 62px;
    }

    .nstl__gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 420px) {
    .nstl__gallery-grid {
        grid-template-columns: 1fr;
    }
}
