/* Bno_BundleChoiceCards - design "A - Keuzekaarten" */
.page-product-bundle .product-info-main .product-add-form { display: block !important; margin-top: 24px; }
.page-product-bundle .bundle-options-container:empty { display: none; }
.page-product-bundle .product-info-main p.required { display: none; }

.bno-choices { counter-reset: bno-step; margin: 0 !important; padding: 0 !important; border: 0; display: flex; flex-direction: column; gap: 26px; }
.bno-choice { margin: 0 !important; }
.bno-choice__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.bno-choice__legend { counter-increment: bno-step; padding: 0; margin: 0 0 12px; font-size: 16px; font-weight: 600; color: #1F2A30; line-height: 1.4; }
.bno-choice__legend::before { content: counter(bno-step) ". "; }
.bno-choice.required .bno-choice__legend::after { content: none; }

.bno-choice__grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bno-choice__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bno-choice__grid > div[id$="-container"] { display: none; }
.bno-choice__grid div.mage-error, .bno-choice__grid .mage-error[generated] { grid-column: 1 / -1; }

.bno-choice__card { position: relative; display: flex; gap: 12px; align-items: flex-start; box-sizing: border-box; min-height: 88px; margin: 0; padding: 16px; border: 2px solid #DADFE3; border-radius: 12px; background: #FFFFFF; cursor: pointer; transition: border-color .15s, background-color .15s; font-weight: 400; }
.bno-choice__card:hover { border-color: #8A959C; }
.bno-choice__card.is-checked, .bno-choice__card:has(input:checked) { border-color: #007A91; background: #E8F5F8; }
.bno-choice__card:has(input:focus-visible) { outline: 3px solid #007A91; outline-offset: 2px; }
.bno-choice__card.is-disabled { opacity: .5; cursor: not-allowed; }
.bno-choice__card.is-fixed { cursor: default; }
.bno-choice__input { position: absolute !important; opacity: 0; width: 1px !important; height: 1px !important; margin: 0 !important; }

.bno-choice__dot { flex: none; width: 20px; height: 20px; margin-top: 2px; box-sizing: border-box; border: 2px solid #8A959C; border-radius: 50%; background: #FFFFFF; }
.bno-choice__card.is-checked .bno-choice__dot, .bno-choice__card:has(input:checked) .bno-choice__dot { border-color: #007A91; background: #007A91; box-shadow: inset 0 0 0 3px #FFFFFF; }

.bno-choice__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bno-choice__title { font-size: 15px; font-weight: 600; line-height: 1.35; color: #1F2A30; }
.bno-choice__price, .bno-choice__price .price { font-size: 14px; font-weight: 600; color: #007A91 !important; }

/* overview + total + button */
.page-product-bundle .product-info-main .bno-summary { float: none !important; width: auto !important; position: static !important; margin: 24px 0 0; padding: 20px 24px; border-radius: 14px; background: #F4F6F7; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; }
.bno-summary__line { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: #3A464D; }
.bno-summary__line > span:last-child { flex: none; }
.bno-summary__lines [data-role="bno-summary-extras"] { display: flex; flex-direction: column; gap: 10px; }
.bno-summary__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #DADFE3; padding-top: 12px; }
.bno-summary__total-label { font-size: 16px; font-weight: 600; color: #1F2A30; }
/* Amasty cart CSS hides .block-bundle-summary .price-box - our total must show */
.block-bundle-summary.bno-summary .bno-summary__total .price-box { display: block !important; margin: 0 !important; padding: 0 !important; }
.bno-summary__total .price-as-configured { margin: 0; }
.bno-summary__total .price { font-size: 24px !important; font-weight: 600 !important; color: #1F2A30 !important; }
.bno-summary .box-tocart { margin: 6px 0 0 !important; padding: 0 !important; width: 100%; }
.bno-summary .box-tocart .fieldset, .bno-summary .box-tocart .actions { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
.page-product-bundle .bno-summary .action.primary.tocart { width: 100% !important; height: 52px; margin: 0 !important; padding: 0 16px; border: 0; border-radius: 10px; background: #007A91 !important; color: #FFFFFF !important; font-size: 16px; font-weight: 600; text-transform: none; line-height: 52px; }
.page-product-bundle .bno-summary .action.primary.tocart:hover { background: #005F71 !important; }

/* tablet: narrower product column */
@media (max-width: 991px) {
    .bno-choice__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* phone: cards as full-width rows, total + button fixed at the bottom */
@media (max-width: 767px) {
    .bno-choice__grid, .bno-choice__grid--3 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .bno-choice__card { min-height: 64px; align-items: center; padding: 14px 16px; }
    .bno-choice__body { flex: 1; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
    .bno-choice__price { flex: none; text-align: right; }
    .page-product-bundle .product-info-main .bno-summary { padding: 16px; }
    .bno-summary__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; box-sizing: border-box; padding: 12px 16px 16px; background: #FFFFFF; border-top: 1px solid #DADFE3; box-shadow: 0 -6px 20px rgba(31, 42, 48, .08); display: flex; align-items: center; gap: 14px; }
    .bno-summary__total { flex-direction: column; align-items: flex-start; gap: 0; border-top: 0; padding-top: 0; }
    .bno-summary__total-label { font-size: 12px; font-weight: 400; color: #5B6770; }
    .bno-summary__total .price { font-size: 20px !important; }
    .bno-summary .box-tocart { flex: 1; margin: 0 !important; }
    .page-product-bundle .page-wrapper { padding-bottom: 88px; }
    .page-product-bundle #totop { bottom: 100px !important; }
}
