/* MPS Shop: checkout */
/* ===== 2. mps-checkout.css ===== */
/* ===== MPS Vintage Diesels: checkout restyle (HikaShop 6, YOOtheme) =====
   Works with mps-checkout script, which builds the two-column layout.
   Site green: #438443. */

/* hide the "Latest Products" band on checkout pages (better: unassign that module from the checkout) */
body:has(#hikashop_checkout) .tm-top { display: none; }

/* use the site's own fonts everywhere, including form fields (browsers don't pass fonts to inputs by default) */
#hikashop_checkout input, #hikashop_checkout select, #hikashop_checkout textarea, #hikashop_checkout button { font-family: inherit; }
#hikashop_checkout { --mps-green: #394b40; --mps-green-dark: #2a3830; --mps-line: #e3e6e3; --mps-soft: #6b6f6b; color: #222; }
#hikashop_checkout a:not(.uk-button) { color: var(--mps-green); }

/* ---------- progress bar ---------- */
#hikashop_checkout .hikashop_wizardbar { background: none !important; border: 0 !important; box-shadow: none !important; margin: 0 0 32px !important; padding: 0 !important; height: auto !important; }
#hikashop_checkout .hikashop_wizardbar ul { display: flex; margin: 0; padding: 0; list-style: none; gap: 6px; }
#hikashop_checkout .hikashop_wizardbar li {
  flex: 1 1 0; display: flex !important; align-items: center; gap: 10px; float: none !important; width: auto !important;
  margin: 0 !important; padding: 0 0 14px !important; background: none !important; border: 0 !important;
  border-bottom: 4px solid var(--mps-line) !important; height: auto !important; line-height: 1.3 !important;
}
#hikashop_checkout .hikashop_wizardbar li.hikashop_cart_step_finished { border-bottom-color: #9fb0a6 !important; }
#hikashop_checkout .hikashop_wizardbar li.hikashop_cart_step_current { border-bottom-color: var(--mps-green) !important; }
#hikashop_checkout .hikashop_wizardbar .hikashop_chevron { display: none !important; }
#hikashop_checkout .hikashop_wizardbar .hkbadge {
  display: inline-flex !important; align-items: center; justify-content: center; flex: 0 0 30px;
  width: 30px; height: 30px; padding: 0 !important; border-radius: 50% !important;
  background: var(--mps-line) !important; color: #555 !important; font-size: 14px !important; font-weight: 600; line-height: 1 !important;
}
#hikashop_checkout .hikashop_wizardbar .hkbadge-current { background: var(--mps-green) !important; color: #fff !important; }
#hikashop_checkout .hikashop_wizardbar .hkbadge-past { background: #9fb0a6 !important; color: #fff !important; }
#hikashop_checkout .hikashop_wizardbar .hikashop_checkout_step_name { font-size: 15px; color: var(--mps-soft); }
#hikashop_checkout .hikashop_wizardbar .hikashop_cart_step_current .hikashop_checkout_step_name { color: #222; font-weight: 600; }
#hikashop_checkout .hikashop_wizardbar .hikashop_checkout_step_name a { color: var(--mps-green); text-decoration: none; }
#hikashop_checkout .hikashop_wizardbar .hikashop_checkout_step_name a:hover { text-decoration: underline; }

/* ---------- two-column layout (built by the script) ---------- */
#hikashop_checkout .mps-co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
#hikashop_checkout .mps-co-side { position: sticky; top: 24px; }
#hikashop_checkout .mps-co-card { border: 1px solid var(--mps-line); border-radius: 8px; padding: 22px; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
#hikashop_checkout .mps-co-card h3, #hikashop_checkout .mps-co-title { margin: 0 0 14px; }   /* look comes from the theme (uk-h3) */

#hikashop_checkout .mps-co-main > div + div { margin-top: 32px; }
@media (max-width: 959px) {
  #hikashop_checkout .mps-co-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  #hikashop_checkout .mps-co-side { position: static; }
}

/* summary lines */
#hikashop_checkout .mps-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 16px; }
#hikashop_checkout .mps-sum-row span:last-child { white-space: nowrap; }
#hikashop_checkout .mps-sum-note span:last-child { color: var(--mps-soft); font-size: 14px; white-space: normal; text-align: right; }
#hikashop_checkout .mps-sum-total { border-top: 1px solid var(--mps-line); margin-top: 8px; padding-top: 14px; font-size: 19px; font-weight: 600; }

/* ---------- buttons ----------
   Colours, corners and lettering come from YOOtheme's own Primary / Secondary button styles
   (the script adds uk-button-primary / uk-button-secondary). Only the layout is set here. */
#hikashop_checkout .hikashop_checkout_buttons { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 0 !important; padding: 0 !important; }
#hikashop_checkout .hikashop_checkout_buttons > div { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
#hikashop_checkout .hikashop_checkout_buttons .buttons_right { order: -1; }
#hikashop_checkout .hikashop_checkout_buttons > div[style*="clear"] { display: none; }
#hikashop_checkout .hikabtn_checkout_next,
#hikashop_checkout .hikabtn_checkout_continue,
#hikashop_checkout .mps-back { display: block; width: 100% !important; box-sizing: border-box; text-align: center; text-decoration: none !important; }
#hikashop_checkout .hikabtn_checkout_next,
#hikashop_checkout .hikabtn_checkout_continue,
#hikashop_checkout .mps-back { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { #hikashop_checkout .mps-long { display: none; } }
/* Back buttons: chevron centred on the text */
#hikashop_checkout .mps-back { display: flex !important; align-items: center; justify-content: center; gap: 6px; }
#hikashop_checkout .mps-back [uk-icon] { display: inline-flex; margin: 0; line-height: 0; }
#hikashop_checkout .mps-back [uk-icon] svg { display: block; }
#hikashop_checkout .mps-change-guest [uk-icon] { display: inline-flex; line-height: 0; }
#hikashop_checkout .mps-change-guest [uk-icon] svg { display: block; }
#hikashop_checkout:not(.hikashop_checkout_page_step1) .buttons_left { display: none; }   /* no "continue shopping" after the basket */
#hikashop_checkout .mps-secure { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--mps-soft); }
#hikashop_checkout .mps-secure [uk-icon] { margin-right: 4px; vertical-align: -3px; }

/* ---------- basket (step 1) and summary (step 3): product rows ---------- */
#hikashop_checkout .hikashop_checkout_cart table { width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; background: none; }
#hikashop_checkout .hikashop_checkout_cart thead { display: none; }
#hikashop_checkout .hikashop_checkout_cart tr,
#hikashop_checkout .hikashop_checkout_cart td { background: none !important; box-shadow: none !important; }
#hikashop_checkout .hikashop_checkout_cart tr[id^="hikashop_cart_product_row"] {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto;
  grid-template-areas: "img name total" "img qty qty"; gap: 6px 18px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--mps-line);
}
#hikashop_checkout .hikashop_checkout_cart tr[id^="hikashop_cart_product_row"] td { display: block; padding: 0 !important; border: 0 !important; }
#hikashop_checkout .hikashop_cart_product_image_value { grid-area: img; }
#hikashop_checkout .hikashop_cart_product_image_thumb { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--mps-line); border-radius: 6px; overflow: hidden; background: #fff; }
#hikashop_checkout .hikashop_cart_product_image_thumb img { width: 100%; height: 100%; object-fit: contain; }
#hikashop_checkout .hikashop_cart_product_name_value { grid-area: name; }
#hikashop_checkout .hikashop_cart_product_name { margin: 0; font-size: 16px; line-height: 1.4; }
#hikashop_checkout .hikashop_cart_product_name a.hikashop_no_print { color: #222; text-decoration: none; }
#hikashop_checkout .hikashop_cart_product_name a.hikashop_no_print:hover { text-decoration: underline; }
#hikashop_checkout .hikashop_product_variant_subname { color: #222; }
#hikashop_checkout .hikashop_product_code_checkout { display: block; margin-top: 3px; font-size: 13px; color: var(--mps-soft); }
#hikashop_checkout .edit_cart_product { display: none !important; }   /* no "edit options" pencil: remove and re-add instead */
#hikashop_checkout .hikashop_cart_product_price_value { display: none !important; }   /* unit price: total is shown */
#hikashop_checkout .hikashop_cart_product_total_value { grid-area: total; font-size: 17px; font-weight: 600; white-space: nowrap; text-align: right; }
#hikashop_checkout .hikashop_cart_product_quantity_value { grid-area: qty; display: flex !important; align-items: center; gap: 8px; font-size: 15px; color: var(--mps-soft); }
#hikashop_checkout .hikashop_cart_product_quantity_value::before { content: "Qty:"; }
/* quantity box, same as the header basket */
#hikashop_checkout .hikashop_product_quantity_div { display: block !important; width: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
#hikashop_checkout .hikashop_product_quantity_div .add-on,
#hikashop_checkout .hikashop_cart_product_quantity_refresh { display: none !important; }
#hikashop_checkout input.hikashop_product_quantity_field {
  display: block !important; width: 48px !important; max-width: 48px !important; height: 34px !important; margin: 0 !important; padding: 0 4px !important;
  border: 1px solid #c7c7c7 !important; border-radius: 8px !important; background: #fff !important; box-shadow: none !important;
  text-align: center; font-size: 15px !important; color: #222 !important;
}
/* bin icon instead of the round cross (turns red on hover, like the header basket) */
#hikashop_checkout .hikashop_cart_product_quantity_delete a {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  color: #555 !important; text-decoration: none !important;
}
#hikashop_checkout .hikashop_cart_product_quantity_delete a:hover { background: #f2f2f2; color: #d0261b !important; }
#hikashop_checkout .hikashop_cart_product_quantity_delete a i { display: none; }
#hikashop_checkout .hikashop_cart_product_quantity_delete a::before {
  content: ""; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v6M14 11v6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v6M14 11v6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* basket page rows, like the header basket: name, part no. and price on the left; bin and qty on the right */
#hikashop_checkout .mps-co-main .hikashop_checkout_cart tr[id^="hikashop_cart_product_row"] {
  grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "img name qty" "img total qty"; gap: 8px 18px;
}
#hikashop_checkout .mps-co-main .hikashop_cart_product_total_value { text-align: left; align-self: end; }
#hikashop_checkout .mps-co-main .hikashop_cart_product_quantity_value {
  flex-direction: column; align-items: flex-end !important; justify-content: space-between; gap: 10px; align-self: stretch;
}
#hikashop_checkout .mps-co-main .hikashop_cart_product_quantity_value::before { display: none; }
#hikashop_checkout .mps-co-main .hikashop_cart_product_quantity_delete { order: -1; margin: -6px -2px 0 0; }
#hikashop_checkout .mps-co-main .hikashop_product_quantity_div { display: flex !important; align-items: center; gap: 8px; }
#hikashop_checkout .mps-co-main .hikashop_product_quantity_div::before { content: "Qty:"; color: var(--mps-soft); font-size: 15px; }
#hikashop_checkout .mps-co-main .hikashop_product_quantity_div .notifyjs-wrapper { position: absolute; }

/* totals rows */
#hikashop_checkout .hikashop_checkout_cart tr.margin { display: none; }
#hikashop_checkout .hikashop_checkout_cart tr[class^="hikashop_cart_"][class$="_row"] { display: flex; justify-content: space-between; padding: 6px 0; border: 0; }
#hikashop_checkout .hikashop_checkout_cart tr[class$="_row"] td { padding: 0 !important; border: 0 !important; font-size: 16px; }
#hikashop_checkout .hikashop_checkout_cart tr[class$="_row"] td.hikashop_cart_empty_footer { display: none; }
#hikashop_checkout .hikashop_checkout_cart tr.hikashop_cart_total_row { border-top: 1px solid var(--mps-line); margin-top: 8px; padding-top: 14px; }
#hikashop_checkout .hikashop_checkout_cart tr.hikashop_cart_total_row td { font-size: 19px; font-weight: 600; }
#hikashop_checkout .hikashop_checkout_cart tr[class$="_row"] .hikashop_cart_title { font-weight: inherit; text-align: left; }
/* basket page: totals move to the summary card, so hide them in the list */
#hikashop_checkout.hikashop_checkout_page_step1 .mps-co-main .hikashop_checkout_cart tr[class$="_row"] { display: none; }

/* compact list inside the summary card (step 3) */
#hikashop_checkout .mps-co-side .hikashop_checkout_cart tr[id^="hikashop_cart_product_row"] { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "img name total" "img qty total"; gap: 2px 12px; padding: 12px 0; }
#hikashop_checkout .mps-co-side .hikashop_cart_product_image_thumb { width: 56px; height: 56px; border-radius: 8px; }
#hikashop_checkout .mps-co-side .hikashop_cart_product_name { font-size: 14px; }
#hikashop_checkout .mps-co-side .hikashop_product_code_checkout { font-size: 12px; }
#hikashop_checkout .mps-co-side .hikashop_cart_product_total_value { font-size: 15px; }
#hikashop_checkout .mps-co-side .hikashop_cart_product_quantity_value { font-size: 13px; }

/* ---------- delivery and payment choices as cards ---------- */
#hikashop_checkout .hikashop_checkout_shipping legend,
#hikashop_checkout .hikashop_checkout_payment legend { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; }   /* theme heading style (uk-h3) */
#hikashop_checkout .hikashop_shipping_methods_table,
#hikashop_checkout .hikashop_payment_methods_table { display: block; width: 100%; border: 0 !important; background: none !important; }
#hikashop_checkout .hikashop_shipping_methods_table tbody,
#hikashop_checkout .hikashop_payment_methods_table tbody { display: flex; flex-direction: column; gap: 10px; }
#hikashop_checkout .hikashop_shipping_methods_table tr,
#hikashop_checkout .hikashop_payment_methods_table tr { display: block; background: none !important; }
#hikashop_checkout .hikashop_shipping_methods_table td,
#hikashop_checkout .hikashop_payment_methods_table td {
  position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px;
  padding: 16px 18px !important; border: 1px solid var(--mps-line) !important; border-radius: 6px; background: #fff !important; cursor: pointer;
}
#hikashop_checkout .hikashop_shipping_methods_table td:has(input:checked),
#hikashop_checkout .hikashop_payment_methods_table td:has(input:checked) { border: 2px solid var(--mps-green) !important; padding: 15px 17px !important; background: #f4f6f5 !important; }
#hikashop_checkout .hikashop_checkout_shipping_radio,
#hikashop_checkout .hikashop_checkout_payment_radio { width: 20px; height: 20px; margin: 0; accent-color: var(--mps-green); }
#hikashop_checkout .hikashop_shipping_methods_table label,
#hikashop_checkout .hikashop_payment_methods_table label { margin: 0; font-size: 16px; font-weight: 600; color: #222; }
#hikashop_checkout .hikashop_checkout_shipping_cost { font-size: 16px; font-weight: 600; white-space: nowrap; }
#hikashop_checkout .hikashop_checkout_payment_cost { display: none; }
#hikashop_checkout .hikashop_checkout_payment_images { grid-column: 3; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; }
#hikashop_checkout .hikashop_checkout_payment_images img { max-height: 30px; width: auto; }
#hikashop_checkout .hikashop_checkout_payment_description { grid-column: 2 / 4; font-size: 14px; color: var(--mps-soft); }
#hikashop_checkout .hikashop_checkout_payment_description p { margin: 0; }
#hikashop_checkout .hikashop_checkout_fields:not(:has(input, select, textarea)) { display: none; }   /* empty "Fields" block */

/* ---------- discount code ---------- */
#hikashop_checkout .hikashop_checkout_coupon { margin-top: 18px; }
#hikashop_checkout .hikashop_checkout_coupon::before { content: "Discount code"; display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
#hikashop_checkout .hikashop_checkout_coupon .input-group { display: flex; gap: 8px; }
#hikashop_checkout .hikashop_checkout_coupon_field { flex: 1 1 auto; min-width: 0; height: 40px; border: 1px solid #c7c7c7 !important; border-radius: 4px !important; padding: 0 12px !important; font-size: 15px; background: #fff; }
#hikashop_checkout .hikabtn_checkout_coupon_add { flex: 0 0 auto; width: auto !important; }

/* ---------- your details (step 2) ---------- */
#hikashop_checkout .hikashop_checkout_login > h1 { margin: 0 0 18px; }   /* theme heading style (uk-h2) */
#hikashop_checkout .hikashop_checkout_login .hk-container-fluid { display: block; }
#hikashop_checkout .hikashop_checkout_login .hk-container-fluid > div { float: none; width: 100%; max-width: 620px; padding: 0; }
#hikashop_checkout .hikashop_checkout_login .hkc-lg-4 > h2 { display: none; }
/* Guest / Log in / Register: a fixed row of YOOtheme buttons (selected = Primary, others = Secondary, set by the script) */
#hikashop_checkout .hikaradios .btn-group { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 8px; width: 100%; margin: 0 0 24px; padding: 0; border: 0; background: none; }
#hikashop_checkout .hikaradios .btn-group label { flex: 1 1 0; min-width: 110px; margin: 0 !important; text-align: center; cursor: pointer; float: none !important; }
#hikashop_checkout .hikaradios .btn-group label br { display: none; }
#hikashop_checkout .hikaradios .btn-group label[for$="method2"] { order: 1; }      /* Guest */
#hikashop_checkout .hikaradios .btn-group label[for$="methodlogin"] { order: 2; }  /* Log in */
#hikashop_checkout .hikaradios .btn-group label:not([for$="method2"]):not([for$="methodlogin"]) { order: 3; }  /* Register */
#hikashop_checkout #hikashop_checkout_registration > h2,
#hikashop_checkout #hikashop_checkout_login_form > h2 { margin: 0 0 14px; }   /* theme heading style (uk-h4) */
/* form fields: labels above, full width */
#hikashop_checkout .hkform-horizontal { margin: 0; padding: 0; border: 0; }
#hikashop_checkout .hkform-group { display: block; margin: 0 0 16px; }
#hikashop_checkout .hkform-group > .hkcontrol-label { display: block; float: none; width: auto; margin: 0 0 6px; padding: 0; text-align: left; font-size: 14px; font-weight: 600; color: #333; }
#hikashop_checkout .hkform-group > .hkcontrol-label:empty { display: none; }
#hikashop_checkout .hkform-group > .hkc-sm-8, #hikashop_checkout .hkform-group > .hikashop_address_field_input { float: none; width: 100%; margin: 0; padding: 0; }
#hikashop_checkout .hkform-group input.form-control,
#hikashop_checkout .hkform-group select.form-select,
#hikashop_checkout .hkform-group select.hikashop_field_dropdown {
  width: 100% !important; max-width: none; height: 46px; padding: 0 12px; border: 1px solid #c7c7c7; border-radius: 8px; background-color: #fff; font-size: 16px; box-shadow: none;
}
#hikashop_checkout .hkform-group input.form-control:focus,
#hikashop_checkout .hkform-group select:focus { border-color: var(--mps-green); outline: 2px solid rgba(57,75,64,.2); }
#hikashop_checkout .hikashop_field_required_label { color: #c92222; margin-left: 2px; }
/* red * inside required boxes (the script marks them), for use with labels switched off */
#hikashop_checkout .mps-req { position: relative; }
#hikashop_checkout .mps-req::after { content: "*"; position: absolute; top: 9px; right: 12px; color: #c92222; font-size: 20px; line-height: 1; pointer-events: none; }
/* drop-downs: our own arrow, so it can sit to the LEFT of the red * and every * lines up */
#hikashop_checkout .hkform-group select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important;
  background-position: right 12px center !important; background-size: 16px 16px !important; padding-right: 40px !important;
}
#hikashop_checkout .mps-req select { background-position: right 32px center !important; padding-right: 58px !important; }
#hikashop_checkout .mps-req:has(.input-password-toggle)::after { right: 60px; }  /* clear of the show-password button */
#hikashop_checkout .mps-req input.form-control { padding-right: 28px; box-sizing: border-box; }
#hikashop_checkout .hkform-group input.form-control, #hikashop_checkout .hkform-group select { box-sizing: border-box; }
#hikashop_checkout .hkform-group:has(> .hkcontrol-label .hikashop_field_required_label) .mps-req::after { content: none; }  /* labels on: their * is enough */
#hikashop_checkout .hika_registration_address legend,
#hikashop_checkout .hikashop_registration_shipping_address_title legend { display: block; margin: 26px 0 14px; padding: 0; border: 0; }   /* theme heading style (uk-h4) */
#hikashop_checkout .hikashop_registration_same_address_line .hkc-sm-8 { display: flex; align-items: center; gap: 10px; }
#hikashop_checkout .hikashop_registration_same_address_line input { width: 20px; height: 20px; margin: 0; accent-color: var(--mps-green); }
#hikashop_checkout .hikashop_registration_required_info_line { font-size: 13px; color: var(--mps-soft); }
#hikashop_checkout .password-group .input-group { display: flex !important; flex-wrap: nowrap !important; align-items: stretch; width: 100%; }
#hikashop_checkout .password-group .input-group input.form-control { flex: 1 1 auto; width: 1% !important; min-width: 0; }
#hikashop_checkout .password-group .input-password-toggle { flex: 0 0 48px; width: 48px; height: 46px; margin: 0; display: flex; align-items: center; justify-content: center; }
#hikashop_checkout .password-group .input-group input { border-radius: 8px 0 0 8px !important; }
#hikashop_checkout .password-group .input-password-toggle { border: 1px solid #c7c7c7; border-left: 0; border-radius: 0 8px 8px 0; background: #f6f7f6; padding: 0 14px; }
/* Log in, Forgot password, Forgot username: same width as the Guest / Log in / Register buttons; half width on phones */
#hikashop_checkout .hikabtn_checkout_login_form,
#hikashop_checkout .hikashop_login_forgot_password_line a.uk-button,
#hikashop_checkout .hikashop_login_forgot_username_line a.uk-button {
  display: inline-block; width: calc((100% - 16px) / 3) !important; min-width: 0; padding-left: 8px !important; padding-right: 8px !important;
  text-align: center; box-sizing: border-box; text-decoration: none !important;
}
#hikashop_checkout .hikashop_login_forgot_password_line,
#hikashop_checkout .hikashop_login_forgot_username_line,
#hikashop_checkout .hikashop_login_button_line { margin-bottom: 10px; }
@media (max-width: 640px) {
  #hikashop_checkout .hikabtn_checkout_login_form,
  #hikashop_checkout .hikashop_login_forgot_password_line a.uk-button,
  #hikashop_checkout .hikashop_login_forgot_username_line a.uk-button { width: 50% !important; }
}
#hikashop_checkout .hikashop_checkout_address:empty,
#hikashop_checkout .hikashop_checkout_address:not(:has(*:not(.hikashop_checkout_loading_elem):not(.hikashop_checkout_loading_spinner))) { display: none; }

/* phones */
@media (max-width: 640px) {
  #hikashop_checkout .hikashop_wizardbar .hikashop_checkout_step_name { font-size: 13px; }
  #hikashop_checkout .hikashop_wizardbar li { flex-direction: column; align-items: flex-start; gap: 6px; }
  #hikashop_checkout .hikashop_checkout_cart tr[id^="hikashop_cart_product_row"] { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 6px 12px; }
  #hikashop_checkout .mps-co-main .hikashop_cart_product_image_thumb { width: 72px; height: 72px; }
}

/* ---------- phones: HikaShop's own mobile table labels and boxes off ---------- */
#hikashop_checkout .hikashop_checkout_cart table,
#hikashop_checkout .hikashop_checkout_cart tbody,
#hikashop_checkout .hikashop_checkout_cart tr,
#hikashop_checkout .hikashop_checkout_cart td { border: 0 !important; box-shadow: none !important; }
#hikashop_checkout .hikashop_checkout_cart tr[id^="hikashop_cart_product_row"] { border-bottom: 1px solid var(--mps-line) !important; }
#hikashop_checkout .hikashop_checkout_cart tr.hikashop_cart_total_row { border-top: 1px solid var(--mps-line) !important; }
#hikashop_checkout .hikashop_checkout_cart td[data-title]::before { content: none !important; display: none !important; }
#hikashop_checkout .mps-co-side .hikashop_checkout_cart td.hikashop_cart_product_quantity_value[data-title]::before { content: "Qty:" !important; display: inline !important; position: static !important; width: auto !important; }
#hikashop_checkout .hikashop_checkout_cart td[data-title] { padding-left: 0 !important; text-align: left; position: static; }
#hikashop_checkout .hikashop_checkout_cart td.hikashop_cart_product_total_value[data-title] { text-align: inherit; }

@media (max-width: 640px) {
  /* basket rows on phones: name across the full width, then price on the left and qty + bin on the right */
  #hikashop_checkout .mps-co-main .hikashop_checkout_cart tr[id^="hikashop_cart_product_row"] {
    grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img name name" "img total qty"; gap: 8px 12px;
  }
  #hikashop_checkout .mps-co-main .hikashop_cart_product_quantity_value { flex-direction: row; align-items: center !important; align-self: end; gap: 6px; }
  #hikashop_checkout .mps-co-main .hikashop_cart_product_quantity_delete { order: 2; margin: 0; }
  #hikashop_checkout .mps-co-main .hikashop_cart_product_name { font-size: 15px; }
}


/* ---------- Register: password requirements panel ---------- */
/* hide Joomla's "Minimum Requirements" line and its strength bar */
#hikashop_checkout .hikashop_registration_password_line [id$="-rules"],
#hikashop_checkout .hikashop_registration_password_line .password-group > :not(.input-group),
#hikashop_checkout .hikashop_registration_password_line .hkc-sm-8 > :not(.password-group):not(.hikashop_field_error_msg),
#hikashop_checkout .hikashop_registration_password_line meter,
#hikashop_checkout .hikashop_registration_password2_line meter { display: none !important; }
#hikashop_checkout .mps-pw-panel { margin: 16px 0 20px; padding: 18px 20px; border: 1px solid var(--mps-line); border-radius: 8px; background: #fff; }
#hikashop_checkout .mps-co-side .mps-pw-panel { margin: 16px 0 0; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
#hikashop_checkout .mps-pw-panel[hidden] { display: none; }
#hikashop_checkout .mps-pw-title { margin: 0 0 10px; font-weight: 600; }
#hikashop_checkout .mps-pw-panel ul { margin: 0; padding: 0; list-style: none; }
#hikashop_checkout .mps-pw-panel li { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 15px; color: #444; }
#hikashop_checkout .mps-pw-panel .mps-no { color: #c92222; }
#hikashop_checkout .mps-pw-panel .mps-ok { color: #2e8540; display: none; }
#hikashop_checkout .mps-pw-panel li.ok .mps-no { display: none; }
#hikashop_checkout .mps-pw-panel li.ok .mps-ok { display: inline-flex; }
#hikashop_checkout .mps-pw-panel li.ok { color: #2e8540; }

/* "Change guest information" button */
#hikashop_checkout .mps-change-guest { display: flex; align-items: center; gap: 8px; width: max-content !important; max-width: 100%; margin: 0 0 16px; text-decoration: none !important; }   /* own line, above the e-mail */
/* guests change their details with that button, so no separate Edit buttons on the address cards */
#hikashop_checkout:has(.mps-change-guest) .hika_address_field .hika_edit { display: none !important; }

/* saved billing / shipping addresses as bordered cards, "Edit" button under the address */
#hikashop_checkout .hika_address_field {
  position: relative; height: 100%; margin: 0 0 16px; padding: 18px 20px !important; box-sizing: border-box;
  border: 1px solid var(--mps-line) !important; border-radius: 8px; background: #fff;
}
#hikashop_checkout .hika_address_field > legend {
  float: left; width: 100%; margin: 0 0 12px; padding: 0; border: 0; font-size: 20px; line-height: 1.3; white-space: normal;
}
#hikashop_checkout .hika_address_field > legend + * { clear: both; }
#hikashop_checkout .hika_address_field .hika_address_element { display: flex; flex-direction: column; }
#hikashop_checkout .hika_address_field .hika_edit { order: 2; position: static; margin: 14px 0 0; padding: 0 !important; background: none !important; border: 0 !important; height: auto; }
#hikashop_checkout .hika_address_field .hika_edit a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; }
#hikashop_checkout .hika_address_field .hika_edit a i { display: none; }
#hikashop_checkout .hika_address_field .hika_edit a span { display: inline !important; }
#hikashop_checkout .hika_address_field .hika_address_display { line-height: 1.6; }
/* billing and shipping address cards one above the other, full width (like delivery and payment).
   Works whichever HikaShop column wrapper is used (guest and logged-in layouts differ). */
#hikashop_checkout :has(> [class*="hkc-"] > .hika_address_field) { display: flex !important; flex-direction: column !important; gap: 16px; margin: 0 !important; }
#hikashop_checkout :has(> [class*="hkc-"] > .hika_address_field)::before,
#hikashop_checkout :has(> [class*="hkc-"] > .hika_address_field)::after { display: none !important; }
#hikashop_checkout [class*="hkc-"]:has(> .hika_address_field) { float: none !important; width: 100% !important; max-width: 100% !important; flex: none !important; padding: 0 !important; margin: 0 !important; box-sizing: border-box; }
#hikashop_checkout .hika_address_field { float: none !important; width: 100% !important; max-width: 100% !important; height: auto !important; }
#hikashop_checkout [class*="hkc-"] > .hika_address_field { margin: 0 !important; }
#hikashop_checkout .hika_address_field ~ .hika_address_field { margin-top: 16px !important; }

/* ---------- delivery / payment cards: clear the theme's table stripes and borders ---------- */
#hikashop_checkout .hikashop_shipping_methods_table,
#hikashop_checkout .hikashop_payment_methods_table,
#hikashop_checkout .hikashop_shipping_methods_table > *,
#hikashop_checkout .hikashop_payment_methods_table > *,
#hikashop_checkout .hikashop_shipping_methods_table tr,
#hikashop_checkout .hikashop_payment_methods_table tr { border: 0 !important; box-shadow: none !important; background: none !important; --bs-table-accent-bg: transparent; --bs-table-striped-bg: transparent; }
#hikashop_checkout .hikashop_shipping_methods_table td,
#hikashop_checkout .hikashop_payment_methods_table td {
  border: 1px solid var(--mps-line) !important; border-radius: 8px !important; background: #fff !important; box-shadow: none !important;
  padding: 16px 18px !important;
}
#hikashop_checkout .hikashop_shipping_methods_table td:hover,
#hikashop_checkout .hikashop_payment_methods_table td:hover { border-color: #c9cfcb !important; }
#hikashop_checkout .hikashop_shipping_methods_table td:has(input:checked),
#hikashop_checkout .hikashop_payment_methods_table td:has(input:checked) {
  border: 1px solid var(--mps-green) !important; padding: 16px 18px !important; background: #fff !important;
  box-shadow: 0 0 0 1px var(--mps-green), 0 4px 14px rgba(0,0,0,.06) !important;
}
#hikashop_checkout .hikashop_shipping_methods_table label,
#hikashop_checkout .hikashop_payment_methods_table label { font-weight: 500; }
#hikashop_checkout .hikashop_checkout_shipping_cost { font-weight: 500; color: #222; }

/* country box: flag of the chosen country on the left (the script sets --mps-flag) */
#hikashop_checkout .hkform-group select.mps-flagged {
  background-image: var(--mps-flag), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: left 12px center, right 12px center !important;
  background-size: 24px 18px, 16px 16px !important;
  padding-left: 46px !important;
}
#hikashop_checkout .mps-req select.mps-flagged { background-position: left 12px center, right 32px center !important; }

/* ---------- PayPal Checkout payment page (after Step 3) ---------- */
.paypal_checkout_summary { --mps-green: #394b40; --mps-line: #e3e6e3; --mps-soft: #6b6f6b;
  border: 1px solid var(--mps-line) !important; border-radius: 8px !important; padding: 22px !important;
  background: #fff !important; box-shadow: 0 4px 18px rgba(0,0,0,.05) !important; color: #222; }
.paypal_checkout_summary, .paypal_checkout_summary * { font-family: inherit !important; }
.paypal_checkout_summary h3 { margin: 0 0 14px !important; }
.paypal_checkout_summary table.paypal_summary_table { width: 100%; border-collapse: collapse; margin: 0 !important; background: none !important; }
.paypal_checkout_summary .paypal_summary_table th { font-size: 13px !important; font-weight: 500 !important; text-transform: none; color: var(--mps-soft) !important;
  padding: 0 0 8px !important; border: 0 !important; border-bottom: 1px solid var(--mps-line) !important; background: none !important; }
.paypal_checkout_summary .paypal_summary_table td { font-size: 15px !important; color: #222 !important; padding: 12px 0 !important; vertical-align: top;
  border: 0 !important; border-bottom: 1px solid var(--mps-line) !important; background: none !important; line-height: 1.4; }
.paypal_checkout_summary .paypal_summary_table td small { display: block; margin-top: 3px; font-size: 13px; color: var(--mps-soft); }
.paypal_checkout_summary .paypal_summary_product { text-align: left !important; }
.paypal_checkout_summary .paypal_summary_table .paypal_summary_qty, .paypal_checkout_summary .paypal_summary_table .paypal_summary_price { text-align: right !important; white-space: nowrap; padding-left: 18px !important; width: 1%; }
.paypal_checkout_summary .paypal_summary_table td.paypal_summary_price { font-weight: 500; }
.paypal_checkout_summary .paypal_summary_totals { margin: 6px 0 0 !important; padding: 0 !important; border: 0 !important; }
.paypal_checkout_summary .paypal_summary_line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0 !important; border: 0 !important; font-size: 15px; color: #222; }
.paypal_checkout_summary .paypal_summary_total { border-top: 1px solid var(--mps-line) !important; margin-top: 6px; padding-top: 14px !important; font-size: 19px !important; font-weight: 600 !important; }
.paypal_checkout_summary .paypal_summary_total span { font-size: inherit !important; font-weight: inherit !important; }
.paypal_checkout_summary .paypal_summary_address { margin: 14px 0 0 !important; padding: 14px 0 0 !important; border: 0 !important; border-top: 1px solid var(--mps-line) !important;
  font-size: 14px; line-height: 1.5; color: var(--mps-soft); }
.paypal_checkout_summary .paypal_summary_address br { display: none; }
.paypal_checkout_summary .paypal_summary_address strong { display: block; margin-bottom: 2px; font-weight: 600; color: #222; }
@media (max-width: 640px) { .paypal_checkout_summary { padding: 16px !important; } }
/* "Cancel and choose another payment method" (the script makes it a theme Secondary button) */
.mps-pp-cancel { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; width: auto !important; max-width: 100%; margin-top: 24px; white-space: normal; }
.mps-pp-cancel svg { display: block; }

/* logged-in saved addresses: edit / delete icon buttons and the "New address" button */
#hikashop_checkout .mps-addr-btn { display: inline-flex !important; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0 !important;
  margin: 0 0 0 6px; border: 1px solid var(--mps-line) !important; border-radius: 6px !important; background: #fff !important; color: var(--mps-soft) !important;
  box-shadow: none !important; text-decoration: none !important; cursor: pointer; vertical-align: middle; }
#hikashop_checkout .mps-addr-btn:hover { color: var(--mps-green) !important; border-color: var(--mps-green) !important; }
#hikashop_checkout .mps-addr-btn.mps-addr-del:hover { color: #c0392b !important; border-color: #c0392b !important; }
#hikashop_checkout .mps-addr-btn svg.mps-ico { display: block !important; width: 20px !important; height: 20px !important; visibility: visible !important; opacity: 1 !important; flex: none; }
#hikashop_checkout .mps-addr-btn { font-size: 16px !important; line-height: 1 !important; }
#hikashop_checkout .mps-addr-new { display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 20px !important; }
#hikashop_checkout .mps-addr-new svg { display: block; }

/* logged-in: each saved address is its own clickable card - radio on the left, edit / delete on the right */
#hikashop_checkout .hika_address_field .hika_address_element:has(input[type=radio]) {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; align-items: start; gap: 0 14px;
  margin: 0 0 12px; padding: 16px 18px; border: 1px solid var(--mps-line); border-radius: 6px; background: #fff; cursor: pointer;
}
#hikashop_checkout .hika_address_field .hika_address_element:has(input[type=radio]:checked) { border: 2px solid var(--mps-green); padding: 15px 17px; background: #f4f6f5; }
#hikashop_checkout .hika_address_element:has(input[type=radio]) .hika_edit { display: contents !important; }
#hikashop_checkout .hika_address_element:has(input[type=radio]) .hika_edit input[type=radio] { grid-column: 1; grid-row: 1; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--mps-green); cursor: pointer; }
#hikashop_checkout .hika_address_element:has(input[type=radio]) .hika_address_display { grid-column: 2; grid-row: 1; }
#hikashop_checkout .hika_address_element:has(input[type=radio]) .mps-addr-btn { grid-row: 1; margin: 0 !important; }
#hikashop_checkout .hika_address_element:has(input[type=radio]) .mps-addr-btn:not(.mps-addr-del) { grid-column: 3; margin-right: -8px !important; }
#hikashop_checkout .hika_address_element:has(input[type=radio]) .mps-addr-del { grid-column: 4; }
#hikashop_checkout .hika_address_element:has(input[type=radio]:checked) .hika_address_display { color: #222; }
#hikashop_checkout .hika_address_field .mps-addr-new { margin-top: 8px !important; }
@media (max-width: 640px) {
  #hikashop_checkout .hika_address_field .hika_address_element:has(input[type=radio]) { gap: 0 10px; padding: 14px; }
  #hikashop_checkout .hika_address_field .hika_address_element:has(input[type=radio]:checked) { padding: 13px; }
  #hikashop_checkout .hika_address_field:has(input[type=radio]) { padding: 14px !important; }
  #hikashop_checkout .hika_address_field .hika_address_element:has(input[type=radio]) { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px 10px; }
  #hikashop_checkout .hika_address_element:has(input[type=radio]) .hika_address_display { grid-row: 1 / span 2; }
  #hikashop_checkout .hika_address_element:has(input[type=radio]) .mps-addr-btn { width: 34px; height: 34px; }
  #hikashop_checkout .hika_address_element:has(input[type=radio]) .mps-addr-btn:not(.mps-addr-del) { grid-column: 3; grid-row: 1; margin-right: 0 !important; }
  #hikashop_checkout .hika_address_element:has(input[type=radio]) .mps-addr-del { grid-column: 3; grid-row: 2; align-self: start; }
  #hikashop_checkout .hika_address_field .hika_address_element:has(input[type=radio]) { grid-template-rows: auto 1fr; }
}

/* editing / adding an address: Cancel and Save address side by side, right-aligned */
#hikashop_checkout .mps-addr-actions { display: flex; justify-content: flex-end; gap: 10px; margin: 20px 0 0; clear: both; }
#hikashop_checkout .mps-addr-actions .uk-button { white-space: nowrap; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; width: auto !important; margin: 0 !important; float: none !important; }
#hikashop_checkout .mps-addr-actions svg.mps-ico { display: block !important; width: 18px; height: 18px; flex: none; }
@media (max-width: 640px) { #hikashop_checkout .mps-addr-actions .uk-button { flex: 1 1 0; padding-left: 10px; padding-right: 10px; } }

/* terms of sale tick-box, in the order card above Place your order */
#hikashop_checkout .mps-co-card .hikashop_checkout_terms { margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--mps-line); }
#hikashop_checkout .mps-terms-btn { display: flex !important; align-items: center; justify-content: center; gap: 6px; width: 100%; margin: 0 0 12px; }
#hikashop_checkout .mps-terms-btn svg { display: block !important; flex: none; width: 18px; height: 18px; }
#hikashop_checkout .mps-terms-label { align-items: center; }
#hikashop_checkout .mps-terms-label { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; line-height: 1.45; color: #222; cursor: pointer; font-weight: 400; }
#hikashop_checkout .mps-terms-label input[type=checkbox] { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--mps-green); cursor: pointer; }
#hikashop_checkout .hikashop_checkout_terms .alert, #hikashop_checkout .hikashop_checkout_terms [class*="error"] {
  margin: 0 0 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; border-radius: 6px; }

/* terms of sale pop-up */
#mps-terms-modal .mps-terms-dialog { border-radius: 8px; overflow: hidden; }
#mps-terms-modal .mps-terms-frame { height: 65vh; max-height: 640px; }
#mps-terms-modal .mps-terms-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* long baskets in the Step 3 order card */
#hikashop_checkout .mps-co-side tr.mps-row-hidden { display: none !important; }
#hikashop_checkout .mps-more-items { display: flex; align-items: center; gap: 6px; margin: 4px 0 12px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--mps-green); text-decoration: underline; text-underline-offset: 3px; }
#hikashop_checkout .mps-more-items::after { content: ""; width: 12px; height: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat; }
#hikashop_checkout .mps-more-items.open::after { transform: rotate(180deg); }
#hikashop_checkout .mps-co-side.mps-co-side-tall { position: static !important; }
#hikashop_checkout tr.mps-more-row td { padding: 10px 0 14px !important; border: 0 !important; background: none !important; text-align: left; }

/* ===== 3. mps-thankyou.css ===== */
#hikashop_thankyou.hikashop_thankyou { --mps-green: #394b40; --mps-line: #e3e6e3; --mps-soft: #6b6f6b; --mps-tint: #f4f6f5; --mps-amber: #b26b00; display: grid !important; grid-template-columns: minmax(0, 1fr) 360px !important; grid-template-areas: "head head" "pay recap" "next recap" "acts recap" !important; grid-template-rows: auto auto auto 1fr !important; gap: 24px 40px !important; align-items: start !important; color: #222 !important; }
#hikashop_thankyou .hikashop_thankyou_header { grid-area: head !important; }
#hikashop_thankyou .hikashop_thankyou_payment { grid-area: pay !important; }
#hikashop_thankyou .hikashop_thankyou_next { grid-area: next !important; }
#hikashop_thankyou .hikashop_thankyou_recap { grid-area: recap !important; position: sticky !important; top: 24px !important; }
#hikashop_thankyou .hikashop_thankyou_actions, #hikashop_thankyou .mps-ty-actions { grid-area: acts !important; }
#hikashop_thankyou .hikashop_thankyou_payment:empty, #hikashop_thankyou .mps-ty-empty { display: none !important; }
#hikashop_thankyou.hikashop_thankyou.mps-ty-cols { grid-template-areas: "head head" "left recap" !important; grid-template-rows: auto auto !important; }
#hikashop_thankyou .mps-ty-left { grid-area: left !important; display: flex !important; flex-direction: column !important; gap: 24px !important; min-width: 0 !important; }
#hikashop_thankyou .mps-ty-left > * { margin: 0 !important; }
#hikashop_thankyou .mps-ty-dl-list { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex !important; flex-direction: column !important; gap: 14px !important; }
#hikashop_thankyou .mps-ty-dl-list li { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 12px 18px !important; flex-wrap: wrap !important; margin: 0 !important; padding: 0 0 14px !important; border-bottom: 1px solid var(--mps-line) !important; }
#hikashop_thankyou .mps-ty-dl-list li:last-child { padding-bottom: 0 !important; border-bottom: 0 !important; }
#hikashop_thankyou .mps-ty-dl-text { display: flex !important; flex-direction: column !important; gap: 2px !important; min-width: 0 !important; flex: 1 1 220px !important; }
#hikashop_thankyou .mps-ty-dl-text strong { font-weight: 600 !important; color: #222 !important; }
#hikashop_thankyou .mps-ty-dl-text span { font-size: 14px !important; color: var(--mps-soft) !important; }
#hikashop_thankyou .mps-ty-dl-btn { display: inline-flex !important; align-items: center !important; gap: 8px !important; margin: 0 !important; flex: 0 0 auto !important; }
#hikashop_thankyou .mps-ty-dl-btn, #hikashop_thankyou .mps-ty-dl-btn:visited { background: #ffc439 !important; border: 1px solid #ffc439 !important; color: #111 !important; font-weight: 600 !important; }
#hikashop_thankyou .mps-ty-dl-btn:hover, #hikashop_thankyou .mps-ty-dl-btn:focus { background: #f2ba36 !important; border-color: #f2ba36 !important; color: #111 !important; }
#hikashop_thankyou .mps-ty-dl-more { margin: 16px 0 0 !important; font-size: 14px !important; color: var(--mps-soft) !important; }
@media (max-width: 959px) {
#hikashop_thankyou.hikashop_thankyou { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "head" "pay" "next" "recap" "acts" !important; grid-template-rows: none !important; }
#hikashop_thankyou.hikashop_thankyou.mps-ty-cols { grid-template-areas: "head" "left" "recap" !important; }
#hikashop_thankyou .hikashop_thankyou_recap { position: static !important; }

}
#hikashop_thankyou .hikashop_thankyou_card, #hikashop_thankyou .hikashop_thankyou_payment > section { border: 1px solid var(--mps-line) !important; border-radius: 8px !important; padding: 24px !important; background: #fff !important; box-shadow: 0 4px 18px rgba(0,0,0,.05) !important; margin: 0 !important; }
#hikashop_thankyou.hikashop_thankyou h2, #hikashop_thankyou .hikashop_thankyou_card_title { margin: 0 0 14px !important; font-size: 22px !important; line-height: 1.3 !important; }
#hikashop_thankyou .hikashop_thankyou_payment > section > p { margin: 0 0 18px !important; color: var(--mps-soft) !important; }
#hikashop_thankyou .hikashop_thankyou_header { display: grid !important; grid-template-columns: 56px minmax(0, 1fr) !important; gap: 4px 18px !important; align-items: center !important; }
#hikashop_thankyou .hikashop_thankyou_mark { grid-row: 1 / span 2 !important; width: 56px !important; height: 56px !important; border-radius: 50% !important; background: var(--mps-green) !important; position: relative !important; }
#hikashop_thankyou .hikashop_thankyou_mark::after { content: "" !important; position: absolute !important; inset: 0 !important; background: #fff !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpolyline fill='none' stroke='%23000' stroke-width='1.6' points='5,10.5 8.5,14 15,6.5'/%3E%3C/svg%3E") center / 30px no-repeat !important; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpolyline fill='none' stroke='%23000' stroke-width='1.6' points='5,10.5 8.5,14 15,6.5'/%3E%3C/svg%3E") center / 30px no-repeat !important; }
#hikashop_thankyou .hikashop_thankyou_title { margin: 0 !important; line-height: 1.15 !important; }
#hikashop_thankyou .hikashop_thankyou_lede { margin: 0 !important; color: var(--mps-soft) !important; font-size: 17px !important; }
#hikashop_thankyou .hikashop_thankyou_status { grid-column: 1 / -1 !important; grid-row: 3 !important; justify-self: start !important; margin-top: 14px !important; display: inline-flex !important; align-items: center !important; gap: 8px !important; padding: 5px 12px !important; border-radius: 20px !important; font-size: 14px !important; font-weight: 600 !important; background: #e8f0eb !important; color: var(--mps-green) !important; }
#hikashop_thankyou .hikashop_thankyou_status::before { content: "" !important; width: 8px !important; height: 8px !important; border-radius: 50% !important; background: currentColor !important; }
#hikashop_thankyou .hikashop_thankyou_status--awaiting { background: #fdf3e1 !important; color: var(--mps-amber) !important; }
#hikashop_thankyou .hikashop_thankyou_meta { grid-column: 1 / -1 !important; grid-row: 4 !important; list-style: none !important; margin: 18px 0 0 !important; padding: 0 !important; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important; }
#hikashop_thankyou .hikashop_thankyou_meta li { margin: 0 !important; padding: 14px 18px !important; border: 1px solid var(--mps-line) !important; border-radius: 8px !important; background: var(--mps-tint) !important; display: flex !important; flex-direction: column !important; gap: 2px !important; }
#hikashop_thankyou .hikashop_thankyou_meta li span { font-size: 13px !important; color: var(--mps-soft) !important; }
#hikashop_thankyou .hikashop_thankyou_meta li strong { font-size: 18px !important; font-weight: 600 !important; color: #222 !important; overflow-wrap: anywhere !important; }
@media (max-width: 640px) {
#hikashop_thankyou .hikashop_thankyou_header { grid-template-columns: 44px minmax(0, 1fr) !important; gap: 4px 14px !important; }
#hikashop_thankyou .hikashop_thankyou_mark { width: 44px !important; height: 44px !important; }
#hikashop_thankyou .hikashop_thankyou_mark::after { -webkit-mask-size: 24px !important; mask-size: 24px !important; }
#hikashop_thankyou .hikashop_thankyou_lede { grid-column: 1 / -1 !important; margin-top: 8px !important; }
#hikashop_thankyou .hikashop_thankyou_mark { grid-row: 1 !important; }
#hikashop_thankyou .hikashop_thankyou_meta { grid-template-columns: 1fr 1fr !important; }
#hikashop_thankyou .hikashop_thankyou_meta li:first-child { grid-column: 1 / -1 !important; }
#hikashop_thankyou .hikashop_thankyou_card, #hikashop_thankyou .hikashop_thankyou_payment > section { padding: 18px !important; }

}
#hikashop_thankyou .hikashop_thankyou_details { margin: 0 0 20px !important; display: grid !important; gap: 12px !important; }
#hikashop_thankyou .hikashop_thankyou_key { padding: 14px 18px !important; border-radius: 8px !important; background: var(--mps-tint) !important; border: 1px solid var(--mps-line) !important; }
#hikashop_thankyou .hikashop_thankyou_key dt { font-size: 13px !important; font-weight: 400 !important; color: var(--mps-soft) !important; margin: 0 0 2px !important; }
#hikashop_thankyou .hikashop_thankyou_key dd { margin: 0 !important; display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 6px 12px !important; }
#hikashop_thankyou .hikashop_thankyou_amount, #hikashop_thankyou .hikashop_thankyou_value { font-size: 22px !important; font-weight: 600 !important; color: #222 !important; letter-spacing: .01em !important; }
#hikashop_thankyou .hikashop_thankyou_hint { flex-basis: 100% !important; font-size: 14px !important; color: var(--mps-soft) !important; }
#hikashop_thankyou .hikashop_thankyou_copy, #hikashop_thankyou .mps-copy { display: inline-flex !important; align-items: center !important; gap: 6px !important; padding: 4px 10px !important; border: 1px solid var(--mps-line) !important; border-radius: 6px !important; background: #fff !important; font: inherit !important; font-size: 13px !important; color: var(--mps-green) !important; cursor: pointer !important; line-height: 1.4 !important; }
#hikashop_thankyou .hikashop_thankyou_copy:hover, #hikashop_thankyou .mps-copy:hover { border-color: var(--mps-green) !important; }
#hikashop_thankyou .hikashop_thankyou_copy::before, #hikashop_thankyou .mps-copy::before { content: "" !important; width: 14px !important; height: 14px !important; background: currentColor !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000'%3E%3Crect x='3.5' y='5.5' width='11' height='12'/%3E%3Cpolyline points='6.5 3.5 16.5 3.5 16.5 14.5'/%3E%3C/svg%3E") center / contain no-repeat !important; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000'%3E%3Crect x='3.5' y='5.5' width='11' height='12'/%3E%3Cpolyline points='6.5 3.5 16.5 3.5 16.5 14.5'/%3E%3C/svg%3E") center / contain no-repeat !important; }
#hikashop_thankyou .mps-copy.mps-copied { color: #fff !important; background: var(--mps-green) !important; border-color: var(--mps-green) !important; }
#hikashop_thankyou .hikashop_thankyou_info { font-size: 15px !important; }
#hikashop_thankyou .mps-bank h3 { margin: 22px 0 8px !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: var(--mps-soft) !important; }
#hikashop_thankyou .mps-bank h3:first-child { margin-top: 0 !important; }
#hikashop_thankyou .mps-bank dl { margin: 0 !important; border-top: 1px solid var(--mps-line) !important; }
#hikashop_thankyou .mps-bank dl > div { display: grid !important; grid-template-columns: 190px minmax(0, 1fr) !important; gap: 4px 16px !important; padding: 10px 0 !important; border-bottom: 1px solid var(--mps-line) !important; }
#hikashop_thankyou .mps-bank dt { font-weight: 400 !important; color: var(--mps-soft) !important; margin: 0 !important; }
#hikashop_thankyou .mps-bank dd { margin: 0 !important; display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 6px 12px !important; color: #222 !important; font-weight: 500 !important; }
#hikashop_thankyou .mps-bank dd .mps-v { overflow-wrap: anywhere !important; }
@media (max-width: 640px) {
#hikashop_thankyou .mps-bank dl > div { grid-template-columns: minmax(0, 1fr) !important; }
 }
#hikashop_thankyou .hikashop_thankyou_steps { list-style: none !important; counter-reset: mps-step !important; margin: 0 !important; padding: 0 !important; display: grid !important; gap: 16px !important; }
#hikashop_thankyou .hikashop_thankyou_steps li { counter-increment: mps-step !important; display: grid !important; grid-template-columns: 32px minmax(0, 1fr) !important; gap: 2px 14px !important; margin: 0 !important; }
#hikashop_thankyou .hikashop_thankyou_steps li::before { content: counter(mps-step) !important; grid-row: 1 / span 2 !important; width: 32px !important; height: 32px !important; border-radius: 50% !important; background: var(--mps-tint) !important; border: 1px solid var(--mps-line) !important; color: var(--mps-green) !important; font-weight: 600 !important; display: flex !important; align-items: center !important; justify-content: center !important; }
#hikashop_thankyou .hikashop_thankyou_steps strong { font-weight: 600 !important; color: #222 !important; }
#hikashop_thankyou .hikashop_thankyou_steps span { color: var(--mps-soft) !important; font-size: 15px !important; }
#hikashop_thankyou .hikashop_thankyou_lines { list-style: none !important; margin: 0 !important; padding: 0 !important; }
#hikashop_thankyou .hikashop_thankyou_lines li { display: flex !important; justify-content: space-between !important; align-items: flex-start !important; gap: 14px !important; margin: 0 !important; padding: 10px 0 !important; }
#hikashop_thankyou .hikashop_thankyou_lines li:not([class]) { border-bottom: 1px solid var(--mps-line) !important; }
#hikashop_thankyou .hikashop_thankyou_line_name { font-size: 15px !important; line-height: 1.4 !important; }
#hikashop_thankyou .hikashop_thankyou_line_qty { display: block !important; margin-top: 3px !important; font-size: 13px !important; color: var(--mps-soft) !important; }
#hikashop_thankyou .hikashop_thankyou_line_price { font-weight: 600 !important; white-space: nowrap !important; }
#hikashop_thankyou .hikashop_thankyou_line_extra { padding: 6px 0 !important; font-size: 15px !important; }
#hikashop_thankyou .hikashop_thankyou_subtotal { padding-top: 14px !important; }
#hikashop_thankyou .hikashop_thankyou_total { margin-top: 8px !important; padding-top: 14px !important; border-top: 1px solid var(--mps-line) !important; font-size: 19px !important; font-weight: 600 !important; }
#hikashop_thankyou .hikashop_thankyou_addresses { display: grid !important; gap: 12px !important; margin-top: 20px !important; }
#hikashop_thankyou .hikashop_thankyou_address { padding: 14px 16px !important; border: 1px solid var(--mps-line) !important; border-radius: 6px !important; font-size: 14px !important; line-height: 1.55 !important; color: var(--mps-soft) !important; }
#hikashop_thankyou .hikashop_thankyou_address h3 { margin: 0 0 4px !important; font-size: 15px !important; font-weight: 600 !important; color: #222 !important; }
/* the buttons under the boxes: equal widths across the full column, side by side; stacked on phones */
#hikashop_thankyou .mps-ty-actions { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important; gap: 12px !important; width: 100% !important; }
#hikashop_thankyou .mps-ty-actions .uk-button { margin: 0 !important; width: 100% !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; }
#hikashop_thankyou .mps-ty-actions .mps-ico, #hikashop_thankyou .mps-ty-dl-btn .mps-ico { flex: 0 0 auto !important; }
@media (max-width: 640px) {
#hikashop_thankyou .mps-ty-actions { grid-template-columns: minmax(0, 1fr) !important; }
 }


/* HikaShop 6 default styles for this page: switch off its own icon, colours and card accents */
#hikashop_thankyou .hikashop_thankyou_mark { background: var(--mps-green) !important; color: transparent !important; font-size: 0 !important; border: 0 !important; }
#hikashop_thankyou .hikashop_thankyou_mark::before { content: none !important; display: none !important; }
#hikashop_thankyou .hikashop_thankyou_payment > section, #hikashop_thankyou .hikashop_thankyou_card { border-top: 1px solid var(--mps-line) !important; }
#hikashop_thankyou .hikashop_thankyou_payment, #hikashop_thankyou .hikashop_thankyou_header { border: 0 !important; background: none !important; padding: 0 !important; box-shadow: none !important; }
#hikashop_thankyou.hikashop_thankyou { max-width: none !important; width: auto !important; margin: 0 !important; text-align: left !important; }
#hikashop_thankyou .hikashop_thankyou_header { text-align: left !important; }
#hikashop_thankyou .hikashop_thankyou_meta li span { text-transform: none !important; letter-spacing: 0 !important; }
#hikashop_thankyou .hikashop_thankyou_value, #hikashop_thankyou .hikashop_thankyou_amount { font-family: inherit !important; }
#hikashop_thankyou .hikashop_thankyou_details { margin-left: 0 !important; margin-right: 0 !important; }
#hikashop_thankyou .hikashop_thankyou_key { margin: 0 !important; display: block !important; }
#hikashop_thankyou .hikashop_thankyou_key dt { text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; }
#hikashop_thankyou .hikashop_thankyou_steps li::before { background: #f4f6f5 !important; color: var(--mps-green) !important; border: 1px solid var(--mps-line) !important; }
#hikashop_thankyou .hikashop_thankyou_address h3 { text-transform: none !important; letter-spacing: 0 !important; font-size: 15px !important; }
#hikashop_thankyou .hikashop_thankyou_mark { display: flex !important; align-items: center !important; justify-content: center !important; }
#hikashop_thankyou .hikashop_thankyou_mark::after { content: none !important; display: none !important; }
#hikashop_thankyou .hikashop_thankyou_mark .mps-ty-tick { display: block !important; width: 30px !important; height: 30px !important; }
@media (max-width: 640px) { #hikashop_thankyou .hikashop_thankyou_mark .mps-ty-tick { width: 24px !important; height: 24px !important; } }

/* ===== 4. mps-order.css ===== */
/* ---------- View your order (order details page) ---------- */
#hikashop_order_main.mps-ord-ready { --mps-green: #394b40; --mps-line: #e3e6e3; --mps-soft: #6b6f6b; --mps-tint: #f4f6f5; color: #222; }
.mps-ord-titlerow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.mps-ord-title { margin: 0 !important; line-height: 1.15; }
.mps-ord-title span { white-space: nowrap; }
.mps-ord-contact { display: inline-flex !important; align-items: center; gap: 8px; }
.mps-ord-ready .mps-ico { display: block; flex: none; }
.mps-ord-meta { list-style: none; margin: 22px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.mps-ord-meta li { margin: 0; padding: 14px 18px; border: 1px solid var(--mps-line); border-radius: 8px; background: var(--mps-tint); display: flex; flex-direction: column; gap: 2px; }
.mps-ord-meta li span { font-size: 13px; color: var(--mps-soft); }
.mps-ord-meta li strong { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }

.mps-ord-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px 40px; align-items: start; margin-top: 28px; }
.mps-ord-side { display: grid; gap: 16px; }
@media (max-width: 959px) { .mps-ord-cols { grid-template-columns: minmax(0, 1fr); } }

.mps-ord-card { border: 1px solid var(--mps-line); border-radius: 8px; padding: 24px; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.mps-ord-card-title { margin: 0 0 14px !important; font-size: 22px; line-height: 1.3; }
.mps-ord-side .mps-ord-card { padding: 18px 20px; }
.mps-ord-side .mps-ord-card-title { font-size: 17px; font-weight: 600; margin-bottom: 6px !important; }
.mps-ord-addr-text, .mps-ord-store-text { font-size: 14px; line-height: 1.6; color: var(--mps-soft); }
.mps-ord-store-text img { display: block; width: auto !important; max-width: 200px; height: auto; margin: 4px 0 10px; }

.mps-ord-lines { list-style: none; margin: 0 !important; padding: 0 !important; }
.mps-ord-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--mps-line); }
.mps-ord-line:first-child { padding-top: 4px; }
.mps-ord-thumb { width: 72px; height: 72px; border: 1px solid var(--mps-line); border-radius: 6px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.mps-ord-thumb img { width: 100%; height: 100%; object-fit: contain; }
.mps-ord-info { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.mps-ord-name { font-size: 16px; line-height: 1.4; color: #222 !important; text-decoration: none !important; }
a.mps-ord-name:hover { color: var(--mps-green) !important; text-decoration: underline !important; }
.mps-ord-code, .mps-ord-qty, .mps-ord-note { font-size: 13px; color: var(--mps-soft); }
.mps-ord-extra { font-size: 13px; color: var(--mps-soft); }
.mps-ord-file { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; }
.mps-ord-file-text { display: flex; flex-direction: column; gap: 1px; }
.mps-ord-file-name { font-size: 13px; color: #222; }
.mps-ord-dl { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important; line-height: 1.3 !important; padding-top: 7px !important; padding-bottom: 7px !important; text-align: left; }
.mps-ord-price { font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) {
  .mps-ord-card { padding: 18px; }
  .mps-ord-line { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 12px; }
  .mps-ord-thumb { width: 56px; height: 56px; }
  .mps-ord-contact { width: 100%; justify-content: center; }
  .mps-ord-meta { grid-template-columns: 1fr 1fr; }
  .mps-ord-meta li:first-child { grid-column: 1 / -1; }
}
.mps-ord-totals { padding-top: 8px; }
.mps-ord-trow { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.mps-ord-grand { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--mps-line); font-size: 19px; font-weight: 600; }
.mps-ord-method { margin: 14px 0 0 !important; font-size: 14px; color: var(--mps-soft); }
.mps-ord-rest { margin-top: 20px; }

/* PayPal express button, moved into the order summary card under Go to checkout */
.mps-co-card .mps-express { margin: 14px 0 0; }
.mps-co-card .mps-express-or { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 13px; color: #777; text-transform: uppercase; letter-spacing: .08em; }
.mps-co-card .mps-express-or::before, .mps-co-card .mps-express-or::after { content: ""; flex: 1; height: 1px; background: rgba(0,0,0,.12); }
.mps-co-card .hikashop_paypal_express { margin: 0 !important; padding: 0 !important; float: none !important; width: 100% !important; text-align: center; }
.mps-co-card .hikashop_paypal_v6_buttons { width: 100% !important; max-width: none !important; margin: 0 !important; }
.mps-co-card .hikashop_paypal_v6_buttons paypal-button, .mps-co-card .hikashop_paypal_v6_buttons paypal-pay-later-button { display: block; width: 100%; }
.mps-co-card .hikashop_paypal_v6_buttons [hidden] { display: none !important; }
.mps-co-card .hikashop_paypal_express_error:empty { display: none; }

/* View your order: Back link above the order title */
.mps-ord-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mps-green, #394b40) !important; text-decoration: none !important; }
.mps-ord-back:hover { text-decoration: underline !important; }
@media print { .mps-ord-back { display: none !important; } }

/* PayPal express: not offered before the delivery address is known (basket and details steps) */
#hikashop_checkout:not(.mps-express-early):is([data-checkout-step="1"], [data-checkout-step="2"]) .hikashop_paypal_express { display: none !important; }

/* PayPal payment page (after Place your order): PayPal, Pay Later, Apple Pay and Google Pay buttons the same width
   and height, one under another with even gaps */
.paypal_checkout_payment { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.paypal_checkout_payment #paypal-select-message { margin: 0 0 4px; text-align: center; }
.paypal_checkout_payment #paypal-button-container,
.paypal_checkout_payment #paypal-applepay-container,
.paypal_checkout_payment #paypal-googlepay-container { width: 100% !important; max-width: 340px !important; margin: 0 !important; padding: 0 !important; }
.paypal_checkout_payment #paypal-button-container { gap: 10px !important; }
.paypal_checkout_payment #paypal-button-container > *:not([hidden]) { display: block; width: 100% !important; }
.paypal_checkout_payment #paypal-applepay-container:empty,
.paypal_checkout_payment #paypal-googlepay-container:empty { display: none; }
.paypal_checkout_payment apple-pay-button { display: block; width: 100%; height: 45px !important; margin: 0 !important;
  --apple-pay-button-width: 100%; --apple-pay-button-height: 45px; --apple-pay-button-border-radius: 4px; --apple-pay-button-padding: 0; }
.paypal_checkout_payment #paypal-googlepay-container > div { width: 100% !important; }
.paypal_checkout_payment .gpay-button { display: block !important; width: 100% !important; min-width: 0 !important;
  height: 45px !important; min-height: 45px !important; border-radius: 4px !important; }
/* Google Pay's "card on file" button (shown when the buyer has a card saved with Google): its own wrapper and size */
.paypal_checkout_payment #paypal-googlepay-container,
.paypal_checkout_payment #paypal-googlepay-container > div,
.paypal_checkout_payment #paypal-googlepay-container .gpay-card-info-container-fill { display: block !important; width: 100% !important; max-width: 340px !important; margin-left: auto !important; margin-right: auto !important; }
.paypal_checkout_payment #paypal-googlepay-container button,
.paypal_checkout_payment #paypal-googlepay-container .gpay-card-info-container { display: flex !important; align-items: center !important; justify-content: center !important;
  width: 100% !important; min-width: 0 !important; max-width: none !important; height: 45px !important; min-height: 45px !important; margin: 0 !important; border-radius: 4px !important; box-sizing: border-box !important; }
.paypal_checkout_payment #paypal-googlepay-container .gpay-card-info-iframe { max-width: 100% !important; }

/* delivery / payment descriptions on their own line under the name; "Delivery to be quoted" baskets */
#hikashop_checkout .hikashop_shipping_methods_table td > .mps-method-desc,
#hikashop_checkout .hikashop_payment_methods_table td > .mps-method-desc { grid-column: 2 / -1; display: block; margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--mps-soft, #6b6f6b); font-weight: 400; white-space: normal; }
#hikashop_checkout.mps-quote .mps-express,
#hikashop_checkout.mps-quote .hikashop_paypal_express,
#hikashop_checkout.mps-quote [data-pp-message],
#hikashop_checkout.mps-quote .mps-paylater-note,
#hikashop_checkout.mps-quote .paypal-message,
#hikashop_checkout.mps-quote .hikashop_paypal_paylater,
#hikashop_checkout.mps-quote [class*="paylater"] { display: none !important; }

/* ---------- Pay later page (order/pay): checkout-style cards ---------- */
.mps-pay-head { margin: 0 0 24px !important; }
form.mps-pay { --mps-line: #e3e6e3; --mps-green: #394b40; --mps-soft: #6b6f6b; min-width: 0; }
.mps-pay-grid { --mps-line: #e3e6e3; --mps-soft: #6b6f6b; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.mps-pay-grid.mps-pay-single { grid-template-columns: minmax(0, 760px); }
.mps-pay-side { position: sticky; top: 24px; }
.mps-pay-card { border: 1px solid var(--mps-line); border-radius: 8px; padding: 22px 22px 18px; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.mps-pay-card-title { margin: 0 0 12px !important; }
.mps-pay-lines { list-style: none; margin: 0 !important; padding: 0 !important; }
.mps-pay-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: start; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--mps-line); }
.mps-pay-line:first-child { padding-top: 2px; }
.mps-pay-thumb { width: 56px; height: 56px; border: 1px solid var(--mps-line); border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; }
.mps-pay-thumb img { width: 100%; height: 100%; object-fit: contain; }
.mps-pay-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mps-pay-name { font-size: 15px; line-height: 1.35; color: #222; }
.mps-pay-code, .mps-pay-qty { font-size: 13px; color: var(--mps-soft); }
.mps-pay-price { font-size: 15px; font-weight: 600; color: #222; white-space: nowrap; }
.mps-pay-totals { padding-top: 6px; }
.mps-pay-trow { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; color: var(--mps-soft); }
.mps-pay-trow.mps-pay-grand { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--mps-line); font-size: 19px; font-weight: 600; color: #222; }
@media (max-width: 960px) { .mps-pay-grid { grid-template-columns: minmax(0, 1fr); } .mps-pay-side { position: static; order: -1; } }

form.mps-pay .mps-pay-total { display: flex !important; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 30px !important; padding: 20px 24px !important;
  border: 1px solid var(--mps-line); border-radius: 8px; background: #f4f6f5; }
form.mps-pay .mps-pay-total legend { display: inline; width: auto; margin: 0; padding: 0; border: 0; font-size: 17px; font-weight: 500; color: #222; }
form.mps-pay .mps-pay-total span { font-size: 24px; font-weight: 600; color: #222; }
form.mps-pay .mps-pay-title { margin: 0 0 14px !important; }
form.mps-pay .hikashop_payment_methods_table, form.mps-pay .hikashop_payment_methods_table tbody { display: flex; flex-direction: column; gap: 10px; width: 100%; border: 0 !important; background: none !important; }
form.mps-pay .hikashop_payment_methods_table tr { display: block; border: 0 !important; background: none !important; }
form.mps-pay .hikashop_payment_methods_table td {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; cursor: pointer;
  padding: 16px 18px !important; border: 1px solid var(--mps-line) !important; border-radius: 8px !important; background: #fff !important; box-shadow: none !important; }
form.mps-pay .hikashop_payment_methods_table td:hover { border-color: #c9cfcb !important; }
form.mps-pay .hikashop_payment_methods_table td:has(input:checked) { border-color: var(--mps-green) !important; box-shadow: 0 0 0 1px var(--mps-green), 0 4px 14px rgba(0,0,0,.06) !important; }
form.mps-pay .hikashop_payment_methods_table input[type=radio] { width: 20px; height: 20px; margin: 0; accent-color: var(--mps-green); }
form.mps-pay .hikashop_payment_methods_table label { margin: 0; font-size: 16px; font-weight: 500; color: #222; }
form.mps-pay .hikashop_checkout_payment_cost { display: none; }
form.mps-pay .hikashop_checkout_payment_images { grid-column: 3; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
form.mps-pay .hikashop_checkout_payment_images img { height: 26px !important; width: auto !important; max-width: 70px; object-fit: contain; }
form.mps-pay .hikashop_checkout_payment_description { grid-column: 2 / -1; margin: 0; font-size: 14px; line-height: 1.5; color: var(--mps-soft); }
form.mps-pay .hikashop_checkout_payment_description p { margin: 0; }
form.mps-pay .hikashop_checkout_buttons { margin-top: 24px; }
form.mps-pay .hikashop_checkout_buttons .buttons_right { float: none !important; }
form.mps-pay .mps-pay-next { width: 100%; max-width: 340px; }
@media (max-width: 640px) {
  form.mps-pay .hikashop_payment_methods_table td { grid-template-columns: 22px minmax(0, 1fr); }
  form.mps-pay .hikashop_checkout_payment_images { grid-column: 2; grid-row: auto; justify-content: flex-start; }
  form.mps-pay .mps-pay-next { max-width: none; }
}

/* Pay later page: Continue button and PayPal's yellow button in the "Your order" card, as on checkout step 3 */
form.mps-pay .mps-pay-total-hidden { display: none !important; }
.mps-pay-card .mps-pay-buttons { margin: 18px 0 0 !important; float: none !important; }
.mps-pay-card .mps-pay-buttons .buttons_right { float: none !important; }
.mps-pay-card .mps-pay-buttons > div[style*="clear"] { display: none; }
.mps-pay-card .mps-pay-next { width: 100% !important; max-width: none !important; }
.mps-pay-or { display: flex; align-items: center; gap: 12px; margin: 14px 0 12px; font-size: 13px; color: #777; text-transform: uppercase; letter-spacing: .08em; }
.mps-pay-or::before, .mps-pay-or::after { content: ""; flex: 1; height: 1px; background: rgba(0,0,0,.12); }
.mps-pay-paypal { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 45px; border: 0; border-radius: 4px; background: #ffc439; color: #111; font: 400 17px/1 Helvetica, Arial, sans-serif; cursor: pointer; }
.mps-pay-paypal:hover { background: #f2ba36; }
.mps-pay-paypal .mps-pp-word { font-weight: 700; font-style: italic; font-size: 19px; letter-spacing: -0.2px; }
.mps-pay-paypal .mps-pp-word b { color: #003087; font-weight: 700; }
.mps-pay-paypal .mps-pp-word i { color: #009cde; font-style: italic; }
