/* firend24 cart page styling. */

/* ---------- Shared: headings, buttons, form controls ---------- */
body#cart #wrapper-page {
  background: #ededed;
}

body#cart #wrapper-page > .row > .container {
  overflow: visible;
}

body#cart #content-wrapper {
  padding: 0;
}

body#cart #main > .cart-grid {
  color: var(--f24-text);
  font-family: var(--f24-font);
}

body#cart .card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body#cart .cart-container > .card-block {
  padding: 0 0 24px;
  border-bottom: 1px solid var(--f24-border);
}

body#cart h1.h1,
body#cart .f24-cart-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--f24-dark);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-transform: none;
}

body#cart h1.h1::before,
body#cart .f24-cart-title::before {
  position: static;
  display: block;
  flex: 0 0 4px;
  width: 4px;
  height: 24px;
  margin: 0;
  background: var(--f24-primary);
  content: "";
}

body#cart h1.h1::after,
body#cart .f24-cart-title::after {
  display: none;
}

body#cart .separator {
  display: none;
}

body#cart .btn {
  min-height: 48px;
  border-radius: 2px;
  box-shadow: none;
  font-family: var(--f24-font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

body#cart .btn-primary {
  border: 1px solid var(--f24-primary);
  background: var(--f24-primary);
  color: var(--f24-white);
}

body#cart .btn-primary:hover {
  border-color: var(--f24-primary-dark);
  background: var(--f24-primary-dark);
  color: var(--f24-white);
}

body#cart .btn-primary.disabled,
body#cart .btn-primary:disabled {
  border-color: var(--f24-border);
  background: var(--f24-bg-soft);
  color: var(--f24-muted);
  opacity: 1;
}

body#cart .btn-secondary {
  border: 1px solid var(--f24-dark);
  background: var(--f24-white);
  color: var(--f24-dark);
}

body#cart .btn-secondary:hover {
  border-color: var(--f24-dark);
  background: var(--f24-dark);
  color: var(--f24-white);
}

body#cart #main a:focus-visible,
body#cart #main button:focus-visible,
body#cart #main input:focus-visible {
  outline: 2px solid var(--f24-primary);
  outline-offset: 3px;
}

/* ---------- Cart page: grid ---------- */
body#cart .f24-cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 0 0 40px;
}

body#cart .f24-cart-grid::before,
body#cart .f24-cart-grid::after,
body#cart .f24-line::before,
body#cart .f24-line::after,
body#cart .f24-line > .clearfix {
  display: none;
}

body#cart .f24-cart-grid > [class*="col-"] {
  float: none;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

body#cart .cart-grid-right {
  position: sticky;
  top: calc(var(--f24-nav-height) + 16px);
}

body#cart .cart-container,
body#cart .cart-summary {
  margin: 0;
  padding: clamp(24px, 2vw, 32px);
  background: var(--f24-white);
}

body#cart .cart-summary .card-block {
  margin: 0;
  padding: 0;
}

body#cart .cart-summary .f24-cart-title {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--f24-border);
}

body#cart .cart-summary .cart-detailed-subtotals {
  display: flex;
  flex-direction: column;
  gap: 16px;
  float: none;
  width: 100%;
  text-align: left;
}

body#cart .cart-summary-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--f24-text);
  font-size: 16px;
  text-align: left;
  overflow-wrap: anywhere;
}

body#cart .cart-summary-line .f24-subtotal-details {
  flex: 0 0 100%;
  font-size: 14px;
}

body#cart .cart-summary-line::after {
  display: none;
}

body#cart .cart-summary-line.hidden {
  display: none;
}

body#cart .cart-summary-line .label,
body#cart .cart-summary-line .value {
  float: none;
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

body#cart .cart-summary-line > .label {
  flex: 1 1 0;
  text-align: left;
  white-space: normal;
}

body#cart .cart-summary-line .value {
  flex: 0 0 auto;
  color: var(--f24-dark);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

body#cart .cart-summary .cart-summary-totals {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--f24-dark);
  background: transparent;
}

body#cart .cart-summary-line.cart-total {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 20px;
  font-weight: 700;
}

body#cart .cart-summary-line.cart-total .label,
body#cart .cart-summary-line.cart-total .value {
  color: var(--f24-dark);
  font-weight: 700;
}

body#cart .cart-summary-line.cart-total .value {
  color: var(--f24-primary);
  font-size: 24px;
}

/* Voucher: collapsed link, form when opened */
body#cart .block-promo {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body#cart .block-promo .cart-voucher {
  padding: 0;
}

body#cart .block-promo p {
  margin: 0;
}

body#cart .block-promo .promo-code-button {
  padding: 0;
  text-align: left;
}

body#cart .block-promo .collapse-button,
body#cart .block-promo .promo-code-button a {
  color: var(--f24-dark);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body#cart .block-promo .promo-code form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

body#cart .block-promo .promo-code {
  padding: 0;
}

body#cart .cart-summary .block-promo .promo-name {
  padding: 0 0 16px;
}

body#cart .block-promo .promo-name .cart-summary-line span {
  color: var(--f24-dark);
}

body#cart .block-promo .promo-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 0;
  height: 48px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--f24-border);
  border-radius: 2px;
  background: var(--f24-white);
  color: var(--f24-dark);
  text-indent: 0;
}

body#cart .block-promo .promo-input:focus {
  border-color: var(--f24-dark);
  outline: 0;
}

body#cart .block-promo .promo-code .btn {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 16px;
}

body#cart .block-promo .cancel-promo {
  display: inline-block;
  margin-top: 10px;
  color: var(--f24-muted);
  font-size: 14px;
}

body#cart .cart-summary .cart-detailed-actions {
  margin-top: 24px;
  padding: 0;
}

body#cart .cart-detailed-actions .text-sm-center {
  text-align: center;
}

body#cart .cart-detailed-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  height: auto;
  margin: 0;
  padding: 12px 16px;
  font-size: 17px;
  white-space: normal;
}

body#cart .blockreassurance_product {
  margin-top: 16px;
}

body#cart .f24-continue {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 24px;
  padding: 0;
  color: var(--f24-dark);
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  white-space: normal;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body#cart .f24-continue:hover {
  color: var(--f24-primary);
}

body#cart .f24-continue .material-icons {
  margin-right: 4px;
  font-size: 22px;
}

/* ---------- Cart page: item rows ---------- */
body#cart .cart-overview {
  padding: 0;
}

body#cart .cart-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

body#cart .cart-item {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--f24-border);
}

body#cart .cart-item:first-child {
  border-top: 0;
}

body#cart .f24-line {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: 0;
  padding: 20px 0;
}

body#cart .f24-line-img,
body#cart .f24-line-info,
body#cart .f24-line-actions {
  float: none;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

body#cart .f24-line-info {
  overflow-wrap: anywhere;
}

body#cart .f24-line-img img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  border: 1px solid var(--f24-border);
  background: var(--f24-white);
}

body#cart .f24-line-info .product-line-info {
  margin: 0 0 4px;
  font-size: 15px;
}

body#cart .f24-line-info .label {
  color: var(--f24-dark);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
}

body#cart .f24-line-info a.label:hover {
  color: var(--f24-primary);
}

body#cart .f24-line-info .product-price {
  margin: 6px 0 4px;
  color: var(--f24-text);
  font-size: 15px;
  font-weight: 400;
}

body#cart .f24-line-info .product-price .price {
  color: var(--f24-text);
  font-weight: 600;
}

body#cart .f24-line-info .product-price .regular-price {
  color: var(--f24-muted);
  text-decoration: line-through;
}

body#cart .f24-line-info .product-price .discount {
  background: var(--f24-primary);
  border-radius: 2px;
  color: var(--f24-white);
}

body#cart .f24-line-info .product-line-info .value {
  color: var(--f24-dark);
}

body#cart .f24-line-info .product-line-info span.label {
  font-size: 15px;
  font-weight: 400;
}

body#cart .f24-line-info br {
  display: none;
}

body#cart .f24-line-actions {
  display: grid;
  grid-template-columns: 132px 112px 44px;
  gap: 16px;
  align-items: center;
}

body#cart .f24-line-qty {
  float: none;
  width: 132px;
  max-width: none;
  padding: 0;
}

body#cart .f24-line-total {
  float: none;
  width: auto;
  padding: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

body#cart .f24-line-total .product-price,
body#cart .f24-line-total strong {
  color: var(--f24-dark);
  font-size: 18px;
  font-weight: 700;
}

body#cart .f24-line-remove {
  display: flex;
  justify-content: flex-end;
}

body#cart .f24-line-remove .remove-from-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  color: var(--f24-muted);
  text-decoration: none;
}

body#cart .f24-line-remove .remove-from-cart:hover {
  color: var(--f24-primary);
}

body#cart .f24-line-remove .material-icons {
  float: none;
  font-size: 24px;
}

body#cart .f24-remove-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Quantity stepper: minus, field, plus (same pattern as the product page) */
body#cart .f24-line-qty .bootstrap-touchspin {
  display: flex;
  align-items: stretch;
  width: 132px;
  height: 48px;
  margin: 0;
  box-shadow: none;
}

body#cart .f24-line-qty .input-group-btn-vertical {
  display: contents;
}

body#cart .f24-line-qty .bootstrap-touchspin .btn-touchspin {
  position: static;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 48px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--f24-border);
  border-radius: 0;
  background: var(--f24-bg-soft);
  color: var(--f24-dark);
  font-size: 0;
  cursor: pointer;
}

body#cart .f24-line-qty .bootstrap-touchspin .btn-touchspin:hover {
  background: var(--f24-border);
}

body#cart .f24-line-qty .bootstrap-touchspin .btn-touchspin i {
  display: none;
}

body#cart .f24-line-qty .bootstrap-touchspin .bootstrap-touchspin-down {
  order: 1;
}

body#cart .f24-line-qty .bootstrap-touchspin .bootstrap-touchspin-up {
  order: 3;
}

body#cart .f24-line-qty .bootstrap-touchspin .bootstrap-touchspin-down::before {
  content: "\2212";
}

body#cart .f24-line-qty .bootstrap-touchspin .bootstrap-touchspin-up::before {
  content: "+";
}

body#cart .f24-line-qty .bootstrap-touchspin .btn-touchspin::before {
  font-size: 22px;
  line-height: 1;
}

body#cart .f24-line-qty input.js-cart-line-product-quantity {
  flex: 1 1 auto;
  order: 2;
  width: auto;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0 4px;
  border: 1px solid var(--f24-border);
  border-width: 1px 0;
  border-radius: 0;
  background: var(--f24-white);
  color: var(--f24-dark);
  font-size: 17px;
  text-align: center;
  -moz-appearance: textfield;
}

body#cart .f24-line-qty input.js-cart-line-product-quantity::-webkit-outer-spin-button,
body#cart .f24-line-qty input.js-cart-line-product-quantity::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

/* Empty cart */
body#cart .f24-cart-empty {
  padding: 48px 0 24px;
  text-align: center;
}

body#cart .f24-cart-empty .no-items {
  display: block;
  margin: 0 0 24px;
  padding: 0;
  color: var(--f24-dark);
  font-size: 20px;
  line-height: 1.5;
}

body#cart .f24-cart-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  max-width: 100%;
  min-height: 52px;
  padding: 12px 24px;
  white-space: normal;
}

body#cart .f24-cart-grid:has(.f24-cart-empty) {
  grid-template-columns: minmax(0, 1fr);
}

body#cart .f24-cart-grid:has(.f24-cart-empty) .cart-grid-right {
  display: none;
}

body#cart .cart-container:has(.f24-cart-empty) > .f24-continue {
  display: flex;
  justify-content: center;
  margin: 0;
  font-weight: 400;
}

/* ---------- Cart page: tablet and mobile ---------- */
@media (min-width: 992px) and (max-width: 1399px) {
  body#cart .f24-line {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  body#cart .f24-line-actions {
    grid-column: 1 / -1;
    grid-template-columns: 132px 112px 44px;
    justify-content: end;
  }
}

@media (max-width: 991px) {
  body#cart .f24-cart-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  body#cart .cart-grid-right {
    position: static;
  }
}

@media (max-width: 767px) {
  body#cart .cart-container {
    padding: 24px 16px;
  }

  body#cart .cart-container > .card-block {
    padding-bottom: 20px;
  }

  body#cart .cart-summary {
    padding: 24px;
  }

  body#cart h1.h1,
  body#cart .f24-cart-title {
    font-size: 24px;
  }

  body#cart .f24-line {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px 14px;
    align-items: center;
    padding: 20px 0;
  }

  body#cart .f24-line-img img {
    width: 80px;
    height: 80px;
  }

  body#cart .f24-line-actions {
    grid-column: 1 / -1;
    grid-template-columns: 132px minmax(0, 1fr) 44px;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--f24-border);
  }

  body#cart .f24-cart-empty {
    padding: 32px 0 16px;
  }
}
