/* Shared presentation for public shop forms; names, validation and requests stay in Cake. */
.shop-form{--shop-form-gap:1.25rem;min-width:0;margin-bottom:0;color:var(--kueng-text)}
.shop-form .form-group{min-width:0;margin-bottom:var(--shop-form-gap)}
.shop-form label,.shop-form .form-label{margin-bottom:.45rem;font-size:.93rem;font-weight:600;line-height:1.5;color:var(--kueng-text)}
.shop-form .form-control{box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:.65rem .8rem;border:1px solid #b9c8bc;border-radius:5px;background:#fff;color:var(--kueng-text);font-size:1rem;line-height:1.5;box-shadow:none}
.shop-form textarea.form-control{min-height:8rem;resize:vertical}
.shop-form select.form-control{padding-right:2rem}
.shop-form .form-control:focus{border-color:var(--kueng-green);box-shadow:0 0 0 .2rem #244e3d20;outline:0}
.shop-form .form-control[readonly]{background:var(--kueng-cream);color:var(--kueng-text)}
.shop-form .form-control:disabled{background:#f1f3f0;color:var(--kueng-muted);cursor:not-allowed}
.shop-form input[type="checkbox"],.shop-form input[type="radio"]{accent-color:var(--kueng-green)}
.shop-form .form-control.is-invalid,.shop-form .form-control.form-error{border-color:var(--kueng-wine,#a02637)}
.shop-form .form-control.is-invalid:focus,.shop-form .form-control.form-error:focus{box-shadow:0 0 0 .2rem #a0263720}
.shop-form .invalid-feedback,.shop-form .error-message{margin-top:.4rem;color:var(--kueng-wine,#a02637);font-size:.88rem;line-height:1.5}
.shop-form .form-text,.shop-form .help-block{margin-top:.4rem;color:var(--kueng-muted);font-size:.88rem;line-height:1.5}
.shop-form .btn,.shop-form-actions .btn{min-height:46px;white-space:normal;letter-spacing:0;text-transform:none;line-height:1.5}
.shop-form-card{overflow:visible;border:1px solid var(--kueng-line);border-radius:var(--kueng-radius);background:#fff}
#main-content>.shop-form-card{width:calc(100% - 30px);max-width:1000px;margin:2.5rem auto}
.shop-form-card>.card-header,.shop-form-card>form>.card-header{padding:1.25rem 1.5rem;border-bottom:1px solid var(--kueng-line);border-radius:var(--kueng-radius) var(--kueng-radius) 0 0;background:var(--kueng-cream)}
.shop-form-card>.card-header>:last-child,.shop-form-card>form>.card-header>:last-child{margin-bottom:0}
.shop-form-card .card-header h2{font-size:1.25rem;line-height:1.4}
.shop-form-card .card-header h2 small{font-size:.9rem;font-weight:400;line-height:1.6}
.shop-form-card .card-header .shop-form-intro{margin-bottom:0}
.shop-form-card>.card-body,.shop-form-card>form>.card-body{padding:1.5rem}
.shop-form-section{min-width:0;margin:0;padding:0;border:0}
.shop-form .account-phone-group.shop-form-section{padding:1rem;background:var(--kueng-cream)}
.shop-form-section+.shop-form-section{margin-top:1.5rem}
.shop-form-section>legend{float:none;width:100%;margin:0 0 1rem;font-size:1.05rem;font-weight:700;line-height:1.5;color:var(--kueng-green)}
.shop-form-section.form-row>legend{padding-right:5px;padding-left:5px}
.shop-form-section>legend small{display:block;margin-top:.3rem;color:var(--kueng-muted);font-size:.9rem;font-weight:400;line-height:1.6}
.shop-form .shop-form-section+hr,.shop-form .shop-form-section~hr{margin:1.5rem 0;border-color:var(--kueng-line)}
.shop-form-choice-grid{display:flex;flex-wrap:wrap;gap:.75rem}
.shop-form-choice-grid>.form-check{display:flex;align-items:center;gap:.65rem;flex:1 1 12rem;min-width:0;margin:0!important;padding:1rem;border:1px solid var(--kueng-line);border-radius:5px;background:var(--kueng-cream)}
.shop-form-choice-grid .form-check-input,.shop-form-check>.form-check-input{position:static;flex:0 0 auto;width:1.15rem;height:1.15rem;margin:0;accent-color:var(--kueng-green);cursor:pointer}
.shop-form-choice-grid .form-check-label{flex:1;margin:0;font-weight:600!important;cursor:pointer}
.shop-form-check{display:flex!important;align-items:flex-start;gap:.7rem;padding:0;font-weight:400!important;cursor:pointer}
.shop-form-check>.form-check-input{margin-top:.2rem}
.shop-form-check>span,.shop-form-check>p{min-width:0;margin:0;font-weight:400;line-height:1.6}
.shop-form-consent{margin:0;padding:1rem 1.15rem;border:1px solid var(--kueng-line);border-radius:5px;background:var(--kueng-cream)}
.shop-form-consent .alert{margin:1rem 0 0}
.shop-form-check .form-check-input:focus-visible,.shop-form-choice-grid .form-check-input:focus-visible{outline:3px solid #b87a1f;outline-offset:3px}
.shop-form-actions,.shop-form .account-access-footer{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.75rem;margin-top:0;padding:1.25rem 1.5rem;border-top:1px solid var(--kueng-line);background:var(--kueng-cream)}
.shop-form-actions.card-footer{border-radius:0 0 var(--kueng-radius) var(--kueng-radius)}
.shop-form .account-access-footer{margin-top:1.5rem;padding:1.25rem 0 0;background:transparent}
.shop-form-actions>.btn{max-width:100%;margin:0}
.shop-form-actions>.w-100{flex-wrap:wrap;gap:.75rem}
.shop-form-intro{margin-bottom:1.75rem}
.shop-form-intro p{max-width:46rem;margin-bottom:0;color:var(--kueng-muted);line-height:1.7}
.shop-form-page{max-width:1000px}
.shop-form-character-count{align-self:flex-start;padding-top:1.9rem}
.shop-form-character-count .alert{padding:.75rem;font-size:.9rem}
/* Boomerang gives the selected day an important blue background. */
.shop-form .flatpickr-day.selected,.shop-form .flatpickr-day.selected:hover,.shop-form .flatpickr-day.selected:focus{border-color:var(--kueng-green);background-color:var(--kueng-green)!important;color:#fff}
.kueng-site .checkout-step>.card-header .text-primary{color:var(--kueng-green)!important}
.kueng-site .checkout-step>.card-header.done{background:#e5f1e3}
.checkout-step-title{display:block;font-size:.95rem;line-height:1.4;font-weight:700}
.kueng-site .checkout-step>.card-header.done .checkout-step-title{color:var(--kueng-green)}
.checkout-progress .progtrckr-done>span{background:var(--kueng-green);color:#fff}
.checkout-progress .progtrckr-done>span:before{content:'✓';display:inline-block;margin-right:.4rem;font-weight:700}
.delivery-billing-preview{padding:1rem 1.25rem;border:1px solid var(--kueng-line);border-left:4px solid var(--kueng-green);border-radius:5px;background:var(--kueng-cream)}
.delivery-billing-preview address{margin:0;font-style:normal;line-height:1.65;overflow-wrap:anywhere}
.shop-form--compact{--shop-form-gap:.75rem}
.shop-form--compact .form-control,.shop-form--compact .btn{min-height:44px}
.shop-form--compact .input-group .form-control{width:1%;flex:1 1 auto}
.shop-form-modal .modal-body>.shop-form-consent{margin:0}
/* Payment methods carry their logo inside the actual action. */
#ColPaymentForm .payment-method-button{display:flex;align-items:center;justify-content:center;gap:1rem;min-height:82px;padding:.75rem 1rem;border-radius:6px;text-align:left}
#ColPaymentForm .payment-method-logo{display:flex;flex:0 0 80px;align-items:center;justify-content:center;height:54px;padding:.3rem;border-radius:5px;background:#fff}
#ColPaymentForm .payment-method-logo img{display:block;width:100%;height:100%;object-fit:contain}
#ColPaymentForm .payment-method-button>span:last-child{min-width:0;line-height:1.4}
#ColPaymentForm .payment-pickup-info p{margin-bottom:0}
#ColPaymentForm .payment-pickup-info .WiInfoLink{display:block;margin-top:.2rem}
#ColPaymentForm .checkout-payment-methods{min-width:0;margin:0;padding:0;border:0}
#ColPaymentForm .checkout-payment-methods:disabled .payment-block{background:#f5f6f3}
#ColPaymentForm .checkout-payment-methods:disabled .btn{cursor:not-allowed;opacity:.5;box-shadow:none}
#CheckoutReviewErrors{scroll-margin-top:2rem}
/* The checkout step already provides the confirmation heading and frame. */
.checkout-step #ColKontrolleForm{margin-bottom:0!important;overflow:visible;border:0;box-shadow:none!important}
.checkout-step #ColKontrolleForm>.card-header{display:none}
.checkout-step #ColKontrolleForm>.card-body{padding:0}
/* The enclosing checkout card already names the current step. */
.checkout-step #ColDelivAdressInhaltForm,.checkout-step #ColDelivInfoInhaltForm{margin-bottom:0!important;overflow:visible;border:0;box-shadow:none!important}
.checkout-step #ColDelivAdressInhaltForm>form>.card-header,.checkout-step #ColDelivInfoInhaltForm>form>.card-header{display:none}
.checkout-step #ColDelivAdressInhaltForm>form>.card-body,.checkout-step #ColDelivInfoInhaltForm>form>.card-body{padding:0}
.checkout-step #ColDelivAdressInhaltForm>form>.card-footer,.checkout-step #ColDelivInfoInhaltForm>form>.card-footer{margin:1.25rem -1.5rem -1.5rem;border-radius:0 0 var(--kueng-radius) var(--kueng-radius)}
/* Keep order actions inside the outer card's clipping edge. The inner form
   cards above must let their full-width footer extend through the body gutter. */
.checkout-step .shop-form-actions,#BluGaDelivAdress>.shop-form-actions,#BluGaLieferInfoForm>.shop-form-actions{justify-content:flex-end;gap:.75rem;padding:1rem 1.25rem!important}
.checkout-step .shop-form-actions>.btn,#BluGaDelivAdress>.shop-form-actions>.btn,#BluGaLieferInfoForm>.shop-form-actions>.btn{display:inline-flex;align-items:center;justify-content:center;flex:0 1 auto;width:auto;min-width:10rem;max-width:min(100%,28rem);min-height:46px;margin:0;padding:.65rem 1.1rem;border-radius:6px;font-size:1rem;line-height:1.35;white-space:normal;overflow-wrap:anywhere;text-align:center}
@media(max-width:767.98px){
  .shop-form-card>.card-body,.shop-form-card>form>.card-body,.shop-form-card>.card-header,.shop-form-card>form>.card-header{padding:1.1rem}
  .shop-form-actions{padding:1.1rem}
  .shop-form-character-count{padding-top:0;margin-bottom:1rem}
  .checkout-step #ColDelivAdressInhaltForm>form>.card-footer,.checkout-step #ColDelivInfoInhaltForm>form>.card-footer{margin:1.25rem -1rem -1rem}
}
@media(max-width:575.98px){
  .shop-form-actions .btn,.shop-form .account-access-footer>.btn{width:100%}
  .checkout-step .shop-form-actions>.btn,#BluGaDelivAdress>.shop-form-actions>.btn,#BluGaLieferInfoForm>.shop-form-actions>.btn{width:100%;min-width:0;max-width:100%}
  .shop-form-choice-grid{flex-direction:column}
  .shop-form-choice-grid>.form-check{flex-basis:auto}
  .shop-form-consent{padding:1rem}
}
