/* Native checkout fields and gateway fragments inside the bespoke storefront shell. */
.uc-native .checkout-layout { align-items: start; gap: 1.5rem; }
.uc-native .checkout-box { min-width: 0; }
.uc-native .woocommerce form .form-row { margin: .65rem 0; min-width: 0; }
.uc-native .form-row label { display: block; font-weight: 600; margin-bottom: .25rem; }
.uc-native .form-row input.input-text, .uc-native .form-row textarea,
.uc-native .form-row select, .uc-native .select2-selection {
  width: 100%; border: 1px solid #dfd5d8; border-radius: .45rem; padding: .7rem .8rem;
  background: #fff; color: inherit; font: inherit; box-sizing: border-box;
}
.uc-native .select2-selection { height: auto; }
.uc-native #payment { margin-top: 1.25rem; }
.uc-native .wc_payment_methods { padding-inline-start: 0; list-style: none; }
.uc-native .wc_payment_method { margin-block: .65rem; }
.uc-native .woocommerce table { width: 100%; border-collapse: collapse; }
.uc-native .woocommerce th, .uc-native .woocommerce td { padding: .65rem; text-align: start; border-bottom: 1px solid #eee4e8; }
.uc-native .woocommerce .button, .uc-native #place_order {
  display: inline-flex; padding: .8rem 1.2rem; border-radius: .45rem;
  border: 1px solid #932458; background: #932458; color: white; font: inherit; font-weight: 700; cursor: pointer;
}
.uc-native .woocommerce-error, .uc-native .woocommerce-info, .uc-native .woocommerce-message {
  padding: .9rem 1.25rem; border: 1px solid #e2c6d2; border-radius: .45rem; margin-bottom: 1rem;
}
.uc-native .woocommerce-checkout-payment .payment_box { padding: .75rem 0; }
.uc-native .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.uc-native .woocommerce form { margin-block: 1rem; }
@media(max-width: 760px) { .uc-native .checkout-layout { grid-template-columns: 1fr; } .uc-native #place_order { width: 100%; justify-content: center; } }

/* Classic cart and checkout, scoped to the United Care commerce views. */
.uc-native .uc-cart-layout,
.uc-native form.checkout-layout { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: clamp(16px,3vw,32px); }
.uc-native .uc-cart-layout > .woocommerce-cart-form,
.uc-native form.checkout-layout { margin: 0; min-width: 0; }
.uc-native .checkout-box, .uc-native .cart_totals {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(16px,2.8vw,30px);
}
.uc-cart-summary, .uc-native .cart-collaterals, .uc-native #order_review { min-width: 0; }
.uc-cart-summary { position: sticky; top: 105px; }
.uc-native .cart_totals h2, .uc-native .checkout-box > h2 { font-size: clamp(18px,2.2vw,23px); margin-block-end: 14px; }
.uc-cart-list, .uc-cart-group { display: grid; min-width: 0; }
.uc-cart-list { gap: 18px; }
.uc-cart-bundle { padding: 12px; background: #fdf8f4; border: 1px solid #eddbca; border-radius: 9px; }
.uc-cart-group-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 3px 2px 10px; }
.uc-native .uc-cart-group-head h2 { font-size: 15px; margin: 0; color: #6f462c; }
.uc-cart-group-head > span { font-size: 12px; color: #754e38; }
.uc-cart-line { display: grid; grid-template-columns: 64px minmax(0,1fr) auto;
  gap: 10px 12px; align-items: start; padding-block: 12px; border-block-end: 1px solid var(--line); }
.uc-cart-line:last-child { border-block-end: 0; }
.uc-cart-bundle .uc-cart-line:first-of-type { border-block-start: 1px solid #eddbca; }
.uc-cart-line .product-thumbnail img, .uc-review-thumb img {
  width: 64px; height: 64px; object-fit: contain; border-radius: 7px; background: #f6ece9;
}
.uc-cart-line .product-name, .uc-review-item { min-width: 0; overflow-wrap: anywhere; }
.uc-cart-line h3 { margin-block-end: 3px; font-size: 14px; line-height: 1.4; text-align: start; }
.uc-cart-line .product-price { font-size: 13px; }
.uc-cart-line .product-subtotal { font-size: 14px; font-weight: 750; align-self: start; white-space: nowrap; }
.uc-native dl.variation { margin: 3px 0 5px; font-size: 12px; color: var(--muted); }
.uc-native dl.variation dt, .uc-native dl.variation dd { display: inline; margin: 0; }
.uc-native dl.variation p { display: inline; }
.uc-cart-controls { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-block-start: 7px; }
.uc-cart-controls .product-quantity { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.uc-cart-controls .qty, .uc-qty-step {
  height: 36px; width: 36px; text-align: center; border: 1px solid var(--line); border-radius: 5px; padding: 0;
  background: var(--white); font-size: 14px;
}
.uc-cart-controls .qty { width: 44px; appearance: textfield; }
.uc-cart-controls .qty::-webkit-inner-spin-button, .uc-cart-controls .qty::-webkit-outer-spin-button { appearance: none; }
.uc-cart-controls .remove { color: var(--rose-dark); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.uc-qty-step:hover { border-color: var(--rose-dark); }
.uc-native .uc-cart-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; border-block-start: 1px solid var(--line); padding-block-start: 16px; }
.uc-native .uc-cart-actions .coupon { display: flex; flex-wrap: wrap; flex: 1 1 205px; gap: 6px; margin: 0; }
.uc-native .uc-cart-actions #coupon_code { min-width: 8rem; flex: 1 1 8rem; width: auto; padding: .62rem; border: 1px solid var(--line); border-radius: 5px; }
.uc-native .uc-cart-actions .button { padding: .6rem .8rem; font-size: 13px; color: var(--rose-dark); background: var(--white); }
.uc-native .uc-cart-actions .button:disabled { opacity: .45; }
.uc-native .wc-proceed-to-checkout .checkout-button, .uc-native #place_order { display: flex; width: 100%; justify-content: center; align-items: center; min-height: 49px; margin-block-start: 12px; }
.uc-native .wc-proceed-to-checkout .checkout-button:hover, .uc-native #place_order:hover { background: var(--rose-dark); }
.uc-native :is(.cart_totals,.woocommerce-checkout-review-order) table { table-layout: auto; }
.uc-native :is(.cart_totals,.woocommerce-checkout-review-order) :is(th,td) { padding: .62rem .2rem; vertical-align: top; overflow-wrap: anywhere; font-size: 14px; }
.uc-native :is(.cart_totals,.woocommerce-checkout-review-order) :is(tfoot td,.product-total,.order-total td,.cart-subtotal td,.uc-promo-row td) { text-align: end; }
.uc-native :is(.cart_totals,.woocommerce-checkout-review-order) .order-total :is(th,td) { font-size: 17px; border-block-end: 0; }
.uc-native .uc-promo-row :is(th,td) { background: #fcf6ef; padding-inline: .55rem; }
.uc-native .uc-promo-row.uc-promo-discount :is(th,td) { color: #7a3b29; }
.uc-native .uc-promo-row.uc-promo-bundle :is(th,td) { font-weight: 750; border-block-end: 2px solid #e6d7c7; }
.uc-price-pair { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 3px 9px; }
.uc-original-price, .uc-native .uc-promo-original del { color: #74646b; text-decoration-thickness: 1px; }
.uc-native .uc-review-item { display: inline-grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 7px; font-weight: 700; }
.uc-native .uc-review-thumb img { width: 34px; height: 34px; }
.uc-native .uc-checkout-details h3 { font-size: 16px; margin-block: 14px 6px; }
.uc-native .uc-checkout-details .form-row { margin-block: 0 11px; }
.uc-native .uc-checkout-details :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper) {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px;
}
.uc-native .uc-checkout-details .form-row-wide { grid-column: 1/-1; }
.uc-native .uc-checkout-details :is(input.input-text,textarea,select,.select2-container) { width: 100% !important; min-width: 0; }
.uc-native .uc-checkout-details .select2-selection { min-height: 42px; padding: .3rem .65rem; }
.uc-native :is(.woocommerce-invalid-required-field,.woocommerce-invalid-email) .input-text { border-color: #a02d50; }
.uc-native .woocommerce-error { background: #fff1f6; color: #651f38; overflow-wrap: anywhere; }
.uc-native .checkout-summary #payment { padding-block-start: 13px; border-block-start: 1px solid var(--line); }
.uc-native .checkout-summary #payment :is(iframe,.payment_box,.form-row) { max-width: 100%; min-width: 0; }
.uc-native .checkout-summary .wc_payment_method { padding: 10px; border: 1px solid var(--line); border-radius: 7px; }
.uc-native .checkout-summary .wc_payment_method > label { font-weight: 700; }
.uc-native .checkout-summary .wc_payment_method img { display: inline-block; vertical-align: middle; max-inline-size: 100%; }
.uc-native .woocommerce-shipping-methods { list-style: none; padding: 0; margin: 0; }
@media (max-width: 760px) {
  .uc-native .uc-cart-layout, .uc-native form.checkout-layout { grid-template-columns: minmax(0,1fr); }
  .uc-native .checkout-summary { order: initial; }
  .uc-cart-summary { position: static; }
  .uc-native .uc-checkout-details :is(.woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper) { grid-template-columns: minmax(0,1fr); }
  .uc-cart-line { grid-template-columns: 48px minmax(0,1fr); gap: 5px 9px; }
  .uc-cart-line .product-thumbnail img { width: 48px; height: 48px; }
  .uc-cart-line .product-subtotal { grid-column: 2; justify-self: end; }
}

@media (max-width: 500px) {
  #content.uc-checkout { min-inline-size: 0; overflow-wrap: anywhere; }

  /* Blocks normally sets these widths after measuring its container. Keep the
     layout usable on phones while Blocks or the payment form is loading. */
  #content.uc-checkout .wc-block-components-sidebar-layout {
    flex-direction: column;
    min-inline-size: 0;
  }
  #content.uc-checkout .wc-block-components-sidebar-layout > :is(.wc-block-components-main, .wc-block-components-sidebar) {
    inline-size: 100%;
    min-inline-size: 0;
    padding-inline: 0;
  }
  #content.uc-checkout :is(.wc-block-components-address-form, .wc-block-components-radio-control__option-layout,
    .wc-stripe-label-container, fieldset, .payment_box, .StripeElement, .__PrivateStripeElement) {
    min-inline-size: 0;
    max-inline-size: 100%;
  }
  #content.uc-checkout :is(.StripeElement, .__PrivateStripeElement, .wc-stripe-elements-field) iframe {
    max-inline-size: 100%;
  }
  #content.uc-checkout .wc-block-components-express-payment__event-buttons {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 0;
  }
  #content.uc-checkout .wc-block-components-express-payment__event-buttons > :is(li, div) {
    min-inline-size: 0;
  }
  #content.uc-checkout :is(.wc-block-checkout__actions_row, .wc-stripe-label-container) { flex-wrap: wrap; }

  #content.uc-checkout form.checkout-layout { grid-template-columns: minmax(0, 1fr); }
  #content.uc-checkout .checkout-layout :is(.form-row-first, .form-row-last) {
    float: none;
    inline-size: 100%;
  }
  #content.uc-checkout :is(input:not([type=checkbox], [type=radio], [type=hidden]), textarea, select, .select2-selection) {
    font-size: 16px;
    min-inline-size: 0;
    max-inline-size: 100%;
  }

  /* The shortcut bar follows the checkout in normal flow so wallet controls,
     keyboard focus and browser pinch zoom can use the full viewport. */
  body:has(#content.uc-checkout) .mobile-nav {
    position: static;
  }
}
