/* Moved out of Pages/threads.cshtml (WI 5702). */
.out-of-stock {
    vertical-align: middle !important;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .add-to-basket-btn {
        width: auto !important;
    }
}

.sticky-add-to-basket-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    padding: 1rem .5rem;
    background: var(--clr-surface, #fff);
    z-index: 1030;
    color: var(--clr-heading, #000);
    font-size: 14px;
    margin: 0;
    border-top: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s linear;
}

    .sticky-add-to-basket-container p {
        margin: 0 5px 0 15px;
        color: var(--clr-text-muted, #808080);
    }

    .sticky-add-to-basket-container .price-p {
        margin-left: 5px;
        margin-right: 15px;
    }

    .sticky-add-to-basket-container a {
        text-decoration: underline;
    }

.add-to-basket-btn {
    width: 16%;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    background-color: #42a02a;
    color: #fff;
}

    .add-to-basket-btn img {
        margin-right: 10px;
    }

.basket__items-block {
    display: flex;
    align-items: center;
}

.table-responsive {
    overflow-x: scroll;
}

.heading-anc h2 {
    font-weight: 700;
    color: var(--clr-text, #4d4d4d);
    font-family: var(--font-heading);
    font-size: 40px;
    line-height: 46px;
}

.heading-anc h6 {
    font-weight: 700;
    color: var(--clr-text, #4d4d4d);
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 25px;
}

.heading-anc p {
    font-weight: 400;
    color: var(--clr-text, #4d4d4d);
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 25px;
}

.heading-anc .save-p {
    font-weight: 700;
    color: var(--clr-brand, #d93d88);
    font-family: var(--font-body);
    margin-right: 8px;
}

.heading-anc .our-price-p {
    font-weight: 700;
    color: var(--clr-text, #4d4d4d);
    font-family: var(--font-body);
    margin-left: 8px;
}

.cotton-table .table {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 25px;
    margin-bottom: 40px;
}

    .cotton-table .table tbody tr.active {
        background-color: #e8f5f5; background-color: color-mix(in oklch, #e8f5f5, var(--clr-surface, #fff) var(--theme-tint-mix, 0%));
    }

    .cotton-table .table tr td {
        vertical-align: initial;
        text-align: left;
        border-top: transparent;
        border-bottom: 1px solid var(--clr-border, #dee2e6);
        padding: 10px 12px;
    }

        .cotton-table .table tr td:nth-child(3) {
            text-align: right;
        }

    .cotton-table .table tr td:last-child {
        max-width: 180px;
    }

    .cotton-table .table tbody tr td .c-name {
        font-size: 20px;
        line-height: 25px;
        color: var(--clr-text, #4d4d4d);
        min-width: 180px;
    }

    .cotton-table .table tbody tr td .circleImg, .cotton-table .table tbody tr td .circleImg img {
        min-width: 40px;
        border-radius: 50%;
        position: relative;
    }

    .cotton-table .table tbody tr td .c-price {
        font-weight: 700;
        color: var(--clr-text, #4d4d4d);
    }

    .cotton-table .table tbody tr td .c-number {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }

        .cotton-table .table tbody tr td .c-number .thread-quantity {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--clr-border, #d8d8d8);
            border-radius: 999px;
            overflow: hidden;
            background-color: var(--clr-surface-alt, #f2f2f2);
        }

        .cotton-table .table tbody tr td .c-number .thread-quantity__button {
            width: 38px;
            height: 38px;
            border: 0;
            padding: 0;
            background: transparent;
            color: var(--clr-btn-text, #3b3b3b);
            font-size: 24px;
            font-weight: 700;
            line-height: 1;
            transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
        }

            .cotton-table .table tbody tr td .c-number .thread-quantity__button:hover,
            .cotton-table .table tbody tr td .c-number .thread-quantity__button:focus-visible {
                background-color: #e8f5f5; background-color: color-mix(in oklch, #e8f5f5, var(--clr-surface, #fff) var(--theme-tint-mix, 0%));
                color: var(--clr-btn-text, #1d1d1d);
                outline: none;
            }

            .cotton-table .table tbody tr td .c-number .thread-quantity__button[disabled],
            .cotton-table .table tbody tr td .c-number .thread-quantity__button.is-disabled {
                opacity: 0.38;
                cursor: not-allowed;
            }

        .cotton-table .table tbody tr td .c-number .thread-quantity__input {
            width: 56px;
            min-width: 56px;
            height: 38px;
            padding: 4px 2px;
            border: 0;
            border-left: 1px solid var(--clr-input-border, #d8d8d8);
            border-right: 1px solid var(--clr-input-border, #d8d8d8);
            border-radius: 0;
            background-color: var(--clr-surface, #fff);
            box-shadow: none;
            text-align: center;
            font-weight: 700;
            color: var(--clr-input-text, #2d2d2d);
        }

        .cotton-table .table tbody tr td .c-number .thread-quantity__input:focus {
            box-shadow: none;
        }

        .cotton-table .table tbody tr td .c-number .thread-quantity__meta {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 2px;
            min-height: 32px;
        }

        .cotton-table .table tbody tr td .c-number .thread-quantity__stock {
            color: var(--clr-text-muted, #6f6f6f);
            font-size: 14px;
            line-height: 1.1;
        }

        .cotton-table .table tbody tr td .c-number .thread-quantity__message {
            max-width: 160px;
            color: #b15a16; color: color-mix(in oklch, #b15a16, var(--clr-heading, #fff) var(--theme-text-mix, 0%));
            font-size: 13px;
            font-weight: 600;
            line-height: 1.2;
            text-align: right;
        }

.thread-filter-summary {
    margin: -6px 0 16px;
    color: var(--clr-text-muted, #666);
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 24px;
}

.thread-filter-empty {
    display: none;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px dashed var(--clr-border, #d7ccc2);
    border-radius: 14px;
    background: var(--clr-surface-alt, #fbf8f4);
    color: var(--clr-text, #4d4d4d);
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 24px;
    text-align: center;
}

.sticky-add-to-basket-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    padding: 25px 30px;
    background: var(--clr-surface, #fff);
    z-index: 1030;
    color: var(--clr-heading, #000);
    font-size: 14px;
    margin: 0;
    border-top: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s linear;
    box-shadow: 0 0 50px rgb(0 0 0 / 35%);
}

    .sticky-add-to-basket-container p {
        margin: 0 7px 0 15px;
        color: var(--clr-text-muted, #808080);
        font-size: 20px;
        line-height: 25px;
    }

    .sticky-add-to-basket-container .basket__items-block a {
        color: #2e82d1; color: color-mix(in oklch, #2e82d1, var(--clr-heading, #fff) var(--theme-text-mix, 0%));
        font-weight: 400;
        font-size: 20px;
        line-height: 25px
    }

table {
    position: relative;
}

.enlarger__container .enlarger__popup {
    position: absolute;
    top: 0;
    left: 130px;
    display: none;
}

.enlarged_circle_image {
    display: none;
    position: absolute;
    outline: 2px solid black;
    transition: transform .2s;
    width: 100%;
    height: 100%;
}

.circleImg:hover .enlarged_circle_image {
    transform: scale(2);
    z-index: 1;
    display: inline-block;
}

.circleImg:hover .circle_b {
    display: none;
}

.enlarger__container .product__rating {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin-left: 8px !important;
}

#popupThreadReviews {
    overflow: hidden;
}

    #popupThreadReviews .modal-content {
        overflow-x: hidden;
        height: 100%;
        max-height: 400px;
        padding: 20px;
        overflow-y: scroll;
    }

    #popupThreadReviews .product__reviews-title {
        font-size: 20px;
    }

    #popupThreadReviews .product__reviews-text,
    #popupThreadReviews .product__reviews-date {
        font-size: 16px;
    }

    #popupThreadReviews .product__reviews-text {
        font-size: 14px;
    }

    #popupThreadReviews .close_img {
        position: absolute;
        right: 20px;
        top: 4px;
    }

        #popupThreadReviews .close_img img {
            width: 16px;
        }

    #popupThreadReviews .modal-header {
        padding: 0;
        margin-bottom: 20px;
        padding-bottom: 5px;
    }

@media only screen and (max-width:991px) {
    .cotton-table .table {
        margin-bottom: 0;
    }
}

@media only screen and (max-width:767px) {
    .cotton-table .table tbody tr td .c-number {
        align-items: stretch;
    }

    .cotton-table .table tbody tr td .c-number .thread-quantity {
        width: 100%;
    }

    .cotton-table .table tbody tr td .c-number .thread-quantity__button {
        width: 34px;
        height: 34px;
    }

    .cotton-table .table tbody tr td .c-number .thread-quantity__input {
        width: 46px;
        min-width: 46px;
        height: 34px;
    }

    .cotton-table .table tbody tr td .c-number .thread-quantity__meta {
        align-items: flex-start;
    }

    .cotton-table .table tbody tr td .c-number .thread-quantity__message {
        text-align: left;
    }

    .cotton-table .table {
        margin-bottom: 0px;
    }

    .sticky-add-to-basket-container {
        flex-direction: column;
    }

        .sticky-add-to-basket-container .basket__items-block {
            padding-top: 12px;
        }

            .sticky-add-to-basket-container .basket__items-block p {
                margin: 0 10px 0 0;
            }
}

@media only screen and (max-width:480px) {
    .enlarger__container .enlarger__popup {
        left: 80px;
    }

    .cotton-table .table {
        width: 100%;
    }

    .cotton-table .table tr td {
        vertical-align: middle;
        padding: 10px 0px;
        max-width: 100px;
    }

    .cotton-table .table tr td:nth-child(2) {
        width: 48px;
        min-width: 48px;
    }

    .cotton-table .table tr td:nth-child(3) {
        width: 70px;
        min-width: 70px;
        padding-right: 8px;
        white-space: nowrap;
    }

    .cotton-table .table tr td:last-child {
        width: 140px;
        min-width: 140px;
    }

    .cotton-table .table tbody tr td .c-name {
        min-width: 100%;
    }

    .cotton-table .table tbody tr td .c-price {
        display: inline-block;
        min-width: 100%;
        text-align: right;
    }

    .thread-filter-summary,
    .thread-filter-empty {
        font-size: 18px;
        line-height: 22px;
    }
}

.thread-review-proof {
    margin: 30px 0 28px 0;
    padding: 24px 28px;
    border: 1px solid var(--clr-border, #f6d6e6);
    border-radius: 18px;
    background: #fdf1f7; background: color-mix(in oklch, #fdf1f7, var(--clr-surface, #fff) var(--theme-tint-mix, 0%));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.thread-review-proof__mark {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #d63384;
    color: #fff;
}

    .thread-review-proof__mark svg {
        width: 40px;
        height: 40px;
    }


.thread-review-proof__left {
    flex: 1;
    min-width: 0;
}

.thread-review-proof__headline {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.thread-review-proof__stars {
    position: relative;
    display: inline-block;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 2px;
}

    .thread-review-proof__stars::before {
        content: "★★★★★";
        color: #d9d9d9;
    }

    .thread-review-proof__stars::after {
        content: "★★★★★";
        color: #f5a623; color: color-mix(in oklch, #f5a623, var(--clr-heading, #fff) var(--theme-text-mix, 0%));
        position: absolute;
        top: 0;
        left: 0;
        width: 94%;
        overflow: hidden;
        white-space: nowrap;
    }

.thread-review-proof__score {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: var(--clr-heading, #222);
    line-height: 1;
    white-space: nowrap;
}

    .thread-review-proof__score small {
        font-size: 16px;
        font-weight: 400;
        color: var(--clr-text-muted, #666);
    }

.thread-review-proof__text {
    font-family: var(--font-body);
    font-size: 22px;
    line-height: 28px;
    color: var(--clr-text, #4d4d4d);
    margin: 0;
}

    .thread-review-proof__text strong {
        font-weight: 700;
        color: var(--clr-heading, #222);
    }

.thread-review-proof__right {
    flex: 0 0 auto;
    text-align: center;
    padding-left: 24px;
    border-left: 1px solid var(--clr-border, #f2cfe1);
}

.thread-review-proof__count {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: var(--clr-heading, #222);
    margin: 0 0 4px 0;
}

.thread-review-proof__count-label {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--clr-text, #4d4d4d);
    margin: 0;
    white-space: nowrap;
}

.thread-review-proof__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 12px;
    padding: 10px 18px;
    border: 2px solid #d63384;
    border-radius: 999px;
    background: #d63384;
    color: #fff;
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

    .thread-review-proof__cta:hover,
    .thread-review-proof__cta:focus {
        color: #fff;
        background: #bf2d75;
        border-color: #bf2d75;
        text-decoration: none;
        box-shadow: 0 8px 18px rgba(214, 51, 132, 0.22);
        transform: translateY(-1px);
    }

@media only screen and (max-width: 991px) {
    .thread-review-proof {
        padding: 18px 20px;
        gap: 20px;
    }

    .thread-review-proof__mark {
        width: 60px;
        height: 60px;
    }

        .thread-review-proof__mark svg {
            width: 28px;
            height: 28px;
        }

    .thread-review-proof__count {
        font-size: 34px;
    }

    .thread-review-proof__text {
        font-size: 20px;
        line-height: 26px;
    }
}

@media only screen and (max-width: 767px) {
    .thread-review-proof {
        display: block;
        padding: 16px;
    }

    .thread-review-proof__mark {
        display: none;
    }

    .thread-review-proof__right {
        margin-top: 14px;
        padding-left: 0;
        padding-top: 14px;
        border-left: 0;
        border-top: 1px solid var(--clr-border, #f2cfe1);
        text-align: left;
    }

    .thread-review-proof__cta {
        width: 100%;
        max-width: 240px;
    }

    .thread-review-proof__headline {
        gap: 10px;
    }

    .thread-review-proof__stars {
        font-size: 22px;
    }

    .thread-review-proof__score {
        font-size: 26px;
    }

    .thread-review-proof__text {
        font-size: 18px;
        line-height: 24px;
    }

    .thread-review-proof__count {
        font-size: 32px;
    }

    .thread-review-proof__count-label {
        font-size: 18px;
    }
}


.review-modal-dialog {
    width: 95%;
    max-width: 1100px;
    margin: 1.75rem auto;
}

#reviewModal .modal-content {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

#reviewModal .modal-header {
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--clr-border, #ece7e0);
    align-items: flex-start;
}

#reviewModal .modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--clr-heading, #2f2a25);
    font-family: var(--font-heading);
    line-height: 1.2;
}

#reviewModal .modal-body {
    max-height: 75vh;
    overflow-y: auto;
    padding: 24px;
    background: var(--clr-surface-alt, #fcfaf7);
}

/* Bootstrap 5 dropped the .close class styles, so reset the native button chrome
   and give the X a finger-sized tap target. */
#reviewModal .close {
    min-width: 44px;
    min-height: 44px;
    margin: -8px -10px 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    color: var(--clr-text-muted, #6b6259);
    opacity: 1;
    cursor: pointer;
}

#reviewModal .thread-review-panel {
    display: grid;
    gap: 20px;
    position: relative;
}

#reviewModal .thread-review-panel.is-loading {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#reviewModal .thread-review-panel.is-loading::after {
    content: "Updating reviews...";
    position: absolute;
    top: 0;
    right: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(47, 42, 37, 0.92);
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    letter-spacing: 0.2px;
}

#reviewModal .thread-review-panel__toolbar {
    display: grid;
    gap: 18px;
    padding-bottom: 8px;
}

#reviewModal .thread-review-panel__summary {
    color: var(--clr-text, #4d4d4d);
    font-family: var(--font-body);
    font-size: 22px;
    line-height: 1.2;
}

#reviewModal .thread-review-panel__summary-muted {
    color: var(--clr-text-muted, #6f6a64);
}

#reviewModal .thread-review-panel__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

#reviewModal .thread-review-panel__control {
    flex: 1 1 320px;
}

#reviewModal .thread-review-panel__control--sort {
    flex: 0 0 240px;
}

#reviewModal .thread-review-panel__control label {
    display: block;
    margin-bottom: 8px;
    color: var(--clr-text, #4d4d4d);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.2px;
}

#reviewModal .thread-review-panel__control .form-control {
    height: 48px;
    border: 1px solid var(--clr-input-border, #d7cec2);
    border-radius: 12px;
    box-shadow: none;
    font-size: 17px;
    color: var(--clr-input-text, #2f2a25);
    background: var(--clr-surface, #fff);
}

#reviewModal .thread-review-panel__control .form-control:focus {
    border-color: var(--clr-brand, #d93d88);
    box-shadow: 0 0 0 3px rgba(217, 61, 136, 0.14);
}

#reviewModal .thread-review-panel__list {
    display: grid;
    gap: 16px;
}

#reviewModal .thread-review-card {
    border: 1px solid var(--clr-border, #ece4d9);
    border-radius: 18px;
    background: var(--clr-surface, #fff);
    padding: 22px 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

#reviewModal .thread-review-card__meta,
#reviewModal .thread-review-card__headline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

#reviewModal .thread-review-card__meta {
    margin-bottom: 14px;
}

#reviewModal .thread-review-card__author {
    color: var(--clr-heading, #2f2a25);
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}

#reviewModal .thread-review-card__date {
    margin-top: 4px;
    color: var(--clr-text-muted, #71695f);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.2;
}

#reviewModal .thread-review-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#reviewModal .thread-review-card__stars {
    display: inline-flex;
    gap: 4px;
}

#reviewModal .thread-review-card__star {
    width: 22px;
    height: 22px;
}

#reviewModal .thread-review-card__star--empty {
    opacity: 0.28;
}

#reviewModal .thread-review-card__rating-text {
    color: var(--clr-heading, #2f2a25);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

#reviewModal .thread-review-card__headline-row {
    margin-bottom: 14px;
}

#reviewModal .thread-review-card__title {
    margin: 0;
    color: var(--clr-text-muted, #4b453f);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

#reviewModal .thread-review-card__verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: #198754;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

#reviewModal .thread-review-card__verified img {
    width: 11px;
    height: 10px;
}

#reviewModal .thread-review-card__body {
    color: var(--clr-text, #4d4d4d);
    font-size: 20px;
    line-height: 1.55;
}

#reviewModal .thread-review-panel__pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 4px;
}

#reviewModal .thread-review-panel__pager-link,
#reviewModal .thread-review-panel__pager-status {
    min-height: 46px;
    padding: 11px 16px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.2;
}

#reviewModal .thread-review-panel__pager-link {
    color: #2e82d1; color: color-mix(in oklch, #2e82d1, var(--clr-heading, #fff) var(--theme-text-mix, 0%));
    background: var(--clr-surface, #fff);
    border: 1px solid var(--clr-border, #d8e8f6);
    text-decoration: none;
}

#reviewModal .thread-review-panel__pager-link:hover,
#reviewModal .thread-review-panel__pager-link:focus {
    color: #1f5d98; color: color-mix(in oklch, #1f5d98, var(--clr-heading, #fff) var(--theme-text-mix, 0%));
    border-color: #9fc4e6;
    text-decoration: none;
}

#reviewModal .thread-review-panel__pager-link.is-disabled {
    color: var(--clr-text-muted, #9b958f);
    border-color: var(--clr-border, #e6e0d8);
    background: var(--clr-surface-alt, #f5f2ee);
    pointer-events: none;
}

#reviewModal .thread-review-panel__pager-status {
    color: var(--clr-text, #4d4d4d);
    background: #f4ede5; background: color-mix(in oklch, #f4ede5, var(--clr-surface, #fff) var(--theme-tint-mix, 0%));
}

#reviewModal .thread-review-panel__empty,
#reviewModal .thread-review-panel__loading,
#reviewModal .thread-review-panel__error {
    padding: 24px;
    border-radius: 18px;
    background: var(--clr-surface, #fff);
    border: 1px dashed var(--clr-border, #dacfc2);
    color: var(--clr-text, #4d4d4d);
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 768px) {
    .review-modal-dialog {
        width: calc(100% - 20px);
        max-width: none;
        margin: 10px auto;
    }

    #reviewModal .modal-body {
        max-height: 80vh;
        padding: 16px;
    }

    #reviewModal .modal-title {
        font-size: 22px;
    }

    #reviewModal .thread-review-panel__summary {
        font-size: 19px;
    }

    #reviewModal .thread-review-panel__controls {
        display: grid;
        gap: 14px;
    }

    #reviewModal .thread-review-panel__control,
    #reviewModal .thread-review-panel__control--sort {
        flex: none;
    }

    #reviewModal .thread-review-card {
        padding: 18px 16px;
    }

    #reviewModal .thread-review-card__author {
        font-size: 18px;
    }

    #reviewModal .thread-review-card__date {
        font-size: 16px;
    }

    #reviewModal .thread-review-card__title {
        font-size: 21px;
    }

    #reviewModal .thread-review-card__body {
        font-size: 18px;
        line-height: 1.6;
    }

    #reviewModal .thread-review-panel__pager {
        justify-content: center;
    }

    #reviewModal .thread-review-panel__pager-link,
    #reviewModal .thread-review-panel__pager-status {
        width: 100%;
        text-align: center;
    }
}

.thread-hero {
    margin: 26px 0 4px 0;
}

.thread-hero--split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 52px;
}

.thread-hero__copy {
    min-width: 0;
}

.thread-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px 0;
    padding: 9px 20px;
    border-radius: 999px;
    background: #d63384;
    color: #fff;
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.thread-hero__badge-heart {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
}

.heading-anc h1 {
    font-size: 54px;
    line-height: 1.05;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.heading-anc .thread-hero__subhead {
    font-size: 27px;
    line-height: 1.25;
    font-weight: 400;
    color: var(--clr-text, #4d4d4d);
    margin-bottom: 0;
}

.thread-hero__rule {
    display: block;
    width: 58px;
    height: 4px;
    margin: 20px 0 22px 0;
    border-radius: 999px;
    background: #d63384;
}

.thread-hero__copy .heading-anc > p {
    line-height: 1.65;
    max-width: 62ch;
}

.thread-hero__price {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
    max-width: 62ch;
    padding: 18px 24px;
    border: 1px solid var(--clr-border, #f6d6e6);
    border-radius: 14px;
    background: #fdf1f7; background: color-mix(in oklch, #fdf1f7, var(--clr-surface, #fff) var(--theme-tint-mix, 0%));
}

.thread-hero__price-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: #d63384; color: color-mix(in oklch, #d63384, var(--clr-heading, #fff) var(--theme-text-mix, 0%));
}

.heading-anc .thread-hero__price p {
    margin: 0;
    font-size: 21px;
    line-height: 1.35;
}

.thread-hero__rrp {
    text-decoration: line-through;
    color: var(--clr-text-muted, #8a8a8a);
}

.thread-hero__media {
    min-width: 0;
}

    .thread-hero__media img {
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 22px;
    }

@media only screen and (max-width: 991px) {
    .thread-hero--split {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .thread-hero__media {
        order: -1;
    }

    .heading-anc h1 {
        font-size: 38px;
    }

    .heading-anc .thread-hero__subhead {
        font-size: 22px;
    }

    .thread-hero__price {
        padding: 16px 18px;
    }
}

@media only screen and (max-width: 575px) {
    .heading-anc h1 {
        font-size: 32px;
    }

    .thread-hero__badge {
        font-size: 17px;
        padding: 8px 16px;
    }
}

a.thread-reviews-link {
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.text.text--flush {
    margin-left: 0;
}

.thread-colour-chip {
    background-color: var(--swatch);
}

/* The shade name's link reuses the photo class, so the themes' white photo card must not reach it. */
.cotton-table .table tbody tr td .product__image--container {
    background: transparent;
    border-radius: 0;
}

/* Phones: swatch | name over price | quantity, so each row fits the screen without a sideways scroll. */
@media only screen and (max-width: 575px) {
    .cotton-table .table,
    .cotton-table .table tbody {
        display: block;
        width: 100%;
    }

    .cotton-table .table tbody tr.thread-row {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr) auto;
        grid-template-areas:
            "img name qty"
            "img price qty";
        column-gap: 12px;
        row-gap: 2px;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid var(--clr-border, #dee2e6);
    }

    .cotton-table .table tbody tr.thread-row > td {
        display: block;
        width: auto;
        min-width: 0;
        max-width: none;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .cotton-table .table tbody tr.thread-row > td:nth-child(1) {
        grid-area: name;
        align-self: end;
    }

    .cotton-table .table tbody tr.thread-row > td:nth-child(2) {
        grid-area: img;
    }

    .cotton-table .table tbody tr.thread-row > td:nth-child(3) {
        grid-area: price;
        align-self: start;
        text-align: left;
    }

    .cotton-table .table tbody tr.thread-row > td:nth-child(4) {
        grid-area: qty;
    }

    .cotton-table .table tbody tr.thread-row td .c-name {
        display: block;
        min-width: 0;
        font-size: 16px;
        line-height: 20px;
        font-weight: 600;
    }

    .cotton-table .table tbody tr.thread-row td .c-price {
        display: inline;
        min-width: 0;
        font-size: 15px;
        text-align: left;
    }

    .cotton-table .table tbody tr.thread-row td .circleImg,
    .cotton-table .table tbody tr.thread-row td .circleImg img {
        width: 56px;
        height: 56px;
        min-width: 56px;
        object-fit: cover;
    }

    .cotton-table .table tbody tr.thread-row td .c-number {
        align-items: flex-end;
    }

    .cotton-table .table tbody tr.thread-row td .c-number .thread-quantity {
        width: auto;
    }

    .cotton-table .table tbody tr.thread-row td .c-number .thread-quantity__button {
        width: 36px;
        height: 36px;
    }

    .cotton-table .table tbody tr.thread-row td .c-number .thread-quantity__input {
        width: 40px;
        min-width: 40px;
        height: 36px;
    }

    .cotton-table .table tbody tr.thread-row td .c-number .thread-quantity__meta {
        align-items: flex-end;
        text-align: right;
    }

    .cotton-table .table tbody tr.thread-row td .c-number .thread-quantity__message {
        text-align: right;
    }
}
