/* Local Cart Drawer Styles */
.local-cart-badge {
  background: #000;
  color: #fff;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -4px;
  right: -8px;
  font-weight: 700;
}

.local-cart-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.local-cart-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.local-cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

@media (max-width: 400px) {
  .local-cart-drawer {
    width: 100%;
    right: -100%;
  }
}

.local-cart-drawer.is-open {
  right: 0;
}

.local-cart-drawer__header {
  padding: 16px 20px;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.local-cart-drawer__title {
  font-size: 18px;
  font-weight: 700;
}

.local-cart-drawer__close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
}

.local-cart-drawer__timer {
  background: #f6f6f6;
  padding: 8px 20px;
  font-size: 13px;
  color: #333;
  text-align: center;
}

.local-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.local-cart-drawer-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.local-cart-drawer-item__imgwrap {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.local-cart-drawer-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.local-cart-drawer-item__main {
  flex: 1;
}

.local-cart-drawer-item__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.local-cart-drawer-item__title {
  font-size: 14px;
  font-weight: 600;
}

.local-cart-drawer-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
}

.local-cart-drawer-item__remove svg {
  width: 18px;
  height: 18px;
}

.local-cart-drawer-item__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.local-cart-drawer-qty {
  display: flex;
  align-items: center;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
}

.local-cart-drawer-qty button {
  background: none;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
}

.local-cart-drawer-qty span {
  padding: 0 8px;
}

.local-cart-drawer-item__price {
  text-align: right;
}

.local-cart-drawer-item__sale {
  font-weight: 700;
}

.local-cart-drawer-item__save {
  font-size: 11px;
  color: #d0021b;
}

.local-cart-drawer__footer {
  padding: 20px;
  border-top: 1px solid #e6e6e6;
}

.local-cart-drawer__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.local-cart-drawer__row--big {
  font-weight: 700;
  font-size: 16px;
}

.local-cart-drawer__checkout {
  display: block;
  width: 100%;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 16px;
}

.local-cart-drawer__payments {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 10px;
  color: #999;
}

/* Checkout Page Styles */
.local-checkout {
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color: #333;
}

#local-checkout-page {
  min-height: 100vh;
  background: #fff;
}

.local-checkout__topbar {
  background-image: url("https://cdn.shopify.com/s/files/1/0967/3775/5412/files/LIMITED_TIME_OFFER_2_2000x.png?v=1772662911");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #e6e6e6;
  width: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.local-checkout__topbar-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.local-checkout__headerimg {
  max-height: 80px;
  width: auto;
}

.local-checkout__shields {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.local-checkout__shields img {
  height: 45px;
}

.local-checkout__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 180px);
}

@media (max-width: 980px) {
  .local-checkout__grid {
    display: flex;
    flex-direction: column;
  }
}

.local-checkout__left {
  background: #fff;
  padding: 40px 60px;
  max-width: 100%;
}

.local-checkout__right {
  background: #f8f8f8;
  padding: 40px 60px;
  border-left: 1px solid #e6e6e6;
  max-width: 100%;
}

.local-checkout__discount-wrap {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e6e6e6;
}

.local-checkout__discount-input {
  flex: 1;
  padding: 14px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

.local-checkout__discount-btn {
  padding: 0 20px;
  background: #f1f1f1;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #333;
}

.local-checkout__discount-btn:hover {
  background: #e6e6e6;
}

.local-checkout__totals {
  margin-top: 24px;
}

@media (max-width: 980px) {
  .local-checkout__left,
  .local-checkout__right {
    padding: 30px 20px;
    max-width: 100%;
    margin: 0;
    border-left: none;
  }
  .local-checkout__right {
    order: -1;
    border-top: none;
    border-bottom: 1px solid #e6e6e6;
    background: #fff;
  }
}

.local-order-summary__head {
  display: none;
}

.local-order-summary__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.local-order-summary__left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1a73e8;
}

.local-order-summary__caret {
  display: inline-block;
  font-size: 14px;
  color: #1a73e8;
  transform: rotate(180deg);
  transition: transform 0.15s ease;
}

.local-order-summary__toggle.is-collapsed .local-order-summary__caret {
  transform: rotate(0deg);
}

.local-order-summary__prices {
  text-align: right;
}

.local-order-summary__compare {
  display: block;
  font-size: 12px;
  color: #777;
  text-decoration: line-through;
  line-height: 1.2;
}

.local-order-summary__total {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
}

.local-order-summary__body.is-collapsed {
  display: none;
}

@media (max-width: 980px) {
  .local-order-summary__head {
    display: block;
    border-bottom: 1px solid #e6e6e6;
    margin-bottom: 16px;
  }
}

.local-checkout__trust-badge {
  display: block;
  margin: 0 auto 20px auto;
  height: 55px;
}

.local-checkout__trust-badge-small {
  display: block;
  margin: 20px auto 0 auto;
  height: 45px;
}

.local-checkout__trust-badge--mobile {
  display: none;
  margin: 18px auto 0 auto;
  height: 55px;
}

@media (max-width: 980px) {
  .local-checkout__trust-badge--desktop {
    display: none;
  }
  .local-checkout__trust-badge--mobile {
    display: block;
  }
}

.local-checkout__title {
  margin: 0 0 20px 0;
  font-size: 22px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.local-checkout__signin {
  font-size: 14px;
  font-weight: 400;
  color: #197bbd;
  text-decoration: underline;
}

.local-checkout__section {
  margin-bottom: 24px;
}

.local-checkout__h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #000;
}

.local-checkout__field {
  margin-bottom: 12px;
  position: relative;
}

.local-checkout__field--icon input {
  padding-right: 40px !important;
}

.local-checkout__field-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.local-checkout__field-icon svg {
  width: 18px;
  height: 18px;
}

.local-checkout__field--select {
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 8px 14px;
  background: #fff;
}

.local-checkout__field-label {
  display: block;
  font-size: 11px;
  color: #666;
  margin-bottom: 2px;
  font-weight: 400 !important;
}

.local-checkout__select {
  width: 100%;
  border: none !important;
  padding: 0 !important;
  font-size: 15px;
  color: #333;
  background: transparent;
  appearance: none;
  outline: none;
}

.local-checkout__select-caret {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #666;
  pointer-events: none;
}

.local-checkout__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.local-checkout__row .local-checkout__field {
  margin-bottom: 0;
}

.local-checkout__row--3-col {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 768px) {
  .local-checkout__row,
  .local-checkout__row--3-col {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 12px !important;
  }
  .local-checkout__left,
  .local-checkout__right {
    padding: 20px 16px;
  }
  .local-checkout__h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }
  /* Ensure all inputs and select boxes have equal height and 100% width */
  .local-checkout__field,
  .local-checkout__field--select,
  .local-checkout__field--icon {
    width: 100% !important;
    margin-bottom: 12px;
  }
  /* Remove margin-bottom for fields inside rows as grid-gap handles it */
  .local-checkout__row .local-checkout__field,
  .local-checkout__row .local-checkout__field--select,
  .local-checkout__row .local-checkout__field--icon {
    margin-bottom: 0;
  }
  .local-checkout__field input,
  .local-checkout__field--select,
  .local-checkout__field--icon input {
    height: 54px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
  }
  .local-checkout__field--select {
    flex-direction: column;
    justify-content: center;
    padding: 4px 14px !important;
  }
  .local-checkout__field-label {
    margin-bottom: 0;
  }
  .local-checkout__select {
    height: auto !important;
    line-height: 1.2;
    padding: 0 !important;
    margin: 0 !important;
  }
}

.local-checkout__saved-addr {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  color: #197bbd;
  text-decoration: none;
}

.local-checkout__saved-addr:hover {
  text-decoration: underline;
}

.local-checkout__shipping-notice {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  color: #666;
  text-align: center;
}

.local-checkout__field label {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 600;
}

.local-checkout__field input,
.local-checkout__field select {
  width: 100%;
  padding: 14px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
}

.local-checkout__field input:focus {
  border-color: #197bbd;
  outline: none;
  box-shadow: 0 0 0 1px #197bbd;
}

.local-checkout__checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-top: 15px;
  cursor: pointer;
}

.local-checkout__checkbox-wrap input {
  width: 18px;
  height: 18px;
}

.local-pay-method {
  margin-top: 24px;
}

.local-pay-method__hi {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.local-pay-method__label {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #000;
}

.local-pay-selector {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 40px;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 650px;
}

.local-pay-selector.is-open {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.local-pay-selector__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  overflow: hidden;
}

.local-pay-selector__icon {
  font-size: 18px;
  flex-shrink: 0;
  font-family: serif;
}

.local-pay-selector__text {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
  color: #001f3f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.local-pay-selector__caret {
  font-size: 18px;
  flex-shrink: 0;
  color: #111;
}

.local-pay-options {
  display: none;
  margin-top: -1px;
  border: 1px solid #999;
  border-top: none;
  border-radius: 0 0 16px 16px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  width: 100%;
  max-width: 650px;
}

.local-pay-options.is-open {
  display: block;
}

.local-pay-option {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #000;
}

.local-pay-option:last-child {
  border-bottom: none;
}

.local-pay-option:hover,
.local-pay-option.is-selected {
  background: #0056b3;
  color: #fff;
}

.local-pay-option__icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.local-pay-option__text {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.local-checkout__complete {
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 24px;
}

.local-upsell {
  margin-top: 28px;
}

.local-upsell__headline {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  line-height: 1.25;
  margin: 0 0 18px 0;
}

.local-upsell__card {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid #d9d9d9;
  border-radius: 28px;
  padding: 24px 24px 20px 24px;
  background: #fff;
}

.local-upsell__top {
  display: flex;
  gap: 22px;
  align-items: center;
}

.local-upsell__img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid #e6e6e6;
  background: #fff;
}

.local-upsell__info {
  flex: 1;
  min-width: 0;
}

.local-upsell__name {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
}

.local-upsell__off {
  font-weight: 600;
  color: #2e7d32;
}

.local-upsell__prices {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.local-upsell__price {
  font-size: 20px;
  font-weight: 700;
  color: #000;
}

.local-upsell__compare {
  font-size: 18px;
  color: #777;
}

.local-upsell__add {
  margin-top: 22px;
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 14px;
  background: #0b63ce;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.local-upsell__add:hover {
  background: #0959b8;
}

.local-checkout__foot {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.local-checkout__footlink {
  font-size: 12px;
  color: #666;
  text-decoration: none;
}

.local-checkout__summary-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.local-checkout__summary-img-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.local-checkout__summary-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  background: #fff;
}

.local-checkout__summary-qty {
  position: absolute;
  top: -8px;
  right: -8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.local-checkout__summary-info {
  flex: 1;
}

.local-checkout__summary-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.local-checkout__summary-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.local-checkout__summary-price-col {
  text-align: right;
  flex-shrink: 0;
}

.local-checkout__summary-compare {
  font-size: 12px;
  color: #888;
  text-decoration: line-through;
  margin-bottom: 2px;
}

.local-checkout__summary-price {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.local-checkout__summary-discount {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
  display: flex;
  align-items: center;
}

.local-checkout__total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: #666;
}

.local-checkout__total-row.is-big {
  font-weight: 700;
  font-size: 20px;
  color: #000;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e6e6e6;
}

.local-checkout__savings-row {
  margin-top: 10px;
  font-weight: 700;
  color: #000;
  font-size: 14px;
}

.local-checkout__success {
  max-width: 600px;
  margin: 100px auto;
  text-align: center;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
