/*
 * Koshi product page contract.
 * Final desktop frame: 12202:15958; product header: 12202:15960.
 * This stylesheet is loaded only by catalog_product_view.xml.
 */

.catalog-product-view .page-header {
    position: relative !important;
    top: auto !important;
}

.catalog-product-view .koshi-product-signature-mark {
    display: block;
    width: 52px;
    height: 29px;
    margin: 0 0 12px;
    color: var(--koshi-ink);
    object-fit: contain;
    order: 0;
}

.catalog-product-view .koshi-product-signature-mark svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.35;
}

.catalog-product-view .koshi-product-collection-mark {
    display: block;
    object-fit: contain;
}

.catalog-product-view [data-koshi-product-signature-mark][hidden] {
    display: none !important;
}

.catalog-product-view [data-koshi-default-only-section][hidden],
.catalog-product-view [data-koshi-variant-only-section][hidden] {
    display: none !important;
}

.catalog-product-view .koshi-product-collection-mark--text {
    width: auto !important;
    min-width: 111px;
    color: var(--koshi-ink);
    font-family: var(--koshi-display);
    font-size: 24px;
    font-style: italic;
    line-height: 1;
    white-space: nowrap;
}

.catalog-product-view .product-info-main:has(.koshi-product-catalog-pending-note) .product-info-price,
.catalog-product-view .product-info-main:has(.koshi-product-catalog-pending-note) .product-info-stock-sku {
    display: none !important;
}

.catalog-product-view .koshi-product-catalog-pending-note {
    margin: 8px 0 0;
    color: var(--koshi-soft);
    font-size: 12px;
    line-height: 1.5;
}

.catalog-product-view .koshi-pending-melody-choice {
    margin: 24px 0 0;
}

.catalog-product-view .koshi-pending-melody-choice__label {
    margin: 0 0 12px;
    color: var(--koshi-ink);
    font-family: var(--koshi-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Product media stack contract: one server-rendered stack, no native gallery layer. */
.catalog-product-view .koshi-product-media-stack {
    display: grid;
    grid-template-columns: 1fr;
}

.catalog-product-view .koshi-product-media-stack figure {
    position: relative;
    display: grid;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 555 / 770;
    border-radius: var(--koshi-radius);
    background: var(--koshi-media-placeholder);
}

.catalog-product-view .koshi-product-media-stack img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 981px) {
    body.catalog-product-view.page-layout-1column .product.media {
        box-sizing: border-box;
        position: relative;
        display: block;
        width: 737px;
        min-height: 0;
        margin: 0 0 112px;
        padding: 0;
        overflow: visible;
        background: transparent;
    }

    .catalog-product-view .koshi-product-media-stack {
        width: 555px;
        gap: 16px;
        margin: 16px 0 0 80px;
    }
}

@media (max-width: 980px) {
    .catalog-product-view .product.media {
        box-sizing: border-box;
        display: block;
        width: 100%;
        min-height: 0;
        margin: 18px clamp(20px, 6vw, 32px) 0;
        padding: 0;
        overflow: visible;
        background: transparent;
    }

    .catalog-product-view .koshi-product-media-stack {
        display: flex;
        gap: 14px;
        margin: 18px 0 0;
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
    }

    .catalog-product-view .koshi-product-media-stack figure {
        flex: 0 0 min(78vw, 370px);
        scroll-snap-align: start;
    }
}

/* Product / 10 / contract: section layout is product-owned; card media stays shared. */
.catalog-product-view .koshi-product-related {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(3.4rem, 4vw, 5.6rem);
    align-items: start;
    padding: clamp(9.2rem, 8vw, 12.2rem) clamp(2.4rem, 6vw, 8rem);
    background: var(--koshi-mist);
    --koshi-card-media-width: 100%;
    --koshi-card-media-height: auto;
    --koshi-card-media-ratio: 416 / 600;
}

.catalog-product-view .koshi-product-related__copy {
    position: static;
    display: grid;
    justify-items: center;
    width: min(100%, 60rem);
    min-width: 0;
    overflow-wrap: anywhere;
    margin: 0 auto;
    text-align: center;
}

.catalog-product-view .koshi-product-related__copy h2 {
    display: grid;
    gap: 0.2rem;
    margin: 0 0 1.8rem;
    color: var(--koshi-ink);
    font-family: var(--koshi-serif);
    font-size: clamp(3rem, 3.2vw, 4.6rem);
    font-style: normal;
    font-weight: 400;
    line-height: 1.08;
}

.catalog-product-view .koshi-product-related__copy h2 span,
.catalog-product-view .koshi-product-related__copy h2 em {
    display: block;
    font-style: normal;
}

.catalog-product-view .koshi-product-related__copy p:not(.koshi-eyebrow) {
    max-width: 52rem;
    margin: 0;
    color: var(--koshi-ink);
    font-family: var(--koshi-sans);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.55;
}

.catalog-product-view .koshi-product-related__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: min(100%, 86rem);
    --koshi-related-gap: clamp(1.2rem, 1.4vw, 2rem);
    gap: var(--koshi-related-gap);
    align-items: start;
    margin: 0 auto;
}

.catalog-product-view .koshi-product-related__grid .koshi-related-card {
    display: grid;
    flex: 1 1 calc((100% - 2 * var(--koshi-related-gap)) / 3);
    min-width: min(100%, 21rem);
    max-width: 41.6rem;
    grid-template-rows: auto;
    align-content: start;
    overflow-wrap: anywhere;
    gap: 1.6rem;
    justify-items: center;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.catalog-product-view .koshi-product-related__grid .koshi-related-card.is-current-melody {
    display: none;
}

.catalog-product-view .koshi-product-related .koshi-related-card-content {
    box-sizing: border-box;
    display: grid;
    width: 100%;
    gap: 0.8rem;
    justify-items: center;
    padding: 0;
    color: var(--koshi-ink);
    text-decoration: none;
}

.catalog-product-view .koshi-product-related .koshi-related-card-content:focus-visible {
    border-radius: var(--koshi-radius-compact-control);
    outline: 1px solid var(--koshi-clay);
    outline-offset: 0.4rem;
}

.catalog-product-view .koshi-product-related .koshi-related-card-header {
    display: grid;
    width: 100%;
    grid-template-rows: minmax(2.4rem, auto) minmax(1.8rem, auto);
    gap: 0.8rem;
}

.catalog-product-view .koshi-product-related__grid strong {
    color: var(--koshi-ink);
    font-family: var(--koshi-serif);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 2.4rem;
}

.catalog-product-view .koshi-product-related__grid .koshi-related-card-header span {
    color: var(--koshi-ink);
    font-family: var(--koshi-sans);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: .08em;
    line-height: 1.8rem;
    text-transform: uppercase;
}

.catalog-product-view .koshi-product-related .koshi-related-card-price {
    width: 100%;
    min-height: 2.4rem;
    margin: 0;
    color: var(--koshi-ink);
    font-family: var(--koshi-sans);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: .08em;
    line-height: 2.4rem;
}

.catalog-product-view .koshi-product-related .koshi-related-card-audio {
    box-sizing: border-box;
    display: grid;
    width: 2.4rem;
    min-width: 2.4rem;
    height: 2.4rem;
    min-height: 2.4rem;
    place-items: center;
    margin: 0;
    border: 0;
    border-radius: var(--koshi-radius-compact-control);
    padding: 0;
    background: transparent;
    color: var(--koshi-ink);
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.catalog-product-view .koshi-product-related .koshi-related-card-audio:hover,
.catalog-product-view .koshi-product-related .koshi-related-card-audio:focus-visible,
.catalog-product-view .koshi-product-related .koshi-related-card-audio.is-playing {
    background: transparent;
    color: var(--koshi-burgundy);
    outline: none;
}

.catalog-product-view .koshi-product-related .koshi-related-card-audio:active {
    transform: scale(.96);
}

.catalog-product-view .koshi-related-card-audio-icon {
    display: block;
    width: 2.4rem;
    height: 2.4rem;
    background: currentColor;
    -webkit-mask: url("../images/koshi-product-related-audio-figma.svg") center / contain no-repeat;
    mask: url("../images/koshi-product-related-audio-figma.svg") center / contain no-repeat;
}

.catalog-product-view .koshi-product-related .koshi-related-card-cta {
    width: 100%;
    margin: 0;
}

/* Figma dimensions are floors, never ceilings on translated content. */
@media (min-width: 981px) {
    .catalog-product-view .koshi-product-related {
        width: 100%;
        gap: 8rem;
        padding: 15rem 8rem 11.2rem;
    }

    .catalog-product-view .koshi-product-related__copy {
        width: min(100%, 76.8rem);
        min-height: 20.4rem;
        grid-template-rows: minmax(11.6rem, auto) minmax(7.2rem, auto);
        gap: 1.6rem;
    }

    .catalog-product-view .koshi-product-related__copy h2 {
        display: block;
        width: min(100%, 58.5rem);
        margin: 0;
        font-size: 4.8rem;
        line-height: 1.2;
    }

    .catalog-product-view .koshi-product-related__copy p:not(.koshi-eyebrow) {
        box-sizing: border-box;
        width: min(100%, 61.9rem);
        max-width: none;
        font-family: "Instrument Sans", var(--koshi-sans);
        font-size: 1.8rem;
        line-height: 1.5;
    }

    .catalog-product-view .koshi-product-related__grid {
        width: min(100%, 128rem);
        --koshi-related-gap: 1.6rem;
    }
}

@media (max-width: 980px) {
    .catalog-product-view .koshi-product-related__grid {
        width: min(100%, 76rem);
    }
}

@media (max-width: 680px) {
    .catalog-product-view .koshi-product-related__grid {
        max-width: 34rem;
    }
}

/* Product header placement for the shared Figma audio player. */
.catalog-product-view .koshi-product-header-accent {
    display: block;
    width: min(267px, 100%);
    margin: 15px 0 18px;
    padding: 0;
    border: 0;
}

@media (max-width: 980px) {
    .catalog-product-view .koshi-product-header-accent {
        order: 2;
    }
}

@media (max-width: 520px) {
    .catalog-product-view .koshi-product-header-accent {
        width: 100%;
    }
}

/* Product identity and pricing contract: title, native price and stock live here. */
.catalog-product-view .product-info-main .page-title-wrapper {
    margin-bottom: 0;
    padding: 0;
}

.catalog-product-view .product-info-main .page-title .base {
    font-family: var(--koshi-display) !important;
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 400;
    letter-spacing: -.04em;
    line-height: 1;
}

.catalog-product-view .product-info-main > .product-reviews-summary,
.catalog-product-view .product-info-main > .product-reviews-summary.empty,
.catalog-product-view .product-info-main > .price-box.price-tier_price {
    display: none !important;
}

.catalog-product-view .product-info-price {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    order: 4;
    border-top: 0;
    border-bottom: 1px solid var(--koshi-line);
    margin: 22px 0 0;
    padding: 0 0 26px;
}

.catalog-product-view .product-info-price .price-box {
    order: 1;
    padding: 0;
}

.catalog-product-view .product-info-price .price-box .price,
.catalog-product-view .product-info-main .product-info-price .price-box .price-container .price {
    color: var(--koshi-black);
    font-family: var(--koshi-display) !important;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -.03em;
}

.catalog-product-view .product-info-stock-sku {
    display: grid;
    min-width: 145px;
    gap: 4px;
    color: var(--koshi-soft);
    font-size: 11px;
    letter-spacing: .04em;
    line-height: 1.35;
    text-align: right;
    text-transform: uppercase;
}

/* Product header/supporting buybox contract: owned here, never in the global theme. */
.catalog-product-view .koshi-product-review-line {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 18px;
    padding-left: 14px;
    border-left: 1px solid var(--koshi-ink-20);
    color: var(--koshi-ink);
    white-space: nowrap;
}

.catalog-product-view .product-info-price .koshi-product-review-line {
    order: 2;
}

.catalog-product-view .koshi-product-review-stars__empty,
.catalog-product-view .koshi-product-review-stars__value {
    display: block;
    height: 15.2002px;
    background: url("../images/koshi-product-review-stars-figma.svg") left center / 96px 15.2002px no-repeat;
}

.catalog-product-view .koshi-product-review-stars {
    position: relative;
    display: inline-block;
    flex: 0 0 96px;
    width: 96px;
    color: var(--koshi-ink);
    font-size: 12px;
    letter-spacing: .08em;
    line-height: 1;
}

.catalog-product-view .koshi-product-review-stars__empty {
    width: 96px;
    color: rgba(50, 42, 34, .28);
    opacity: .24;
}

.catalog-product-view .koshi-product-review-stars__value {
    position: absolute;
    inset: 0 auto 0 0;
    max-width: 96px;
    overflow: hidden;
    color: var(--koshi-ink);
    white-space: nowrap;
}

.catalog-product-view .koshi-product-review-label {
    color: rgba(50, 42, 34, .62);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.catalog-product-view .koshi-product-secondary-cta {
    width: 100%;
    min-height: 42px;
    margin-top: 10px;
}

.catalog-product-view .koshi-product-secondary-cta:disabled,
.catalog-product-view .koshi-product-secondary-cta.is-loading {
    cursor: progress;
    opacity: .78;
    transform: none;
}

.catalog-product-view .koshi-product-secondary-cta--pending {
    cursor: default;
    opacity: .78;
    transform: none;
}

.catalog-product-view .koshi-product-shipping-note {
    margin: 11px 0 0;
    color: rgba(50, 42, 34, .7);
    font-size: 9px;
    letter-spacing: .01em;
    line-height: 1.45;
    text-align: center;
}

.catalog-product-view .koshi-product-shipping-note span {
    display: inline-block;
    margin: 0 3px;
    color: rgba(50, 42, 34, .42);
}

.catalog-product-view .product-info-main > .page.messages {
    order: 6;
    width: 100%;
    margin: 0;
    padding: 0;
}

.catalog-product-view .product-info-main > .page.messages > [data-placeholder="messages"]:empty {
    display: none !important;
}

.catalog-product-view .product-info-main > .page.messages .messages {
    margin: 0;
}

.catalog-product-view .product-info-main > .page.messages .message {
    margin: 14px 0 0;
    padding: 12px 14px 12px 42px;
    border: 1px solid rgba(50, 42, 34, .14);
    background: rgba(255, 252, 244, .94);
    color: var(--koshi-ink);
    font-size: 12px;
    line-height: 1.45;
}

.catalog-product-view .product-info-main > .page.messages .message-success {
    border-color: rgba(111, 145, 124, .32);
    background: rgba(111, 145, 124, .12);
}

.catalog-product-view .product-info-main > .page.messages .message-error,
.catalog-product-view .product-info-main > .page.messages .message-warning {
    border-color: rgba(150, 70, 52, .32);
    background: rgba(150, 70, 52, .1);
}

/* Primary purchase form contract: options, quantity and cart action are owned here. */
.product-options-wrapper .fieldset > .field {
    border-top: 1px solid var(--koshi-line);
    margin: 0;
    padding: 18px 0;
}

.product-options-wrapper .field.configurable.required {
    border-color: var(--koshi-line);
}

.catalog-product-view .product-options-wrapper {
    margin-top: 18px;
}

.product-options-wrapper select.super-attribute-select,
.box-tocart .field.qty input {
    min-height: 44px;
    border: 1px solid var(--koshi-line-dark);
    border-radius: var(--koshi-radius-compact-control);
    background: var(--koshi-paper);
}

.box-tocart {
    border-top: 1px solid var(--koshi-line);
    margin: 20px 0 12px;
    padding-top: 20px;
}

.box-tocart .fieldset {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
}

.box-tocart .field.qty > .label {
    display: block;
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.catalog-product-view .box-tocart .actions {
    width: 100%;
    min-width: 0;
    padding: 0;
}

.catalog-product-view .box-tocart .field.qty input {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.catalog-product-view .box-tocart .action.tocart {
    width: 100% !important;
    min-height: 52px;
    margin-right: 0 !important;
    white-space: nowrap;
}

.catalog-product-view.ajax-loading .box-tocart .action.tocart {
    cursor: progress;
    opacity: .82;
}

.catalog-product-view .koshi-quantity-stepper {
    display: grid;
    align-items: center;
}

.catalog-product-view .koshi-quantity-stepper__button {
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--koshi-ink);
    font-family: var(--koshi-sans);
    cursor: pointer;
}

/* Figma Product / Form contract - nodes 12202:15994 and 12202:16003. */
.catalog-product-view .product-options-wrapper .fieldset > .field.koshi-melody-component {
    border-top: 0;
    padding-top: 0;
}

.catalog-product-view .product-options-wrapper .fieldset > .field.koshi-melody-component > .label::after {
    content: none;
    display: none;
}

.catalog-product-view .field.koshi-melody-component .control {
    width: 100% !important;
    max-width: none;
}

/* Single product melody contract: server render, Magento select and AMD share this component. */
.catalog-product-view .koshi-melody-choice--alternatives {
    display: grid;
    width: min(100%, 256px) !important;
    max-width: none;
    grid-template-columns: repeat(3, 80px);
    gap: 8px;
    margin: 0 0 10px;
}

.catalog-product-view .koshi-melody-choice--alternatives .koshi-melody-choice__button {
    display: grid;
    min-width: 0;
    height: 80px;
    min-height: 80px;
    grid-template-rows: 35px 18px;
    justify-items: center;
    align-content: center;
    gap: 8px;
    border: 1px solid var(--koshi-card);
    border-radius: var(--koshi-radius-control);
    padding: 0;
    background: var(--koshi-card);
    box-shadow: none;
    color: var(--koshi-ink);
    cursor: pointer;
    text-align: center;
    transform: none;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.catalog-product-view .koshi-melody-choice--alternatives .koshi-melody-choice__button[hidden] {
    display: none !important;
}

.catalog-product-view .koshi-melody-choice--alternatives .koshi-melody-choice__button:disabled {
    opacity: 1;
    cursor: wait;
}

.catalog-product-view .koshi-melody-choice--alternatives .koshi-melody-choice__button:hover {
    transform: none;
}

.catalog-product-view .koshi-melody-choice--alternatives .koshi-melody-choice__button:focus-visible {
    outline: 2px solid rgba(164, 72, 60, .72);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(164, 72, 60, .12);
}

.catalog-product-view .koshi-melody-choice--alternatives .koshi-melody-choice__button:hover,
.catalog-product-view .koshi-melody-choice--alternatives .koshi-melody-choice__button:focus-visible {
    border-color: var(--koshi-product-accent, var(--koshi-card));
    background: var(--koshi-product-accent, var(--koshi-card));
}

.catalog-product-view .koshi-melody-choice--alternatives .koshi-melody-choice__icon {
    display: flex;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 0;
}

.catalog-product-view .koshi-melody-choice--alternatives .koshi-melody-choice__icon--missing {
    display: none;
}

.catalog-product-view .koshi-melody-choice--alternatives .koshi-melody-choice__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-product-view .koshi-melody-choice--alternatives .koshi-melody-choice__label {
    font-family: var(--koshi-sans);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .08em;
    line-height: 18px;
    text-transform: uppercase;
}

.catalog-product-view .koshi-melody-component select.super-attribute-select {
    position: absolute;
    width: 1px;
    min-width: 1px;
    height: 1px;
    min-height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

/* One product-accordion contract for every viewport; desktop only fixes its Figma width. */
.catalog-product-view .koshi-product-buybox-accordions {
    box-sizing: border-box;
    width: 100%;
    min-height: 216px;
    margin: 32px 0 0;
}

.catalog-product-view .koshi-product-buybox-accordions details {
    box-sizing: border-box;
    width: 100%;
    min-height: 72px;
    border-top: 1px solid var(--koshi-line);
    margin: 0;
}

.catalog-product-view .koshi-product-buybox-accordions details:not([open]) {
    height: 72px;
}

.catalog-product-view .koshi-product-buybox-accordions details:last-child {
    border-bottom: 1px solid var(--koshi-line);
}

.catalog-product-view .koshi-product-buybox-accordions summary {
    display: flex;
    width: 100%;
    min-height: 71px;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    color: var(--koshi-ink);
    font-family: var(--koshi-sans);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .08em;
    line-height: 21px;
    list-style: none;
    text-transform: uppercase;
    cursor: pointer;
}

.catalog-product-view .koshi-product-buybox-accordions summary::-webkit-details-marker {
    display: none;
}

.catalog-product-view .koshi-product-buybox-accordions summary::after {
    width: 9px;
    height: 9px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: rotate(45deg) translate(-2px, 2px);
    transform-origin: center;
}

.catalog-product-view .koshi-product-buybox-accordions details[open] summary::after {
    transform: rotate(-135deg) translate(-2px, 2px);
}

.catalog-product-view .koshi-product-buybox-accordions details > p {
    margin: 0;
    padding: 0 32px 24px 0;
    color: var(--koshi-ink);
    font-family: var(--koshi-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
}

@media (min-width: 981px) {
    .catalog-product-view .koshi-product-signature-mark {
        width: 60px;
        height: 31px;
        margin: 0 0 24px;
    }

    body.catalog-product-view.page-layout-1column .product-info-main {
        display: flex;
        width: 703px;
        padding: 48px 143px 48px 0;
    }

    .catalog-product-view .product-info-main > .koshi-product-breadcrumbs {
        order: 0;
        width: 560px;
        height: 18px;
        min-height: 18px;
        margin: 0 0 24px;
        padding: 0;
    }

    .catalog-product-view .koshi-product-breadcrumbs .items {
        display: flex;
        width: 560px;
        height: 18px;
        align-items: center;
        margin: 0;
        padding: 0;
        list-style: none;
        white-space: nowrap;
    }

    .catalog-product-view .koshi-product-breadcrumbs .item {
        display: inline-flex;
        align-items: center;
        margin: 0;
        color: var(--koshi-ink);
        font-family: var(--koshi-sans);
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 0;
        line-height: 18px;
        text-transform: none;
    }

    .catalog-product-view .koshi-product-breadcrumbs .item + .item::before {
        display: inline-block;
        margin: 0 12px;
        color: color-mix(in srgb, var(--koshi-ink) 58%, transparent);
        content: "›";
        font-size: 16px;
        line-height: 18px;
    }

    .catalog-product-view .koshi-product-breadcrumbs .item::after {
        display: none !important;
        content: none !important;
    }

    .catalog-product-view .koshi-product-breadcrumbs a,
    .catalog-product-view .koshi-product-breadcrumbs strong {
        color: inherit;
        font: inherit;
        text-decoration: none;
    }

    .catalog-product-view .product-info-main > .koshi-product-collection-mark {
        order: 1;
        width: 111px;
        height: 58px;
        margin: 0 0 24px;
    }

    .catalog-product-view .product-info-main > .page-title-wrapper {
        display: flex;
        order: 2;
        width: 560px;
        height: auto;
        min-height: 4.8rem;
        align-items: center;
        gap: 16px;
        margin: 0 0 24px !important;
        padding: 0;
    }

    .catalog-product-view .product-info-main .page-title {
        flex: 0 1 auto;
        width: auto;
        max-width: calc(100% - 76px);
        min-width: 0;
        height: auto;
        min-height: 4.8rem;
        margin: 0;
    }

    .catalog-product-view .product-info-main .page-title .base {
        display: block;
        width: auto;
        color: var(--koshi-ink);
        font-family: var(--koshi-display) !important;
        font-size: 40px !important;
        font-weight: 400 !important;
        letter-spacing: 0 !important;
        line-height: 48px !important;
    }

    .catalog-product-view .product-info-main .page-title-wrapper > .koshi-product-signature-mark {
        flex: 0 0 60px;
        width: 60px;
        height: 31px;
        margin: 0;
    }

    .catalog-product-view.product-earth-symphony .product-info-main .page-title {
        flex: 0 1 auto;
        width: auto;
    }

    .catalog-product-view.product-earth-symphony .product-info-main .page-title .base {
        width: auto;
        font-size: 44px !important;
        white-space: normal;
    }

    .catalog-product-view .product-info-main > .koshi-product-header-accent {
        order: 3;
        width: 267px;
        height: 35px;
        margin: 0 0 24px;
        padding: 0;
    }

    .catalog-product-view .product-info-main > .product-info-price {
        display: flex;
        order: 4;
        width: 560px;
        height: 34px;
        min-height: 34px;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px 0;
        margin: 0 0 24px;
        padding: 0;
        border: 0;
        overflow: visible;
    }

    .catalog-product-view .product-info-price .price-box {
        display: flex;
        order: 1;
        min-height: 34px;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .catalog-product-view .product-info-price .price-box .price,
    .catalog-product-view .product-info-main .product-info-price .price-box .price-container .price {
        color: var(--koshi-ink) !important;
        font-family: var(--koshi-display) !important;
        font-size: 24px !important;
        font-weight: 400 !important;
        letter-spacing: 0 !important;
        line-height: 33.6px !important;
    }

    .catalog-product-view .product-info-price .koshi-product-review-line {
        display: inline-flex;
        order: 2;
        min-height: 34px;
        align-items: center;
        gap: 8px;
        border-left: 1px solid var(--koshi-line);
        margin: 0 0 0 16px;
        padding: 0 0 0 16px;
        color: var(--koshi-ink);
    }

    .catalog-product-view .koshi-product-review-label {
        color: var(--koshi-ink);
        font-family: var(--koshi-sans);
        font-size: 14px;
        font-weight: 400;
        letter-spacing: 0;
        line-height: 21px;
        text-transform: none;
    }

    .catalog-product-view .product-info-stock-sku {
        display: none;
        min-width: 126px;
        font-size: 10px;
        line-height: 1.25;
    }

    .catalog-product-view .product-info-main > .product.attribute.overview {
        order: 5;
        width: 560px;
        min-height: 105px;
        margin: 0 0 24px;
        color: var(--koshi-ink);
    }

    .catalog-product-view .product.attribute.overview .value {
        color: var(--koshi-ink);
        font-family: var(--koshi-sans);
        font-size: 14px;
        font-weight: 400;
        letter-spacing: 0;
        line-height: 21px;
    }

    .catalog-product-view .product-info-main > .product-add-form {
        order: 6;
        width: 560px;
        margin: 0;
        padding: 0;
    }

    .catalog-product-view .product-info-main > .koshi-pending-melody-choice {
        order: 6;
        width: 560px;
        margin: 0;
    }

    .catalog-product-view .product-info-main > .koshi-pending-buybox-extras {
        order: 7;
        width: 560px;
    }

    .catalog-product-view .product-add-form form,
    .catalog-product-view .product-options-wrapper,
    .catalog-product-view .product-options-wrapper .fieldset,
    .catalog-product-view .product-options-wrapper .field,
    .catalog-product-view .product-options-wrapper .control,
    .catalog-product-view .product-options-bottom {
        width: 560px;
        margin: 0;
        padding: 0;
    }

    .catalog-product-view .product-options-wrapper .fieldset > .field.koshi-melody-component > .label {
        position: static;
        display: block;
        width: 560px;
        height: 24px;
        margin: 0 0 8px;
        overflow: visible;
        clip: auto;
        clip-path: none;
        color: var(--koshi-ink);
        font-family: var(--koshi-sans);
        font-size: 16px;
        font-weight: 500;
        letter-spacing: .08em;
        line-height: 24px;
        text-transform: uppercase;
        white-space: normal;
    }

    .catalog-product-view .product-options-wrapper .fieldset > .field.koshi-melody-component {
        margin: 0 !important;
    }

    .catalog-product-view .koshi-melody-choice--alternatives {
        width: 256px !important;
        height: 80px;
        margin: 0;
    }

    .catalog-product-view .koshi-melody-choice--alternatives .koshi-melody-choice__button {
        width: 80px;
    }

    .catalog-product-view .koshi-melody-choice--alternatives .koshi-melody-choice__label {
        font-size: 12px;
    }

    .catalog-product-view .product-options-bottom {
        margin-top: 24px;
    }

    .catalog-product-view .box-tocart {
        box-sizing: border-box;
        width: 560px;
        height: 48px;
        margin: 0 !important;
        padding: 8px 0 0;
        border: 0;
    }

    .catalog-product-view .box-tocart .fieldset {
        display: grid;
        width: 560px;
        height: 40px;
        grid-template-columns: 72px 472px;
        gap: 16px;
        align-items: start;
        margin: 0;
    }

    .catalog-product-view .box-tocart .field.qty,
    .catalog-product-view .box-tocart .field.qty .control {
        width: 72px;
        height: 40px;
        margin: 0;
    }

    .catalog-product-view .box-tocart .field.qty > .label {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
    }

    .catalog-product-view .koshi-quantity-stepper {
        box-sizing: border-box;
        width: 72px;
        height: 40px;
        grid-template-columns: 24px 24px 24px;
        border: 1px solid var(--koshi-paper);
        border-radius: var(--koshi-radius-compact-control);
        background: var(--koshi-paper);
    }

    .catalog-product-view .koshi-quantity-stepper__button {
        width: 24px;
        height: 40px;
        min-height: 40px;
        font-size: 16px;
        font-weight: 400;
        line-height: 24px;
    }

    .catalog-product-view .box-tocart .field.qty input {
        width: 24px;
        min-width: 24px;
        height: 40px;
        min-height: 40px;
        border: 0;
        border-radius: 0;
        padding: 0;
        background: transparent;
        color: var(--koshi-ink);
        font-family: var(--koshi-sans);
        font-size: 16px;
        line-height: 24px;
        text-align: center;
        appearance: textfield;
    }

    .catalog-product-view .box-tocart .field.qty input::-webkit-inner-spin-button,
    .catalog-product-view .box-tocart .field.qty input::-webkit-outer-spin-button {
        margin: 0;
        appearance: none;
    }

    .catalog-product-view .box-tocart .actions,
    .catalog-product-view .box-tocart .action.tocart {
        width: 472px;
        height: 40px;
        min-height: 40px;
        margin: 0;
    }

    .catalog-product-view .koshi-product-secondary-cta {
        width: 560px;
        height: 40px;
        min-height: 40px;
        margin: 16px 0 0;
    }

    .catalog-product-view .koshi-product-shipping-note {
        width: 560px;
        height: 18px;
        margin: 16px 0 0;
        color: var(--koshi-ink);
        font-family: var(--koshi-sans);
        font-size: 12px;
        font-weight: 400;
        letter-spacing: 0;
        line-height: 18px;
        text-align: center;
    }

    .catalog-product-view .koshi-product-buybox-accordions {
        width: 560px;
    }

    .catalog-product-view .koshi-product-buybox-accordions details {
        width: 560px;
    }

    .catalog-product-view .koshi-product-buybox-accordions summary {
        width: 560px;
        height: 71px;
    }

    .catalog-product-view .product-info-main > .page.messages {
        order: 8;
        width: 560px;
    }
}

@media (max-width: 980px) {
    .catalog-product-view .product-add-form {
        order: 5;
    }

    .catalog-product-view .product-info-main > .koshi-pending-melody-choice {
        order: 5;
    }

    .catalog-product-view .product-info-main > .koshi-pending-buybox-extras {
        order: 6;
    }

    .catalog-product-view .koshi-product-review-line {
        margin-top: 6px;
    }

    .catalog-product-view .product-info-main > .koshi-product-collection-mark {
        width: 111px;
        height: 58px;
        margin: 0 0 20px;
    }

    .catalog-product-view .product-info-main > .page-title-wrapper {
        display: flex;
        order: 1;
        align-items: center;
        gap: 16px;
    }

    .catalog-product-view .product-info-price {
        grid-template-columns: 1fr;
        order: 4;
    }

    .catalog-product-view .product-info-stock-sku {
        text-align: left;
    }

    .catalog-product-view .product-info-main .page-title-wrapper > .page-title {
        flex: 0 1 auto;
        min-width: 0;
    }

    .catalog-product-view .product-info-main .page-title-wrapper > .koshi-product-signature-mark {
        flex: 0 0 60px;
        width: 60px;
        height: 31px;
        margin: 0;
    }

    .catalog-product-view .koshi-product-breadcrumbs .items {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
        white-space: normal;
    }

    .catalog-product-view .koshi-product-breadcrumbs .item {
        display: inline-flex;
        align-items: baseline;
        min-width: 0;
        margin: 0;
        color: var(--koshi-ink);
        font: 400 12px/18px var(--koshi-sans);
        letter-spacing: 0;
        text-transform: none;
        overflow-wrap: anywhere;
    }

    .catalog-product-view .koshi-product-breadcrumbs a,
    .catalog-product-view .koshi-product-breadcrumbs strong {
        color: inherit;
        font: inherit;
    }

    .catalog-product-view .koshi-product-breadcrumbs .item::after {
        display: none !important;
        content: none !important;
    }

    .catalog-product-view .koshi-product-breadcrumbs .item + .item::before {
        margin-right: 8px;
        content: "›";
    }

    .catalog-product-view .product-info-main .page-title .base,
    .catalog-product-view .product-info-price .price-box .price {
        font-family: var(--koshi-display) !important;
    }

    .catalog-product-view .product-options-wrapper .fieldset > .field.koshi-melody-component > .label {
        position: static;
        display: block;
        width: auto;
        height: auto;
        margin: 0 0 8px;
        overflow: visible;
        clip: auto;
        clip-path: none;
        color: var(--koshi-ink);
        font-family: var(--koshi-sans);
        font-size: 14px;
        font-weight: 700;
        letter-spacing: .08em;
        line-height: 21px;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .catalog-product-view .koshi-melody-choice--alternatives {
        width: 100% !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .catalog-product-view .koshi-quantity-stepper {
        width: 100%;
        min-height: 44px;
        grid-template-columns: 40px minmax(48px, 1fr) 40px;
        border-radius: var(--koshi-radius-compact-control);
        background: var(--koshi-paper);
    }

    .catalog-product-view .koshi-quantity-stepper__button,
    .catalog-product-view .koshi-quantity-stepper input {
        width: 100%;
        min-height: 44px;
        border: 0;
        background: transparent;
        text-align: center;
    }
}

@media (max-width: 680px) {
    .box-tocart .fieldset {
        grid-template-columns: 76px minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .box-tocart .fieldset {
        grid-template-columns: 1fr;
    }

    .catalog-product-view .koshi-melody-choice--alternatives .koshi-melody-choice__label {
        font-size: 12px;
    }
}

/*
 * Responsive product shell.
 * The Magento base theme adds nested margins and fixed breadcrumb widths below
 * the desktop breakpoint. Keep the media rail scrollable inside its own box,
 * while every product column remains bounded by the viewport.
 */
@media (max-width: 980px) {
    .catalog-product-view .page-main > .columns {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-inline: clamp(20px, 6vw, 32px) !important;
    }

    .catalog-product-view .column.main {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    .catalog-product-view .product.media {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 18px 0 0 !important;
        overflow: hidden !important;
    }

    .catalog-product-view .koshi-product-media-stack {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        scrollbar-width: none;
    }

    .catalog-product-view .product-info-main {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: clamp(32px, 6vw, 48px) clamp(20px, 4vw, 32px) !important;
    }

    .catalog-product-view .product-info-main > * {
        box-sizing: border-box;
        max-width: 100%;
    }

    .catalog-product-view .product-info-main > .koshi-product-breadcrumbs {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 24px;
        padding: 0 !important;
    }

    .catalog-product-view .koshi-product-breadcrumbs .items {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .catalog-product-view .koshi-product-media-stack::-webkit-scrollbar {
        display: none;
    }

    .catalog-product-view .product-info-main > .page-title-wrapper,
    .catalog-product-view .product-info-main > .product-info-price,
    .catalog-product-view .product-info-main > .product.attribute.overview,
    .catalog-product-view .product-info-main > .product-add-form,
    .catalog-product-view .product-info-main > .koshi-pending-melody-choice,
    .catalog-product-view .product-info-main > .koshi-pending-buybox-extras {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Melody selectors wrap when the association count differs from the Figma set. */
.catalog-product-view .koshi-melody-choice--dynamic {
    display: flex;
    height: auto !important;
    flex-wrap: wrap;
    justify-content: center;
}

.catalog-product-view .koshi-melody-choice--dynamic .koshi-melody-choice__button {
    flex: 0 0 80px;
}

/*
 * Product reviews use Magento's native review domain and the shared Koshi
 * design primitives. The section deliberately avoids nested cards: headings,
 * entries and fields are separated by the same fine rules as editorial blocks.
 */
.catalog-product-view .koshi-product-review-line {
    text-decoration: none;
}

.catalog-product-view .koshi-product-review-line:hover .koshi-product-review-label,
.catalog-product-view .koshi-product-review-line:focus-visible .koshi-product-review-label {
    color: var(--koshi-clay);
}

.catalog-product-view .koshi-product-reviews {
    box-sizing: border-box;
    width: 100%;
    border-top: 1px solid var(--koshi-line);
    padding: clamp(64px, 7vw, 104px) clamp(24px, 5.55vw, 80px);
    background: var(--koshi-paper);
    color: var(--koshi-ink);
}

.catalog-product-view .koshi-product-reviews__inner {
    box-sizing: border-box;
    width: min(100%, var(--koshi-content));
    border: 1px solid var(--koshi-line);
    border-radius: var(--koshi-radius);
    margin: 0 auto;
    overflow: hidden;
}

.catalog-product-view .koshi-product-reviews__heading {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--koshi-line);
    padding: clamp(32px, 3.4vw, 48px);
}

.catalog-product-view .koshi-product-reviews__title-group {
    min-width: 0;
}

.catalog-product-view .koshi-product-reviews__heading h2 {
    margin: 0;
    color: var(--koshi-ink);
    font-family: var(--koshi-serif);
    font-size: clamp(34px, 3.2vw, 44px);
    font-weight: 400;
    line-height: 1.2;
}

.catalog-product-view .koshi-product-reviews__aggregate {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    color: var(--koshi-soft);
    font: 400 14px/1.5 var(--koshi-sans);
}

.catalog-product-view .koshi-product-reviews__write {
    flex: 0 0 auto;
}

.catalog-product-view .koshi-product-reviews__list-panel {
    min-height: 112px;
    padding: clamp(32px, 3.4vw, 48px);
}

.catalog-product-view .koshi-product-reviews.is-review-form-open .koshi-product-reviews__list-panel {
    display: none;
}

.catalog-product-view .koshi-product-reviews__form-panel {
    display: grid;
    grid-template-columns: minmax(220px, .45fr) minmax(0, 1.55fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
    border-top: 1px solid var(--koshi-line);
    padding: clamp(36px, 4vw, 56px) clamp(32px, 3.4vw, 48px) clamp(40px, 4.5vw, 64px);
}

.catalog-product-view .koshi-product-reviews__form-panel[hidden] {
    display: none !important;
}

.catalog-product-view .koshi-product-reviews__form-intro h3 {
    margin: 0;
    color: var(--koshi-ink);
    font: 400 clamp(28px, 2.5vw, 36px)/1.2 var(--koshi-serif);
}

.catalog-product-view .koshi-product-reviews__form-intro h3:focus {
    outline: 0;
}

.catalog-product-view .koshi-product-reviews__form-intro p {
    max-width: 280px;
    margin: 14px 0 0;
    color: var(--koshi-soft);
    font: 400 14px/1.6 var(--koshi-sans);
}

.catalog-product-view .koshi-product-reviews__loading,
.catalog-product-view .koshi-product-reviews__empty {
    margin: 0;
    color: var(--koshi-soft);
    font: 400 15px/1.65 var(--koshi-sans);
}

.catalog-product-view .koshi-product-reviews__empty {
    max-width: 620px;
    padding: 10px 0 14px;
}

.catalog-product-view .koshi-product-reviews__empty p {
    margin: 0;
}

.catalog-product-view .koshi-product-reviews__empty .koshi-product-reviews__empty-title {
    margin-bottom: 6px;
    color: var(--koshi-ink);
    font: 400 24px/1.3 var(--koshi-serif);
}

.catalog-product-view .koshi-review-list,
.catalog-product-view .koshi-review-list .block-content {
    margin: 0;
}

.catalog-product-view .koshi-review-list .review-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.catalog-product-view .koshi-review-list .review-item {
    margin: 0;
    border-top: 1px solid var(--koshi-line);
    padding: 28px 0 32px;
}

.catalog-product-view .koshi-review-list .review-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.catalog-product-view .koshi-review-item__header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
}

.catalog-product-view .koshi-review-list .review-title {
    margin: 0 0 7px;
    color: var(--koshi-ink);
    font: 400 24px/1.2 var(--koshi-serif);
}

.catalog-product-view .koshi-review-item__meta,
.catalog-product-view .koshi-review-item__context {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    color: var(--koshi-soft);
    font: 400 12px/1.5 var(--koshi-sans);
}

.catalog-product-view .koshi-review-item__meta strong {
    color: var(--koshi-ink);
    font-weight: 600;
}

.catalog-product-view .koshi-review-item__rating {
    flex: 0 0 96px;
}

.catalog-product-view .koshi-review-list .review-content {
    margin-top: 18px;
    color: var(--koshi-ink);
    font: 400 15px/1.7 var(--koshi-sans);
}

.catalog-product-view .koshi-review-item__context {
    margin-top: 18px;
}

.catalog-product-view .koshi-review-item__context > span + span::before {
    margin-right: 8px;
    color: var(--koshi-line);
    content: "·";
}

.catalog-product-view .koshi-review-item__verified {
    color: var(--koshi-sage);
    font-weight: 600;
}

.catalog-product-view .koshi-review-toolbar {
    margin-top: 26px;
}

.catalog-product-view .koshi-review-toolbar .pages-items {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.catalog-product-view .koshi-review-toolbar .item {
    margin: 0;
}

.catalog-product-view .koshi-review-toolbar .page,
.catalog-product-view .koshi-review-toolbar .action {
    display: inline-flex;
    min-width: 34px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--koshi-line);
    border-radius: var(--koshi-radius-compact-control);
    color: var(--koshi-ink);
    text-decoration: none;
}

.catalog-product-view .koshi-review-toolbar .current .page,
.catalog-product-view .koshi-review-toolbar a:hover,
.catalog-product-view .koshi-review-toolbar a:focus-visible {
    border-color: var(--koshi-clay);
    color: var(--koshi-clay);
}

.catalog-product-view .koshi-review-add,
.catalog-product-view .koshi-review-add .block-content,
.catalog-product-view .koshi-review-form .fieldset,
.catalog-product-view .koshi-review-form .field {
    margin: 0;
}

.catalog-product-view .koshi-review-form__product {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0 0 22px;
    color: var(--koshi-soft);
    font: 400 13px/1.5 var(--koshi-sans);
}

.catalog-product-view .koshi-review-form__product > span {
    color: var(--koshi-soft);
}

.catalog-product-view .koshi-review-form__product strong {
    color: var(--koshi-ink);
    font-weight: 600;
}

.catalog-product-view .koshi-review-form .review-fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    min-width: 0;
    border: 0;
    padding: 0;
}

.catalog-product-view .koshi-review-form .review-field-ratings,
.catalog-product-view .koshi-review-form .review-field-text {
    grid-column: 1 / -1;
}

.catalog-product-view .koshi-review-form .field > .label,
.catalog-product-view .koshi-review-form .review-field-ratings > .label {
    display: block;
    margin: 0 0 7px;
    color: var(--koshi-ink);
    font: 500 12px/1.4 var(--koshi-sans);
    letter-spacing: .04em;
}

.catalog-product-view .koshi-review-form input.input-text,
.catalog-product-view .koshi-review-form textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid var(--koshi-line);
    border-radius: var(--koshi-radius-compact-control);
    padding: 11px 13px;
    background: transparent;
    color: var(--koshi-ink);
    box-shadow: none;
    font: 400 14px/1.5 var(--koshi-sans);
}

.catalog-product-view .koshi-review-form textarea {
    min-height: 136px;
    resize: vertical;
}

.catalog-product-view .koshi-review-form input.input-text:focus,
.catalog-product-view .koshi-review-form textarea:focus {
    border-color: var(--koshi-clay);
    outline: 1px solid var(--koshi-clay);
    outline-offset: 0;
}

.catalog-product-view .koshi-review-form .review-field-rating > .label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.catalog-product-view .koshi-review-form .review-control-vote {
    display: inline-flex;
    position: relative;
    flex-direction: row;
    gap: 5px;
    justify-content: flex-end;
}

.catalog-product-view .koshi-review-form .review-control-vote::before,
.catalog-product-view .koshi-review-form .review-control-vote::after {
    display: none !important;
    content: none !important;
}

.catalog-product-view .koshi-review-form .review-control-vote input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.catalog-product-view .koshi-review-form .review-control-vote label {
    position: relative !important;
    display: block;
    inset: auto !important;
    flex: 0 0 20px;
    float: none !important;
    width: 20px;
    height: 20px;
    margin: 0;
    background: url("../images/koshi-review-star-figma.svg") center / 18px 18px no-repeat;
    cursor: pointer;
    opacity: .24;
    transition: opacity .16s ease;
}

.catalog-product-view .koshi-review-form .review-control-vote label::before {
    display: none !important;
    content: none !important;
}

.catalog-product-view .koshi-review-form .review-control-vote label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.catalog-product-view .koshi-review-form .review-control-vote label:hover,
.catalog-product-view .koshi-review-form .review-control-vote label:has(~ label:hover),
.catalog-product-view .koshi-review-form .review-control-vote input:checked + label,
.catalog-product-view .koshi-review-form .review-control-vote label:has(~ input:checked) {
    opacity: 1;
}

.catalog-product-view .koshi-review-form .review-control-vote input:focus-visible + label {
    border-radius: 2px;
    outline: 2px solid var(--koshi-clay);
    outline-offset: 2px;
}

.catalog-product-view .koshi-review-form .additional_info:empty {
    display: none;
}

.catalog-product-view .koshi-review-form .review-form-actions {
    margin-top: 24px;
}

.catalog-product-view .koshi-review-form .review-form-actions .primary {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    float: none;
}

.catalog-product-view .koshi-review-form .action.submit {
    width: auto;
}

.catalog-product-view .koshi-product-reviews .message.info {
    margin: 0;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--koshi-soft);
}

@media (max-width: 880px) {
    .catalog-product-view .koshi-product-reviews__form-panel {
        grid-template-columns: 1fr;
    }

    .catalog-product-view .koshi-product-reviews__form-intro p {
        max-width: 560px;
    }
}

@media (max-width: 620px) {
    .catalog-product-view .koshi-product-reviews__heading {
        display: grid;
        gap: 24px;
        padding: 28px 24px;
    }

    .catalog-product-view .koshi-product-reviews__write {
        justify-self: start;
    }

    .catalog-product-view .koshi-product-reviews__list-panel,
    .catalog-product-view .koshi-product-reviews__form-panel {
        padding-right: 24px;
        padding-left: 24px;
    }

    .catalog-product-view .koshi-review-form .review-fieldset {
        grid-template-columns: 1fr;
    }

    .catalog-product-view .koshi-review-form .review-field-ratings,
    .catalog-product-view .koshi-review-form .review-field-text {
        grid-column: auto;
    }

    .catalog-product-view .koshi-review-form .review-form-actions .primary {
        display: grid;
        grid-template-columns: 1fr;
    }

    .catalog-product-view .koshi-review-form .review-form-actions .koshi-ui-button,
    .catalog-product-view .koshi-review-form .review-form-actions .action.submit {
        width: 100%;
    }

    .catalog-product-view .koshi-review-item__header {
        display: grid;
    }
}
