.online-customizer {
    width: min(780px, calc(100% - 24px));
    max-height: min(94dvh, 900px);
}

.online-customizer .online-dialog__shell {
    display: flex;
    max-height: inherit;
    flex-direction: column;
}

.online-customizer .online-dialog__shell > header {
    flex: 0 0 auto;
    align-items: center;
}

.online-customizer-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.online-customizer .online-dialog__shell > header .online-customizer-heading,
.online-customizer .online-dialog__shell > header .online-customizer-heading__media,
.online-customizer .online-dialog__shell > header .online-customizer-heading__copy {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: normal;
    text-transform: none;
}

.online-customizer-heading__media {
    display: grid;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dce8e0;
    border-radius: 17px;
    background: #eff6f1;
    color: #087f3e;
    font-size: 27px;
}

.online-customizer-heading__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-customizer-heading__copy {
    display: grid;
    min-width: 0;
}

.online-customizer-heading__copy > b {
    color: #087f3e;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.online-customizer .online-dialog__shell > header p {
    margin: 4px 0 0;
    color: #66766d;
    font-size: 12px;
}

.online-customizer .online-dialog__body {
    flex: 1 1 auto;
    min-height: 0;
    align-content: start;
    grid-auto-rows: max-content;
    padding-block: 18px;
}

.online-option-group {
    min-height: max-content;
    padding: 0;
    overflow: hidden;
    border-color: #dbe8df;
    border-radius: 20px;
    background: #fff;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.online-option-group.is-complete {
    border-color: color-mix(in srgb, #087f3e 42%, #dbe8df);
}

.online-option-group.is-at-limit {
    box-shadow: inset 4px 0 0 #087f3e;
}

.online-option-group > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 10px;
}

.online-option-group > header > div {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 11px;
}

.online-option-group__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 13px;
    background: #eaf6ef;
    color: #087f3e;
    font-size: 21px;
}

.online-option-group h3,
.online-option-group > header p {
    margin: 0;
}

.online-option-group > header p {
    margin-top: 2px;
    color: #687870;
    font-size: 12px;
    line-height: 1.45;
}

.online-option-group > header > b {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: #fff4dc;
    color: #805500;
    font-size: 10px;
    line-height: 1;
    text-transform: uppercase;
}

.online-option-group.is-complete > header > b {
    background: #eaf8ef;
    color: #087f3e;
}

.online-option-group__progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 16px 12px;
    color: #67776e;
    font-size: 11px;
}

.online-option-group__progress span:first-child {
    color: #10231b;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.online-option-group.is-at-limit .online-option-group__progress span:last-child {
    color: #087f3e;
    font-weight: 750;
}

.online-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 16px 16px;
}

.online-quantity-option {
    display: grid;
    min-height: 80px;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border: 1px solid #e1e9e4;
    border-radius: 15px;
    background: #f8faf9;
    transition: background 160ms ease;
}

.online-quantity-option.is-selected {
    border-color: #4da274;
    background: #f2faf5;
    box-shadow: 0 0 0 2px rgba(8, 127, 62, .08);
}

.online-quantity-option__media {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dce8e0;
    border-radius: 14px;
    background: #f3f7f4;
    color: #087f3e;
    font-size: 23px;
}

.online-quantity-option__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.online-quantity-option__copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.online-quantity-option__copy strong {
    font-size: 14px;
    line-height: 1.3;
}

.online-quantity-option__copy small {
    overflow: hidden;
    color: #687870;
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.online-quantity-option__copy b {
    color: #087f3e;
    font-size: 11px;
}

.online-option-stepper,
.online-order-quantity {
    display: inline-grid;
    grid-template-columns: 44px 38px 44px;
    align-items: center;
    border: 1px solid #cbdcd1;
    border-radius: 14px;
    background: #fff;
}

.online-option-stepper button,
.online-order-quantity button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #087f3e;
    font-size: 20px;
    cursor: pointer;
    touch-action: manipulation;
}

.online-option-stepper input,
.online-order-quantity input {
    width: 38px !important;
    height: 40px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #10231b;
    font-weight: 850;
    text-align: center;
    font-variant-numeric: tabular-nums;
    appearance: textfield;
}

.online-option-stepper input::-webkit-inner-spin-button,
.online-order-quantity input::-webkit-inner-spin-button {
    appearance: none;
}

.online-option-stepper button:disabled,
.online-order-quantity button:disabled,
.online-customizer-footer .online-primary:disabled {
    cursor: not-allowed;
    opacity: .34;
}

.online-option-stepper input:focus,
.online-order-quantity input:focus {
    outline: 2px solid rgba(8, 127, 62, .22);
    outline-offset: -2px;
}

.online-notes {
    padding: 16px;
    border: 1px solid #dbe8df;
    border-radius: 18px;
    background: #fff;
}

.online-notes > span {
    display: flex;
    justify-content: space-between;
}

.online-notes small {
    color: #718078;
    font-weight: 600;
}

.online-customizer-footer {
    z-index: 3;
    flex: 0 0 auto;
    box-shadow: 0 -14px 34px rgba(16, 35, 27, .08);
}

.online-order-quantity {
    grid-template-columns: auto 44px 38px 44px;
    margin-right: auto;
}

.online-order-quantity > span {
    padding-inline: 12px 5px;
    font-size: 12px;
    font-weight: 800;
}

.online-customizer-footer > strong {
    min-width: 84px;
    color: #10231b;
    font-size: 20px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.online-customizer-footer .online-primary {
    min-width: 150px;
    min-height: 52px;
}

.online-cart-line {
    grid-template-columns: minmax(0, 1fr) auto;
}

.online-cart-line__actions {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.online-cart-line__actions button {
    display: inline-flex;
    width: auto;
    min-height: 36px;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 800;
}

.online-cart-line__actions .online-cart-line__edit {
    background: #edf8f1;
    color: #087f3e;
}

.online-cart-line__actions .online-cart-line__remove {
    background: #fff0f1;
    color: #af2640;
}

@media (max-width: 620px) {
    .online-customizer-heading {
        gap: 10px;
    }

    .online-customizer-heading__media {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
        border-radius: 15px;
    }

    .online-customizer-heading__copy > b {
        font-size: 10px;
    }

    .online-customizer .online-dialog__shell > header h2 {
        font-size: 21px;
        line-height: 1.18;
    }

    .online-customizer .online-dialog__shell > header p {
        max-width: 28ch;
        font-size: 11px;
    }

    .online-option-group > header {
        padding-inline: 14px;
    }

    .online-option-group__progress {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
        padding-inline: 14px;
    }

    .online-quantity-option {
        grid-template-columns: 48px minmax(0, 1fr);
        padding-inline: 14px;
    }

    .online-option-grid {
        grid-template-columns: 1fr;
        padding-inline: 14px;
    }

    .online-quantity-option__media {
        width: 48px;
        height: 48px;
    }

    .online-option-stepper {
        grid-column: 1 / -1;
        justify-self: end;
    }

    .online-customizer-footer {
        display: grid !important;
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    .online-order-quantity {
        margin: 0;
    }

    .online-customizer-footer > strong {
        align-self: center;
    }

    .online-customizer-footer .online-primary {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .online-option-group,
    .online-quantity-option {
        transition: none;
    }
}
