/* HIER Achterhoek — cart clarity, presentation only, based on immutable 0.4.26.
 * Retain native rows, metadata, quantities, nonces, coupon controls and handlers.
 * Feedback wrappers are supplied by the separately verified presentation component.
 */

/* Desktop retains the native table: calm spacing and visible row boundaries. */
@media (min-width: 922px) {
  body.hier-booking-flow.woocommerce-cart #main form.woocommerce-cart-form table.woocommerce-cart-form__contents > tbody > tr.cart_item > td {
    vertical-align: top;
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dfe6d9;
  }
}
body.hier-booking-flow.woocommerce-cart #main form.woocommerce-cart-form td.product-name > a {
  color: #173e24;
  font-weight: 600;
  line-height: 1.45;
}
body.hier-booking-flow.woocommerce-cart #main .cart_totals > h2 {
  box-sizing: border-box;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid #dfe6d9;
  background: #fff;
  color: #23482d;
}

/* Known, fixed booking quantities only. An unknown/mixed/editable row retains
 * the normal Update cart action. CSS does not remove or disable any input.
 * Opt in on the table itself, without unsupported nested :has() selectors.
 */
@supports selector(table:has(tr.cart_item)) {
  body.hier-booking-flow.woocommerce-cart #main form.woocommerce-cart-form table.woocommerce-cart-form__contents:has(> tbody > tr.cart_item):has(> tbody > tr.cart_item > td.product-remove > a[data-hier-room-remove="true"]):has(> tbody > tr.cart_item > td.product-name .variation-BoekingStart):has(> tbody > tr.cart_item > td.product-name .variation-BoekingEinde):has(> tbody > tr.cart_item > td.product-quantity input[type="hidden"][value="1"][min="1"][max="1"]):not(:has(> tbody > tr.cart_item > td.product-remove > a:not([data-hier-room-remove="true"]))):not(:has(> tbody > tr.cart_item > td.product-quantity input:not([type="hidden"][value="1"][min="1"][max="1"]))):not(:has(> tbody > tr.cart_item :is(select, textarea, button, input:not([type="hidden"]))))
    > tbody > tr > td.actions > :is(button, input)[name="update_cart"] {
    display: none;
  }

}

/* A single visual zone, without altering the notices' roles or lifecycle.
 * No error/success/information message is hidden or removed by this stylesheet.
 */
body.hier-booking-flow.woocommerce-cart #main .hier-cart-feedback,
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback,
body.hier-booking-flow.woocommerce-checkout #main form.checkout > .woocommerce-NoticeGroup:has(.woocommerce-message, .woocommerce-info, .woocommerce-error),
body.hier-booking-flow.woocommerce-cart #main .entry-content > .woocommerce-notices-wrapper:has(> .woocommerce-message, > .woocommerce-info, > .woocommerce-error),
body.hier-booking-flow.woocommerce-cart #main .woocommerce > .woocommerce-notices-wrapper:has(> .woocommerce-message, > .woocommerce-info, > .woocommerce-error),
body.hier-booking-flow.woocommerce-checkout #main .entry-content > .woocommerce-notices-wrapper:has(> .woocommerce-message, > .woocommerce-info, > .woocommerce-error),
body.hier-booking-flow.woocommerce-checkout #main .woocommerce > .woocommerce-notices-wrapper:has(> .woocommerce-message, > .woocommerce-info, > .woocommerce-error) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 1px solid #dfe6d9;
  border-radius: 16px;
  background: #fff;
  color: #46533f;
  box-shadow: 0 4px 18px rgba(20, 49, 31, .045);
}
body.hier-booking-flow.woocommerce-checkout #main form.checkout > .woocommerce-NoticeGroup:has(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
  grid-column: 1 / -1;
}
/* Empty native notice wrappers receive no standalone card in the first place. */
body.hier-booking-flow.woocommerce-cart #main .hier-cart-feedback--empty:empty {
  display: none;
}
body.hier-booking-flow.woocommerce-cart #main .hier-cart-feedback > :first-child,
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback > :first-child {
  margin-top: 0;
}
body.hier-booking-flow.woocommerce-cart #main .hier-cart-feedback > :last-child,
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback > :last-child {
  margin-bottom: 0;
}
body.hier-booking-flow.woocommerce-cart #main .hier-cart-feedback :is(h2, h3),
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback :is(h2, h3) {
  margin: 0 0 10px;
  color: #23482d;
  font-size: 20px;
  line-height: 1.35;
}
body.hier-booking-flow.woocommerce-cart #main .hier-cart-feedback p,
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback p {
  font-size: 14px;
  line-height: 1.6;
}
body.hier-booking-flow.woocommerce-cart #main .hier-cart-feedback a:not(.button):not(.hier-continue-booking),
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback a:not(.button) {
  color: #315b20;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Native coupon/login prompts keep their real links and toggle handlers.
 * The verified wrapper supplies the shared white outer card.
 */
body.hier-booking-flow.woocommerce-cart #main .hier-cart-feedback :is(.woocommerce-message, .woocommerce-info),
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback :is(.woocommerce-message, .woocommerce-info),
body.hier-booking-flow.woocommerce-checkout #main form.checkout > .woocommerce-NoticeGroup :is(.woocommerce-message, .woocommerce-info),
body.hier-booking-flow.woocommerce-cart #main .entry-content > .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info),
body.hier-booking-flow.woocommerce-cart #main .woocommerce > .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info),
body.hier-booking-flow.woocommerce-checkout #main .entry-content > .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info),
body.hier-booking-flow.woocommerce-checkout #main .woocommerce > .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info) {
  position: relative;
  margin: 0;
  padding: 10px 0 10px 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #46533f;
  font-size: 14px;
  line-height: 1.6;
}
body.hier-booking-flow.woocommerce-cart #main .hier-cart-feedback :is(.woocommerce-message, .woocommerce-info)::before,
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback :is(.woocommerce-message, .woocommerce-info)::before,
body.hier-booking-flow.woocommerce-checkout #main form.checkout > .woocommerce-NoticeGroup :is(.woocommerce-message, .woocommerce-info)::before,
body.hier-booking-flow.woocommerce-cart #main .entry-content > .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info)::before,
body.hier-booking-flow.woocommerce-cart #main .woocommerce > .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info)::before,
body.hier-booking-flow.woocommerce-checkout #main .entry-content > .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info)::before,
body.hier-booking-flow.woocommerce-checkout #main .woocommerce > .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info)::before {
  position: absolute;
  top: 13px;
  left: 0;
  width: 18px;
  margin: 0;
  color: #336611;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  transform: none;
}
body.hier-booking-flow.woocommerce-cart #main .hier-cart-feedback .woocommerce-notices-wrapper > :is(.woocommerce-message, .woocommerce-info) + :is(.woocommerce-message, .woocommerce-info),
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback .woocommerce-notices-wrapper > :is(.woocommerce-message, .woocommerce-info) + :is(.woocommerce-message, .woocommerce-info),
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback > :is(.woocommerce-form-login-toggle, .woocommerce-form-coupon-toggle) + :is(.woocommerce-form-login-toggle, .woocommerce-form-coupon-toggle) {
  border-top: 1px solid #e4e9df;
}
body.hier-booking-flow.woocommerce-cart #main .hier-cart-feedback .woocommerce-error,
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback .woocommerce-error,
body.hier-booking-flow.woocommerce-checkout #main form.checkout > .woocommerce-NoticeGroup .woocommerce-error {
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback form.checkout_coupon {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 12px 0 0;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid #e4e9df;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
/* Keep the native coupon toggle and form display lifecycle. Only this
 * optional prompt loses its decorative icon; validation notices keep theirs.
 */
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback .woocommerce-form-coupon-toggle .woocommerce-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 0;
}
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback .woocommerce-form-coupon-toggle .woocommerce-info::before {
  display: none;
  content: none;
}
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback .woocommerce-form-coupon-toggle a.showcoupon {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #336611;
  border-radius: 8px;
  background: #eef2e9;
  color: #336611;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback .woocommerce-form-coupon-toggle a.showcoupon:hover {
  border-color: #274f0d;
  background: #e1e9da;
  color: #23482d;
}
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback .woocommerce-form-coupon-toggle a.showcoupon:focus-visible {
  outline: 3px solid #336611;
  outline-offset: 3px;
}
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback form.checkout_coupon .form-row {
  min-width: 0;
  margin-bottom: 0;
  padding: 0;
}
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback form.checkout_coupon #coupon_code {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #9aa991;
  border-radius: 8px;
  background: #fff;
  color: #253d2b;
  font-size: 16px;
  line-height: 1.4;
}
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback form.checkout_coupon button[name="apply_coupon"] {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #336611;
  border-radius: 8px;
  background: #eef2e9;
  color: #336611;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
}
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback form.checkout_coupon button[name="apply_coupon"]:hover:not(:disabled):not(.disabled):not([aria-disabled="true"]) {
  border-color: #274f0d;
  background: #e1e9da;
  color: #23482d;
}
body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback form.checkout_coupon :is(#coupon_code, button[name="apply_coupon"]):focus-visible {
  outline: 3px solid #336611;
  outline-offset: 3px;
}

/* Secondary navigation stays left-aligned below the native page title, before
 * the separate feedback card. No absolute positioning or visual reordering.
 */
body.hier-booking-flow.woocommerce-cart #main a.hier-continue-booking + .hier-cart-feedback .woocommerce-message a.button.wc-forward:is([href="https://hierachterhoek.nl/reserveren/"], [href="/reserveren/"]) {
  display: none;
}
/* A native empty notices wrapper does not create an empty white card or a
 * grid row. Any unexpected direct text remains visible through display:contents.
 */
body.hier-booking-flow.woocommerce-cart #main .hier-cart-feedback:has(> .woocommerce-notices-wrapper:empty):not(:has(> :not(.woocommerce-notices-wrapper))) {
  display: contents;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.hier-booking-flow.woocommerce-cart #main .hier-cart-feedback > .woocommerce-notices-wrapper:empty {
  display: none;
}
body.hier-booking-flow.woocommerce-cart #main a.hier-continue-booking {
  display: inline-flex;
  position: static;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  justify-self: start;
  grid-column: 1 / -1;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  margin: 0 0 16px;
  padding: 10px 18px;
  border: 1px solid #336611;
  border-radius: 8px;
  background: #eef2e9;
  color: #336611;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transform: none;
}
body.hier-booking-flow.woocommerce-cart #main a.hier-continue-booking:hover {
  background: #e1e9da;
  border-color: #274f0d;
  color: #23482d;
}
body.hier-booking-flow.woocommerce-cart #main a.hier-continue-booking:focus-visible {
  outline: 3px solid #336611;
  outline-offset: 3px;
}
@media (min-width: 1200px) {
  /* The already-verified outer cart grid contributes its own 24px row gap. */
  body.hier-booking-flow.woocommerce-cart #main .woocommerce:has(> form.woocommerce-cart-form + .cart-collaterals):not(:has(.cross-sells)) > a.hier-continue-booking {
    margin-bottom: 0;
  }
}

@media (max-width: 921px) {
  /* Native cells keep their source order; only their enclosing row becomes a card. */
  body.hier-booking-flow.woocommerce-cart #main form.woocommerce-cart-form {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  body.hier-booking-flow.woocommerce-cart #main form.woocommerce-cart-form table.woocommerce-cart-form__contents {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: 0;
    background: transparent;
  }
  body.hier-booking-flow.woocommerce-cart #main form.woocommerce-cart-form table.woocommerce-cart-form__contents > thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  body.hier-booking-flow.woocommerce-cart #main form.woocommerce-cart-form table.woocommerce-cart-form__contents > tbody {
    display: block;
    width: 100%;
  }
  body.hier-booking-flow.woocommerce-cart #main form.woocommerce-cart-form table.woocommerce-cart-form__contents > tbody > tr.cart_item {
    display: block;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid #dfe6d9;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(20, 49, 31, .045);
  }
  body.hier-booking-flow.woocommerce-cart.hier-cart-presentation #main form.woocommerce-cart-form table.woocommerce-cart-form__contents tr.cart_item > td:not([hidden]) {
    display: block;
    box-sizing: border-box;
    float: none;
    clear: both;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 10px 0;
    border: 0;
    background: transparent;
    text-align: left;
    overflow-wrap: anywhere;
  }
  body.hier-booking-flow.woocommerce-cart.hier-cart-presentation #main form.woocommerce-cart-form table.woocommerce-cart-form__contents tr.cart_item > td[data-title]::before {
    float: none;
    margin: 0 12px 0 0;
    color: #62695f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
  }
  body.hier-booking-flow.woocommerce-cart.hier-cart-presentation #main form.woocommerce-cart-form table.woocommerce-cart-form__contents tr.cart_item > td.product-remove {
    display: block;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  body.hier-booking-flow.woocommerce-cart.hier-cart-presentation #main form.woocommerce-cart-form table.woocommerce-cart-form__contents tr.cart_item > td.product-thumbnail {
    display: block;
    float: left;
    clear: none;
    width: 64px;
    min-width: 64px;
    min-height: 64px;
    margin: 0 12px 10px 0;
    padding: 0;
  }
  body.hier-booking-flow.woocommerce-cart.hier-cart-presentation #main form.woocommerce-cart-form table.woocommerce-cart-form__contents tr.cart_item > td.product-thumbnail img {
    display: block;
    width: 64px;
    height: 64px;
    max-width: 100%;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
  }
  body.hier-booking-flow.woocommerce-cart.hier-cart-presentation #main form.woocommerce-cart-form table.woocommerce-cart-form__contents tr.cart_item > td.product-name {
    clear: none;
    min-height: 64px;
    padding: 0 0 12px;
  }
  body.hier-booking-flow.woocommerce-cart.hier-cart-presentation #main form.woocommerce-cart-form table.woocommerce-cart-form__contents tr.cart_item > td.product-name > a {
    display: block;
    padding-right: 36px;
    font-size: 16px;
    line-height: 1.45;
  }
  body.hier-booking-flow.woocommerce-cart.hier-cart-presentation #main form.woocommerce-cart-form table.woocommerce-cart-form__contents tr.cart_item > :is(td.product-remove, td.product-thumbnail, td.product-name)::before {
    display: none;
  }
  body.hier-booking-flow.woocommerce-cart.hier-cart-presentation #main form.woocommerce-cart-form table.woocommerce-cart-form__contents tr.cart_item > td.product-name dl.variation {
    display: grid;
    clear: both;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    margin: 12px 0 0;
    padding: 0;
    gap: 2px 0;
  }
  body.hier-booking-flow.woocommerce-cart.hier-cart-presentation #main form.woocommerce-cart-form table.woocommerce-cart-form__contents tr.cart_item > td.product-name dl.variation :is(dt, dd) {
    float: none;
    margin: 0;
    min-width: 0;
    padding: 0;
    text-align: left;
  }
  body.hier-booking-flow.woocommerce-cart.hier-cart-presentation #main form.woocommerce-cart-form table.woocommerce-cart-form__contents tr.cart_item > td.product-name dl.variation dd {
    margin-bottom: 8px;
  }
  body.hier-booking-flow.woocommerce-cart.hier-cart-presentation #main form.woocommerce-cart-form table.woocommerce-cart-form__contents tr.cart_item > td.product-name dl.variation dd:last-child {
    margin-bottom: 0;
  }
  body.hier-booking-flow.woocommerce-cart.hier-cart-presentation #main form.woocommerce-cart-form table.woocommerce-cart-form__contents tr.cart_item > td.product-name dl.variation dd p {
    margin: 0;
  }
  body.hier-booking-flow.woocommerce-cart.hier-cart-presentation #main form.woocommerce-cart-form table.woocommerce-cart-form__contents tr.cart_item > td.product-price {
    display: flex;
    gap: 12px;
    align-items: baseline;
    justify-content: space-between;
    padding: 12px 0 0;
    border-top: 1px solid #e4e9df;
  }
  body.hier-booking-flow.woocommerce-cart.hier-cart-presentation #main form.woocommerce-cart-form table.woocommerce-cart-form__contents tr.cart_item > td.product-price::before {
    content: attr(data-title) ":";
  }
  body.hier-booking-flow.woocommerce-cart #main form.woocommerce-cart-form table.woocommerce-cart-form__contents > tbody > tr:has(> td.actions) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #dfe6d9;
    border-radius: 16px;
    background: #fff;
  }
  body.hier-booking-flow.woocommerce-cart #main form.woocommerce-cart-form table.woocommerce-cart-form__contents > tbody > tr > td.actions {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  body.hier-booking-flow.woocommerce-cart #main .hier-cart-feedback,
  body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback {
    padding-right: 16px;
    padding-left: 16px;
  }
  body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback .woocommerce-form-coupon-toggle a.showcoupon {
    display: flex;
    width: fit-content;
    margin: 0;
  }
}

@media (max-width: 600px) {
  body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback form.checkout_coupon :is(.form-row-first, .form-row-last) {
    float: none;
    width: 100%;
    margin: 0;
  }
  body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback form.checkout_coupon .form-row-last {
    margin-top: 8px;
  }
  body.hier-booking-flow.woocommerce-checkout #main .hier-checkout-feedback form.checkout_coupon button[name="apply_coupon"] {
    width: 100%;
  }
}

