/* ---------- Checkout Page -------------------------------------------------- */

.himaluxecheckout {
  max-width: 1280px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
}
.himaluxecheckout .checkout-form {
	display: grid;
	grid-template-columns: none;
	gap: 16px;
	padding: 15px;
	border: 1px solid #eee;
	border-radius: 16px;
	margin-bottom: 16px;
	align-items: stretch;
}
.himaluxecheckout .checkout-form .card {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}
.checkout_address.form-grid header.hx-card__head {
    display: block;
    font-size: 14px;
}
.checkout_address.form-grid header.hx-card__head input[type="checkbox"] {
    float: left;
    margin-right: 6px;
    margin-top: 3px;
}
.checkout_address.form-grid header.hx-card__head h3 {
    margin-bottom: 10px;
}

.radio-row {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox span {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #111;
}

.checkbox input {
  display: none;
}

.checkbox input:checked + span {
  background: #111;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}

input, select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.reach {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 14px;
}

/* -------- Instore -------- */

.instore-section {
  display: none;
}

.section-note {
  margin: 16px 0;
  font-weight: 500;
}

.store-table {
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
}

.store-header,
.store-row {
  display: grid;
  grid-template-columns: 24px 1fr 2fr 1fr;
  padding: 12px 16px;
  align-items: center;
}

.store-header {
  background: #f7f7f7;
  font-weight: 600;
}

.store-row {
  border-top: 1px solid #eee;
  cursor: pointer;
}

.store-row.selected {
  background: #fafafa;
}

.store-row a {
  font-size: 13px;
  color: #1a73e8;
  display: block;
}
#pickup-store-tbody .hx-map-link {
	color: #1E2EDE !important;
	text-decoration: underline !important;
}
/* -------- Summary -------- */

.checkout-summary {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 24px;
  height: fit-content;
}

.summary-list div,
.totals div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.promo-chip {
  display: inline-block;
  padding: 6px 12px;
  border: 1px dashed #999;
  border-radius: 8px;
  margin-bottom: 16px;
}
.himaluxecheckout .promo input {
	width: 95%;
	padding: 12px;
	border-radius: 10px;
	border: 1px solid #ccc;
	margin: 16px 0;
}
.grand {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  margin: 16px 0;
}

.choose-payment {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: #222;
  color: #fff;
  border: none;
  font-size: 16px;
}


/* Store list as table/grid */
.store-list {
    display: grid;
    grid-template-columns: 40px 1fr 2fr 1.5fr; /* radio | store | address | contact */
    gap: 10px;
    align-items: center;
    border-top: 1px solid #ccc;
    margin-bottom: 20px;
}

.store-list .store-item {
    display: contents; /* allows children to follow grid layout */
}

.store-item input[type="radio"] {
    justify-self: center;
}

.store-item div {
    padding: 8px 4px;
    border-bottom: 1px solid #eee;
}

.store-name {
    font-weight: bold;
}

.store-contact {
    font-size: 0.9rem;
    color: #555;
}

/* Receiver details */
.receiver-details .row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.receiver-details .col {
    flex: 1;
}

.receiver-details .col-full {
    flex: 1 1 100%;
}

.receiver-details input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

h4 {
    margin-top: 20px;
    margin-bottom: 10px;
}


.checkout_address.form-grid {
    grid-template-columns: repeat(1, 1fr);
}
div#pickup-form-container h3 {
    padding: 15px 1px;
    font-size: 17px;
    font-weight: 200;
}
div#pickup-form-container td, div#pickup-form-container th {
    padding: 7px 10px;
}
#saved-address-wrap .accordion-header {
	width: 100%;
	color: #000;
	text-align: left;
}
.address-card {
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.address-card:hover {
  border-color: #999;
}

.address-card {
    border: 1px dashed #666;
}
div#saved-address-wrap h3 {
    font-size: 18px;
    text-transform: capitalize;
    margin-bottom: 10px;
}


.default-badge {
  color: green;
  margin-left: 6px;
  font-size: 13px;
}
.available_on {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
}
.available_on input[type="checkbox"] {
    float: none;
    margin: 0;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}
.available_on img {
    width: 18px;
    height: 18px;
    float: none;
    margin: 0;
    flex: 0 0 auto;
}
.available_on small {
    font-size: 12px;
    float: none;
}
div#saved-address-wrap strong {
    font-size: 12px;
    font-weight: 300;
}
div#saved_shipping {
    width: 50%;
    padding: 10px;
}
div#saved_billing {
    width: 50%;
    padding: 10px;
}

@media (max-width: 600px) {
  .address-card {
    border: 1px dashed #666;
    width: 100%;
  }
  
}

.hx-muted-no-saved {
	width: 100%;
	border: 1px solid #EC221F;
	padding: 16px;
	border-radius: 5px;
	background: #FEE9E7;
	color: #EC221F !important;
	margin-bottom: 10px !important;
}

.himaluxe-ui .checkout-form #new-billing-address-form .hx-card__body.himaluxe-grid-2 .hx-field:nth-child(5),
.himaluxe-ui .checkout-form #new-shipping-address-form .hx-card__body.himaluxe-grid-2 .hx-field:nth-child(5) {
	grid-column: 1 / -1;
}
.himaluxe-ui-checkout section.hx-card,
.himaluxe-ui-checkout .checkout-form,
.himaluxe-ui-checkout .checkout-form > .hx-stack,
.himaluxe-ui-checkout .checkout_address.form-grid,
.himaluxe-ui-checkout #new-billing-address-form,
.himaluxe-ui-checkout #new-shipping-address-form,
.himaluxe-ui-checkout #saved-address-wrap,
.himaluxe-ui-checkout #pickup-form-container {
  min-width: 0;
  width: 100%;
}
.himaluxe-ui-checkout #saved-address-wrap {
  align-items: flex-start;
  flex-wrap: wrap;
}
.himaluxe-ui-checkout .checkout-form > .hx-card__head,
.himaluxe-ui-checkout .checkout-form > .hx-stack > .hx-card,
.himaluxe-ui-checkout .checkout-form > .hx-stack > .checkout_address {
  width: 100%;
}
#new-billing-address-form .hx-field,
#new-shipping-address-form .hx-field,
#pickup-form-container .hx-field {
  min-width: 0;
}
#new-billing-address-form .hx-card__body.himaluxe-grid-2 .hx-field:nth-child(5),
#new-shipping-address-form .hx-card__body.himaluxe-grid-2 .hx-field:nth-child(5) {
  position: relative;
}
#new-billing-address-form .hx-card__body.himaluxe-grid-2 .hx-field:nth-child(5) .hx-input,
#new-shipping-address-form .hx-card__body.himaluxe-grid-2 .hx-field:nth-child(5) .hx-input {
  padding-right: 48px;
}
#toggle-address-billing,
#toggle-address-shipping {
	right: 10px !important;
	position: absolute;
	top: 42px;
  width: 24px;
  height: 24px;
  object-fit: contain;
  cursor: pointer;
}

.himaluxe-ui-checkout aside.hx-card {
  border: 1px solid #dddddf;
  border-radius: 22px;
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.04);
  justify-self: end;
  max-width: 408px;
  width: 100%;
}

.himaluxe-ui-checkout .himaluxe-grid-23 {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 408px !important;
}

.himaluxe-ui-checkout aside.hx-card > .hx-card__body.hx-stack {
  gap: 18px;
  padding: 22px;
}

.himaluxe-ui-checkout aside.hx-card > .hx-card__body.hx-stack > h3 {
  color: #202020;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.hx-checkout-summary {
  display: grid;
  gap: 18px;
}

.hx-checkout-summary--pre-promo .hx-summary-products-section {
  display: grid;
  gap: 18px;
  order: 1;
}

.hx-checkout-summary--pre-promo .hx-summary-totals {
  order: 5;
}

.hx-checkout-summary--pre-promo .hx-summary-grand {
  order: 6;
}

.hx-checkout-summary--pre-promo .hx-divider--before-promo {
  display: block;
  order: 2;
}

.hx-checkout-summary--pre-promo .hx-promo-block {
  order: 3;
}

.hx-checkout-summary--pre-promo .hx-divider--after-promo {
  display: block;
  order: 4;
}

.hx-checkout-summary--with-promo .hx-summary-products-section {
  display: grid;
  gap: 18px;
  order: 1;
}

.hx-checkout-summary--with-promo .hx-divider--before-promo {
  display: block;
  order: 2;
}

.hx-checkout-summary--with-promo .hx-promo-block {
  order: 3;
}

.hx-checkout-summary--with-promo .hx-divider--after-promo {
  display: block;
  order: 4;
}

.hx-checkout-summary--with-promo .hx-summary-totals {
  order: 5;
}

.hx-checkout-summary--with-promo .hx-summary-grand {
  order: 6;
}

.hx-summary-head {
  color: #757575;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hx-summary-products {
  display: grid;
  gap: 14px;
}

.hx-summary-product {
  align-items: flex-start;
  gap: 16px;
}

.hx-summary-product__title,
.hx-summary-product__price,
.hx-summary-totals p,
.hx-summary-grand p {
  margin: 0;
}

.hx-summary-product__title {
  color: #2a2a2a;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  max-width: 72%;
}

.hx-summary-product__price {
  color: #202020;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.hx-promo-block {
  display: grid;
  gap: 12px;
}

.hx-promo-label {
  color: #202020;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.hx-promo-inputrow {
  align-items: stretch;
  display: flex;
  gap: 10px;
}

.hx-promo-block .hx-promo-code-input {
  flex: 1 1 auto;
  width: auto;
  min-height: 54px;
  border: 1px solid #d8d8da;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.02);
  color: #202020;
  font-size: 15px;
  padding: 14px 18px;
}

.hx-promo-block .hx-promo-code-input::placeholder {
  color: #ababaf;
}

.hx-promo-apply {
  background: #2d2d2d;
  border: 1px solid #2d2d2d;
  border-radius: 14px;
  color: #fff;
  flex: 0 0 auto;
  min-height: 54px;
  padding: 0 22px;
  white-space: nowrap;
}

.hx-promo-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 0;
}

.hx-promo-chip-row .hx-chip {
  align-items: center;
  border: 2px dashed #565656;
  border-radius: 14px;
  color: #202020;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  gap: 14px;
  padding: 11px 18px;
  background: #fff;
}

.hx-promo-chip-row .hx-chip__x {
  color: #202020;
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}

.hx-promo-message {
  color: #7b7b80;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.hx-promo-message:empty {
  display: none;
}

.hx-summary-totals {
  display: grid;
  gap: 10px;
}

.hx-summary-totals .hx-row,
.hx-summary-grand {
  align-items: center;
}

.hx-summary-totals .hx-row p:first-child {
  color: #78787d;
  font-size: 16px;
  font-weight: 400;
}

.hx-summary-totals .hx-row p:last-child {
  color: #202020;
  font-size: 16px;
  font-weight: 500;
}

.hx-summary-grand p:first-child,
.hx-summary-grand p:last-child {
  color: #202020;
  font-size: 18px;
  font-weight: 700;
}

.hx-divider--before-promo,
.hx-divider--after-promo {
  margin: 0;
}

.himaluxe-ui-checkout .choose-payment {
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
  min-height: 56px;
}

@media (max-width: 767px) {
  .himaluxe-ui-checkout .hx-page {
    padding: 16px;
  }

  .himaluxe-ui-checkout .himaluxe-grid-23 {
    grid-template-columns: 1fr !important;
  }

  .himaluxe-ui-checkout section.hx-card,
  .himaluxe-ui-checkout aside.hx-card {
    max-width: none;
  }

  .himaluxe-ui-checkout .checkout-form {
    padding: 12px;
  }

  .himaluxe-ui-checkout .checkout-form .hx-card__body {
    padding: 16px;
  }

  .himaluxe-ui-checkout #new-billing-address-form .hx-card__body.himaluxe-grid-2,
  .himaluxe-ui-checkout #new-shipping-address-form .hx-card__body.himaluxe-grid-2,
  .himaluxe-ui-checkout #shipping-form.hx-card__body.himaluxe-grid-2 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .himaluxe-ui-checkout #new-billing-address-form .hx-card__body.himaluxe-grid-2 > .hx-field,
  .himaluxe-ui-checkout #new-shipping-address-form .hx-card__body.himaluxe-grid-2 > .hx-field,
  .himaluxe-ui-checkout #shipping-form.hx-card__body.himaluxe-grid-2 > .hx-field {
    grid-column: 1 / -1 !important;
    width: 100%;
    min-width: 0;
  }

  .himaluxe-ui-checkout .checkout-form > .hx-card__head {
    padding: 0;
  }

  .himaluxe-ui-checkout #new-billing-address-form .hx-card__head,
  .himaluxe-ui-checkout #new-shipping-address-form .hx-card__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .himaluxe-ui-checkout #hx-card__body_delivery .hx-row {
    gap: 10px;
  }

  .checkout_address.form-grid,
  #pickup-form-container .hx-card__body.himaluxe-grid-2 {
    grid-template-columns: 1fr;
  }

  .checkout_address.form-grid header.hx-card__head,
  #pickup-form-container .hx-card__head {
    display: grid;
    gap: 10px;
  }

  .checkout_address.form-grid header.hx-card__head input[type="checkbox"] {
    float: none;
    margin: 0;
  }

  .himaluxe-ui-checkout .hx-row {
    flex-wrap: wrap;
  }

  .himaluxe-ui-checkout .hx-choice {
    max-width: 100%;
    line-height: 1.4;
  }

  #saved-address-wrap {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
  }

  div#saved_shipping,
  div#saved_billing {
    width: 100% !important;
    max-width: 100%;
    flex: 0 0 100%;
    padding: 0;
  }

  .available_on {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin-top: 8px;
    margin-right: 12px;
  }

  .available_on input[type="checkbox"],
  .available_on img,
  .available_on small {
    float: none;
    margin: 0;
  }

  div#pickup-form-container h3 {
    font-size: 16px;
    line-height: 1.4;
  }

  .himaluxe-ui-checkout .hx-table-scroll {
    margin-bottom: 12px;
  }

  .himaluxe-ui-checkout aside.hx-card > .hx-card__body.hx-stack {
    padding: 18px;
    gap: 16px;
  }

  .himaluxe-ui-checkout aside.hx-card > .hx-card__body.hx-stack > h3 {
    font-size: 22px;
  }

  .hx-summary-product__title {
    font-size: 15px;
    max-width: 68%;
  }

  .hx-summary-product__price,
  .hx-summary-totals .hx-row p:last-child,
  .hx-summary-totals .hx-row p:first-child {
    font-size: 15px;
  }

  .hx-promo-block .hx-promo-code-input {
    min-height: 50px;
    padding: 12px 16px;
  }

  .hx-promo-apply {
    min-height: 50px;
    padding: 0 18px;
  }

  .hx-promo-chip-row .hx-chip {
    font-size: 14px;
    gap: 12px;
    padding: 10px 16px;
  }

  .hx-summary-grand p:first-child,
  .hx-summary-grand p:last-child {
    font-size: 17px;
  }
}

@media (max-width: 520px) {
  .himaluxe-ui-checkout .checkout-form {
    padding: 10px;
  }

  .himaluxe-ui-checkout .checkout-form .hx-card__body,
  .himaluxe-ui-checkout aside.hx-card > .hx-card__body.hx-stack {
    padding: 14px;
  }

  .checkout_address.form-grid header.hx-card__head h3,
  .himaluxe-ui-checkout aside.hx-card > .hx-card__body.hx-stack > h3 {
    font-size: 20px;
  }

  .himaluxe-ui-checkout #new-billing-address-form .hx-card__body.himaluxe-grid-2,
  .himaluxe-ui-checkout #new-shipping-address-form .hx-card__body.himaluxe-grid-2,
  .himaluxe-ui-checkout #shipping-form.hx-card__body.himaluxe-grid-2 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #toggle-address-billing,
  #toggle-address-shipping {
    top: 40px;
    right: 8px !important;
    width: 22px;
    height: 22px;
  }

  .hx-promo-inputrow {
    flex-wrap: wrap;
  }

  .hx-promo-block .hx-promo-code-input,
  .hx-promo-apply {
    width: 100%;
  }
}
