.hsbpb-cart {
    --hsbpb-green: #b7dc2f;
    --hsbpb-green-dark: #6e9413;
    --hsbpb-orange: #f36b16;
    --hsbpb-ink: #172033;
    --hsbpb-muted: #667085;
    --hsbpb-border: #dfe5d5;
    --hsbpb-surface: #fbfdf6;
    margin: 22px 0;
}

.hsbpb-configurator {
    display: grid;
    gap: 16px;
}

.hsbpb-configurator__intro {
    padding: 16px 18px;
    border: 1px solid var(--hsbpb-border);
    border-left: 5px solid var(--hsbpb-green);
    border-radius: 12px;
    background: var(--hsbpb-surface);
}

.hsbpb-configurator__intro h3,
.hsbpb-configurator__intro p {
    margin: 0;
}

.hsbpb-configurator__intro h3 {
    color: var(--hsbpb-ink);
    font-size: 1.2rem;
    line-height: 1.35;
}

.hsbpb-configurator__intro p {
    margin-top: 6px;
    color: var(--hsbpb-muted);
    font-size: .92rem;
    line-height: 1.5;
}

.hsbpb-progress {
    padding: 12px 14px;
    border: 1px solid #e6eadf;
    border-radius: 11px;
    background: #fff;
}

.hsbpb-progress__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.hsbpb-progress__text {
    color: var(--hsbpb-ink);
    font-size: .84rem;
    line-height: 1.35;
}

.hsbpb-progress__percent {
    flex: 0 0 auto;
    color: var(--hsbpb-green-dark);
    font-size: .82rem;
    font-weight: 800;
}

.hsbpb-progress__track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf0e8;
}

.hsbpb-progress__bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--hsbpb-green), var(--hsbpb-orange));
    transition: width .22s ease;
}

.hsbpb-progress.is-complete .hsbpb-progress__text,
.hsbpb-progress.is-complete .hsbpb-progress__percent {
    color: var(--hsbpb-green-dark);
}

.hsbpb-items {
    display: grid;
    gap: 14px;
}

.hsbpb-item {
    padding: 16px;
    border: 1px solid var(--hsbpb-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(16, 24, 40, .045);
}

.hsbpb-item__heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.hsbpb-item__heading h4 {
    margin: 0;
    color: var(--hsbpb-ink);
    font-size: 1.04rem;
    line-height: 1.35;
}

.hsbpb-item__description {
    margin-top: 4px;
    color: var(--hsbpb-muted);
    font-size: .85rem;
    line-height: 1.45;
}

.hsbpb-item__quantity-label {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef8d4;
    color: var(--hsbpb-green-dark);
    font-size: .75rem;
    font-weight: 800;
    line-height: 1.25;
}

.hsbpb-selection-summary {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e3e7dc;
    border-radius: 12px;
    background: #fafbf8;
}

.hsbpb-selection-summary.has-selection {
    border-color: #c4dd79;
    background: #fbfdf5;
}

.hsbpb-selection-summary__media {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border: 1px solid #e7e9e3;
    border-radius: 10px;
    background: #fff;
    color: #b6bcc5;
    font-size: 28px;
    font-weight: 300;
}

.hsbpb-selection-summary__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hsbpb-selection-summary__body {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.hsbpb-selection-summary__status {
    color: var(--hsbpb-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hsbpb-selection-summary__name {
    overflow: hidden;
    color: var(--hsbpb-ink);
    font-size: .94rem;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.hsbpb-selection-summary__price {
    color: var(--hsbpb-green-dark);
    font-size: .82rem;
    font-weight: 800;
}

.hsbpb-selection-summary .hsbpb-open-modal {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
    margin: 0 !important;
    border-radius: 9px;
    background: var(--hsbpb-green) !important;
    color: #172033 !important;
    font-weight: 800;
}

.hsbpb-selection-summary .hsbpb-open-modal:hover {
    background: #c4e64a !important;
}

.hsbpb-selection-summary .hsbpb-open-modal:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.hsbpb-choice-grid {
    display: grid;
    gap: 12px;
}

.hsbpb-choice-grid--inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hsbpb-choice {
    position: relative;
    min-width: 0;
    border: 2px solid #e8ebee;
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, opacity .15s ease;
}

.hsbpb-choice-grid--inline .hsbpb-choice {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    padding: 10px;
}

.hsbpb-choice:hover {
    border-color: #c8db88;
    transform: translateY(-1px);
}

.hsbpb-choice.is-selected {
    border-color: var(--hsbpb-green);
    box-shadow: 0 0 0 3px rgba(183, 220, 47, .17);
}

.hsbpb-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hsbpb-choice__media {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: #f7f7f7;
}

.hsbpb-choice-grid--inline .hsbpb-choice__media {
    width: 56px;
    height: 56px;
}

.hsbpb-choice__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hsbpb-choice__media--empty {
    color: #98a2b3;
    font-size: 28px;
}

.hsbpb-choice__body {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.hsbpb-choice__body strong {
    overflow: hidden;
    color: var(--hsbpb-ink);
    font-size: .88rem;
    line-height: 1.3;
    text-overflow: ellipsis;
}

.hsbpb-choice__price {
    color: var(--hsbpb-green-dark);
    font-size: .82rem;
    font-weight: 800;
}

.hsbpb-choice__stock,
.hsbpb-choice__body small {
    color: var(--hsbpb-muted);
    font-size: .73rem;
    line-height: 1.3;
}

.hsbpb-choice__check {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--hsbpb-green);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    opacity: 0;
    transform: scale(.75);
    transition: .15s ease;
}

.hsbpb-choice.is-selected .hsbpb-choice__check {
    opacity: 1;
    transform: scale(1);
}

.hsbpb-choice--disabled,
.hsbpb-choice.is-duplicate-disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none !important;
}

.hsbpb-choice--none {
    background: #fafafa;
}

.hsbpb-item__quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eceff1;
}

.hsbpb-item__quantity label {
    margin: 0;
    font-weight: 700;
}

.hsbpb-item__quantity input {
    width: 92px;
    margin: 0;
}

.hsbpb-no-products {
    margin: 12px 0 0 !important;
}

.hsbpb-offer-summary {
    padding: 17px 18px;
    border: 2px solid var(--hsbpb-green);
    border-radius: 14px;
    background: linear-gradient(135deg, #fbfdf6, #fff);
}

.hsbpb-offer-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
}

.hsbpb-offer-summary__row span {
    color: var(--hsbpb-muted);
}

.hsbpb-offer-summary__row strong {
    color: var(--hsbpb-ink);
    font-size: 1.02rem;
}

.hsbpb-normal-row.has-strikethrough strong {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    opacity: .65;
}

.hsbpb-bundle-row strong {
    color: var(--hsbpb-orange);
    font-size: 1.28rem;
}

.hsbpb-saving {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 10px;
    background: var(--hsbpb-orange);
    color: #fff;
}

.hsbpb-saving[hidden],
.hsbpb-offer-summary__row[hidden] {
    display: none !important;
}

.hsbpb-saving-label {
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.hsbpb-saving-amount {
    font-size: 1.08rem;
}

.hsbpb-saving-percent {
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    font-size: .76rem;
    font-weight: 900;
}

.hsbpb-validation-message {
    margin: 10px 0 0;
    color: var(--hsbpb-muted);
    font-size: .82rem;
}

.hsbpb-validation-message.is-error {
    color: #b42318;
}

.hsbpb-purchase-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 16px;
}

.hsbpb-purchase-row .quantity {
    margin: 0 !important;
}

.hsbpb-purchase-row .single_add_to_cart_button {
    flex: 1;
    min-height: 48px;
    margin: 0 !important;
    border-radius: 8px;
    background: var(--hsbpb-orange) !important;
}

.hsbpb-purchase-row .single_add_to_cart_button:disabled {
    opacity: .48;
    cursor: not-allowed;
}

.hsbpb-dynamic-price-label {
    color: var(--hsbpb-muted);
    font-size: .95rem;
}

html.hsbpb-modal-open,
body.hsbpb-modal-open {
    overflow: hidden !important;
}

.hsbpb-modal[hidden] {
    display: none !important;
}

.hsbpb-modal {
    --hsbpb-green: #b7dc2f;
    --hsbpb-green-dark: #6e9413;
    --hsbpb-orange: #f36b16;
    --hsbpb-ink: #172033;
    --hsbpb-muted: #667085;
    --hsbpb-border: #dfe5d5;
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    transition: opacity .14s ease;
}

.hsbpb-modal.is-open {
    opacity: 1;
}

.hsbpb-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 28, .72);
    backdrop-filter: blur(5px);
}

.hsbpb-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(1080px, 100%);
    max-height: min(90vh, 860px);
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
    transform: translateY(12px) scale(.985);
    transition: transform .16s ease;
}

.hsbpb-modal.is-open .hsbpb-modal__dialog {
    transform: translateY(0) scale(1);
}

.hsbpb-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px 17px;
    border-bottom: 1px solid #e7e9ec;
}

.hsbpb-modal__header h3,
.hsbpb-modal__header p {
    margin: 0;
}

.hsbpb-modal__header h3 {
    color: var(--hsbpb-ink);
    font-size: 1.42rem;
    line-height: 1.3;
}

.hsbpb-modal__header p {
    margin-top: 5px;
    color: var(--hsbpb-muted);
    font-size: .9rem;
    line-height: 1.45;
}

.hsbpb-modal__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--hsbpb-green-dark);
    font-size: .73rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hsbpb-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex: 0 0 44px;
    aspect-ratio: 1 / 1;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d9dde3 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #344054 !important;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    box-sizing: border-box;
    box-shadow: none !important;
}

.hsbpb-modal__close:hover,
.hsbpb-modal__close:focus-visible {
    border-color: #cfd5dd !important;
    background: #f9fafb !important;
    outline: none;
}

.hsbpb-modal__toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(180px, .55fr) minmax(180px, .55fr);
    gap: 10px;
    padding: 14px 22px;
    border-bottom: 1px solid #edf0f2;
    background: #fafbf9;
}

.hsbpb-modal__toolbar label {
    margin: 0;
}

.hsbpb-modal__toolbar input,
.hsbpb-modal__toolbar select {
    width: 100%;
    min-height: 42px;
    margin: 0;
    border-radius: 9px;
}

.hsbpb-modal__content {
    flex: 1 1 auto;
    overflow: auto;
    padding: 20px 22px 24px;
    overscroll-behavior: contain;
}

.hsbpb-choice-grid--modal {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hsbpb-choice--modal {
    display: flex;
    flex-direction: column;
    min-height: 285px;
    padding: 12px;
}

.hsbpb-choice--modal[hidden] {
    display: none !important;
}

.hsbpb-choice--modal .hsbpb-choice__media {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 11px;
}

.hsbpb-choice--modal .hsbpb-choice__body {
    align-content: start;
}

.hsbpb-choice--modal .hsbpb-choice__body strong {
    display: -webkit-box;
    min-height: 2.7em;
    overflow: hidden;
    font-size: .9rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hsbpb-choice--modal.hsbpb-choice--none {
    justify-content: center;
    min-height: 285px;
    text-align: center;
}

.hsbpb-choice--modal.hsbpb-choice--none .hsbpb-choice__media {
    width: 96px;
    height: 96px;
    margin: 18px auto;
    aspect-ratio: auto;
}

.hsbpb-modal__empty {
    margin: 36px 0;
    color: var(--hsbpb-muted);
    text-align: center;
}

.hsbpb-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 22px;
    border-top: 1px solid #e7e9ec;
    background: #fff;
    box-shadow: 0 -8px 20px rgba(16, 24, 40, .04);
}

.hsbpb-modal__selected-text {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.hsbpb-modal__selected-text span {
    color: var(--hsbpb-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hsbpb-modal__selected-text strong {
    overflow: hidden;
    color: var(--hsbpb-ink);
    font-size: .92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hsbpb-modal__footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.hsbpb-modal__footer .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0 !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .02em;
    text-align: center;
    white-space: normal;
    box-sizing: border-box;
}

.hsbpb-modal__confirm {
    background: var(--hsbpb-orange) !important;
}

.hsbpb-modal__confirm:disabled {
    opacity: .5;
    cursor: not-allowed;
}

@media (max-width: 1100px) {
    .hsbpb-choice-grid--modal {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .hsbpb-modal {
        padding: 12px;
    }

    .hsbpb-modal__dialog {
        max-height: 95vh;
    }

    .hsbpb-modal__toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .hsbpb-modal__search-wrap {
        grid-column: 1 / -1;
    }

    .hsbpb-choice-grid--modal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hsbpb-item,
    .hsbpb-offer-summary,
    .hsbpb-configurator__intro {
        padding: 14px;
        border-radius: 11px;
    }

    .hsbpb-item__heading {
        flex-direction: column;
    }

    .hsbpb-selection-summary {
        grid-template-columns: 64px minmax(0, 1fr);
        padding: 10px;
    }

    .hsbpb-selection-summary__media {
        width: 64px;
        height: 64px;
    }

    .hsbpb-choice-grid--inline {
        grid-template-columns: 1fr;
    }

    .hsbpb-purchase-row {
        position: sticky;
        bottom: 0;
        z-index: 20;
        padding: 10px;
        margin-right: -10px;
        margin-left: -10px;
        background: rgba(255, 255, 255, .96);
        border-top: 1px solid #e5e7eb;
        backdrop-filter: blur(8px);
    }

    .hsbpb-modal {
        display: block;
        padding: 0;
    }

    .hsbpb-modal__dialog {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
        transform: translateY(18px);
    }

    .hsbpb-modal__header {
        padding: 15px 16px 13px;
    }

    .hsbpb-modal__header h3 {
        font-size: 1.18rem;
    }

    .hsbpb-modal__toolbar {
        grid-template-columns: 1fr;
        padding: 11px 14px;
    }

    .hsbpb-modal__search-wrap {
        grid-column: auto;
    }

    .hsbpb-modal__toolbar > label:not(.hsbpb-modal__search-wrap) {
        display: none;
    }

    .hsbpb-modal__toolbar {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hsbpb-modal__search-wrap {
        width: 100%;
    }

    .hsbpb-modal__content {
        padding: 14px;
    }

    .hsbpb-choice-grid--modal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .hsbpb-choice--modal {
        min-height: 228px;
        padding: 9px;
        border-radius: 11px;
    }

    .hsbpb-choice--modal .hsbpb-choice__media {
        margin-bottom: 8px;
    }

    .hsbpb-choice--modal .hsbpb-choice__body strong {
        font-size: .78rem;
    }

    .hsbpb-choice--modal .hsbpb-choice__price {
        font-size: .74rem;
    }

    .hsbpb-choice--modal.hsbpb-choice--none {
        min-height: 228px;
    }

    .hsbpb-modal__footer {
        align-items: stretch;
        flex-direction: column;
        padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
    }

    .hsbpb-modal__selected-text strong {
        white-space: normal;
    }

    .hsbpb-modal__footer-actions {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        gap: 12px;
    }

    .hsbpb-modal__footer-actions .button {
        width: 100%;
        min-height: 56px;
        padding: 10px 12px !important;
        font-size: .88rem;
        line-height: 1.2;
    }

    .hsbpb-modal__close {
        width: 52px;
        height: 52px;
        min-width: 52px;
        flex-basis: 52px;
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hsbpb-modal,
    .hsbpb-modal__dialog,
    .hsbpb-choice,
    .hsbpb-progress__bar {
        transition: none !important;
    }
}
