/* Public webshop content follows the same .content.page / .box-wr / .container
   structure as a normal Wijnberg page; only shop internals are scoped here. */
/* The parent .content.page uses the original Wijnberg header offset (styles.css).
   Do not measure the fixed header or override padding-top: the regular Visie
   page uses the same flow, and duplicated offsets create a huge blank band. */
/* Defensive cleanup for a legacy, empty webshop wrapper that can remain
   before the document in older deployments. It has no title or checkout data.
   Current templates never use .wbshop-wrap. */
.wbshop-page:has(> .box-wr.wbshop-wrap > .container > main.wbshop:empty) {
    display: none !important;
}
.wbshop-page > .wbshop-page-hero { margin-top: 0; }

.wbshop-page .wbshop-page-hero .box-img_text { min-height: 240px; }
.wbshop-page .wbshop-page-hero:not(.has-image) .box-img_text { width: 100%; max-width: 850px; }
.wbshop-page .wbshop-page-hero:not(.has-image) .box-img_text:before { display: none; }
.wbshop-page .wbshop-page-title { font-size: clamp(32px, 3.8vw, 53px); line-height: 1.15; margin: 0; color: #383838; overflow-wrap: break-word; }
.wbshop-page .wbshop-page-subtitle { font-size: 18px; line-height: 1.55; margin: 15px 0 0; padding: 0; color: #555; font-weight: 400; }
.wbshop-page .box-wr.wbshop { padding: 45px 0 65px; }
.wbshop-page .wbshop > .container { max-width: 1170px; width: 100%; margin-left: auto; margin-right: auto; padding: 0 15px; }
.wbshop-page .wbshop h2, .wbshop-page .wbshop h3, .wbshop-page .wbshop h4 { opacity: 1; color: #3c3c3c; font-weight: 700; }
.wbshop-page .wbshop h3 { font-size: 23px; line-height: 1.35; margin-bottom: 22px; }
.wbshop-page .wbshop h4 { font-size: 20px; line-height: 1.35; }
.wbshop-page .wbshop h5 { font-size: 17px; line-height: 1.4; }
.wbshop-page .wbshop p { padding: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
.wbshop-page .wbshop .row { min-width: 0; }
.wbshop-page .wbshop .card { border: 1px solid #e3e6e8; border-radius: 10px; box-shadow: 0 5px 18px rgba(0,0,0,.04); overflow: hidden; }
.wbshop-page .wbshop .card-body { padding: 22px; }
.wbshop-page .wbshop .card-img-top { aspect-ratio: 16 / 9; object-fit: cover; }
.wbshop-page .wbshop .btn-primary { background: #e7353c; border-color: #e7353c; color: white; }
.wbshop-page .wbshop .btn-primary:hover { background: #c52530; border-color: #c52530; color: white; }
.wbshop-page .wbshop .btn-outline-primary { color: #d42d35; border-color: #d42d35; }
.wbshop-page .wbshop .btn-outline-primary:hover { background: #d42d35; color: white; }
.wbshop-page .wbshop .form-control, .wbshop-page .wbshop .form-select { max-width: 100%; }
.wbshop-page .wbshop .wbshop-intro { max-width: 850px; }
.wbshop-page .wbshop .wbshop-intro p { font-size: 17px; line-height: 1.6; margin-bottom: 12px; }
.wbshop-page .wbshop .legal-page { max-width: 900px; margin: 0 auto; }
/* The legal documents contain several numbered sections. Keep headings and
   long paragraphs readable without inheriting oversized article headings. */
.wbshop-page .legal-content h2 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; margin: 34px 0 12px; }
.wbshop-page .legal-content h2:first-child { margin-top: 0; }
.wbshop-page .legal-content p { line-height: 1.75; margin: 0 0 16px; }
.wbshop-page .legal-content ul { padding-left: 23px; margin: 0 0 20px; }
.wbshop-page .legal-content li { margin-bottom: 8px; line-height: 1.7; }
.wbshop-page .legal-content a { color: #078b9b; text-decoration: underline; text-underline-offset: 2px; }

.wbshop-page .wbshop .wbshop-unsubscribe { max-width: 580px; margin: 0 auto; padding: 30px; background: #fff; border: 1px solid #e2e8ea; border-top: 4px solid #60bdc7; border-radius: 10px; }
.wbshop-page .wbshop .welcome-panel { background: #f9f9f9; padding: 35px 25px; border-radius: 10px; }
.wbshop-page .wbshop .welcome-panel p { margin-bottom: 0; }
.wbshop-page .wbshop .payment-methods-grid, .wbshop-page .wbshop .pickup-options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.wbshop-page .wbshop .payment-method-card:has(input:checked), .wbshop-page .wbshop .pickup-option-card:has(input:checked) { border: 2px solid #60bdc7; }
.wbshop-page .wbshop .product-image-box { aspect-ratio: 1; display: flex; justify-content: center; align-items: center; background: #f8f8f8; }
.wbshop-page .wbshop .product-image-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wbshop-page .wbshop .product-image-zoom { width:100%; height:100%; display:flex; justify-content:center; align-items:center; position:relative; cursor:zoom-in; }
.wbshop-page .wbshop .product-image-zoom:focus-visible { outline:3px solid #60bdc7; outline-offset:2px; }
.wbshop-page .wbshop .product-image-zoom img { transition:transform .15s ease; }
.wbshop-page .wbshop .product-image-zoom:hover img { transform:scale(1.045); }
.wbshop-page .wbshop .product-description { overflow-wrap:anywhere; font-size:14px; line-height:1.5; }
.wbshop-page .wbshop .product-description p { font-size:inherit; line-height:inherit; margin:0 0 .4rem; }
.wbshop-page .wbshop .product-description p:last-child { margin-bottom:0; }
.wbshop-page .wbshop .product-description ul, .wbshop-page .wbshop .product-description ol { margin:0 0 .45rem; padding-left:1.35rem; }
.wbshop-page .wbshop .product-description li { margin-bottom:.12rem; }
.wbshop-page .wbshop .product-description h3, .wbshop-page .wbshop .product-description h4 { font-size:1em; line-height:1.45; margin:0 0 .2rem; }
.wbshop-page .wbshop .product-description a { text-decoration:underline; }
.wbshop-page .wbshop .qty-group { display: flex; }
.wbshop-page .wbshop .qty-group input { width: 70px; min-width: 0; text-align: center; }
.wbshop-page .wbshop .checkout-bar-inner { display: flex; justify-content: flex-end; }
.wbshop-page .wbshop .checkout-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; width: 100%; }
.wbshop-page .wbshop .checkout-total-amount { font-weight: 700; font-size: 1.4rem; }
/* Keep the agreement right-aligned with the total and pay button. The
   checkbox is the last flex item, on the right of the sentence. Override
   Bootstrap's floated .form-check-input and negative start margin. */
.wbshop-page .wbshop .legal-acceptance { align-self: stretch; display: flex; align-items: center; justify-content: flex-end; gap: 12px; max-width: 100%; padding: 10px 0 10px 12px; border: 2px solid transparent; border-radius: 10px; transition: background-color .2s ease, border-color .2s ease; }
.wbshop-page .wbshop .legal-acceptance .legal-acceptance-check { float: none !important; flex: 0 0 21px; width: 21px; height: 21px; margin: 0 !important; cursor: pointer; }
.wbshop-page .wbshop .legal-acceptance-content { flex: 0 1 auto; min-width: 0; text-align: right; }
.wbshop-page .wbshop .legal-acceptance-text { display: block; margin: 0; font-size: 16px; line-height: 1.5; text-align: right; cursor: pointer; overflow-wrap: break-word; }
.wbshop-page .wbshop .legal-acceptance-text a { text-decoration: underline; text-underline-offset: 2px; }
.wbshop-page .wbshop .legal-acceptance-hint { color: #a32b32; font-size: 14px; line-height: 1.35; margin-top: 6px; font-weight: 700; }
.wbshop-page .wbshop .legal-acceptance-hint[hidden] { display: none !important; }
.wbshop-page .wbshop .legal-acceptance.needs-legal-attention { background: #fff3f3; border-color: #dd404c; }
.wbshop-page .wbshop .legal-acceptance.needs-legal-attention .legal-acceptance-check { animation: wbshop-legal-nudge .38s ease-in-out 2; outline: 3px solid #dd404c; outline-offset: 3px; }
@keyframes wbshop-legal-nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
/* Visually unavailable, but not natively disabled, so clicking can explain why. */
.wbshop-page .wbshop .is-checkout-inactive { opacity: .60; cursor: not-allowed; }
.wbshop-page .wbshop .is-checkout-inactive:hover { opacity: .70; }
@media (prefers-reduced-motion: reduce) { .wbshop-page .wbshop .legal-acceptance.needs-legal-attention .legal-acceptance-check { animation: none; } }
@media (max-width: 991px) {
    .wbshop-page .wbshop-page-hero .box-img_text { min-height: 190px; padding-top: 35px; padding-bottom: 35px; }
}
@media (max-width: 767px) {
    .wbshop-page .box-wr.wbshop { padding: 28px 0 45px; }
    .wbshop-page .wbshop-page-title { font-size: 32px; }
    .wbshop-page .wbshop-page-subtitle { font-size: 16px; }
    .wbshop-page .wbshop .card-body { padding: 17px; }
    .wbshop-page .wbshop .payment-methods-grid, .wbshop-page .wbshop .pickup-options-grid { grid-template-columns: minmax(0, 1fr); }
    .wbshop-page .wbshop .checkout-actions { align-items: stretch; width: 100%; }
}

/* v22.22: make every invalid checkout requirement visible after a checkout attempt. */
.wbshop-page .wbshop .checkout-validation-summary {
    width: 100%; max-width: 760px; margin-left: auto; padding: 12px 15px;
    color: #8c252f; background: #fff1f2; border: 1px solid #dc5964;
    border-radius: 10px; text-align: left; font-size: 15px; line-height: 1.5;
}
.wbshop-page .wbshop .checkout-validation-summary[hidden] { display: none !important; }
.wbshop-page .wbshop .checkout-invalid-field.form-control,
.wbshop-page .wbshop .checkout-invalid-field.form-select,
.wbshop-page .wbshop .checkout-invalid-field.qty-input {
    border-color: #d73e50 !important; box-shadow: 0 0 0 3px rgba(215,62,80,.14);
}
.wbshop-page .wbshop .checkout-invalid-field.form-check-input {
    border-color: #d73e50 !important; outline: 2px solid rgba(215,62,80,.5); outline-offset: 2px;
}
.wbshop-page .wbshop .checkout-invalid-group.product-card,
.wbshop-page .wbshop .checkout-invalid-group.payment-method-card,
.wbshop-page .wbshop .checkout-invalid-group.pickup-option-card,
.wbshop-page .wbshop .checkout-invalid-group.combo-package,
.wbshop-page .wbshop .checkout-invalid-group.border.rounded-3 {
    border-color: #d73e50 !important; background-color: #fff6f6;
    box-shadow: 0 0 0 3px rgba(215,62,80,.1);
}
.wbshop-page .wbshop .checkout-animate-invalid { animation: wbshop-required-nudge .32s ease-in-out 2; }
@keyframes wbshop-required-nudge {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
    .wbshop-page .wbshop .checkout-animate-invalid { animation: none; }
}
