.ff-complementary-products {
    --ff-complementary-accent: #c4470a;
    --ff-complementary-accent-soft: #fff4ef;
    --ff-complementary-border: #dedede;
    --ff-complementary-muted: #6f6f6f;
    --ff-complementary-text: #171717;
    grid-column: 1 / -1;
    margin-top: 4px;
    padding: 16px;
    border: 1px solid var(--ff-complementary-border);
    border-radius: 8px;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
}

.ff-complementary-products-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.ff-complementary-products-title {
    margin: 0;
    color: var(--ff-complementary-text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
}

.ff-complementary-products-introduction {
    margin: 5px 0 0;
    color: var(--ff-complementary-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.ff-complementary-products-badge {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background-color: var(--ff-complementary-accent-soft);
    color: var(--ff-complementary-accent);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ff-complementary-products-list {
    display: grid;
    gap: 10px;
}

.ff-complementary-product {
    overflow: hidden;
    border: 1px solid var(--ff-complementary-border);
    border-radius: 8px;
    background-color: #ffffff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ff-complementary-product:hover {
    border-color: #c8c8c8;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .07);
    transform: translateY(-1px);
}

.ff-complementary-product.ff-complementary-product-selected {
    border-color: var(--ff-complementary-accent);
    box-shadow: 0 0 0 2px rgba(252, 105, 37, .12);
}

.ff-complementary-product-selection {
    display: grid;
    grid-template-columns: 22px 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 74px;
    padding: 10px 12px;
    cursor: pointer;
}

.ff-complementary-product-checkbox {
    position: relative;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 2px solid #b8b8b8;
    border-radius: 5px;
    appearance: none;
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.ff-complementary-product-checkbox::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 6px;
    height: 10px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    opacity: 0;
    transform: rotate(45deg) scale(.7);
    transition: opacity .15s ease, transform .15s ease;
}

.ff-complementary-product-checkbox:checked {
    border-color: var(--ff-complementary-accent);
    background-color: var(--ff-complementary-accent);
}

.ff-complementary-product-checkbox:checked::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.ff-complementary-product-checkbox:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(252, 105, 37, .22);
}

.ff-complementary-product-thumbnail {
    display: flex;
    width: 52px;
    height: 52px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background-color: #f5f5f5;
}

.ff-complementary-product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ff-complementary-product-thumbnail-placeholder {
    color: var(--ff-complementary-accent);
    background-color: var(--ff-complementary-accent-soft);
}

.ff-complementary-product-thumbnail-placeholder svg {
    width: 27px;
    height: 27px;
}

.ff-complementary-product-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.ff-complementary-product-title {
    overflow: hidden;
    color: var(--ff-complementary-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ff-complementary-product-description {
    overflow: hidden;
    color: var(--ff-complementary-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ff-complementary-product-price {
    color: var(--ff-complementary-accent);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.ff-complementary-products .ff-complementary-product .ff-complementary-product-details {
    display: flex;
    width: 100% !important;
    min-height: 36px;
    margin-top: 0 !important;
    padding: 8px 12px;
    align-items: center;
    justify-content: flex-end;
    justify-self: stretch !important;
    align-self: stretch !important;
    border: 0;
    border-top: 1px solid #eeeeee;
    background-color: #fafafa;
    color: #4f4f4f;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}

.ff-complementary-products .ff-complementary-product .ff-complementary-product-details:hover,
.ff-complementary-products .ff-complementary-product .ff-complementary-product-details:focus-visible {
    color: var(--ff-complementary-accent);
    background-color: var(--ff-complementary-accent-soft);
}

.ff-complementary-product-details svg {
    width: 15px;
    height: 15px;
    margin-left: 4px;
}

.ff-complementary-products-summary {
    display: flex;
    margin-top: 12px;
    padding-top: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px dashed #cccccc;
    color: var(--ff-complementary-text);
    font-size: 13px;
    font-weight: 600;
}

.ff-complementary-products-summary[hidden] {
    display: none;
}

.ff-complementary-products-summary strong {
    color: var(--ff-complementary-accent);
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

body.ff-complementary-modal-open {
    overflow: hidden;
}

.ff-complementary-modal {
    width: min(920px, calc(100% - 30px));
    max-width: none;
    max-height: calc(100dvh - 30px);
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #171717;
}

.ff-complementary-modal::backdrop {
    background-color: rgba(12, 12, 12, .66);
    backdrop-filter: blur(3px);
}

.ff-complementary-modal[open] {
    animation: ff-complementary-modal-appear .24s ease-out;
}

.ff-complementary-modal.ff-complementary-modal-fallback[open] {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 15px;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background-color: rgba(12, 12, 12, .66);
}

.ff-complementary-modal-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    max-height: calc(100dvh - 30px);
    overflow: hidden;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.ff-complementary-modal-panel-no-image {
    display: block;
    width: min(560px, 100%);
    margin: 0 auto;
}

.ff-complementary-modal-close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    display: flex;
    width: 38px !important;
    height: 38px;
    margin-top: 0 !important;
    padding: 0;
    align-items: center;
    justify-content: center;
    justify-self: auto !important;
    align-self: auto !important;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .94);
    color: #181818;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .14);
    cursor: pointer;
    transition: color .2s ease, transform .2s ease;
}

.ff-complementary-modal-close:hover,
.ff-complementary-modal-close:focus-visible {
    color: #ffffff;
    background-color: #181818;
    transform: rotate(4deg) scale(1.04);
}

.ff-complementary-modal-close svg {
    width: 20px;
    height: 20px;
}

.ff-complementary-modal-media {
    min-height: 470px;
    background-color: #f0f0f0;
}

.ff-complementary-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ff-complementary-modal-content {
    display: flex;
    min-height: 470px;
    max-height: calc(100dvh - 30px);
    overflow-y: auto;
    flex-direction: column;
    padding: 62px 44px 38px;
}

.ff-complementary-modal-kicker {
    margin-bottom: 10px;
    color: var(--ff-complementary-accent);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ff-complementary-modal-title {
    margin: 0;
    padding-right: 30px;
    color: #171717;
    font-family: 'Work', 'Outfit', sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    line-height: .98;
    overflow-wrap: anywhere;
}

.ff-complementary-modal-reference {
    margin-top: 12px;
    color: #858585;
    font-size: 13px;
    font-weight: 600;
}

.ff-complementary-modal-description {
    margin-top: 28px;
    color: #4f4f4f;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.ff-complementary-modal-description p,
.ff-complementary-modal-description ul,
.ff-complementary-modal-description ol {
    margin: 0 0 12px;
}

.ff-complementary-modal-description ul,
.ff-complementary-modal-description ol {
    padding-left: 20px;
}

.ff-complementary-modal-description a {
    color: var(--ff-complementary-accent);
    text-decoration: underline;
}

.ff-complementary-modal-footer {
    display: flex;
    margin-top: auto;
    padding-top: 34px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.ff-complementary-modal-price-label {
    display: block;
    margin-bottom: 4px;
    color: #7b7b7b;
    font-size: 12px;
    font-weight: 600;
}

.ff-complementary-modal-price {
    display: block;
    color: var(--ff-complementary-accent);
    font-size: 27px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.ff-complementary-modal .ff-complementary-modal-action {
    width: auto !important;
    margin-top: 0 !important;
    padding: 13px 18px;
    justify-self: auto !important;
    align-self: auto !important;
    border: 2px solid var(--ff-complementary-accent);
    border-radius: 5px;
    background-color: var(--ff-complementary-accent);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.ff-complementary-modal .ff-complementary-modal-action:hover,
.ff-complementary-modal .ff-complementary-modal-action:focus-visible {
    color: var(--ff-complementary-accent);
    background-color: #ffffff;
    transform: translateY(-1px);
}

.ff-complementary-modal .ff-complementary-modal-action.ff-complementary-modal-action-selected {
    border-color: #202020;
    background-color: #202020;
}

@keyframes ff-complementary-modal-appear {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 720px) {
    .ff-complementary-products {
        padding: 13px;
    }

    .ff-complementary-products-header {
        gap: 10px;
    }

    .ff-complementary-product-selection {
        grid-template-columns: 22px 44px minmax(0, 1fr);
        gap: 9px;
        padding: 10px;
    }

    .ff-complementary-product-thumbnail {
        width: 44px;
        height: 44px;
    }

    .ff-complementary-product-price {
        grid-column: 3;
        font-size: 14px;
    }

    .ff-complementary-modal {
        width: calc(100% - 20px);
        max-height: calc(100dvh - 20px);
    }

    .ff-complementary-modal-panel {
        display: block;
        max-height: calc(100dvh - 20px);
        overflow-y: auto;
    }

    .ff-complementary-modal-media {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .ff-complementary-modal-content {
        min-height: 0;
        max-height: none;
        overflow: visible;
        padding: 34px 22px 24px;
    }

    .ff-complementary-modal-title {
        padding-right: 34px;
        font-size: 32px;
    }

    .ff-complementary-modal-description {
        margin-top: 20px;
    }

    .ff-complementary-modal-footer {
        margin-top: 26px;
        padding-top: 0;
        align-items: stretch;
        flex-direction: column;
    }

    .ff-complementary-modal .ff-complementary-modal-action {
        width: 100% !important;
    }
}

@media (max-height: 560px) and (min-width: 721px) {
    .ff-complementary-modal-media,
    .ff-complementary-modal-content {
        min-height: 0;
    }
}

@media (forced-colors: active) {
    .ff-complementary-product-checkbox {
        appearance: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ff-complementary-product,
    .ff-complementary-product-checkbox,
    .ff-complementary-modal[open],
    .ff-complementary-modal-close,
    .ff-complementary-modal-action {
        animation: none;
        transition: none;
    }
}
