/* Haypost delivery options in the cart and at checkout: one card per option, the whole card is the click target.
   Colours follow the theme's custom properties and fall back to neutral values. */
/* The totals tables become grid rows (label | amount), so the delivery row can span the full width without breaking the column widths */
.woocommerce-checkout-review-order-table,.woocommerce-checkout-review-order-table thead,.woocommerce-checkout-review-order-table tbody,.woocommerce-checkout-review-order-table tfoot,
.cart_totals table.shop_table,.cart_totals table.shop_table tbody{display:block;width:100%}
.woocommerce-checkout-review-order-table tr,.cart_totals table.shop_table tr{display:grid;grid-template-columns:minmax(0,1fr) auto}
.woocommerce-checkout-review-order-table tr>:last-child,.cart_totals table.shop_table tr>:last-child{padding-left:1rem}
.woocommerce-checkout-review-order-table td:last-child,.cart_totals table.shop_table td:last-child{white-space:nowrap}
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals,.cart_totals table.shop_table tr.woocommerce-shipping-totals{grid-template-columns:minmax(0,1fr);padding:.9rem 0 .4rem;border-bottom:1px solid var(--line-soft,rgba(16,32,27,.13))}
.woocommerce tr.woocommerce-shipping-totals th,
.woocommerce tr.woocommerce-shipping-totals td{display:block;width:100%;padding:0 !important;border:0;text-align:left;white-space:normal}
.woocommerce tr.woocommerce-shipping-totals th{margin-bottom:.7rem;font-size:.8125rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--gold,#8c6d1f)}

.woocommerce ul#shipping_method{list-style:none;margin:0;padding:0;display:grid;gap:10px;text-align:left}
.woocommerce ul#shipping_method li{position:relative;margin:0;padding:0;border:1px solid var(--line-soft,rgba(16,32,27,.2));background:#fff;transition:border-color .2s,box-shadow .2s,background-color .2s}
.woocommerce ul#shipping_method li:hover{border-color:var(--accent,#0b3f33)}
.woocommerce ul#shipping_method li:has(input:checked){border-color:var(--accent,#0b3f33);box-shadow:inset 0 0 0 1px var(--accent,#0b3f33);background:#f6faf8}
.woocommerce ul#shipping_method li label{display:block;margin:0;padding:14px 14px 14px 46px;cursor:pointer;font-weight:400;line-height:1.35}
/* a single option has no radio: it is shown as information, not as a choice */
.woocommerce ul#shipping_method li:not(:has(input[type=radio])) label{padding-left:14px;cursor:default}
.woocommerce ul#shipping_method li:not(:has(input[type=radio])):hover{border-color:var(--line-soft,rgba(16,32,27,.2))}

.woocommerce ul#shipping_method input[type=radio]{position:absolute;left:14px;top:16px;width:20px;height:20px;margin:0;appearance:none;-webkit-appearance:none;display:grid;place-content:center;border:1.5px solid #6f7d77;border-radius:50%;background:#fff;cursor:pointer}
.woocommerce ul#shipping_method input[type=radio]:checked{border-color:var(--accent,#0b3f33)}
.woocommerce ul#shipping_method input[type=radio]:checked::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--accent,#0b3f33)}
.woocommerce ul#shipping_method input[type=radio]:focus-visible{outline:2px solid var(--accent,#0b3f33);outline-offset:3px}

.shipopt{display:block}
.shipopt__main{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.shipopt__name{font-weight:500;font-size:1rem}
.shipopt__price{flex:none;white-space:nowrap;font-weight:500;font-variant-numeric:tabular-nums}
.shipopt__meta{display:block;margin-top:4px;font-size:.9375rem;color:var(--ink,#10201b)}
.shipopt__meta b{font-weight:500}
.shipopt__svc{display:block;margin-top:2px;font-size:.8125rem;color:var(--muted,#55625c)}

.woocommerce tr.nissi-delivery-note{grid-template-columns:minmax(0,1fr)}
.woocommerce tr.nissi-delivery-note td{display:block;white-space:normal;padding:.6rem 0 .8rem;border:0;text-align:left;font-size:.8125rem;line-height:1.5;color:var(--muted,#55625c)}

.nissi-no-delivery{margin:0;padding:12px 14px;border:1px solid var(--line-soft,rgba(16,32,27,.2));background:#fff;font-size:.9375rem;line-height:1.5;text-align:left}

/* the cart totals of the theme right-align and no-wrap their cells: the delivery block keeps its own left-aligned layout */
.woocommerce .cart_totals ul#shipping_method,
.woocommerce .cart_totals ul#shipping_method li label,
.woocommerce .cart_totals tr.woocommerce-shipping-totals td{text-align:left}
.woocommerce .cart_totals table.shop_table tr.nissi-delivery-note td{white-space:normal;text-align:left}
.woocommerce .cart_totals .woocommerce-shipping-destination{display:block;margin-top:.7rem;text-align:left}

/* the delivery-time note: a quiet side note with a gold rule, not a grey paragraph */
.woocommerce tr.nissi-delivery-note td{padding:.1rem 0 .1rem 12px !important;border:0 !important;border-left:2px solid var(--gold-foil,#b8933a) !important;font-size:.8125rem;line-height:1.5}
.woocommerce .cart_totals tr.nissi-delivery-note{margin:.2rem 0 .6rem}
