/* ==========================================================
   CART.HTML — układ odwzorowany z przesłanej makiety.
   Plik dotyczy tylko osobnej strony cart.html.
   ========================================================== */

.cart-page {
  background: #ffffff;
}

.cart-page .container {
  width: min(934px, calc(100% - 40px));
}

.cart-page .cart-counter-badge {
  display: none !important;
}

.cart-site-header {
  padding-bottom: 0;
}

.cart-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: #111111;
  font-size: 8px;
}

.cart-breadcrumbs a {
  width: 12px;
  height: 12px;
}

.cart-breadcrumbs svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-breadcrumb-chevron {
  width: 7px !important;
  height: 7px !important;
}

.cart-page-main {
  min-height: calc(100vh - 270px);
  padding: 0 0 53px;
}

.cart-screen-title {
  margin: 8px 0 46px;
  text-align: center;
  font-size: 22px;
  line-height: 1.1;
}

.cart-screen-layout {
  display: grid;
  grid-template-columns: minmax(0, 617px) 304px;
  align-items: start;
  gap: 13px;
}

.cart-sellers {
  min-width: 0;
}

.cart-seller-group {
  padding-bottom: 28px;
  border-bottom: 1px solid #dedede;
}

.cart-seller-group + .cart-seller-group {
  padding-top: 27px;
}

.cart-seller-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cart-seller-heading {
  margin: 0 0 13px;
  font-size: 10px;
  font-weight: 400;
}

.cart-seller-heading strong {
  font-size: 11px;
}

.cart-line-item {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr) 75px;
  column-gap: 42px;
  min-height: 102px;
  margin-bottom: 14px;
}

.cart-line-item:last-of-type {
  margin-bottom: 0;
}

.cart-line-thumb {
  width: 102px;
  height: 102px;
  border-radius: 8px;
  background: #aaaaaa;
}

.cart-line-content {
  min-width: 0;
  padding-top: 16px;
}

.cart-line-name {
  margin: 0 0 6px;
  text-transform: uppercase;
  font-size: 10px;
  line-height: 1.2;
}

.cart-line-description {
  max-width: 310px;
  margin: 0;
  font-size: 9px;
  line-height: 1.45;
}

.cart-line-quantity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
}

.cart-line-quantity input {
  width: 32px;
  height: 19px;
  padding: 0 3px;
  border: 1px solid #dedede;
  border-radius: 2px;
  outline: 0;
  background: #ffffff;
  text-align: center;
  font-size: 9px;
  appearance: textfield;
}

.cart-line-quantity input::-webkit-outer-spin-button,
.cart-line-quantity input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.cart-line-quantity input:focus {
  border-color: #777777;
}

.cart-line-unit-price {
  font-size: 11px;
}

.cart-line-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 23px;
}

.cart-line-total {
  white-space: nowrap;
  font-size: 15px;
}

.cart-line-remove {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  margin-top: 25px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #111111;
}

.cart-line-remove:hover,
.cart-line-remove:focus-visible {
  background: #eeeeee;
}

.cart-line-remove svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seller-delivery {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 75px;
  align-items: end;
  gap: 35px;
  margin: 35px 0 0 145px;
}

.seller-delivery-title {
  margin: 0 0 10px;
  text-transform: uppercase;
  font-size: 10px;
}

.delivery-options {
  display: grid;
  gap: 7px;
}

.delivery-option {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  cursor: pointer;
}

.delivery-option input {
  width: 9px;
  height: 9px;
  margin: 0;
  border: 1px solid #bcbcbc;
  border-radius: 1px;
  appearance: none;
}

.delivery-option input:checked {
  background:
    linear-gradient(135deg, transparent 48%, #111111 48% 57%, transparent 57%)
      0 0 / 6px 6px no-repeat,
    linear-gradient(45deg, transparent 43%, #111111 43% 52%, transparent 52%)
      2px 1px / 5px 6px no-repeat;
}

.delivery-option strong {
  font-size: 9px;
}

.delivery-date-link {
  align-self: end;
  justify-self: center;
  margin-bottom: 4px;
  color: #111111;
  text-decoration: underline;
  font-size: 10px;
}

.seller-delivery-price {
  align-self: end;
  justify-self: center;
  margin-bottom: 1px;
  white-space: nowrap;
  font-size: 15px;
}

.cart-summary-card {
  min-height: 345px;
  padding: 27px 23px 30px;
  border-radius: 9px;
  background: #f1f1f1;
}

.cart-summary-card h2 {
  margin: 0 0 28px;
  font-size: 14px;
}

.coupon-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  cursor: pointer;
}

.coupon-toggle input {
  width: 9px;
  height: 9px;
  margin: 0;
  border: 1px solid #888888;
  border-radius: 1px;
  appearance: none;
}

.coupon-toggle input:checked {
  background:
    linear-gradient(135deg, transparent 48%, #111111 48% 57%, transparent 57%)
      0 0 / 6px 6px no-repeat,
    linear-gradient(45deg, transparent 43%, #111111 43% 52%, transparent 52%)
      2px 1px / 5px 6px no-repeat;
}

.coupon-input {
  width: 100%;
  height: 27px;
  margin-top: 12px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  outline: 0;
  background: #ffffff;
  font-size: 9px;
}

.coupon-input::placeholder {
  color: #bdbdbd;
}

.cart-summary-rows {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 9px;
}

.cart-summary-row strong {
  font-size: 9px;
}

.cart-summary-discount strong {
  color: #ef655c;
}

.cart-summary-payable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  font-size: 13px;
}

.cart-summary-payable strong {
  color: #ef655c;
  font-size: 14px;
}

.cart-checkout-button {
  width: 100%;
  height: 35px;
  margin-top: 37px;
  border: 0;
  border-radius: 7px;
  background: #000000;
  color: #ffffff;
  font-size: 9px;
}

.cart-checkout-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.cart-empty-screen {
  min-height: 250px;
  display: grid;
  place-content: center;
  padding: 40px;
  border-radius: 8px;
  background: #f1f1f1;
  text-align: center;
}

.cart-empty-screen h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.cart-empty-screen p {
  margin: 0 0 20px;
  color: #555555;
  font-size: 11px;
}

.cart-empty-screen a {
  display: inline-flex;
  min-width: 180px;
  height: 35px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #d2d2d2;
  font-size: 10px;
}

.cart-page .site-footer {
  min-height: 212px;
  padding-top: 37px;
  padding-bottom: 36px;
}

.cart-page .footer-logo {
  margin-bottom: 25px;
}

@media (max-width: 980px) {
  .cart-screen-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 20px;
  }

  .cart-line-item {
    grid-template-columns: 92px minmax(0, 1fr) 68px;
    column-gap: 24px;
  }

  .cart-line-thumb {
    width: 92px;
    height: 92px;
  }

  .seller-delivery {
    grid-template-columns: 135px minmax(0, 1fr) 68px;
    gap: 20px;
    margin-left: 116px;
  }
}

@media (max-width: 800px) {
  .cart-screen-title {
    margin-bottom: 28px;
  }

  .cart-screen-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary-card {
    order: -1;
  }

  .cart-line-item {
    grid-template-columns: 90px minmax(0, 1fr) 66px;
  }

  .seller-delivery {
    margin-left: 114px;
  }
}

@media (max-width: 560px) {
  .cart-page .container {
    width: calc(100% - 24px);
  }

  .cart-line-item {
    grid-template-columns: 76px minmax(0, 1fr) 58px;
    column-gap: 12px;
  }

  .cart-line-thumb {
    width: 76px;
    height: 76px;
  }

  .cart-line-content {
    padding-top: 4px;
  }

  .cart-line-side {
    padding-top: 8px;
  }

  .cart-line-remove {
    margin-top: 15px;
  }

  .seller-delivery {
    grid-template-columns: 1fr auto;
    gap: 16px;
    margin: 25px 0 0;
  }

  .delivery-date-link {
    grid-column: 1;
    justify-self: start;
  }

  .seller-delivery-price {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}
