.cart-redesign {
  --cart-ink: #07102c;
  --cart-muted: #627089;
  --cart-blue: #0294dd;
  --cart-pink: #e6006d;
  --cart-green: #12ad28;
  padding-top: 26px;
  padding-bottom: 54px;
  color: var(--cart-ink);
}

.cart-checkout-grid {
  display: grid;
  grid-template-columns: minmax(178px, .85fr) minmax(300px, 1.28fr) minmax(235px, 1.04fr);
  gap: 16px;
  align-items: start;
}

.cart-card {
  overflow: hidden;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(29, 46, 76, .12);
}

.coupon-panel,
.coupon-panel .mini-panel-head,
.coupon-panel .coupon-entry {
  background: #fff;
}

.mini-panel-head,
.panel-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mini-panel-head {
  padding: 18px 16px 14px;
  gap: 12px;
}

.mini-panel-head img {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
}

.mini-panel-head h1,
.panel-title h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.05;
}

.mini-panel-head h1 {
  font-size: 17px;
  font-weight: 900;
}

.mini-panel-head p,
.panel-title p {
  margin: 7px 0 0;
  color: var(--cart-muted);
  font-size: 13px;
  font-weight: 700;
}

.coupon-savings {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 4px 12px 18px;
  padding: 13px 15px;
  border: 1px solid #bff0c7;
  border-radius: 8px;
  background: #fff;
}

.coupon-savings img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.coupon-savings span {
  display: block;
  color: #0294dd;
  font-size: 13px;
  font-weight: 850;
}

.coupon-savings strong {
  display: block;
  margin-top: 5px;
  color: #0294dd;
  font-size: 19px;
  font-weight: 950;
}

.coupon-savings small {
  font-size: 12px;
  font-weight: 900;
}

.coupon-entry {
  display: grid;
  gap: 12px;
  padding: 0 12px 18px;
}

.coupon-entry input,
.icon-field input,
.select-field select {
  width: 100%;
  height: 42px;
  border: 1px solid #cfd9e8;
  border-radius: 8px;
  padding: 0 13px;
  color: var(--cart-ink);
  background: #fff;
  font-size: 14px;
  font-weight: 750;
  outline: 0;
  box-shadow: inset 0 1px 2px rgba(7, 16, 44, .03);
}

.coupon-entry input::placeholder {
  color: #6e7a92;
  font-weight: 650;
}

.coupon-entry button,
.continue-shopping,
.proceed-checkout {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
}

.coupon-entry button {
  border: 0;
  color: #fff;
  background: #0294dd;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(20, 187, 45, .2);
}

.panel-title {
  min-height: 86px;
  position: relative;
  padding: 14px 18px;
  color: #fff;
}

.panel-title img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

.panel-title h2 {
  color: #fff;
  font-size: 21px;
  font-weight: 950;
}

.panel-title p {
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
}

.shipping-title {
  background: #0294dd;
}

.shipping-title::after {
  width: 106px;
  height: 42px;
  position: absolute;
  right: 18px;
  bottom: 8px;
  border-bottom: 3px dashed rgba(255, 255, 255, .38);
  border-radius: 0 0 58px 58px;
  transform: rotate(-12deg);
}

.route-pin {
  width: 18px;
  height: 18px;
  position: absolute;
  right: 22px;
  top: 24px;
  border-radius: 50% 50% 50% 0;
  background: rgba(255, 255, 255, .32);
  transform: rotate(-45deg);
}

.route-pin::after {
  width: 7px;
  height: 7px;
  position: absolute;
  left: 6px;
  top: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .58);
}

.summary-title {
  background: #0294dd;
}

.shipping-body,
.summary-body {
  padding: 20px 18px 22px;
}

.field-label {
  display: block;
  margin: 0 0 8px;
  color: var(--cart-ink);
  font-size: 14px;
  font-weight: 950;
}

.field-label + .icon-field,
.field-label + .select-field {
  margin-bottom: 17px;
}

.icon-field,
.select-field {
  position: relative;
}

.select-field img {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

.select-field select {
  appearance: none;
  padding-right: 46px;
}

.shipping-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: -2px 0 14px;
  color: #fb0044;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.shipping-alert img {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.package-control {
  display: grid;
  gap: 10px;
  padding: 14px 0 14px;
  border-top: 1px solid #e3e9f1;
  border-bottom: 1px solid #e3e9f1;
}

.package-control > span {
  font-size: 14px;
  font-weight: 950;
}

.stepper {
  width: 170px;
  max-width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  border: 1px solid #cfd9e8;
  border-radius: 8px;
  overflow: hidden;
}

.stepper button,
.stepper output {
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: #fff;
  color: var(--cart-ink);
  font-size: 17px;
  font-weight: 900;
}

.stepper button {
  cursor: pointer;
}

.stepper button + output,
.stepper output + button {
  border-left: 1px solid #cfd9e8;
}

.stepper img {
  width: 24px;
  height: 24px;
}

.package-detail {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-top: 16px;
}

.package-detail > img {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
}

.package-detail dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.package-detail div {
  display: flex;
  gap: 8px;
  color: var(--cart-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.package-detail dt {
  font-weight: 950;
}

.package-detail dd {
  margin: 0;
}

.summary-body {
  display: grid;
  gap: 0;
}

.summary-body p {
  min-height: 56px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  border-bottom: 1px dashed #d8dfeb;
  color: var(--cart-ink);
  font-size: 15px;
  font-weight: 850;
}

.summary-body p img {
  width: 30px;
  height: 30px;
}

.summary-body b {
  font-size: 15px;
  font-weight: 900;
}

.summary-body .discount-total {
  color: var(--cart-green);
}

.summary-body .summary-note {
  color: var(--cart-green);
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 760px) {
  .cart-redesign .checkout-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0 !important;
    max-width: 100% !important;
    margin: 0 auto 34px !important;
  }

  .cart-redesign .checkout-steps::before {
    display: block !important;
    left: 9% !important;
    right: 9% !important;
    top: 15px !important;
    height: 6px !important;
  }

  .cart-redesign .checkout-steps li {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 8px !important;
    color: #b7c1c8;
    font-size: 10px !important;
    line-height: 1.15 !important;
    text-align: center !important;
  }

  .cart-redesign .checkout-steps li::before {
    width: 34px !important;
    height: 34px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 430px) {
  .cart-redesign .checkout-steps li {
    font-size: 9px !important;
  }

  .cart-redesign .checkout-steps li::before {
    width: 30px !important;
    height: 30px !important;
  }
}

.summary-body .grand-total {
  min-height: 56px;
  margin-top: 14px;
  padding: 14px 12px 0;
  border: 1px solid #b9d4ff;
  border-radius: 8px;
  color: #004dff;
  background: #f6fbff;
  font-size: 17px;
  font-weight: 950;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.summary-body .grand-total b {
  flex: 0 0 auto;
  color: #004dff;
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
  text-align: right;
}

.summary-body .grand-total span {
  min-width: 0;
  line-height: 1;
}

.cart-action-row {
  display: grid;
  grid-template-columns: minmax(250px, 430px) minmax(250px, 440px);
  gap: 20px;
  justify-content: end;
  align-items: start;
  margin-top: 18px;
}

.continue-shopping {
  border: 1px solid #ff7ab5;
  color: var(--cart-pink);
  background: #fff;
}

.proceed-checkout {
  width: 100%;
  color: #fff;
  background: #0294dd;
  box-shadow: 0 16px 30px rgba(0, 102, 255, .24);
}

.cart-action-row p {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  color: #607086;
  font-size: 12px;
  font-weight: 750;
}

.cart-action-row p img {
  width: 18px;
  height: 18px;
}

.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.cart-product-thumb {
  display: none;
}

@media (max-width: 820px) {
  .cart-checkout-grid {
    grid-template-columns: 1fr;
  }

  .cart-action-row {
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }
}

@media (max-width: 780px) {
  .cart-redesign {
    width: min(100% - 28px, 1220px);
    padding-top: 22px;
  }

  .cart-checkout-grid,
  .cart-action-row {
    grid-template-columns: 1fr;
  }

  .panel-title {
    min-height: 104px;
  }

  .mini-panel-head h1,
  .panel-title h2 {
    font-size: 21px;
  }

  .shipping-body,
  .summary-body {
    padding: 20px 18px 22px;
  }

  .cart-action-row {
    gap: 14px;
  }
}

@media (max-width: 900px) {
  .cart-redesign {
    width: min(100% - 24px, 1220px);
    padding-top: 18px;
    padding-bottom: 44px;
  }

  .cart-redesign h1 {
    margin-bottom: 22px;
    color: #07102c;
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: 0;
  }

  .cart-redesign .checkout-steps {
    margin-bottom: 24px !important;
  }

  .cart-table {
    max-width: none;
    margin: 0 0 18px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .cart-row {
    min-height: 0;
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    grid-template-areas:
      "thumb detail"
      "qty price"
      "actions actions";
    gap: 16px 14px;
    padding: 16px;
    border: 1px solid #dfe7f2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(29, 46, 76, .1);
  }

  .cart-product-thumb {
    grid-area: thumb;
    display: block;
    width: 94px;
    height: 94px;
    overflow: hidden;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    background: #f6f9fc;
  }

  .cart-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cart-detail {
    grid-area: detail;
    min-width: 0;
    color: #53627a;
    font-size: 13px;
    line-height: 1.5;
  }

  .cart-detail strong {
    display: block;
    margin-bottom: 6px;
    color: #07102c;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
  }

  .cart-detail b {
    color: #15243a;
    font-weight: 850;
  }

  .cart-qty {
    grid-area: qty;
    width: 132px;
    height: 42px;
    justify-self: start;
    align-self: center;
    grid-template-columns: 42px 1fr 42px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
  }

  .cart-qty button,
  .cart-qty output {
    min-height: 40px;
    font-size: 16px;
  }

  .cart-price {
    grid-area: price;
    align-self: center;
    justify-self: end;
    color: #07102c;
    font-size: 20px;
    font-weight: 950;
    line-height: 1;
  }

  .cart-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 2px;
  }

  .cart-actions button {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 12px !important;
    border: 1px solid #cfe0ec !important;
    border-radius: 8px !important;
    color: #0a6f98 !important;
    background: #f6fbff !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    text-decoration: none !important;
  }

  .cart-actions button:last-child {
    border-color: #ffd2e5 !important;
    color: #d31762 !important;
    background: #fff7fb !important;
  }

  .cart-actions button:hover,
  .cart-actions button:focus-visible {
    box-shadow: 0 0 0 3px rgba(2, 148, 221, .14) !important;
    text-decoration: none !important;
  }

  .cart-checkout-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .summary-panel {
    order: 1;
  }

  .coupon-panel {
    order: 2;
  }

  .shipping-panel {
    order: 3;
  }

  .cart-card {
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(29, 46, 76, .1);
  }

  .panel-title,
  .mini-panel-head {
    min-height: 0;
    padding: 18px 16px;
  }

  .panel-title h2,
  .mini-panel-head h1 {
    font-size: 19px;
    line-height: 1.15;
  }

  .panel-title p,
  .mini-panel-head p {
    margin-top: 5px;
    font-size: 12px;
  }

  .summary-title {
    color: #07102c;
    background: #fff;
    border-bottom: 1px solid #e5edf4;
  }

  .summary-title h2 {
    color: #07102c;
  }

  .summary-title p {
    color: #64748b;
  }

  .summary-body {
    padding: 4px 16px 16px;
  }

  .summary-body p {
    min-height: 50px;
    grid-template-columns: 28px 1fr auto;
    gap: 9px;
    font-size: 14px;
  }

  .summary-body p img {
    width: 24px;
    height: 24px;
  }

  .summary-body b {
    font-size: 14px;
  }

  .summary-body .grand-total {
    min-height: 62px;
    margin-top: 12px;
    padding: 15px 14px;
    border-color: #b7def3;
    border-radius: 10px;
    background: #f3fbff;
    color: #07102c;
    align-items: center;
    font-size: 15px;
  }

  .summary-body .grand-total b {
    color: #07102c;
    font-size: 24px;
  }

  .coupon-entry input,
  .icon-field input,
  .select-field select {
    height: 46px;
    border-radius: 8px;
    font-size: 15px;
  }

  .coupon-entry button {
    min-height: 48px;
    border-radius: 8px;
    font-size: 14px;
  }

  .cart-action-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .cart-action-row > div {
    order: 1;
  }

  .continue-shopping {
    order: 2;
  }

  .proceed-checkout,
  .continue-shopping {
    width: 100%;
    min-height: 56px;
    border-radius: 10px;
    font-size: 15px;
  }

  .proceed-checkout {
    background: #0294dd;
    box-shadow: 0 16px 26px rgba(2, 148, 221, .24);
  }
}

@media (max-width: 380px) {
  .cart-row {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px 12px;
    padding: 14px;
  }

  .cart-product-thumb {
    width: 82px;
    height: 82px;
  }

  .cart-detail strong {
    font-size: 15px;
  }

  .cart-qty {
    width: 122px;
    grid-template-columns: 38px 1fr 38px;
  }

  .cart-price {
    font-size: 18px;
  }
}

@media (max-width: 460px) {
  .mini-panel-head,
  .panel-title,
  .package-detail {
    align-items: flex-start;
  }

  .panel-title img,
  .mini-panel-head img {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .shipping-title::after,
  .route-pin {
    display: none;
  }

  .package-detail {
    flex-direction: column;
  }

  .summary-body p {
    grid-template-columns: 38px 1fr auto;
    gap: 10px;
    font-size: 15px;
  }

  .summary-body .grand-total b {
    font-size: 23px;
  }
}
