/* Mini cart drawer and cart page, matched to the Kiddy reference. */

.ax-minicart button::before,
.ax-cart-page button::before,
.ax-mini-btn::before {
  content: none !important;
  display: none !important;
}

.ax-minicart[hidden] {
  display: none !important;
}

.ax-minicart {
  position: fixed;
  inset: 0;
  z-index: 4000;
}

.ax-minicart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 37, 41, 0.45);
}

.ax-minicart-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(500px, 100%);
  height: 100%;
  background: #fff;
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.35);
}

.ax-minicart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 18px 28px 8px 35px;
}

#axCartMount {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.ax-minicart-head h2 {
  margin: 0;
  color: #576471 !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.ax-minicart-head button {
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: #212529;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ax-minicart-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  padding: 8px 35px 28px;
  overflow: auto;
}

.ax-mini-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  margin: 0 0 22px;
  padding: 10px 16px;
  border-radius: 5px;
  background: #f0f1f3;
  color: #576471 !important;
  font-size: 15px;
  font-weight: 300;
}

.ax-mini-empty i {
  font-size: 18px;
}

body.ax-store .ax-mini-btn,
.ax-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 55px;
  padding: 15px 25px;
  border: 0;
  border-radius: 8px;
  background: #212529;
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

body.ax-store .ax-mini-btn:hover,
.ax-mini-btn:hover {
  background: #000;
  color: #fff !important;
}

.ax-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ax-mini-list li {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 10px 28px 10px 0;
  border-bottom: 1px solid #eef0f2;
}

.ax-mini-photo img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.ax-mini-data a,
.ax-mini-data strong {
  display: block;
  color: #212529 !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.ax-mini-data small,
.ax-mini-data em {
  display: block;
  margin-top: 4px;
  color: #576471 !important;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
}

.ax-mini-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.ax-mini-qty span {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 34px;
  border: 1px solid #d7dbe0;
  border-radius: 6px;
  background: #fff;
}

.ax-mini-qty input {
  width: 34px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #212529;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.ax-mini-qty input::-webkit-outer-spin-button,
.ax-mini-qty input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.ax-mini-qty button {
  position: absolute;
  right: 0;
  width: 18px;
  height: 16px;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.ax-mini-qty button::after {
  content: "";
  position: absolute;
  left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.ax-mini-qty button[data-mini-qty="1"] {
  top: 2px;
}

.ax-mini-qty button[data-mini-qty="1"]::after {
  top: 5px;
  border-bottom: 5px solid #212529;
}

.ax-mini-qty button[data-mini-qty="-1"] {
  bottom: 2px;
}

.ax-mini-qty button[data-mini-qty="-1"]::after {
  bottom: 5px;
  border-top: 5px solid #212529;
}

.ax-mini-remove {
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #576471 !important;
  transform: translateY(-50%);
}

.ax-mini-suggest {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef0f2;
}

.ax-mini-suggest-head,
.ax-cart-suggest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ax-mini-suggest-head h3,
.ax-cart-suggest-head h3 {
  margin: 0;
  color: #576471 !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ax-mini-suggest-head button,
.ax-cart-suggest-head button {
  width: 28px;
  height: 28px;
  border: 1px solid #e6e8eb;
  border-radius: 6px;
  background: #fff;
  color: #212529;
  cursor: pointer;
}

.ax-mini-suggest article,
.ax-cart-suggest article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.ax-mini-suggest img,
.ax-cart-suggest img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.ax-mini-suggest p,
.ax-cart-suggest p {
  margin: 4px 0 8px;
  color: #212529 !important;
  font-size: 14px;
  font-weight: 600;
}

.ax-mini-suggest s,
.ax-cart-suggest s {
  margin-right: 6px;
  color: #98a2ab;
  font-weight: 400;
}

.ax-mini-suggest button,
.ax-cart-suggest button {
  min-height: 28px;
  padding: 4px 12px;
  border: 0;
  border-radius: 8px;
  background: #212529;
  color: #fff !important;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.ax-mini-foot {
  margin-top: auto;
  padding-top: 18px;
}

.ax-mini-sub {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  color: #576471 !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ax-mini-sub strong,
.ax-mini-ship {
  color: #576471 !important;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.ax-mini-ship {
  margin: 0 0 8px;
  font-size: 13px;
}

.ax-mini-bar,
.ax-cart-shipbar {
  height: 4px;
  margin-bottom: 16px;
  border-radius: 99px;
  background: #eceff1;
  overflow: hidden;
}

.ax-mini-bar span,
.ax-cart-shipbar span {
  display: block;
  height: 100%;
  background: #e0a100;
}

.ax-mini-actions,
.ax-cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ax-mini-shop,
.ax-cart-shop {
  grid-column: 1 / -1;
  background: #fff !important;
  color: #212529 !important;
  border: 1px solid #212529;
}

body.ax-store a.ax-mini-shop:hover,
.ax-mini-shop:hover,
.ax-cart-shop:hover {
  background: #212529 !important;
  color: #fff !important;
}

body.ax-cart-open {
  overflow: hidden;
}

.ax-cart-page {
  padding: 36px 0 64px;
}

.ax-cart-page h1 {
  margin: 0 0 28px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.ax-cart-note {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin: 0 0 22px;
  padding: 12px 18px;
  border-radius: 5px;
  background: #f0f1f3;
  color: #576471 !important;
  font-size: 15px;
  font-weight: 300;
}

.ax-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
}

.ax-cart-table {
  width: 100%;
  border-collapse: collapse;
}

.ax-cart-table th {
  padding: 0 0 12px;
  border-bottom: 1px solid #e6e8eb;
  color: #212529 !important;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.ax-cart-table td {
  padding: 22px 12px 22px 0;
  border-bottom: 1px solid #eef0f2;
  vertical-align: middle;
}

.ax-cart-product {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ax-cart-product img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.ax-cart-product a,
.ax-cart-product strong {
  color: #212529 !important;
  font-size: 15px;
  font-weight: 500;
}

.ax-cart-product small,
.ax-cart-price {
  display: block;
  margin-top: 4px;
  color: #576471 !important;
  font-size: 14px;
}

.ax-line-qty {
  position: relative;
  display: inline-flex;
  width: 72px;
  height: 42px;
  border: 1px solid #d7dbe0;
  border-radius: 8px;
  background: #fff;
}

.ax-line-qty input {
  width: 42px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 500;
}

.ax-line-qty button {
  position: absolute;
  right: 4px;
  width: 18px;
  height: 16px;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.ax-line-qty button::after {
  content: "";
  position: absolute;
  left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.ax-line-qty button[data-line-qty="1"] { top: 4px; }
.ax-line-qty button[data-line-qty="1"]::after { top: 4px; border-bottom: 5px solid #212529; }
.ax-line-qty button[data-line-qty="-1"] { bottom: 4px; }
.ax-line-qty button[data-line-qty="-1"]::after { bottom: 4px; border-top: 5px solid #212529; }

.ax-cart-remove {
  color: #576471 !important;
  font-size: 16px;
}

.ax-cart-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.ax-cart-coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ax-cart-coupon input {
  width: 180px;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
}

.ax-cart-update[disabled] {
  background: #c5c9ce;
  cursor: default;
}

.ax-cart-side {
  padding: 22px 22px 26px;
  border: 1px solid #e6e8eb;
  border-radius: 4px;
}

.ax-cart-side h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
}

.ax-cart-rows {
  width: 100%;
  border-collapse: collapse;
}

.ax-cart-rows td {
  padding: 12px 0;
  border-bottom: 1px solid #eef0f2;
  color: #576471 !important;
  font-size: 15px;
}

.ax-cart-rows td:last-child {
  text-align: right;
  color: #212529 !important;
  font-weight: 600;
}

.ax-cart-ship {
  margin: 8px 0 4px;
}

.ax-cart-ship legend {
  margin-bottom: 8px;
  color: #212529;
  font-size: 15px;
  font-weight: 600;
}

.ax-cart-ship label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  color: #576471 !important;
  font-size: 14px;
  font-weight: 400;
}

.ax-cart-suggest {
  margin-top: 18px;
  padding-top: 8px;
}

.ax-cart-checkout {
  width: 100%;
  margin-top: 8px;
}

.ax-cart-perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
  padding: 28px 32px;
  border-radius: 16px;
  background: #212529;
}

body.ax-store .ax-cart-perks h3,
body.ax-store .ax-cart-perks p,
body.ax-store .ax-cart-perks i {
  color: #fff !important;
}

.ax-cart-perks h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.ax-cart-perks p {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.45;
}

@media (max-width: 991.98px) {
  .ax-cart-layout,
  .ax-cart-perks {
    grid-template-columns: 1fr;
  }

  .ax-cart-side {
    max-width: 520px;
  }
}

@media (max-width: 767.98px) {
  .ax-minicart-panel {
    width: 100%;
  }

  .ax-minicart-head,
  .ax-minicart-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ax-cart-table thead {
    display: none;
  }

  .ax-cart-table,
  .ax-cart-table tbody,
  .ax-cart-table tr,
  .ax-cart-table td {
    display: block;
    width: 100%;
  }

  .ax-cart-table td {
    padding: 8px 0;
    border: 0;
  }

  .ax-cart-table tr {
    padding: 16px 0;
    border-bottom: 1px solid #eef0f2;
  }

  .ax-cart-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .ax-mini-actions {
    grid-template-columns: 1fr;
  }

  .ax-cart-perks {
    padding: 22px 18px;
  }
}
