.fh-choice-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    padding: 26px;
    background: rgba(0, 0, 0, 0.48);
    align-items: center;
    justify-content: center;
}

.fh-colour-footer-summary-template-source {
    position: absolute;
    left: -99999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.fh-choice-modal.is-active {
    display: flex;
}

.fh-choice-modal__box {
    position: relative;
    width: min(100%, 980px);
    background: white;
    border-radius: 0;
}

.fh-choice-modal__content {
    padding: 86px 92px 78px;
}

.fh-choice-modal__eyebrow {
    margin: 0 0 22px;
    font-size: 15px;
    color: #555;
}

.fh-choice-modal__box h3 {
    margin: 0 0 22px;
    font-size: 42px;
    text-transform: none;
    letter-spacing: 0.01em;
}

.fh-choice-modal__message {
    margin: 0 0 34px;
    font-size: 18px;
    line-height: 1.2;
    color: #333;
}

.fh-choice-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
}

.fh-choice-modal__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    min-height: 48px;
    padding: 14px 28px;
    border: 1px solid #111;
    border-radius: 0;
    font-family: 'Circular', serif;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s all ease;
}

.fh-choice-modal__button--primary {
    background: black;
    color: white;
}

.fh-choice-modal__button--primary:hover {
    background: white;
    color: black;
}

.fh-choice-modal__button--secondary {
    background: #fff;
    color: #111;
}

.fh-choice-modal__button--secondary:hover {
    box-shadow: inset 0 0 0 1px #000;
}

.fh-choice-modal__close {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.fh-choice-modal__close span {
    position: absolute;
    top: 50%;
    left: 4px;
    width: 28px;
    height: 1px;
    background: #111;
}

.fh-choice-modal__close span:first-child {
    transform: rotate(45deg);
}

.fh-choice-modal__close span:last-child {
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .fh-choice-modal {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    }

    .fh-choice-modal.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.25s ease;
    }

    .fh-choice-modal__box {
        width: 100%;
        max-height: 82vh;
        min-height: auto;
        overflow: auto;
        transform: translateY(100%);
        transition: transform 0.28s ease;
    }

    .fh-choice-modal.is-active .fh-choice-modal__box {
        transform: translateY(0);
    }

    .fh-choice-modal__content {
        padding: 72px 28px 34px;
    }

    .fh-choice-modal__box h3 {
        font-size: 30px;
    }

    .fh-choice-modal__message {
        font-size: 15px;
    }

    .fh-choice-modal__actions {
        display: block;
    }

    .fh-choice-modal__button {
        width: 100%;
        margin-top: 12px;
    }

    .fh-choice-modal__close {
        top: 22px;
        right: 22px;
    }
}

.fh-colour-footer-summary__view-selected {
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    font-family: 'Circular', serif;
    font-size: 16px;
    font-weight: 400;
    text-decoration: underline;
    text-transform: uppercase;
    cursor: pointer;
    justify-self: end;
    margin-left: auto;
}

.fh-selected-swatches-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    padding: 26px;
    align-items: center;
    justify-content: center;
}

.fh-selected-swatches-modal.is-active {
    display: flex;
}

.fh-selected-swatches-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
}

.fh-selected-swatches-modal__box {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    max-height: 86vh;
    overflow: auto;
    background: #fff;
}

.fh-selected-swatches-modal__content {
    padding: 72px 78px 62px;
}

.fh-selected-swatches-modal__eyebrow {
    font-size: 15px;
    color: #555;
}

.fh-selected-swatches-modal__box h3 {
    margin: 0 0 16px;
    font-size: 38px;
    text-transform: none;
    letter-spacing: 0.01em;
}

.fh-selected-swatches-modal__summary {
    margin: 0 0 30px;
    font-size: 16px;
}

.fh-selected-swatches-modal__group {
    margin-top: 26px;
}

.fh-selected-swatches-modal__group-title {
    font-size: 14px;
    text-transform: uppercase;
    font-family: 'Circular', serif;
    font-weight: normal;
}

.fh-selected-swatches-modal__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, 100px);
    gap: 12px;
    align-items: stretch;
    justify-content: flex-start;
}

.fh-selected-swatches-modal__chip {
    position: relative;
    display: grid;
    grid-template-rows: 140px auto;
    grid-template-columns: 1fr;
    grid-template-areas:
        "thumb"
        "label";
    width: 100%;
    min-height: 140px;
    padding: 0;
    background: #fff;
    font-size: 14px;
    line-height: 1.2;
    overflow: hidden;
}

.fh-selected-swatches-modal__thumb {
    grid-area: thumb;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}

.fh-selected-swatches-modal__thumb img {
    position: static !important;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.fh-selected-swatches-modal__chip-text {
    grid-area: label;
    padding: 5px 0;
    font-family: 'Circular', serif;
    font-size: 12px;
    text-transform: uppercase;
}

.fh-selected-swatches-modal__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.fh-selected-swatches-modal__remove:hover {
    background: #111;
    color: #fff;
}

.fh-selected-swatches-modal__empty {
    margin: 0;
    font-size: 16px;
    color: #555;
}

.fh-selected-swatches-modal__close {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.fh-selected-swatches-modal__close span {
    position: absolute;
    top: 50%;
    left: 4px;
    width: 28px;
    height: 1px;
    background: #111;
}

.fh-selected-swatches-modal__close span:first-child {
    transform: rotate(45deg);
}

.fh-selected-swatches-modal__close span:last-child {
    transform: rotate(-45deg);
}

body.fh-selected-swatches-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .fh-selected-swatches-modal {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    }

    .fh-selected-swatches-modal__box {
        width: 100%;
        max-height: 82vh;
        min-height: 82vh;
        overflow: auto;
        transform: translateY(100%);
        transition: transform 0.28s ease;
    }

    .fh-selected-swatches-modal__content {
        padding: 64px 24px 34px;
    }

    .fh-selected-swatches-modal__box h3 {
        font-size: 30px;
    }

    .fh-selected-swatches-modal.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.25s ease;
    }

    .fh-selected-swatches-modal.is-active .fh-selected-swatches-modal__box {
        transform: translateY(0);
    }
}

.fh-colour-footer-summary,
.fh-swatch-visual-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 600;
}

#fh-colour-footer-summary {
    width: 100%;
    margin: 22px 0;
}

.fh-colour-footer-summary__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
}

.fh-colour-footer-summary__title {
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 300;
    font-family: 'Circular', serif
}

.fh-colour-footer-summary__amount {
    font-size: 28px;
    font-weight: 500;
    white-space: nowrap;
}

.fh-colour-footer-summary__note {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 16px;
    font-weight: normal;
    width: 100%;
}

.fh-colour-footer-summary__note > span {
    position: relative;
}

.fh-colour-footer-summary__note > span + span::before {
    content: " | ";
    position: absolute;
    left: -6px;
    font-weight: bold;
}

.fh-swatch-summary {
    padding: 18px 0;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    background-color: white;
}

.fh-colour-footer-summary__top {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 12px;
}
.fh-colour-footer-summary__action{
    width: 100%;
}
.fh-swatch-summary__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
}

.fh-swatch-summary__row--secondary {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ece7e1;
}

.fh-swatch-summary__row--secondary .fh-swatch-summary__label,
.fh-swatch-summary__row--secondary .fh-swatch-summary__value {
    font-size: 16px;
    font-weight: 400;
}

.fh-swatch-summary__row--primary .fh-swatch-summary__label {
    font-size: 16px;
    letter-spacing: 1px;
    font-family: 'Circular', serif;
    text-transform: uppercase;
    font-weight: 300;
}

.fh-swatch-summary__row--primary .fh-swatch-summary__value {
    font-size: 28px;
    font-weight: 500;
}

.fh-swatch-summary__breakdown {
    font-size: 14px;
}

@media (max-width: 768px) {
    .fh-swatch-summary {
        max-width: 100%;
        margin: 8px 0 28px;
        padding: 14px 0 14px;
    }

    .fh-swatch-summary__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    #fh-colour-footer-summary {
        margin: 12px 0;
        flex-direction: column-reverse;
    }
    .fh-colour-footer-summary__top {
        flex-direction: column;
        align-items: unset;
        gap: 12px;
    }
    .fh-colour-footer-summary__note {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 4px 12px;
        width: 100%;
        font-size: 16px;
    }

    .fh-colour-footer-summary__qty {
        grid-column: 1;
        grid-row: 1;
    }

    .fh-colour-footer-summary__view-selected {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }
    
    .fh-colour-footer-summary__note > span + span::before {
        content: none;
    }
}