/*
 * Power API native checkout theme.
 *
 * This is intentionally a single, coherent layer. It styles only checkout,
 * payment-return and order-account surfaces so a shop theme remains untouched.
 */

:root {
  --powerapi-brand: #1a8081;
  --powerapi-accent: #1a8081;
  --powerapi-ink: #14212b;
  --powerapi-strong: #172935;
  --powerapi-muted: #61717d;
  --powerapi-line: #d9e3e6;
  --powerapi-soft: #eef5f5;
  --powerapi-page: #f7fbfb;
  --powerapi-panel: #ffffff;
  --powerapi-danger: #b42318;
  --powerapi-radius: 8px;
  --powerapi-shadow: 0 14px 34px rgba(24, 55, 61, 0.08);
}

html {
  min-height: 100%;
  background: var(--powerapi-page) !important;
}

body#checkout,
body[class*="page-order"],
body[class*="order-confirmation"],
body[class*="order-detail"],
body[class*="module-powerapi-checkoutbridge"],
body[class*="module-"][class*="-validation"],
body[class*="module-"][class*="-payment"],
body[class*="module-"][class*="-payscreen"],
body[class*="module-"][class*="-return"],
body[class*="module-"][class*="-callback"],
body[class*="module-"][class*="-confirmation"],
body[class*="module-"][class*="-success"],
body[class*="module-"][class*="-fail"],
body[class*="module-"][class*="-cancel"],
body[class*="module-"][class*="-error"] {
  min-height: 100%;
  background: var(--powerapi-page) !important;
  color: var(--powerapi-ink) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  overflow-x: clip;
}

/* Remove the native catalogue chrome only on the checkout surfaces. */
body#checkout :is(
  #header,
  header#header,
  #footer,
  footer#footer,
  .header-nav,
  .header-top,
  .menu,
  .search-widget,
  .breadcrumb,
  .breadcrumb__wrapper,
  #back-to-top,
  .ps-emailsubscription,
  .ps-emailsubscription-block,
  .block_newsletter,
  .blockreassurance,
  #block-reassurance,
  .featured-products,
  .ps-featuredproducts,
  .product-accessories
) {
  display: none !important;
}

body#checkout #wrapper,
body[class*="page-order"] #wrapper,
body[class*="order-confirmation"] #wrapper,
body[class*="order-detail"] #wrapper,
body[class*="module-powerapi-checkoutbridge"] #wrapper,
body[class*="module-"][class*="-validation"] #wrapper,
body[class*="module-"][class*="-payment"] #wrapper,
body[class*="module-"][class*="-payscreen"] #wrapper,
body[class*="module-"][class*="-return"] #wrapper,
body[class*="module-"][class*="-callback"] #wrapper,
body[class*="module-"][class*="-confirmation"] #wrapper,
body[class*="module-"][class*="-success"] #wrapper,
body[class*="module-"][class*="-fail"] #wrapper,
body[class*="module-"][class*="-cancel"] #wrapper,
body[class*="module-"][class*="-error"] #wrapper {
  width: 100% !important;
  min-height: calc(100vh - 76px);
  margin: 0 !important;
  padding: 0 0 56px !important;
  background: var(--powerapi-page) !important;
  box-shadow: none !important;
}

/* Branded Cups checkout masthead. */
.powerapi-checkout-shellbar {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr) !important;
  align-items: center !important;
  gap: 20px !important;
  width: 100% !important;
  min-height: 76px !important;
  margin: 0 !important;
  padding: 12px clamp(18px, 5vw, 72px) !important;
  border: 0 !important;
  border-top: 4px solid var(--powerapi-brand) !important;
  border-bottom: 1px solid var(--powerapi-line) !important;
  background: var(--powerapi-panel) !important;
  box-shadow: 0 8px 24px rgba(24, 55, 61, 0.06) !important;
  color: var(--powerapi-ink) !important;
  position: relative !important;
  z-index: 2 !important;
}

.powerapi-checkout-back {
  display: inline-flex !important;
  align-items: center !important;
  justify-self: start !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  border: 1px solid var(--powerapi-line) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--powerapi-strong) !important;
  font-size: 14px !important;
  font-weight: 760 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.powerapi-checkout-back::before {
  margin-right: 8px;
  color: var(--powerapi-brand);
  content: "<-";
  font-weight: 900;
}

.powerapi-checkout-back:hover,
.powerapi-checkout-back:focus-visible {
  border-color: var(--powerapi-brand) !important;
  background: var(--powerapi-soft) !important;
  color: var(--powerapi-brand) !important;
  outline: none;
}

.powerapi-checkout-title {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0;
  gap: 12px !important;
  text-align: left;
}

.powerapi-checkout-logo {
  display: block !important;
  width: auto !important;
  max-width: 122px !important;
  max-height: 42px !important;
  object-fit: contain !important;
}

.powerapi-checkout-title-copy {
  display: flex !important;
  min-width: 0;
  flex-direction: column !important;
  gap: 2px !important;
}

.powerapi-checkout-shellbar strong {
  color: var(--powerapi-strong) !important;
  font-size: 16px !important;
  font-weight: 820 !important;
  line-height: 1.2 !important;
}

.powerapi-checkout-shellbar span {
  color: var(--powerapi-muted) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
}

.powerapi-checkout-trust {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: 0;
}

.powerapi-checkout-trust span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  border: 1px solid var(--powerapi-brand) !important;
  border-color: color-mix(in srgb, var(--powerapi-brand) 45%, white) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--powerapi-brand) !important;
  font-size: 11px !important;
  font-weight: 760 !important;
  white-space: nowrap;
}

/* Core shell and two-column layout. */
body#checkout :is(.container, .columns-container),
body[class*="page-order"] :is(.container, .columns-container),
body[class*="order-confirmation"] :is(.container, .columns-container),
body[class*="order-detail"] :is(.container, .columns-container) {
  width: min(1180px, 100%) !important;
  max-width: 1180px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: clamp(16px, 3vw, 32px) !important;
  padding-left: clamp(16px, 3vw, 32px) !important;
  box-sizing: border-box !important;
}

body#checkout #content,
body#checkout #content-wrapper,
body[class*="page-order"] #content,
body[class*="order-confirmation"] #content,
body[class*="order-detail"] #content {
  width: 100%;
  min-width: 0;
  padding-top: 28px;
}

body#checkout .checkout-grid.row,
body#checkout .cart-grid,
body[class*="page-order"] .cart-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
  align-items: start !important;
  gap: clamp(24px, 4vw, 44px) !important;
  width: 100% !important;
  margin: 0 !important;
}

body#checkout :is(.checkout-grid__content, .checkout-grid__aside, .cart-grid-body, .cart-grid-right),
body[class*="page-order"] :is(.cart-grid-body, .cart-grid-right) {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  float: none !important;
}

body#checkout :is(.checkout-grid__aside, .cart-grid-right),
body[class*="page-order"] .cart-grid-right {
  position: sticky !important;
  top: 24px !important;
}

body#checkout h1,
body#checkout h2,
body[class*="page-order"] h1,
body[class*="order-confirmation"] h1,
body[class*="order-detail"] h1 {
  color: var(--powerapi-strong) !important;
  letter-spacing: 0 !important;
}

/* Checkout steps share one simple visual language. */
body#checkout section.checkout-step,
body#checkout .checkout-step,
body#checkout .step.step--current,
body#checkout .step.tab-pane.active,
body#checkout .step.tab-pane.show {
  overflow: hidden !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 1px solid var(--powerapi-line) !important;
  border-radius: var(--powerapi-radius) !important;
  background: var(--powerapi-panel) !important;
  box-shadow: 0 4px 14px rgba(24, 55, 61, 0.035) !important;
}

body#checkout section.checkout-step.-current,
body#checkout .checkout-step.-current,
body#checkout .step.step--current,
body#checkout .step.tab-pane.active,
body#checkout .step.tab-pane.show {
  border-color: var(--powerapi-brand) !important;
  border-color: color-mix(in srgb, var(--powerapi-brand) 45%, white) !important;
  box-shadow: 0 12px 30px rgba(24, 128, 129, 0.09) !important;
}

body#checkout :is(.step-title, .page-title-section),
body#checkout section.checkout-step > h1,
body#checkout .checkout-step > h1 {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 66px !important;
  margin: 0 !important;
  padding: 17px 22px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--powerapi-soft) !important;
  background: #fff !important;
  color: var(--powerapi-strong) !important;
  font-size: clamp(19px, 2.2vw, 24px) !important;
  font-weight: 820 !important;
  line-height: 1.18 !important;
  text-transform: none !important;
}

body#checkout section.checkout-step:not(.-current) :is(.step-title, .page-title-section),
body#checkout .checkout-step:not(.-current) :is(.step-title, .page-title-section) {
  min-height: 58px !important;
  border-bottom: 0 !important;
  color: #43535f !important;
  font-size: 17px !important;
}

body#checkout .step-number,
body#checkout .checkout-step .step-title .step-number {
  display: inline-grid !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  place-items: center !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--powerapi-brand) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

body#checkout .step-title .done,
body#checkout .step-title .material-icons,
body#checkout .step-title .step-edit {
  color: var(--powerapi-brand) !important;
}

body#checkout .step-edit {
  margin-left: auto !important;
  color: var(--powerapi-brand) !important;
  font-size: 13px !important;
  font-weight: 720 !important;
  text-decoration: none !important;
}

body#checkout :is(.content, .step__content) {
  min-width: 0;
  padding: 22px !important;
}

body#checkout :is(.content, .step__content) > :first-child {
  margin-top: 0;
}

body#checkout :is(.content, .step__content) > :last-child {
  margin-bottom: 0;
}

body#checkout .checkout-steps,
body#checkout .checkout-progress,
body#checkout .checkout__steps,
body#checkout [role="tablist"] {
  margin: 0 0 18px !important;
  padding: 0 !important;
  background: transparent !important;
}

body#checkout .checkout-steps__list {
  gap: 8px !important;
}

body#checkout :is(.checkout-steps__number, [role="tab"] .step-number) {
  border-color: var(--powerapi-brand) !important;
  background: var(--powerapi-brand) !important;
}

/* Native form fields. */
body#checkout :is(label, .form-control-label, .form-label) {
  color: var(--powerapi-strong) !important;
  font-size: 14px !important;
  font-weight: 720 !important;
}

body#checkout :is(.form-control, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], select, textarea),
body[class*="page-order"] :is(.form-control, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], select, textarea) {
  min-height: 46px !important;
  border: 1px solid #c9d8dc !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--powerapi-strong) !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
}

body#checkout textarea {
  min-height: 94px !important;
  padding: 11px 12px !important;
  resize: vertical;
}

body#checkout :is(.form-control, input, select, textarea):focus {
  border-color: var(--powerapi-brand) !important;
  box-shadow: 0 0 0 3px rgba(26, 128, 129, 0.16) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--powerapi-brand) 16%, transparent) !important;
  outline: 0 !important;
}

body#checkout .form-group,
body#checkout .form-field {
  margin-bottom: 16px !important;
}

body#checkout .help-block,
body#checkout .form-control-comment,
body#checkout .form-control-valign,
body#checkout .form-footer,
body#checkout .form-group .text-muted {
  color: var(--powerapi-muted) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

body#checkout .alert,
body[class*="page-order"] .alert,
body[class*="order-confirmation"] .alert {
  border: 1px solid rgba(26, 128, 129, 0.28) !important;
  border-color: color-mix(in srgb, var(--powerapi-brand) 28%, white) !important;
  border-radius: 6px !important;
  background: var(--powerapi-soft) !important;
  color: var(--powerapi-strong) !important;
  box-shadow: none !important;
}

body#checkout .alert-danger,
body#checkout .alert-error {
  border-color: #f2c4bf !important;
  background: #fff5f4 !important;
  color: var(--powerapi-danger) !important;
}

/* Addresses, carriers and payment methods scale from one to many options. */
body#checkout :is(.address-item, article.address, .js-address-item, .delivery-option, .delivery-option__item, .carrier, .payment-option) {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 10px !important;
  border: 1px solid #cfdde1 !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

body#checkout :is(.address-item, article.address, .js-address-item) {
  padding: 18px !important;
}

body#checkout :is(.delivery-option, .delivery-option__item, .carrier, .payment-option) {
  min-height: 72px !important;
  overflow: hidden !important;
}

body#checkout :is(.address-item, article.address, .js-address-item, .delivery-option, .delivery-option__item, .carrier, .payment-option):hover {
  border-color: var(--powerapi-brand) !important;
  border-color: color-mix(in srgb, var(--powerapi-brand) 55%, white) !important;
}

body#checkout :is(.address-item, article.address, .js-address-item, .delivery-option, .delivery-option__item, .carrier, .payment-option).selected,
body#checkout :is(.address-item, article.address, .js-address-item, .delivery-option, .delivery-option__item, .carrier, .payment-option).is-selected,
body#checkout :is(.address-item, article.address, .js-address-item, .delivery-option, .delivery-option__item, .carrier, .payment-option):has(input:checked) {
  border-color: var(--powerapi-brand) !important;
  background: #f5fbfb !important;
  background: color-mix(in srgb, var(--powerapi-brand) 6%, white) !important;
  box-shadow: 0 0 0 2px rgba(26, 128, 129, 0.12) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--powerapi-brand) 12%, transparent) !important;
}

body#checkout .delivery-options-list,
body#checkout .delivery-options,
body#checkout .payment-options,
body#checkout .address-selector {
  display: grid !important;
  gap: 10px !important;
  width: 100% !important;
}

body#checkout .delivery-option :is(label, .delivery-option__label),
body#checkout .payment-option :is(label, .payment-option__label, .payment-option__form-check) {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  min-height: 70px !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  color: var(--powerapi-strong) !important;
  cursor: pointer;
}

/* PrestaShop 8 Classic renders the radio and label as direct siblings. Keep
   them on one row instead of letting the full-width label wrap below the radio. */
body#checkout .payment-option.clearfix,
body#checkout .payment-option:has(> .custom-radio) {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  align-items: center !important;
}

body#checkout .payment-option.clearfix::after {
  display: none !important;
  content: none !important;
}

body#checkout .payment-option.clearfix > .custom-radio,
body#checkout .payment-option:has(> .custom-radio) > .custom-radio {
  grid-column: 1 !important;
  grid-row: 1 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body#checkout .payment-option.clearfix > label,
body#checkout .payment-option:has(> .custom-radio) > label {
  grid-column: 2 !important;
  grid-row: 1 !important;
  box-sizing: border-box !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body#checkout .delivery-option > :is(.col-sm-1, .col-1),
body#checkout .payment-option > :is(.custom-radio, span.custom-radio) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  min-width: 34px !important;
  min-height: 70px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body#checkout .delivery-option > :is(.col-sm-11, .col-11) {
  min-width: 0 !important;
  padding: 0 !important;
}

body#checkout .delivery-option > :is(.col-sm-11, .col-11) > label {
  min-width: 0 !important;
}

body#checkout .delivery-option .row,
body#checkout .carrier.row {
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
}

body#checkout .delivery-option :is([class*="col-"], .carrier-name, .carrier-delay, .carrier-price),
body#checkout .payment-option :is([class*="col-"], .payment-option__label) {
  min-width: 0 !important;
  overflow-wrap: anywhere;
}

body#checkout :is(.carrier-name, .delivery-option__carrier-name, .payment-option__label, .payment-option label) {
  color: var(--powerapi-strong) !important;
  font-size: 15px !important;
  font-weight: 780 !important;
}

body#checkout :is(.carrier-delay, .delivery-option__content, .payment-option__additional-information) {
  color: var(--powerapi-muted) !important;
  font-size: 13px !important;
  font-weight: 560 !important;
  line-height: 1.45 !important;
}

body#checkout :is(.carrier-price, .delivery-option__price) {
  margin-left: auto !important;
  color: var(--powerapi-strong) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-align: right;
  white-space: nowrap;
}

body#checkout :is(input[type="radio"], input[type="checkbox"], .form-check-input) {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  accent-color: var(--powerapi-brand) !important;
}

body#checkout :is(.delivery-option, .payment-option) .custom-radio > input {
  position: absolute !important;
  width: 18px !important;
  height: 18px !important;
  opacity: 0 !important;
}

body#checkout :is(.delivery-option, .payment-option) .custom-radio > span {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  border: 1px solid #9eb1b8 !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: inset 0 0 0 4px #fff !important;
}

body#checkout :is(.delivery-option, .payment-option) .custom-radio > input:checked + span {
  border-color: var(--powerapi-brand) !important;
  background: var(--powerapi-brand) !important;
}

/* Provider-owned payment controls stay intact inside a predictable panel. */
body#checkout .payment-option img {
  display: block !important;
  width: auto !important;
  max-width: 74px !important;
  max-height: 30px !important;
  margin-left: auto !important;
  object-fit: contain !important;
}

body#checkout :is(.payment-option .additional-information, .payment-option .js-additional-information, .payment-option__additional-information, .payment-option + .js-additional-information) {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 18px !important;
  border-top: 1px solid var(--powerapi-soft) !important;
  background: #fbfefe !important;
  color: var(--powerapi-strong) !important;
}

body#checkout :is(.payment-option .additional-information, .payment-option .js-additional-information, .payment-option__additional-information, .payment-option + .js-additional-information) :is(iframe, [id*="mollie"], [class*="mollie"], [id*="paypal"], [class*="paypal"]) {
  max-width: 100% !important;
}

body#checkout :is(.payment-option .additional-information, .payment-option .js-additional-information, .payment-option__additional-information) iframe {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 42px !important;
  border: 0 !important;
}

body#checkout #payment-confirmation,
body#checkout .payment-options,
body#checkout .payment-option {
  overflow: visible !important;
}

body#checkout #conditions-to-approve {
  margin-top: 18px !important;
}

body#checkout #conditions-to-approve ul {
  display: grid !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body#checkout #conditions-to-approve li {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
  padding: 14px !important;
  border: 1px solid var(--powerapi-line) !important;
  border-radius: 6px !important;
  background: #fff !important;
}

body#checkout :is(#conditions-to-approve .condition-label, #conditions-to-approve label, .js-terms) {
  color: #40515c !important;
  font-size: 13px !important;
  font-weight: 610 !important;
  line-height: 1.45 !important;
}

body#checkout a:not(.powerapi-checkout-back),
body[class*="page-order"] a,
body[class*="order-confirmation"] a,
body[class*="order-detail"] a {
  color: var(--powerapi-brand) !important;
}

body#checkout :is(#conditions-to-approve a, .js-terms a, .powerapi-checkout-legal-links a) {
  color: var(--powerapi-brand) !important;
  font-weight: 760 !important;
  text-decoration: none !important;
}

body#checkout :is(#conditions-to-approve a, .js-terms a, .powerapi-checkout-legal-links a):hover {
  text-decoration: underline !important;
}

/* Buttons use the same teal action language as the Branded Cups site. */
body#checkout :is(.btn, button),
body[class*="page-order"] :is(.btn, button),
body[class*="order-confirmation"] :is(.btn, button) {
  min-height: 46px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 780 !important;
  letter-spacing: 0 !important;
}

body#checkout :is(.btn-primary, button[name="confirm-addresses"], button[name="confirmDeliveryOption"], #payment-confirmation button),
body[class*="page-order"] .btn-primary,
body[class*="order-confirmation"] .btn-primary {
  min-width: 170px !important;
  border-color: var(--powerapi-brand) !important;
  background: var(--powerapi-brand) !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(26, 128, 129, 0.22) !important;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--powerapi-brand) 22%, transparent) !important;
}

body#checkout :is(.btn-primary, button[name="confirm-addresses"], button[name="confirmDeliveryOption"], #payment-confirmation button):not(:disabled):hover,
body[class*="page-order"] .btn-primary:not(:disabled):hover,
body[class*="order-confirmation"] .btn-primary:not(:disabled):hover {
  border-color: var(--powerapi-accent) !important;
  background: var(--powerapi-accent) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

body#checkout :is(.btn-primary, button[name="confirm-addresses"], button[name="confirmDeliveryOption"], #payment-confirmation button):disabled,
body[class*="page-order"] .btn-primary:disabled,
body[class*="order-confirmation"] .btn-primary:disabled {
  border-color: #a5b3b7 !important;
  background: #a5b3b7 !important;
  color: #fff !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

body#checkout :is(.btn-outline-primary, .btn-secondary, .btn-basic, a.btn:not(.btn-primary)) {
  border-color: var(--powerapi-line) !important;
  background: #fff !important;
  color: var(--powerapi-brand) !important;
  box-shadow: none !important;
}

/* Summary: a calm side panel, never absolute or overlaid. */
body#checkout :is(#js-checkout-summary, .checkout__summary-accordion, .checkout__summary-accordion-wrapper, .cart-summary, .cart-grid-right .card, .checkout-grid__aside .card),
body[class*="page-order"] :is(.cart-summary, .cart-grid-right .card) {
  overflow: hidden !important;
  border: 1px solid var(--powerapi-line) !important;
  border-radius: var(--powerapi-radius) !important;
  background: #fff !important;
  box-shadow: var(--powerapi-shadow) !important;
}

body#checkout :is(.checkout__summary-accordion, .cart-summary)::before {
  display: block !important;
  width: 100% !important;
  height: 4px !important;
  background: var(--powerapi-brand) !important;
  content: "" !important;
}

body#checkout :is(.checkout__summary-accordion-header, .cart-summary__top, .cart-summary__products) {
  padding: 18px 20px !important;
  border-bottom: 1px solid var(--powerapi-soft) !important;
  background: #fff !important;
}

body#checkout :is(.cart-summary__products-number, .checkout__summary-accordion-header) {
  color: var(--powerapi-strong) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

body#checkout :is(.cart-summary__subtotals, .cart-summary__total, .cart-summary-totals) {
  padding: 16px 20px !important;
  background: #fff !important;
}

body#checkout :is(.cart-summary__total, .cart-summary-totals) {
  border-top: 1px solid var(--powerapi-soft) !important;
  background: #fbfefe !important;
}

body#checkout .cart-summary-line {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 0 !important;
  color: var(--powerapi-muted) !important;
  font-size: 14px !important;
}

body#checkout .cart-summary-line + .cart-summary-line {
  margin-top: 10px !important;
}

body#checkout :is(.cart-summary-line .value, .cart-summary-totals .value, .cart-summary__total .value) {
  color: var(--powerapi-strong) !important;
  font-weight: 820 !important;
  white-space: nowrap;
}

body#checkout :is(.cart-summary__total .label, .cart-summary-totals .label) {
  color: var(--powerapi-strong) !important;
  font-size: 16px !important;
  font-weight: 820 !important;
}

body#checkout .powerapi-checkout-legal-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 14px !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  color: var(--powerapi-muted) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

body#checkout .powerapi-checkout-legal-links[hidden] {
  display: none !important;
}

/* Payment returns and confirmation retain the same shell without catalogue chrome. */
body[class*="order-confirmation"] :is(.columns-container, .container),
body[class*="order-detail"] :is(.columns-container, .container),
body[class*="module-"][class*="-payment"] :is(.columns-container, .container),
body[class*="module-"][class*="-payscreen"] :is(.columns-container, .container),
body[class*="module-"][class*="-return"] :is(.columns-container, .container),
body[class*="module-"][class*="-success"] :is(.columns-container, .container),
body[class*="module-"][class*="-fail"] :is(.columns-container, .container),
body[class*="module-"][class*="-cancel"] :is(.columns-container, .container),
body[class*="module-"][class*="-error"] :is(.columns-container, .container) {
  padding-top: 28px !important;
}

body[class*="order-confirmation"] :is(.card, .order-confirmation__details, .order-confirmation__status),
body[class*="order-detail"] .card,
body[class*="module-"][class*="-payment"] #content,
body[class*="module-"][class*="-payscreen"] #content,
body[class*="module-"][class*="-return"] #content,
body[class*="module-"][class*="-success"] #content,
body[class*="module-"][class*="-fail"] #content,
body[class*="module-"][class*="-cancel"] #content,
body[class*="module-"][class*="-error"] #content {
  border: 1px solid var(--powerapi-line) !important;
  border-radius: var(--powerapi-radius) !important;
  background: #fff !important;
  box-shadow: var(--powerapi-shadow) !important;
}

body[class*="order-confirmation"] .alert-success {
  border-color: rgba(26, 128, 129, 0.3) !important;
  border-color: color-mix(in srgb, var(--powerapi-brand) 30%, white) !important;
  background: var(--powerapi-soft) !important;
  color: var(--powerapi-strong) !important;
}

.powerapi-checkout-footer {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px 14px !important;
  width: min(1180px, 100%) !important;
  margin: 18px auto 30px !important;
  padding: 0 18px !important;
  color: var(--powerapi-muted) !important;
  font-size: 12px !important;
  font-weight: 620 !important;
  text-align: center !important;
}

.powerapi-checkout-footer a {
  color: var(--powerapi-brand) !important;
  text-decoration: none !important;
}

.powerapi-checkout-footer a:hover {
  text-decoration: underline !important;
}

@media (max-width: 991px) {
  body#checkout .checkout-grid.row,
  body#checkout .cart-grid,
  body[class*="page-order"] .cart-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body#checkout :is(.checkout-grid__aside, .cart-grid-right),
  body[class*="page-order"] .cart-grid-right {
    position: static !important;
    margin-top: 4px !important;
  }
}

@media (max-width: 767px) {
  .powerapi-checkout-shellbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px 14px !important;
    min-height: 0 !important;
    padding: 12px 16px !important;
  }

  .powerapi-checkout-title {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: flex-start !important;
  }

  .powerapi-checkout-back {
    grid-column: 1;
    grid-row: 2;
    font-size: 13px !important;
  }

  .powerapi-checkout-trust {
    grid-column: 2;
    grid-row: 2;
  }

  .powerapi-checkout-trust span:last-child {
    display: none !important;
  }

  .powerapi-checkout-logo {
    max-width: 94px !important;
    max-height: 34px !important;
  }

  .powerapi-checkout-shellbar strong {
    font-size: 14px !important;
  }

  .powerapi-checkout-shellbar span {
    font-size: 11px !important;
  }

  body#checkout :is(.container, .columns-container),
  body[class*="page-order"] :is(.container, .columns-container),
  body[class*="order-confirmation"] :is(.container, .columns-container),
  body[class*="order-detail"] :is(.container, .columns-container) {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  body#checkout #content,
  body#checkout #content-wrapper {
    padding-top: 16px !important;
  }

  body#checkout :is(.step-title, .page-title-section),
  body#checkout section.checkout-step > h1,
  body#checkout .checkout-step > h1 {
    min-height: 58px !important;
    padding: 14px 16px !important;
    font-size: 19px !important;
  }

  body#checkout section.checkout-step:not(.-current) :is(.step-title, .page-title-section),
  body#checkout .checkout-step:not(.-current) :is(.step-title, .page-title-section) {
    min-height: 52px !important;
    font-size: 15px !important;
  }

  body#checkout :is(.content, .step__content) {
    padding: 16px !important;
  }

  body#checkout .delivery-option :is(label, .delivery-option__label),
  body#checkout .payment-option :is(label, .payment-option__label, .payment-option__form-check) {
    gap: 10px !important;
    min-height: 64px !important;
    padding: 14px !important;
  }

  body#checkout .delivery-option > :is(.col-sm-1, .col-1),
  body#checkout .payment-option > :is(.custom-radio, span.custom-radio) {
    width: 28px !important;
    min-width: 28px !important;
    min-height: 64px !important;
  }

  body#checkout .payment-option.clearfix,
  body#checkout .payment-option:has(> .custom-radio) {
    grid-template-columns: 28px minmax(0, 1fr) !important;
  }

  body#checkout .delivery-option .row {
    gap: 4px !important;
  }

  body#checkout :is(.carrier-price, .delivery-option__price) {
    margin-left: 0 !important;
    text-align: left;
  }

  body#checkout :is(.cart-summary__subtotals, .cart-summary__total, .cart-summary-totals, .checkout__summary-accordion-header, .cart-summary__top, .cart-summary__products) {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  body#checkout :is(.btn-primary, button[name="confirm-addresses"], button[name="confirmDeliveryOption"], #payment-confirmation button) {
    width: 100% !important;
    min-width: 0 !important;
  }
}
