/* PartyHandel Kalas – varukorg, kassa och Mitt konto (laddas bara där) */
/* ---------- Varukorgssida ---------- */
.page-main.page-flow .page-title { margin-top: 24px; }
.page-main { padding-bottom: 64px; }
.page-main > .wrap > .page-title { margin: 24px 0 20px; }
.woocommerce-cart .flow > .woocommerce { display: grid; gap: 24px; }
@media (min-width: 900px) {
	.woocommerce-cart .flow > .woocommerce { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
	.woocommerce-cart .flow > .woocommerce > .woocommerce-notices-wrapper, .woocommerce-cart .flow > .woocommerce > .ship-meter { grid-column: 1 / -1; }
	.woocommerce-cart .cart-collaterals { position: sticky; top: calc(var(--header-h) + 64px); }
}
table.shop_table { font-size: var(--fs-sm); }
table.shop_table th { text-align: left; font-weight: 650; color: var(--muted); font-size: var(--fs-xs); padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.shop_table td { padding: 16px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
@media (min-width: 768px) {
	table.cart { table-layout: fixed; }
	table.cart .product-remove { width: 48px; }
	table.cart .product-thumbnail { width: 100px; }
	table.cart .product-price { width: 110px; }
	table.cart .product-quantity { width: 160px; }
	table.cart .product-subtotal { width: 110px; text-align: right; }
}
table.cart .product-thumbnail img { width: 80px; height: 80px; max-width: none; object-fit: cover; border-radius: var(--r); }
table.cart td.product-subtotal { font-weight: 750; }
@media (min-width: 768px) {
	table.cart td.actions { text-align: right; }
	table.cart td.actions .coupon { float: left; flex-wrap: nowrap; }
	table.cart button[name="update_cart"] { margin-top: 0; }
}
table.cart .product-name a { font-weight: 650; text-decoration: none; }
table.cart .product-name a:hover { text-decoration: underline; color: var(--ink); }
table.cart .product-remove a.remove {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; text-decoration: none; font-size: 22px; line-height: 1; color: var(--muted);
}
table.cart .product-remove a.remove:hover { background: var(--red-soft); color: var(--red); }
table.cart td.actions { padding-top: 20px; }
table.cart .coupon { display: flex; gap: 8px; flex-wrap: wrap; float: none; }
table.cart .coupon .input-text { width: auto; flex: 1; min-width: 0; }
@media (min-width: 768px) { table.cart .coupon .input-text { min-width: 200px; } }
table.cart .coupon .button { white-space: nowrap; --bg: #000; --bd: #000; --fg: #fff; }
table.cart .coupon label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
table.cart button[name="update_cart"] { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); margin-top: 8px; }
.woocommerce-cart-form dl.variation { display: grid; grid-template-columns: auto 1fr; gap: 0 6px; font-size: var(--fs-xs); color: var(--muted); margin: 4px 0 0; }
.woocommerce-cart-form dl.variation dd, .woocommerce-cart-form dl.variation dd p { margin: 0; }
@media (max-width: 767px) {
	table.cart.shop_table_responsive thead { display: none; }
	table.cart.shop_table_responsive tr { display: grid; grid-template-columns: 80px 1fr auto; gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); position: relative; }
	table.cart.shop_table_responsive td { display: block; padding: 0; border: 0; text-align: left !important; }
	table.cart.shop_table_responsive td::before { display: none; }
	table.cart .product-thumbnail { grid-row: 1 / span 4; }
	table.cart .product-remove { position: absolute; right: -6px; top: 10px; }
	table.cart .product-name { grid-column: 2 / 4; padding-right: 36px; }
	table.cart .product-price { display: none; }
	table.cart .product-quantity { grid-column: 2; }
	table.cart .product-subtotal { grid-column: 3; align-self: center; font-weight: 750; }
	table.cart tr:last-child { display: block; }
	table.cart td.actions { display: grid; gap: 10px; }
}
.cart_totals { background: var(--mist); border-radius: var(--r-lg); padding: 20px; }
.cart_totals h2 { font-size: var(--fs-md); }
.cart_totals table { margin-bottom: 16px; }
.cart_totals th, .cart_totals td { padding: 10px 0 !important; border-bottom: 1px solid var(--line) !important; font-size: var(--fs-sm); }
.cart_totals th { color: var(--ink) !important; font-size: var(--fs-sm) !important; font-weight: 600 !important; }
.cart_totals td { text-align: right; }
.cart_totals .order-total th, .cart_totals .order-total td { font-size: var(--fs-md) !important; font-weight: 800 !important; border-bottom: 0 !important; }
.cart_totals .order-total small { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 56px; font-size: var(--fs-md); }
#shipping_method { list-style: none; display: grid; gap: 6px; text-align: left; }
#shipping_method li { display: flex; align-items: flex-start; justify-content: flex-end; gap: 6px; }
.woocommerce-checkout-review-order-table #shipping_method li { justify-content: flex-end; text-align: right; }
.woocommerce-shipping-destination { font-size: var(--fs-xs); color: var(--muted); margin: 6px 0 0; }
.shipping-calculator-button { font-size: var(--fs-xs); font-weight: 650; }
.shipping-calculator-form { margin-top: 10px; }
.cross-sells { margin-top: 32px; grid-column: 1 / -1; }
.cross-sells > h2 { font-size: var(--fs-md); }
.cart-empty.woocommerce-info { justify-content: center; font-size: var(--fs-md); background: none; border: 0; padding-top: 32px; }
.return-to-shop { text-align: center; }

/* ---------- Kassa ---------- */
.checkout-header { position: static; background: var(--yellow); color: #000; }
.checkout-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.checkout-bar .secure { display: none; margin: 0; align-items: center; gap: 6px; color: #000; font-size: var(--fs-sm); font-weight: 600; }
.checkout-bar .back-link { display: inline-flex; align-items: center; gap: 4px; color: #000; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.checkout-bar .back-link:hover { text-decoration: underline; color: #000; }
@media (min-width: 600px) { .checkout-bar .secure { display: inline-flex; } }
.checkout-footer { background: var(--mist); padding: 24px 0; font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.checkout-footer p { margin: 0; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.checkout-footer .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); margin: 0 6px; }
.woocommerce-checkout .page-title { margin-top: 24px; }
.woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce-form-login-toggle .woocommerce-info { background: none; border: 1px dashed var(--line-strong); }
form.checkout_coupon, form.woocommerce-form-login { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 24px; }
form.checkout_coupon { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
form.checkout_coupon p { margin: 0; }
form.checkout_coupon .form-row-first { flex: 1; width: auto; margin: 0; }
form.checkout_coupon .form-row-last { width: auto; margin: 0; }
form.checkout_coupon > p:first-child { flex-basis: 100%; }
form.checkout { display: grid; gap: 28px; }
@media (min-width: 900px) {
	form.checkout { grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: start; }
	form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
	form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; }
	form.checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; top: 24px; }
}
.col2-set .col-1, .col2-set .col-2 { width: 100%; float: none; }
#customer_details h3 { font-size: var(--fs-md); margin: 8px 0 16px; }
#customer_details .col-2 { margin-top: 20px; }
#ship-to-different-address label { font-size: var(--fs-base); display: flex; align-items: center; cursor: pointer; }
.woocommerce-additional-fields h3 { font-size: var(--fs-md); }
#order_review_heading { font-size: var(--fs-md); }
#order_review { background: var(--mist); border-radius: var(--r-lg); padding: 20px; }
.woocommerce-checkout-review-order-table { margin-bottom: 20px; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 10px 0 !important; border-bottom: 1px solid var(--line) !important; font-size: var(--fs-sm); vertical-align: top; }
.woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout-review-order-table td.product-total, .woocommerce-checkout-review-order-table tfoot td { text-align: right; }
.woocommerce-checkout-review-order-table .product-quantity { font-weight: 700; color: var(--muted); }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { font-size: var(--fs-md); font-weight: 800; border-bottom: 0 !important; color: var(--ink); }
.woocommerce-checkout-review-order-table tfoot th { font-weight: 600; color: var(--ink); text-align: left; font-size: var(--fs-sm); }
.woocommerce-checkout-review-order-table .ts-product-image, .woocommerce-checkout-review-order-table img { display: none; }
#payment { background: #fff; border-radius: var(--r); padding: 4px; }
#payment ul.payment_methods { list-style: none; display: grid; }
#payment ul.payment_methods > li { padding: 14px; border-bottom: 1px solid var(--line); }
#payment ul.payment_methods > li:last-child { border-bottom: 0; }
#payment ul.payment_methods > li > label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-base); cursor: pointer; }
#payment ul.payment_methods > li img { display: inline-block; max-height: 24px; width: auto; background: none; }
#payment .payment_box { margin-top: 12px; padding: 14px; border-radius: var(--r); background: var(--mist); font-size: var(--fs-sm); }
#payment .payment_box p:last-child { margin: 0; }
#payment .place-order { padding: 16px 14px 14px; margin: 0; }
#place_order { width: 100%; min-height: 58px; font-size: var(--fs-md); margin-top: 12px; --bg: var(--green); --bd: var(--green); --fg: #fff; }
#place_order:hover { --bg: #0b6245; --bd: #0b6245; }
.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper { font-size: var(--fs-xs); color: var(--muted); }
.woocommerce-terms-and-conditions-wrapper .form-row { margin: 10px 0 0; }
.woocommerce-terms-and-conditions { max-height: 200px; overflow: auto; border: 1px solid var(--line); padding: 12px; border-radius: var(--r); }
.blockUI.blockOverlay { background: rgba(255,255,255,.7) !important; opacity: 1 !important; }
.blockUI.blockOverlay::before {
	content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
	border: 3px solid var(--ink); border-right-color: transparent; animation: spin .7s linear infinite;
}
.processing { position: relative; }

/* Tack-sidan */
.woocommerce-order { max-width: 900px; }
.woocommerce-thankyou-order-received { font-size: var(--fs-lg); font-weight: 750; background: var(--ok-soft); color: var(--ok); padding: 18px 20px; border-radius: var(--r-lg); }
ul.order_details, .woocommerce-order-overview { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 20px 0 32px; }
ul.order_details li { background: var(--mist); border-radius: var(--r); padding: 14px; font-size: var(--fs-xs); color: var(--muted); }
ul.order_details li strong { display: block; color: var(--ink); font-size: var(--fs-base); margin-top: 4px; }
.woocommerce-order-details, .woocommerce-customer-details { margin-bottom: 32px; }
.woocommerce-customer-details address { font-style: normal; background: var(--mist); border-radius: var(--r); padding: 16px; line-height: 1.7; }
.woocommerce-order-details table td, .woocommerce-order-details table th { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; }

/* ---------- Mitt konto ---------- */
.woocommerce-account .flow > .woocommerce { display: grid; gap: 24px; }
@media (min-width: 900px) { .woocommerce-account.logged-in .flow > .woocommerce { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; } }
.woocommerce-MyAccount-navigation ul { list-style: none; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; }
.woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 16px; border-radius: var(--pill); background: var(--mist); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: #fff; }
@media (min-width: 900px) {
	.woocommerce-MyAccount-navigation ul { flex-direction: column; margin: 0; padding: 0; gap: 2px; }
	.woocommerce-MyAccount-navigation a { border-radius: var(--r); background: none; padding: 12px 14px; }
	.woocommerce-MyAccount-navigation a:hover { background: var(--mist); color: var(--ink); }
}
.woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-MyAccount-content > p:first-child { font-size: var(--fs-md); }
.woocommerce-orders-table .button, .woocommerce-MyAccount-content .button { min-height: 40px; padding: .4em 1em; font-size: var(--fs-sm); }
.woocommerce-Addresses { display: grid; gap: 20px; }
@media (min-width: 600px) { .woocommerce-Addresses { grid-template-columns: 1fr 1fr; } }
.woocommerce-Address { background: var(--mist); border-radius: var(--r-lg); padding: 20px; }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.woocommerce-Address-title h2 { font-size: var(--fs-md); }
.woocommerce-Address address { font-style: normal; line-height: 1.7; }
.woocommerce-form-login, .woocommerce-form-register { max-width: 460px; }
#customer_login.col2-set { display: grid; gap: 32px; }
@media (min-width: 900px) { #customer_login.col2-set { grid-template-columns: 1fr 1fr; gap: 48px; } }
#customer_login h2 { font-size: var(--fs-lg); }
.woocommerce-form-login__rememberme { display: flex !important; align-items: center; font-weight: 500 !important; margin: 4px 0 12px; }
.woocommerce-form-login__submit, .woocommerce-form-register__submit { width: 100%; }
.lost_password { font-size: var(--fs-sm); margin-top: 12px; }
.woocommerce-password-strength { font-size: var(--fs-xs); margin-top: 6px; padding: 6px 10px; border-radius: var(--r-sm); background: var(--mist); }
.woocommerce-password-strength.strong { background: var(--ok-soft); color: var(--ok); }
.woocommerce-password-strength.bad, .woocommerce-password-strength.short { background: var(--red-soft); color: var(--red); }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 20px 0; }
legend { font-weight: 700; padding: 0 6px; }
.show-password-input { display: none; }


/* ===============================================================
 * Kassan – kort till vänster, sammanfattning till höger
 * ============================================================= */
.woocommerce-checkout .page-main { background: #fafafa; }
form.checkout.kalas-checkout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; padding-bottom: 40px; }
@media (min-width: 960px) {
	form.checkout.kalas-checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; max-width: 1000px; margin-inline: auto; }
	.kalas-checkout .co-side { position: sticky; top: 20px; }
}
@media (max-width: 959px) { .kalas-checkout .co-side { order: -1; } }
.kalas-checkout #customer_details { display: grid; gap: 14px; width: auto; float: none; }
.kalas-checkout .co-main { display: grid; gap: 14px; min-width: 0; }
.co-title { margin: 8px 0 4px; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.co-card, .co-summary { background: #fff; border: 1px solid #ececec; border-radius: 16px; padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.co-card-head, .co-sum-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.co-card-head h2, .co-sum-head h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.co-card-head p, .co-sum-head p { margin: 2px 0 0; font-size: 13px; color: #777; }
.co-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: #f3f3f3; color: #333; }
.co-ico-yellow { background: var(--yellow); color: #000; }
/* Kundtyp */
.co-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-choice button { display: grid; justify-items: center; gap: 6px; padding: 16px 10px; border: 2px solid #e6e6e6; border-radius: 12px; background: #f6f6f6; color: #555; font-family: var(--font-display); font-weight: 700; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.co-choice button:hover { border-color: #bbb; }
.co-choice button[aria-checked="true"] { background: #fff; border-color: #000; color: #000; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.co-company { margin-top: 12px; }
/* Fält */
.kalas-checkout .co-fields, .kalas-checkout .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kalas-checkout .form-row { margin: 0; padding: 0; width: auto; float: none; grid-column: 1 / -1; }
.kalas-checkout .form-row-first { grid-column: 1; }
.kalas-checkout .form-row-last { grid-column: 2; }
.kalas-checkout .form-row input.input-text, .kalas-checkout .form-row select, .kalas-checkout .form-row textarea, .kalas-checkout .select2-container .select2-selection--single { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #e2e2e2; border-radius: 10px; background: #fff; font-size: 15px; color: #000; box-shadow: none; }
.kalas-checkout .form-row input.input-text:focus, .kalas-checkout .form-row select:focus { border-color: #000; outline: none; box-shadow: 0 0 0 3px rgba(255,222,13,.55); }
.kalas-checkout .form-row.woocommerce-invalid input.input-text { border-color: var(--pink); }
.kalas-checkout .woocommerce-input-wrapper.has-prefix { display: flex; }
.kalas-checkout .tel-prefix { display: inline-flex; align-items: center; padding: 0 12px; border: 1.5px solid #e2e2e2; border-right: 0; border-radius: 10px 0 0 10px; background: #f5f5f5; color: #555; font-size: 15px; font-weight: 600; }
.kalas-checkout .has-prefix input.input-text { border-radius: 0 10px 10px 0; }
.kalas-checkout #billing_country_field strong { display: block; font-weight: 600; padding: 4px 0; }
.kalas-checkout .woocommerce-shipping-fields, .kalas-checkout .woocommerce-additional-fields { background: #fff; border: 1px solid #ececec; border-radius: 16px; padding: 14px 18px; }
.kalas-checkout .woocommerce-additional-fields h3 { font-size: 1rem; margin: 0 0 10px; font-family: var(--font-display); }
.kalas-checkout #ship-to-different-address { margin: 0; font-size: 15px; font-family: var(--font); font-weight: 600; }
.kalas-checkout .shipping_address { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Betalning */
.co-pay .wc_payment_methods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.co-pay .wc_payment_method { display: contents; }
.co-pay .wc_payment_method > input.input-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-pay-card { position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 118px; padding: 16px 10px; margin: 0; border: 2px solid #e6e6e6; border-radius: 14px; background: #fafafa; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.co-pay-card:hover { border-color: #bbb; }
.wc_payment_method > input:checked + .co-pay-card { border-color: #ff8fb1; background: #fff4f8; }
.payment_method_stripe > input:checked + .co-pay-card, .wc_payment_method > input:checked + .co-pay-card:not(:has(.pay-logo-klarna)) { border-color: #000; background: #fff; }
.wc_payment_method > input:focus-visible + .co-pay-card { outline: 3px solid var(--turquoise); outline-offset: 2px; }
.co-pay-mark { display: grid; place-items: center; min-height: 40px; }
.co-pay-mark .pay-logo-klarna { height: 34px; border-radius: 8px; }
.co-pay-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; }
.co-pay-gw img { max-height: 26px; width: auto; display: inline-block; margin: 0 2px; }
.co-pay-title { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #000; }
.co-pay-sub { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: #777; }
.co-pay-sub .pay-logo { height: 14px; }
.co-pay-check { position: absolute; top: 8px; right: 8px; display: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #000; color: #fff; }
.wc_payment_method > input:checked + .co-pay-card .co-pay-check { display: grid; }
.co-pay .payment_box { grid-column: 1 / -1; order: 99; margin: 0; padding: 14px 16px; border-radius: 12px; background: #fff4f8; border: 1px solid #ffd3e2; font-size: 14px; color: #333; }
.co-pay .payment_box::before { display: none; }
.co-pay .payment_box p:last-child { margin-bottom: 0; }
.co-pay .payment_method_stripe .payment_box, .co-pay .payment_box:has(.wc-stripe-upe-element) { background: #fafafa; border-color: #eee; }
.co-secure { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 12px; color: #888; }
.co-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 18px -18px 0; padding: 14px 18px 0; border-top: 1px solid #f0f0f0; font-size: 13px; font-weight: 600; color: #333; }
.co-trust li { display: inline-flex; align-items: center; gap: 8px; }
.kalas-checkout .place-order { margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.kalas-checkout #place_order { width: 100%; min-height: 58px; border: 0; border-radius: 14px; background: linear-gradient(90deg, #FFDE0D, #FFE94D 50%, #FFDE0D); color: #000; font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 6px 18px rgba(255,196,0,.35); cursor: pointer; }
.kalas-checkout #place_order::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.kalas-checkout #place_order:hover { filter: brightness(.97); }
.co-legal { margin: 0; font-size: 12px; color: #777; text-align: center; }
.co-legal a { color: #333; }
/* Sammanfattning */
.kalas-checkout #order_review { margin: 0; }
.kalas-checkout .woocommerce-checkout-review-order-table { width: 100%; border: 0; margin: 0; border-collapse: collapse; }
.kalas-checkout .woocommerce-checkout-review-order-table td, .kalas-checkout .woocommerce-checkout-review-order-table th { padding: 6px 0 !important; border: 0 !important; font-size: 14px; background: none; }
.kalas-checkout .woocommerce-checkout-review-order-table tbody td { padding: 0 0 10px !important; }
.kalas-checkout .woocommerce-checkout-review-order-table tbody td.product-total { font-weight: 700; white-space: nowrap; padding-left: 10px !important; vertical-align: top; }
.kalas-checkout .woocommerce-checkout-review-order-table img { display: block; }
.co-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 12px; background: #f7f7f7; }
.co-item-img { flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #fff; }
.co-item-img img { width: 100%; height: 100%; object-fit: contain; }
.co-item-info { display: grid; gap: 4px; min-width: 0; font-size: 13px; }
.co-item-name { font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-item-info dl.variation { margin: 0; font-size: 12px; color: #777; }
.co-item-info dl.variation dt, .co-item-info dl.variation dd { display: inline; margin: 0; }
.co-item-info dl.variation dd p { display: inline; margin: 0; }
.kalas-checkout .co-item .product-quantity { justify-self: start; padding: 1px 7px; border-radius: 6px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; }
.kalas-checkout .woocommerce-checkout-review-order-table tfoot tr:first-child th, .kalas-checkout .woocommerce-checkout-review-order-table tfoot tr:first-child td { border-top: 1px solid #eee !important; padding-top: 12px !important; }
.kalas-checkout .woocommerce-checkout-review-order-table tfoot th { font-weight: 500; color: #666; text-align: left; }
.kalas-checkout .woocommerce-checkout-review-order-table tfoot td { text-align: right; }
.kalas-checkout #shipping_method { list-style: none; margin: 0; padding: 0; }
.kalas-checkout #shipping_method li { display: flex; justify-content: flex-end; gap: 6px; }
.kalas-checkout .order-total th, .kalas-checkout .order-total td { padding: 14px 12px !important; background: #fff8d6 !important; font-family: var(--font-display); font-size: 1.05rem !important; font-weight: 900 !important; color: #000 !important; }
.kalas-checkout .order-total th { border-radius: 12px 0 0 12px; }
.kalas-checkout .order-total td { border-radius: 0 12px 12px 0; }
.kalas-checkout .order-total td .amount { color: #f0a500; font-size: 1.25rem; }
.kalas-checkout .order-total td small { display: block; font-size: 11px; font-weight: 500; color: #888; font-family: var(--font); }
.kalas-checkout tr.order-total + tr th, .kalas-checkout tr.order-total + tr td { padding-top: 6px !important; }
.co-note { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fffbe6; border: 1px solid #ffe88a; }
.co-note .pay-logo-postnord { height: 12px; flex: none; }
.co-note strong { display: block; font-size: 13px; }
.co-note span { display: block; font-size: 12px; color: #777; }
.co-coupon { margin-top: 12px; border-top: 1px solid #eee; padding-top: 10px; }
.co-coupon summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; padding: 4px 0; }
.co-coupon summary::-webkit-details-marker { display: none; }
.co-coupon summary .icon:last-child { margin-left: auto; transition: transform .2s; }
.co-coupon[open] summary .icon:last-child { transform: rotate(180deg); }
.co-coupon-row { display: flex; gap: 8px; margin-top: 8px; }
.co-coupon-row input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1.5px solid #e2e2e2; border-radius: 10px; font-size: 15px; }
.co-coupon-row .btn { background: #000; color: #fff; min-height: 44px; }
.co-coupon-msg { margin: 6px 0 0; font-size: 13px; }
.co-coupon-msg.is-error { color: var(--pink); }
.co-coupon-msg.is-ok { color: #0a9a5c; }
.co-help { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #eee; font-size: 13px; color: #666; }
.co-help a { margin-left: auto; color: #000; font-weight: 700; }
.kalas-checkout .blockUI.blockOverlay { border-radius: 16px; }
@media (max-width: 480px) {
	.co-card, .co-summary { padding: 14px; border-radius: 14px; }
	.co-trust { margin-inline: -14px; }
}
/* Ta bort äldre kassaregler inuti den nya layouten */
.kalas-checkout #customer_details, .kalas-checkout #order_review, .kalas-checkout #order_review_heading { grid-column: auto !important; grid-row: auto !important; position: static !important; }
.kalas-checkout .woocommerce-checkout-review-order-table, .kalas-checkout .woocommerce-checkout-review-order-table tbody, .kalas-checkout .woocommerce-checkout-review-order-table tfoot, .kalas-checkout .woocommerce-checkout-review-order-table tr { background: transparent !important; }
.kalas-checkout #order_review { background: none !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
.kalas-checkout .woocommerce-input-wrapper.has-prefix { flex-wrap: wrap; }
.kalas-checkout .has-prefix input.input-text { flex: 1; min-width: 0; width: auto; }
.kalas-checkout .form-row .description { flex-basis: 100%; display: block; margin-top: 4px; font-size: 12px; color: #888; position: static; background: none; padding: 0; }
.kalas-checkout .form-row .description::before { display: none; }
.kalas-checkout #billing_country_field label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.kalas-checkout .woocommerce-privacy-policy-text { display: none; }
.kalas-checkout .co-pay .wc_payment_methods { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }
.kalas-checkout .co-pay .co-pay-card { display: grid !important; justify-items: center; align-content: center; width: auto; flex-direction: column; text-align: center; }
.kalas-checkout .co-pay .payment_box { background: #fafafa !important; border: 1px solid #eee !important; }
.kalas-checkout .co-pay .wc_payment_method:has(.pay-logo-klarna) .payment_box { background: #fff4f8 !important; border-color: #ffd3e2 !important; color: #c2185b; }
.kalas-checkout #place_order { text-transform: none; letter-spacing: 0; }
.kalas-checkout > .co-title { grid-column: 1 / -1; order: -2; }
.kalas-checkout .co-pay .wc_payment_methods { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)) !important; }
/* Mobil: beställningen som ihopfälld rad överst */
.co-mbar { display: none; }
@media (max-width: 959px) {
	.kalas-checkout .co-side { position: sticky; top: 0; z-index: 30; margin-inline: -16px; }
	.co-mbar { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid #ececec; background: #fff; color: #000; text-align: left; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.06); font: inherit; }
	.co-mbar-text { display: grid; flex: 1; min-width: 0; line-height: 1.2; }
	.co-mbar-text strong { font-family: var(--font-display); font-weight: 800; font-size: 15px; }
	.co-mbar-text small { font-size: 12px; color: #777; }
	.co-mbar-total { font-family: var(--font-display); font-weight: 900; font-size: 17px; white-space: nowrap; }
	.co-mbar-total .amount { color: #000; }
	.co-mbar-chev { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f3f3f3; transition: transform .25s; }
	.co-mbar[aria-expanded="true"] .co-mbar-chev { transform: rotate(180deg); }
	.kalas-checkout .co-summary { display: none; border-radius: 0 0 16px 16px; border-top: 0; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); overflow-y: auto; box-shadow: 0 14px 28px rgba(0,0,0,.12); }
	.kalas-checkout .co-side.is-open .co-summary { display: block; animation: co-drop .22s ease-out; }
	.kalas-checkout .co-side .co-sum-head { display: none; }
}
@keyframes co-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .kalas-checkout .co-side.is-open .co-summary { animation: none; } }
@media (max-width: 959px) { .kalas-checkout .co-side.is-open { position: relative; } .kalas-checkout .co-side.is-open .co-summary { max-height: none; } }

/* Betalsätt: korten på en rad, förklarande ruta över hela bredden under korten */
.co-pay .wc_payment_methods { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.co-pay .wc_payment_method > .payment_box { grid-column: 1 / -1; order: 10; width: 100%; min-width: 0; margin: 0; box-sizing: border-box; }
.co-pay .wc_payment_method > .payment_box * { max-width: 100%; }
@media (max-width: 420px) { .co-pay .wc_payment_methods { grid-template-columns: minmax(0, 1fr); } }

/* Betalsätt (flex): två kort på en rad, förklarande ruta över hela bredden under */
.co-pay .wc_payment_methods { display: flex; flex-wrap: wrap; gap: 10px; }
.co-pay .wc_payment_method > .co-pay-card { flex: 1 1 calc(50% - 5px); min-width: 140px; box-sizing: border-box; }
.co-pay .wc_payment_method > .payment_box { flex: 0 0 100%; order: 10; width: 100%; box-sizing: border-box; margin: 0; }
.co-pay .wc_payment_method > .payment_box:empty { display: none; }

/* Betalsätt: id-specifika regler (slår #payment ul.payment_methods) */
.co-pay #payment ul.payment_methods { display: flex; flex-wrap: wrap; gap: 10px; }
.co-pay #payment ul.payment_methods > li.wc_payment_method { display: contents; padding: 0; border: 0; }
.co-pay #payment ul.payment_methods > li > .co-pay-card { flex: 1 1 calc(50% - 5px); min-width: 140px; box-sizing: border-box; }
.co-pay #payment ul.payment_methods > li > .payment_box { flex: 0 0 100%; order: 10; width: 100%; box-sizing: border-box; margin: 0; }

/* Betalsätt: sista ordet (vinner över äldre regler) */
.co-pay #payment ul.payment_methods { display: flex !important; flex-wrap: wrap !important; gap: 10px !important; grid-template-columns: none !important; }
.co-pay #payment ul.payment_methods > li { display: contents !important; }
.co-pay #payment ul.payment_methods > li > .co-pay-card { flex: 1 1 calc(50% - 5px) !important; min-width: 140px; box-sizing: border-box; }
.co-pay #payment ul.payment_methods > li > .payment_box { flex: 0 0 100% !important; order: 10 !important; width: 100% !important; box-sizing: border-box; margin: 0 !important; }

/* Tack-sidan: tydlig bekräftelse, orderkort och nästa steg. */
.woocommerce-order-received .page-title { display: none; }
.woocommerce-order { max-width: 760px; margin-inline: auto; padding-top: 12px; }
.woocommerce-order > .woocommerce-thankyou-order-received, .woocommerce-order > ul.order_details { display: none; }
.ty-hero { text-align: center; padding: 28px 8px 8px; }
.ty-badge { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 0 0 10px var(--ok-soft); margin-bottom: 22px; }
.ty-badge svg { stroke-width: 2.6; }
.ty-title { font-size: clamp(1.7rem, 5.6vw, 2.5rem); line-height: 1.1; margin: 0 0 10px; }
.ty-lead { color: var(--muted); font-size: var(--fs-md); max-width: 46ch; margin: 0 auto; }
.ty-lead strong { color: var(--ink); overflow-wrap: anywhere; }
.ty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 36px 0 12px; }
.ty-actions .btn { min-width: 180px; }
ul.ty-facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 28px 0 24px; text-align: center; }
ul.ty-facts li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 10px; font-size: var(--fs-xs); color: var(--muted); }
ul.ty-facts li strong { display: block; color: var(--ink); font-size: var(--fs-md); margin-top: 4px; overflow-wrap: anywhere; }
@media (max-width: 640px) { ul.ty-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ty-steps { list-style: none; margin: 0 0 36px; padding: 18px; display: grid; gap: 16px; background: var(--mist); border-radius: var(--r-lg); }
.ty-steps li { display: flex; gap: 14px; align-items: flex-start; }
.ty-steps li div { display: grid; gap: 2px; font-size: var(--fs-sm); color: var(--muted); }
.ty-steps li strong { color: var(--ink); font-size: var(--fs-base); }
.ty-steps a { font-weight: 700; color: var(--ink); text-decoration: underline; }
.ty-step-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: #000; font-weight: 800; font-size: var(--fs-sm); }
.woocommerce-order-details__title, .woocommerce-column__title { font-size: var(--fs-lg); margin: 0 0 12px; }
.woocommerce-table--order-details { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.woocommerce-table--order-details thead { display: none; }
.woocommerce-table--order-details th, .woocommerce-table--order-details td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.woocommerce-table--order-details td:last-child, .woocommerce-table--order-details tfoot td { text-align: right; white-space: nowrap; font-weight: 700; }
.woocommerce-table--order-details tfoot th { font-weight: 600; color: var(--muted); font-size: var(--fs-sm); }
.woocommerce-table--order-details tfoot tr:last-child th, .woocommerce-table--order-details tfoot tr:last-child td { border-bottom: 0; }
.woocommerce-table--order-details tfoot tr.order_total th, .woocommerce-table--order-details tfoot tr.order_total td { font-size: var(--fs-lg); color: var(--ink); background: var(--mist); }
.woocommerce-table--order-details .product-name { font-weight: 600; overflow: hidden; }
.woocommerce-table--order-details .product-name a { text-decoration: none; color: var(--ink); }
.woocommerce-table--order-details .product-quantity { color: var(--muted); }
.woocommerce-table--order-details .wc-item-meta { list-style: none; margin: 4px 0 0; padding: 0; font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
.woocommerce-table--order-details .wc-item-meta li { display: inline; margin-right: 8px; }
.woocommerce-table--order-details .wc-item-meta p { display: inline; margin: 0; }
.oi-thumb { float: left; width: 64px; height: 64px; margin: 0 14px 0 0; border-radius: var(--r); overflow: hidden; background: var(--mist); }
.oi-img { width: 100%; height: 100%; object-fit: cover; }
.woocommerce-columns--addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .woocommerce-columns--addresses { grid-template-columns: 1fr; } .woocommerce-table--order-details th, .woocommerce-table--order-details td { padding: 12px; } .oi-thumb { width: 54px; height: 54px; } }
.woocommerce-customer-details address { margin: 0; padding: 16px 18px; border: 1px solid var(--line); background: #fff; font-size: var(--fs-sm); overflow-wrap: anywhere; }
