/* Dormina Cart Premium v0.7.6: Shipping cards for classic WooCommerce cart
   and checkout. Presentation only; rates and pickup selectors are untouched. */

/* The shipping row now contains a single TD with colspan=2, normalized by JS.
   Treat it as a real table row, not a CSS grid or block in a two-column table. */
.dormina-cart .cart_totals tr.dormina-shipping-wide,
body.woocommerce-checkout .woocommerce-checkout-review-order tr.dormina-shipping-wide {
    display:table-row!important;
    width:auto!important;
    max-width:none!important;
}
.dormina-cart .cart_totals tr.dormina-shipping-wide > td,
body.woocommerce-checkout .woocommerce-checkout-review-order tr.dormina-shipping-wide > td {
    display:table-cell!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    box-sizing:border-box!important;
    float:none!important;
    border:0!important;
    border-bottom:1px solid rgba(40,37,31,.14)!important;
    padding:13px 0 17px!important;
    background:transparent!important;
    text-align:left!important;
    vertical-align:top!important;
}
.dormina-cart .cart_totals tr.dormina-shipping-wide > td::before,
body.woocommerce-checkout .woocommerce-checkout-review-order tr.dormina-shipping-wide > td::before {
    content:none!important;
    display:none!important;
}
.dormina-shipping-heading {
    display:block!important;
    margin:0 0 13px!important;
    color:#28251F!important;
    font:700 12px/1.4 "Manrope",Arial,sans-serif!important;
}

/* Shipping lists: occupy the whole summary cell, never a half-column. */
.dormina-cart .cart_totals .woocommerce-shipping-methods,
.dormina-cart .cart_totals #shipping_method,
body.woocommerce-checkout .woocommerce-checkout-review-order .woocommerce-shipping-methods,
body.woocommerce-checkout .woocommerce-checkout-review-order #shipping_method {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:9px!important;
    list-style:none!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    box-sizing:border-box!important;
    float:none!important;
    padding:0!important;
    margin:0!important;
}
/* Each rate is one independent card. The native radio is absolutely positioned,
   while the real WC label reserves its own space. No grid-placement conflicts
   with Astra, custom checkout or BLPaczka styling. */
.dormina-cart .cart_totals .woocommerce-shipping-methods > li,
.dormina-cart .cart_totals #shipping_method > li,
body.woocommerce-checkout .woocommerce-checkout-review-order .woocommerce-shipping-methods > li,
body.woocommerce-checkout .woocommerce-checkout-review-order #shipping_method > li {
    display:block!important;
    position:relative!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:14px 14px!important;
    border:1px solid #D9CFC3!important;
    border-radius:9px!important;
    background:#FFFDFB!important;
    box-shadow:none!important;
    color:#28251F!important;
    font:600 12px/1.45 "Manrope",Arial,sans-serif!important;
    list-style:none!important;
    text-align:left!important;
    transition:background-color .15s,border-color .15s;
}
.dormina-cart .cart_totals .woocommerce-shipping-methods > li:has(> input:checked),
.dormina-cart .cart_totals #shipping_method > li:has(> input:checked),
body.woocommerce-checkout .woocommerce-checkout-review-order .woocommerce-shipping-methods > li:has(> input:checked),
body.woocommerce-checkout .woocommerce-checkout-review-order #shipping_method > li:has(> input:checked) {
    border-color:#89715C!important;
    background:#F6F0E9!important;
    box-shadow:inset 0 0 0 1px rgba(137,113,92,.15)!important;
}
/* Keep the real radio accessible. Fixed 17px control at left, top of card. */
.dormina-cart .cart_totals .woocommerce-shipping-methods > li > input[type="radio"],
.dormina-cart .cart_totals #shipping_method > li > input[type="radio"],
body.woocommerce-checkout .woocommerce-checkout-review-order .woocommerce-shipping-methods > li > input[type="radio"],
body.woocommerce-checkout .woocommerce-checkout-review-order #shipping_method > li > input[type="radio"] {
    display:block!important;
    box-sizing:border-box!important;
    position:absolute!important;
    left:14px!important;
    top:17px!important;
    transform:none!important;
    opacity:1!important;
    visibility:visible!important;
    float:none!important;
    width:17px!important;
    height:17px!important;
    min-width:17px!important;
    min-height:17px!important;
    max-width:17px!important;
    max-height:17px!important;
    padding:0!important;
    margin:0!important;
    border-radius:50%!important;
    accent-color:#89715C!important;
    cursor:pointer!important;
    z-index:2!important;
}
/* Labels have an explicit text inset so native radios can never cover names.
   The price chip remains at the right, wrapping below on narrow screens. */
.dormina-cart .cart_totals .woocommerce-shipping-methods > li > label,
.dormina-cart .cart_totals #shipping_method > li > label,
body.woocommerce-checkout .woocommerce-checkout-review-order .woocommerce-shipping-methods > li > label,
body.woocommerce-checkout .woocommerce-checkout-review-order #shipping_method > li > label {
    display:flex!important;
    position:static!important;
    float:none!important;
    transform:none!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:6px 12px!important;
    box-sizing:border-box!important;
    min-width:0!important;
    max-width:none!important;
    min-height:24px!important;
    width:100%!important;
    margin:0!important;
    margin-left:0!important;
    padding:0 0 0 30px!important;
    text-indent:0!important;
    color:#28251F!important;
    font:600 12px/1.45 "Manrope",Arial,sans-serif!important;
    text-align:left!important;
    cursor:pointer!important;
}
/* Native paid amounts, never invented or replaced. */
.dormina-cart .cart_totals .woocommerce-shipping-methods label .woocommerce-Price-amount,
body.woocommerce-checkout .woocommerce-checkout-review-order .woocommerce-shipping-methods label .woocommerce-Price-amount {
    display:inline-flex!important;
    align-items:center!important;
    margin-left:auto!important;
    white-space:nowrap!important;
    color:#28251F!important;
    font:700 12px/1.45 "Manrope",Arial,sans-serif!important;
}
.dormina-shipping-free {
    display:inline-flex!important;
    align-items:center!important;
    flex-shrink:0!important;
    margin-left:auto!important;
    padding:5px 9px!important;
    border-radius:999px!important;
    background:#E6EFE4!important;
    color:#376345!important;
    white-space:nowrap!important;
    font:700 10px/1.2 "Manrope",Arial,sans-serif!important;
}
/* Keep carrier pickup widgets beneath their labels, without grid interference. */
.dormina-cart .cart_totals .woocommerce-shipping-methods > li > :not(label):not(input),
body.woocommerce-checkout .woocommerce-checkout-review-order .woocommerce-shipping-methods > li > :not(label):not(input) {
    display:block;
    min-width:0!important;
    max-width:100%!important;
    margin-top:10px;
}
@media(max-width:480px) {
    .dormina-cart .cart_totals .woocommerce-shipping-methods > li,
    body.woocommerce-checkout .woocommerce-checkout-review-order .woocommerce-shipping-methods > li {
        padding:12px!important;
    }
    .dormina-cart .cart_totals .woocommerce-shipping-methods > li > input[type="radio"],
    body.woocommerce-checkout .woocommerce-checkout-review-order .woocommerce-shipping-methods > li > input[type="radio"] {
        left:12px!important;
        top:15px!important;
    }
    .dormina-cart .cart_totals .woocommerce-shipping-methods > li > label,
    body.woocommerce-checkout .woocommerce-checkout-review-order .woocommerce-shipping-methods > li > label {
        padding-left:29px!important;
        font-size:11px!important;
    }
    .dormina-shipping-free{font-size:9.5px!important;padding:5px 8px!important;}
}

/* v0.7.5 — carrier guidance in classic checkout (BLPaczka, pre-address).
   The pickup selector remains exactly where BLPaczka puts it and is not hidden. */
body.woocommerce-checkout .woocommerce-checkout-review-order
.woocommerce-shipping-methods > li > .dormina-shipping-carrier-hint,
body.woocommerce-checkout .woocommerce-checkout-review-order
#shipping_method > li > .dormina-shipping-carrier-hint {
  display:block!important;
  position:static!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  float:none!important;
  transform:none!important;
  clear:both!important;
  box-sizing:border-box!important;
  width:calc(100% - 30px)!important;
  max-width:calc(100% - 30px)!important;
  min-width:0!important;
  margin:12px 0 0 30px!important;
  padding:10px 12px!important;
  border:1px solid #E5D9CB!important;
  border-radius:6px!important;
  background:#FAF8F4!important;
  color:#75665A!important;
  font:500 11px/1.6 "Manrope",Arial,sans-serif!important;
  letter-spacing:0!important;
  text-align:left!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  opacity:1!important;
  visibility:visible!important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order
.woocommerce-shipping-methods > li:has(> .dormina-shipping-carrier-hint),
body.woocommerce-checkout .woocommerce-checkout-review-order
#shipping_method > li:has(> .dormina-shipping-carrier-hint) {
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
}
@media(max-width:480px){
  body.woocommerce-checkout .woocommerce-checkout-review-order
  .woocommerce-shipping-methods > li > .dormina-shipping-carrier-hint,
  body.woocommerce-checkout .woocommerce-checkout-review-order
  #shipping_method > li > .dormina-shipping-carrier-hint {
    margin-left:29px!important;
    width:calc(100% - 29px)!important;
    max-width:calc(100% - 29px)!important;
    padding:8px 10px!important;
  }
}

/* ==========================================================
   v0.7.6 — Checkout only: tidy shipping section to match the
   native Product header inset. Never touch cart rate layout.
   ========================================================== */

/* The normalized shipping row is a single two-column cell. The original
   checkout table header has an internal 18px gutter; match that gutter.
   Box sizing keeps the three shipping cards inside their table cell. */
body.woocommerce-checkout .woocommerce-checkout-review-order tr.dormina-shipping-wide > td {
    padding:14px 18px 20px!important;
    box-sizing:border-box!important;
    overflow-wrap:anywhere;
}

/* Product-style heading, with the same start position and typography as
   WooCommerce's Product / Kwota column header. */
body.woocommerce-checkout .woocommerce-checkout-review-order .dormina-shipping-heading {
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    margin:0 0 12px!important;
    padding:0!important;
    color:#28251F!important;
    font:600 12px/1.45 "Manrope",Arial,sans-serif!important;
    letter-spacing:0!important;
    text-align:left!important;
}

/* Method list inherits the cell's inner gutter and cannot stretch beyond it. */
body.woocommerce-checkout .woocommerce-checkout-review-order
tr.dormina-shipping-wide .woocommerce-shipping-methods,
body.woocommerce-checkout .woocommerce-checkout-review-order
tr.dormina-shipping-wide #shipping_method {
    box-sizing:border-box!important;
    display:grid!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order
tr.dormina-shipping-wide .woocommerce-shipping-methods > li,
body.woocommerce-checkout .woocommerce-checkout-review-order
tr.dormina-shipping-wide #shipping_method > li {
    box-sizing:border-box!important;
    min-width:0!important;
    max-width:100%!important;
    width:100%!important;
}

/* Unlike the old calc(100% - 30px) + 30px offset, the BLPaczka
   note takes 100% of its parent's CONTENT width. No horizontal offsets:
   it simply sits on a second row inside the selected shipping card. */
body.woocommerce-checkout .woocommerce-checkout-review-order
.woocommerce-shipping-methods > li > .dormina-shipping-carrier-hint,
body.woocommerce-checkout .woocommerce-checkout-review-order
#shipping_method > li > .dormina-shipping-carrier-hint {
    display:block!important;
    position:static!important;
    box-sizing:border-box!important;
    float:none!important;
    clear:both!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:12px 0 0!important;
    padding:10px 12px!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    overflow:hidden!important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order
.woocommerce-shipping-methods > li > .dormina-shipping-carrier-hint *,
body.woocommerce-checkout .woocommerce-checkout-review-order
#shipping_method > li > .dormina-shipping-carrier-hint * {
    box-sizing:border-box!important;
    max-width:100%!important;
    overflow-wrap:anywhere!important;
}

@media(max-width:480px) {
    body.woocommerce-checkout .woocommerce-checkout-review-order tr.dormina-shipping-wide > td {
        padding:13px 12px 17px!important;
    }
    body.woocommerce-checkout .woocommerce-checkout-review-order .dormina-shipping-heading {
        margin-bottom:11px!important;
        font-size:11px!important;
    }
    body.woocommerce-checkout .woocommerce-checkout-review-order
    .woocommerce-shipping-methods > li > .dormina-shipping-carrier-hint,
    body.woocommerce-checkout .woocommerce-checkout-review-order
    #shipping_method > li > .dormina-shipping-carrier-hint {
        margin:10px 0 0!important;
        padding:9px 10px!important;
    }
}

/* v0.7.7 — BLPaczka: protect the actual characters from inherited indents.
   Target only non-interactive address guidance, never the pickup widget. */
body.woocommerce-checkout .woocommerce-checkout-review-order
.woocommerce-shipping-methods > li > .dormina-shipping-carrier-hint,
body.woocommerce-checkout .woocommerce-checkout-review-order
#shipping_method > li > .dormina-shipping-carrier-hint {
    display:block!important;
    position:static!important;
    inset:auto!important;
    transform:none!important;
    float:none!important;
    text-indent:0!important;
    direction:ltr!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:12px 0 0!important;
    padding:10px 12px!important;
    overflow:visible!important;
    text-align:left!important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order
.dormina-shipping-carrier-hint > .dormina-shipping-carrier-copy {
    display:block!important;
    position:static!important;
    inset:auto!important;
    transform:none!important;
    float:none!important;
    text-indent:0!important;
    direction:ltr!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
    box-sizing:border-box!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:none!important;
    font:500 11px/1.6 "Manrope",Arial,sans-serif!important;
    color:#75665A!important;
    text-align:left!important;
}
@media (max-width:480px) {
  body.woocommerce-checkout .woocommerce-checkout-review-order
  .woocommerce-shipping-methods > li > .dormina-shipping-carrier-hint,
  body.woocommerce-checkout .woocommerce-checkout-review-order
  #shipping_method > li > .dormina-shipping-carrier-hint {
    margin:10px 0 0!important;
    padding:9px 10px!important;
  }
}
