/*
 * Ayorn Tools: koszyk i kasa w stylu reszty sklepu (17.10, D73).
 * Tylko wygląd: pola, ramki, panele, przyciski. Nie zmienia pól ani kolejności (bramka Paynow, NIP, InPost działają jak dotąd).
 * Ładowany wyłącznie na stronach koszyka i kasy.
 */

/* Pola formularza: cienka ciepła ramka, lekko zaokrąglone, ciemna ramka przy pisaniu */
.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout .select2-container .select2-selection,
.woocommerce-cart .input-text,
.woocommerce-cart select {
	border: 1px solid #d8cfc4 !important;
	border-radius: 8px !important;
	background-color: #fff !important;
	box-shadow: none !important;
}
.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-cart .input-text:focus { border-color: #241c18 !important; }
.woocommerce-checkout .select2-container .select2-selection--single { height: auto; min-height: 2.507em; }

/* Nagłówki sekcji */
.woocommerce-checkout h3,
.woocommerce-checkout .checkout h3,
.woocommerce-cart .cart_totals h2,
.woocommerce-cart .shop_table thead th {
	font-weight: 400 !important;
	letter-spacing: .02em;
}
.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #order_review_heading { text-transform: none !important; font-size: 22px !important; }

/* Podsumowanie zamówienia: jasny panel zamiast grubej czarnej ramki */
.woocommerce-checkout .col-inner.has-border {
	border: 1px solid #ece3d6 !important;
	border-radius: 14px !important;
	background: #fbf8f3;
	padding: 26px 24px !important;
}
.woocommerce-checkout .shop_table,
.woocommerce-cart .cart_totals .shop_table { border: 0 !important; }
.woocommerce-checkout .shop_table th,
.woocommerce-checkout .shop_table td { border-color: #ece3d6 !important; }
.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name { font-size: 15px; color: #241c18; }
.woocommerce-checkout .woocommerce-checkout-review-order-table .variation,
.woocommerce-checkout .woocommerce-checkout-review-order-table .wc-item-meta { color: #6f645d; font-size: 13px; }
.woocommerce-checkout .order-total th,
.woocommerce-checkout .order-total td,
.woocommerce-cart .order-total th,
.woocommerce-cart .order-total td { font-size: 18px !important; color: #241c18 !important; }

/* Płatności: każda metoda jako jasny wiersz */
.woocommerce-checkout #payment { background: transparent !important; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods { border: 0 !important; padding: 0 !important; }
.woocommerce-checkout #payment ul.payment_methods > li {
	margin: 0 0 8px !important;
	padding: 12px 14px !important;
	border: 1px solid #ece3d6;
	border-radius: 10px;
	background: #fff;
	list-style: none;
}
.woocommerce-checkout #payment div.payment_box { background: #fbf8f3 !important; border-radius: 8px; color: #4a413b; }
.woocommerce-checkout #payment div.payment_box::before { display: none !important; }

/* Dostawa: metody jako wiersze, przycisk paczkomatu zaokrąglony */
.woocommerce-checkout #shipping_method li,
.woocommerce-cart #shipping_method li { margin-bottom: 8px; }
.woocommerce-checkout .button:not(#place_order):not(.alt),
.woocommerce-cart .button:not(.checkout-button):not(.alt),
.woocommerce-checkout #shipping_method button,
.woocommerce-cart #shipping_method button {
	border-radius: 999px !important;
}
.woocommerce-cart .shipping-calculator-button { color: #9a7a35 !important; }

/* Koszyk: tabela lżejsza, ilość jako pastylka, kupon zaokrąglony */
.woocommerce-cart .shop_table td,
.woocommerce-cart .shop_table th { border-color: #ece3d6 !important; }
.woocommerce-cart .shop_table .product-name a { color: #241c18 !important; font-size: 16px; }
.woocommerce-cart .shop_table .variation { color: #6f645d; font-size: 13px; }
.woocommerce-cart .ux-quantity,
.woocommerce-checkout .ux-quantity { border-radius: 999px; overflow: hidden; border: 1px solid #d8cfc4; }
.woocommerce-cart .ux-quantity .input-text,
.woocommerce-cart .ux-quantity .button { border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important; }
.woocommerce-cart a.remove { border-color: #d8cfc4 !important; color: #8a7d74 !important; }
.woocommerce-cart a.remove:hover { background: #241c18 !important; border-color: #241c18 !important; color: #fff !important; }
.woocommerce-cart .coupon .input-text { border-radius: 999px !important; }
.woocommerce-cart .cart_totals { padding: 24px 22px; border: 1px solid #ece3d6; border-radius: 14px; background: #fbf8f3; }
.woocommerce-cart .continue-shopping .button,
.woocommerce-cart .button-continue-shopping { border-radius: 999px !important; border-color: #241c18 !important; }

/* Kupon na kasie i komunikaty */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-info,
.woocommerce-cart .woocommerce-info { border-radius: 10px; }
.woocommerce-checkout .woocommerce-form-coupon { border-radius: 12px !important; border-color: #ece3d6 !important; }
.woocommerce-checkout .woocommerce-privacy-policy-text { font-size: 13px; color: #6f645d; }

@media (max-width: 549px) {
	.woocommerce-checkout .col-inner.has-border { padding: 18px 14px !important; border-radius: 12px !important; }
	.woocommerce-cart .cart_totals { padding: 18px 14px; }
}

/* QA 17.10: wszystkie przyciski koszyka w jednym stylu i jednej wysokości */
.woocommerce-cart .select-paczkomat-button,
.woocommerce-checkout .select-paczkomat-button,
.woocommerce-cart button[name="apply_coupon"],
.woocommerce-cart .coupon .button {
	min-height: 44px !important; padding: 0 20px !important; border: 0 !important; border-radius: 999px !important;
	background: linear-gradient(135deg, #f3e6c4, #dcc082) !important; color: #241c18 !important;
	font-weight: 600 !important; letter-spacing: .06em; box-shadow: none !important; text-shadow: none !important;
}
.woocommerce-cart .return-to-shop .button,
.woocommerce .return-to-shop .button {
	min-height: 46px !important; padding: 0 26px !important; border: 0 !important; border-radius: 999px !important;
	background: linear-gradient(135deg, #ead7a6 0%, #cfab5c 50%, #b8892c 100%) !important; background-origin: border-box !important; color: #241c18 !important;
}
.woocommerce-cart .continue-shopping .button,
.woocommerce-cart .button-continue-shopping {
	min-height: 44px !important; border: 1px solid #c9a24f !important; color: #241c18 !important; background: #fff !important;
}
.woocommerce-cart .ux-quantity .button { min-width: 36px; min-height: 40px; }
.woocommerce-cart .checkout-button { min-height: 48px !important; display: flex !important; align-items: center; justify-content: center; }

/* 18.10: więcej miejsca nad kuponem (był przyklejony do podsumowania) */
.woocommerce-cart .cart-sidebar form.ux-cart-coupon { margin-top: 32px !important; padding-top: 22px; border-top: 1px solid #ece3d6; }
.woocommerce-cart .cart-sidebar form.ux-cart-coupon .widget-title, .woocommerce-cart .cart-sidebar form.ux-cart-coupon h3 { margin-bottom: 12px !important; }

/* 18.10: BLIK (Paynow): etykieta i pole kodu w jednej linii w ramce, bez wychodzenia poza nią */
.paynow-blik-white-label .row { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px !important; width: auto !important; max-width: 100% !important; }
.paynow-blik-white-label .row > [class*="col-"] { flex: 0 0 auto !important; max-width: 100% !important; width: auto !important; padding: 0 !important; margin: 0 !important; }
.paynow-blik-white-label .form-control-label { font-size: 14px; font-weight: 600; color: #241c18; }
.paynow-blik-white-label #paynow_blik_code { width: 170px !important; height: 46px !important; margin: 0 !important; border: 1px solid #d8cfc4 !important; border-radius: 999px !important; text-align: center; font-size: 20px !important; letter-spacing: .2em; background: #fff !important; box-shadow: none !important; }
.paynow-blik-white-label #paynow_blik_code:focus { border-color: #241c18 !important; }
.payment_box.payment_method_pay_by_paynow_pl_blik { padding: 14px 16px !important; }
