/* SmartExcel classic checkout / CartFlows. Presentation only. */
body.sd-checkout #main{background:#f6f8f3}
body.sd-checkout form.checkout{display:grid!important;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);align-items:start;gap:28px;max-width:1180px;margin:24px auto 48px;color:#103923}
body.sd-checkout form.checkout:before,body.sd-checkout form.checkout:after{display:none!important}
body.sd-checkout form.checkout #customer_details,body.sd-checkout form.checkout .wcf-order-wrap{float:none!important;width:auto!important;min-width:0;margin:0!important;padding:28px!important;background:#fff;border:1px solid #dbe6dc;border-radius:24px;box-shadow:0 12px 36px -28px #123b2455}
body.sd-checkout #customer_details .col-1,body.sd-checkout #customer_details .col-2{float:none!important;width:100%!important;max-width:none;padding:0!important;margin:0!important}
body.sd-checkout form.checkout h3{margin:0 0 22px!important;padding:0 0 16px!important;border:0!important;border-bottom:1px solid #dce7d9!important;color:#103923!important;font-size:21px!important;font-weight:700!important;line-height:1.35!important;letter-spacing:0!important;text-transform:none!important}
body.sd-checkout .woocommerce-additional-fields{margin-top:24px}
body.sd-checkout form.checkout .form-row{padding:0!important;margin:0 0 18px!important}
body.sd-checkout form.checkout .form-row label{font-size:13px!important;font-weight:500!important;line-height:1.5!important;color:#294b38!important;margin-bottom:7px!important;text-transform:none!important}
body.sd-checkout form.checkout .optional{color:#64776b;font-size:12px}
body.sd-checkout form.checkout input.input-text,body.sd-checkout form.checkout textarea,body.sd-checkout form.checkout select{box-sizing:border-box;width:100%;max-width:100%;min-height:46px;border:1px solid #cdddcf!important;border-radius:10px!important;padding:11px 13px!important;background:#fff!important;color:#173d28!important;font-size:15px!important;line-height:1.5!important;box-shadow:none!important}
body.sd-checkout form.checkout textarea{min-height:105px;resize:vertical}
body.sd-checkout form.checkout input.input-text:focus,body.sd-checkout form.checkout textarea:focus,body.sd-checkout form.checkout select:focus{border-color:#287a46!important;outline:3px solid #d9f26b66!important;outline-offset:1px}
body.sd-checkout .select2-container .select2-selection--single{height:46px!important;border:1px solid #cdddcf!important;border-radius:10px!important;background:white!important}
body.sd-checkout .select2-container .select2-selection--single .select2-selection__rendered{line-height:44px!important;padding-left:13px!important;color:#173d28!important;font-size:15px}
body.sd-checkout .select2-container .select2-selection--single .select2-selection__arrow{height:44px!important;right:8px!important}
body.sd-checkout form.checkout .woocommerce-invalid input.input-text{border-color:#b33b36!important}
body.sd-checkout #order_review{width:100%!important;float:none!important;margin:0!important;padding:0!important}
body.sd-checkout #order_review table.shop_table{width:100%!important;border:0!important;border-collapse:separate!important;border-spacing:0!important;margin:0 0 24px!important;background:white!important;table-layout:fixed}
body.sd-checkout #order_review table.shop_table th,body.sd-checkout #order_review table.shop_table td{border:0!important;border-bottom:1px solid #e3ebe2!important;padding:16px 12px!important;background:transparent!important;color:#254331;font-size:14px!important;line-height:1.65!important;text-transform:none!important;vertical-align:middle}
body.sd-checkout #order_review table.shop_table thead th{background:#f0f5ed!important;font-size:11px!important;letter-spacing:.08em!important;text-transform:uppercase!important;font-weight:700!important}
body.sd-checkout #order_review table.shop_table thead th:first-child{border-radius:12px 0 0 12px}
body.sd-checkout #order_review table.shop_table thead th:last-child{border-radius:0 12px 12px 0}
body.sd-checkout #order_review .product-name{width:64%;overflow-wrap:anywhere}
body.sd-checkout #order_review .product-total{width:36%;text-align:right!important}
body.sd-checkout #order_review tfoot td{text-align:right!important}
body.sd-checkout #order_review .amount{color:#103923!important;font-weight:650;white-space:nowrap}
body.sd-checkout #order_review .sd-co-item{display:flex;align-items:center;gap:12px}
body.sd-checkout #order_review .sd-co-img{flex:none;width:54px!important;max-width:54px!important;height:auto!important;border-radius:9px}
body.sd-checkout #order_review .sd-co-nazwa{min-width:0;font-size:13px;line-height:1.6}
body.sd-checkout #order_review .product-quantity{display:block;margin:5px 0 0;font-size:12px;color:#64776b;font-weight:500}
body.sd-checkout #order_review table.shop_table .order-total th,body.sd-checkout #order_review table.shop_table .order-total td{background:#edf5e4!important;border-bottom:0!important}
body.sd-checkout #order_review .order-total th{border-radius:12px 0 0 12px}
body.sd-checkout #order_review .order-total td{border-radius:0 12px 12px 0}
body.sd-checkout #order_review .order-total td>strong .amount{font-size:23px;font-weight:750}
body.sd-checkout #order_review .includes_tax{display:block;margin-top:5px;font-size:11px;line-height:1.6;color:#617267}
body.sd-checkout #order_review .includes_tax .amount{font-size:11px;font-weight:500;color:#617267!important}
body.sd-checkout #payment{background:transparent!important;border:0!important;border-radius:0!important;padding:0!important}
body.sd-checkout #payment ul.payment_methods{padding:0!important;border:0!important;margin:0 0 22px!important}
body.sd-checkout #payment ul.payment_methods>li{box-sizing:border-box;margin:0 0 12px!important;padding:16px!important;background:#fff;border:1px solid #d8e4d8;border-radius:16px;overflow-wrap:anywhere}
body.sd-checkout #payment ul.payment_methods>li:has(>input:checked){border-color:#86ad6d;background:#f8fbf3}
body.sd-checkout #payment input[type=radio],body.sd-checkout #payment input[type=checkbox]{accent-color:#17683c;min-width:18px;min-height:18px;vertical-align:middle}
body.sd-checkout #payment label{color:#173d28!important;line-height:1.6;font-weight:600}
body.sd-checkout #payment label img{max-height:30px;width:auto;max-width:110px;object-fit:contain}
body.sd-checkout #payment div.payment_box{box-sizing:border-box;width:100%;padding:12px 0 0!important;margin:10px 0 0!important;border:0!important;border-top:1px solid #dbe7d6!important;background:transparent!important;color:#516758!important;font-size:13px!important;line-height:1.65!important;box-shadow:none!important}
body.sd-checkout #payment div.payment_box:before{display:none!important}
body.sd-checkout #payment .payment_box p{margin:0 0 10px!important}
body.sd-checkout #payment .payment_box input[type=text],body.sd-checkout #payment .payment_box input[type=tel]{box-sizing:border-box;max-width:100%;min-height:46px;border:1px solid #bdcfb6;border-radius:10px;padding:10px 12px;background:white;color:#103923;font-size:16px}
body.sd-checkout #payment .place-order{padding:0!important;margin:0!important;float:none!important}
body.sd-checkout #payment .woocommerce-privacy-policy-text,body.sd-checkout #payment .woocommerce-terms-and-conditions-wrapper{font-size:12px;line-height:1.7;color:#617267}
body.sd-checkout #payment a{color:#17683c;text-decoration:underline;text-underline-offset:3px}
body.sd-checkout #payment #place_order{box-sizing:border-box;float:none!important;display:block!important;width:100%!important;max-width:100%;min-height:52px;padding:15px 20px!important;margin:20px 0 0!important;border:0!important;border-radius:999px!important;background:#d9f26b!important;color:#103923!important;box-shadow:0 8px 20px -12px #647c28!important;font-size:14px!important;font-weight:700!important;line-height:1.5!important;letter-spacing:0!important;white-space:normal!important;text-transform:none!important}
body.sd-checkout #payment #place_order:hover{background:#cbea55!important}
body.sd-checkout #payment #place_order:focus-visible{outline:3px solid #287a46;outline-offset:3px}
@media(max-width:900px){body.sd-checkout form.checkout{grid-template-columns:minmax(0,1fr);gap:22px;max-width:690px}body.sd-checkout form.checkout #customer_details,body.sd-checkout form.checkout .wcf-order-wrap{padding:24px!important}}
@media(max-width:600px){body.sd-checkout form.checkout{gap:18px;margin:12px auto 28px}body.sd-checkout form.checkout #customer_details,body.sd-checkout form.checkout .wcf-order-wrap{padding:18px!important;border-radius:18px}body.sd-checkout form.checkout h3{font-size:19px!important}body.sd-checkout form.checkout .form-row-first,body.sd-checkout form.checkout .form-row-last{float:none!important;width:100%!important}body.sd-checkout form.checkout input.input-text,body.sd-checkout form.checkout textarea{font-size:16px!important}body.sd-checkout #order_review table.shop_table td,body.sd-checkout #order_review table.shop_table th{padding:13px 8px!important;font-size:13px!important}body.sd-checkout #order_review .sd-co-img{width:42px!important;max-width:42px!important}body.sd-checkout #order_review .sd-co-item{gap:8px}body.sd-checkout #order_review .sd-co-nazwa{font-size:12px}body.sd-checkout #order_review .order-total td>strong .amount{font-size:21px}body.sd-checkout #payment ul.payment_methods>li{padding:13px!important}body.sd-checkout #payment #place_order{font-size:13px!important;padding:14px!important}}

body.sd-checkout form.checkout h3{text-align:left!important}
body.sd-checkout #order_review table.shop_table td.product-name{font-size:0!important;line-height:0!important}
body.sd-checkout #order_review .product-quantity{line-height:1.5}


body.sd-checkout #payment .tpay-input-wrapper{box-sizing:border-box;width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
body.sd-checkout #payment #blik_code{width:100%!important;max-width:100%!important;min-width:0!important}


body.sd-checkout #payment .tpay-row{min-width:0!important}
body.sd-checkout #payment .tpay-input-wrapper{max-width:220px!important;margin-left:auto!important;margin-right:auto!important}


body.sd-checkout form.checkout #order_review_heading{text-align:left!important}

/* Układ dwóch kolumn kasy zapisany jawnie (od 901 px): po lewej dane płatności, po prawej nagłówek "Zamówienie" i podsumowanie.
   Wcześniej układ zależał od przypadkowego pustego elementu w formularzu; teraz nie ma takiej zależności. */
@media(min-width:901px){
body.sd-checkout form.checkout{grid-template-rows:auto 1fr}
body.sd-checkout form.checkout>#customer_details{grid-column:1;grid-row:1 / span 2}
body.sd-checkout form.checkout>#order_review_heading{grid-column:2;grid-row:1}
body.sd-checkout form.checkout>#order_review{grid-column:2;grid-row:2}
}
/* pusty akapit z samymi ukrytymi polami (np. znacznik) nie może zajmować komórki siatki */
body.sd-checkout form.checkout>p:has(>input[type=hidden]):not(:has(>:not(input))){display:none}

/* Informacja o VAT pod kwotą "Do zapłaty" w jednym wierszu (także na telefonie).
   Kolumna z kwotą jest wąska, więc blok z tekstem wysuwamy w lewo nad pustą część komórki z napisem "Do zapłaty". */
body.sd-checkout #order_review tr.order-total .includes_tax{white-space:nowrap;margin-left:-160px;text-align:right}

/* Kafelki banków Tpay: logo wyśrodkowane w kafelku (wtyczka Tpay dociska je do prawej krawędzi) */
body.sd-checkout #payment .tpay-group-logo{float:none!important;margin-left:auto!important;margin-right:auto!important}
