/* Cart/checkout only. Preserve the existing dark/gold design and native Woo controls. */
body.woocommerce-checkout form.checkout,
body.woocommerce-checkout form.checkout :is(label, input, select, textarea, button, th, td, small),
body.woocommerce-checkout .woocommerce-privacy-policy-text,
body.woocommerce-cart .cart_totals :is(th, td, label, input, small) {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* Flatsome's extra 30px frame padding made the already-framed review unnecessarily narrow. */
body.woocommerce-checkout form.checkout > .row > .large-5 > .col-inner.has-border {
    padding: 0 !important;
    border: 0 !important;
}

body.woocommerce-checkout #order_review table.shop_table,
body.woocommerce-cart .cart_totals table.shop_table {
    width: 100%;
    table-layout: auto;
    /* Space inside the rounded frame, once per outer table (not nested shipping cells). */
    box-sizing: border-box;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
}
body.woocommerce-checkout #order_review table.shop_table :is(th, td) {
    font-size: 14px !important;
    line-height: 1.5 !important;
    vertical-align: top !important;
}
body.woocommerce-checkout #order_review table.shop_table .product-name {
    overflow-wrap: anywhere;
}
body.woocommerce-checkout #order_review table.shop_table .product-total {
    white-space: nowrap;
    padding-left: 12px;
}
body.woocommerce-checkout #order_review .order-total .amount,
body.woocommerce-cart .cart_totals .order-total .amount {
    font-size: 18px !important;
    white-space: nowrap;
}
body.woocommerce-checkout #order_review .includes_tax,
body.woocommerce-cart .cart_totals .includes_tax {
    display: block;
    margin-top: 6px;
    font-size: 12px !important;
    line-height: 1.5 !important;
}
body.woocommerce-checkout #order_review .includes_tax .amount,
body.woocommerce-cart .cart_totals .includes_tax .amount {
    font-size: inherit !important;
}

/* One grid row per choice: radio and multi-line label stay aligned. */
body.woocommerce-checkout #order_review ul.woocommerce-shipping-methods,
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods {
    margin: 8px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
body.woocommerce-checkout #order_review ul.woocommerce-shipping-methods > li,
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods > li {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 10px;
    align-items: start;
    padding: 12px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(217,180,91,.16) !important;
}
body.woocommerce-checkout #order_review ul.woocommerce-shipping-methods > li:last-child,
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods > li:last-child {
    border-bottom: 0 !important;
}
body.woocommerce-checkout #order_review ul.woocommerce-shipping-methods input[type="radio"],
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods input[type="radio"] {
    grid-column: 1;
    grid-row: 1;
    position: static !important;
    float: none !important;
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    margin: 3px 0 0 !important;
    accent-color: #d9b45b;
}
body.woocommerce-checkout #order_review ul.woocommerce-shipping-methods li label,
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods li label {
    grid-column: 2;
    grid-row: 1;
    display: block !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #eeeeee !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    overflow-wrap: anywhere;
    cursor: pointer;
}
body.woocommerce-checkout #order_review ul.woocommerce-shipping-methods label .amount,
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods label .amount {
    display: inline-block;
    white-space: nowrap;
    color: #f0cd78 !important;
    font-weight: 700 !important;
}
body.woocommerce-checkout #order_review ul.woocommerce-shipping-methods input:focus-visible,
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods input:focus-visible {
    outline: 2px solid #f0cd78;
    outline-offset: 3px;
}
/* Keep Shipmondo's selector/additional content below the choice, not in the radio column. */
body.woocommerce-checkout #order_review ul.woocommerce-shipping-methods li > :not(input):not(label),
body.woocommerce-cart .cart_totals ul.woocommerce-shipping-methods li > :not(input):not(label) {
    grid-column: 2;
}
body.woocommerce-checkout #order_review .woocommerce-terms-and-conditions {
    padding: 14px;
    border: 1px solid rgba(217,180,91,.25);
    overflow-wrap: anywhere;
}
body.woocommerce-checkout #order_review .woocommerce-terms-and-conditions :is(h1,h2,h3) {
    font-size: 18px !important;
    line-height: 1.4 !important;
}
body.woocommerce-checkout #payment .woocommerce-no-available-payment-methods-message {
    font-size: 14px;
    line-height: 1.6;
}
body.woocommerce-checkout #payment .bsk-test-order-disabled {
    font-size: 14px !important;
    white-space: normal;
    line-height: 1.5 !important;
    padding: 12px !important;
    cursor: not-allowed;
    opacity: .7;
}
@media (max-width: 549px) {
    body.woocommerce-checkout #order_review { padding: 16px !important; }
    body.woocommerce-checkout #order_review_heading { padding: 18px 16px 0 !important; }
}

/* Shipmondo's native pickup dropdown: readable in this site's dark checkout. */
body.woocommerce-checkout #order_review .shipmondo-original {
    min-width: 0;
    max-width: 100%;
    font-family: Arial, Helvetica, sans-serif;
}
body.woocommerce-checkout #order_review .shipmondo_service_point_selection.selector_type-dropdown :is(.selected_service_point, .service_points_dropdown) {
    background: #161616 !important;
    border: 1px solid rgba(217,180,91,.5) !important;
    border-radius: 6px;
    color: #eeeeee !important;
}
body.woocommerce-checkout #order_review .shipmondo_service_point_selection.selector_type-dropdown .service_point .name {
    font-size: 14px !important;
    line-height: 1.45;
    color: #f0cd78 !important;
    overflow-wrap: anywhere;
}
body.woocommerce-checkout #order_review .shipmondo_service_point_selection.selector_type-dropdown :is(.location, .address_info, .distance) {
    color: #eeeeee !important;
    font-size: 13px !important;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
body.woocommerce-checkout #order_review .shipmondo_service_point_selection.selector_type-dropdown .selected_service_point::after {
    filter: invert(1);
    opacity: .9;
}
body.woocommerce-checkout #order_review .shipmondo_service_point_selection.selector_type-dropdown .service_point:not(:last-child) {
    border-bottom-color: rgba(217,180,91,.25) !important;
}
body.woocommerce-checkout #order_review .shipmondo_service_point_selection.selector_type-dropdown .service_point:is(:hover, .selected) {
    background-color: #30291b !important;
}
body.woocommerce-checkout #order_review .shipmondo_service_point_selection.selector_type-dropdown .shipmondo-modal_footer {
    background: #161616;
}
body.woocommerce-checkout #order_review .shipmondo_service_point_selection.selector_type-dropdown .shipmondo-modal_footer::before {
    background: linear-gradient(rgba(22,22,22,0), #161616) !important;
}
body.woocommerce-checkout #order_review .shipmondo_service_point_selection.selector_type-dropdown .powered_by_shipmondo {
    color: #bbbbbb !important;
}
/* Keep the open list inside the rounded table instead of clipping its lower rows. */
body.woocommerce-checkout #order_review .shipmondo_service_point_selection.selector_type-dropdown .service_points_dropdown {
    position: static !important;
}

/* Candidate295: keep the native cart quantity controls within the mobile frame. */
@media (max-width: 549px) {
 body.woocommerce-cart .shop_table.cart :is(th, td).product-quantity {
  width: 116px !important; min-width: 0 !important;
  padding-left: 4px !important; padding-right: 4px !important;
 }
 body.woocommerce-cart .shop_table.cart .quantity.buttons_added {
  display: inline-flex !important; width: 108px !important;
  min-width: 0 !important; max-width: 100%; margin: 0 !important;
 }
 body.woocommerce-cart .shop_table.cart .quantity.buttons_added :is(.minus, .plus) {
  box-sizing: border-box; flex: 0 0 32px !important;
  width: 32px !important; min-width: 0 !important; max-width: 32px !important;
  height: 44px !important; padding: 0 !important; margin: 0 !important;
 }
 body.woocommerce-cart .shop_table.cart .quantity.buttons_added .qty {
  box-sizing: border-box; flex: 0 0 44px !important;
  width: 44px !important; min-width: 0 !important; max-width: 44px !important;
  height: 44px !important; padding: 0 !important; margin: 0 !important;
 }
 body.woocommerce-cart .shop_table.cart .product-name { overflow-wrap: anywhere; }
}

/* CART883: cart presentation only. No checkout, prices, sessions or cache logic. */
body.woocommerce-cart #main .row.row-main {
  max-width: 1280px;
}
body.woocommerce-cart #main .woocommerce.row.row-large {
  max-width: none;
}
body.woocommerce-cart .woocommerce-cart-form {
  min-width: 0;
}
body.woocommerce-cart .woocommerce-cart-form table.shop_table {
  width: 100%;
  box-sizing: border-box;
  border-collapse: separate;
  border-spacing: 0;
  padding: 12px 16px !important;
}
body.woocommerce-cart .woocommerce-cart-form table.shop_table th,
body.woocommerce-cart .woocommerce-cart-form table.shop_table td {
  padding-left: 10px;
  padding-right: 10px;
}
body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name {
  overflow-wrap: anywhere;
}
body.woocommerce-cart .woocommerce-cart-form table.shop_table td.actions {
  padding: 24px 10px 12px;
}
@media (min-width: 1200px) {
  body.woocommerce-cart .woocommerce.row > .large-7 {
    flex-basis: 65%;
    max-width: 65%;
  }
  body.woocommerce-cart .woocommerce.row > .cart-collaterals.large-5 {
    flex-basis: 35%;
    max-width: 35%;
  }
}
@media (max-width: 1199px) {
  body.woocommerce-cart .woocommerce.row > .large-7,
  body.woocommerce-cart .woocommerce.row > .cart-collaterals.large-5 {
    flex-basis: 100%;
    max-width: 100%;
    border-left: 0;
  }
}
@media (max-width: 699px) {
  body.woocommerce-cart .woocommerce-cart-form {
    padding: 14px !important;
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table {
    padding: 12px !important;
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table thead {
    display: none;
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody > tr {
    display: block;
    width: 100%;
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 4px 8px;
    padding: 8px 0 16px;
    border-bottom: 1px solid rgba(215,178,81,.18);
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item > td {
    display: block !important;
    width: auto;
    min-width: 0;
    border: 0;
    padding: 6px 0;
    text-align: left;
  }
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item > .product-remove {
    grid-column: 1;
    grid-row: 1;
  }
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item > .product-thumbnail {
    grid-column: 2;
    grid-row: 1;
  }
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item > .product-name,
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item > .product-price,
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item > .product-quantity,
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item > .product-subtotal {
    grid-column: 2;
  }
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item > .product-price::before {
    content: 'Pris: ';
    font-weight: 400;
  }
  body.woocommerce-cart .woocommerce-cart-form tr.cart_item > .product-subtotal::before {
    content: 'Subtotal: ';
    font-weight: 400;
  }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.actions {
    display: block;
    padding: 20px 0 4px;
  }
  body.woocommerce-cart .woocommerce-cart-form .continue-shopping,
  body.woocommerce-cart .woocommerce-cart-form td.actions .button {
    display: block;
    width: 100%;
    margin: 0 0 12px;
  }
}
