/* Stella shipping trigger + modal. Rollback: remove stella-shipping from admin HTML. */

.type-detail a.shipping-options.stella-ship-trigger {
  align-items: center;
  background: #faf8f5;
  border: 1px solid #ece7df;
  border-radius: 14px;
  box-sizing: border-box;
  color: #2a2a2a !important;
  display: flex !important;
  font-family: Inter, sans-serif !important;
  gap: 12px;
  letter-spacing: 0 !important;
  margin: 12px 0 0 !important;
  max-width: 100%;
  padding: 12px 14px;
  text-decoration: none !important;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}

.type-detail a.shipping-options.stella-ship-trigger:hover,
.type-detail a.shipping-options.stella-ship-trigger:focus-visible {
  background: #f3ebe3;
  border-color: #e0d5c8;
  color: #2a2a2a !important;
  outline: none;
}

.type-detail a.shipping-options.stella-ship-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(186, 112, 64, 0.22);
}

.stella-ship-trigger__logos {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.stella-ship-trigger__logos img {
  background: #fff;
  border: 1px solid #ece7df;
  border-radius: 8px;
  display: block;
  height: 28px;
  object-fit: contain;
  padding: 3px;
  width: 40px;
}

.stella-ship-trigger__txt {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stella-ship-trigger__txt strong {
  color: #2a2a2a;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.stella-ship-trigger__txt small {
  color: #6b6b6b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.stella-ship-trigger__chev {
  color: #ba7040;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  margin-left: 4px;
}

#colorbox.stella-ship-cbox {
  background: #fff !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 48px rgba(42, 42, 42, 0.16) !important;
  overflow: hidden !important;
}

#colorbox.stella-ship-cbox #cboxWrapper,
#colorbox.stella-ship-cbox #cboxContent,
#colorbox.stella-ship-cbox #cboxLoadedContent {
  background: #fff !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

#colorbox.stella-ship-cbox #cboxTopLeft,
#colorbox.stella-ship-cbox #cboxTopCenter,
#colorbox.stella-ship-cbox #cboxTopRight,
#colorbox.stella-ship-cbox #cboxBottomLeft,
#colorbox.stella-ship-cbox #cboxBottomCenter,
#colorbox.stella-ship-cbox #cboxBottomRight,
#colorbox.stella-ship-cbox #cboxMiddleLeft,
#colorbox.stella-ship-cbox #cboxMiddleRight {
  background: none !important;
  display: none !important;
  height: 0 !important;
  width: 0 !important;
}

#colorbox.stella-ship-cbox #cboxClose {
  color: #6b6b6b !important;
  font-size: 22px !important;
  right: 14px !important;
  top: 14px !important;
  z-index: 3;
}

#cboxOverlay.stella-ship-overlay {
  background: rgba(42, 42, 42, 0.45) !important;
}

.shipping-options-popup.stella-ship-popup {
  background: #fff;
  box-sizing: border-box;
  color: #2a2a2a;
  font-family: Inter, sans-serif;
  padding: 28px 28px 22px;
}

.shipping-options-popup.stella-ship-popup h1 {
  color: #2a2a2a !important;
  font-family: Inter, sans-serif !important;
  font-size: 22px !important;
  font-weight: 650 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  margin: 0 0 8px !important;
  padding-right: 28px;
  text-transform: none !important;
}

.shipping-options-popup.stella-ship-popup > p,
.shipping-options-popup.stella-ship-popup .stella-ship-intro {
  color: #6b6b6b !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  margin: 0 0 14px !important;
  max-width: none;
}

.shipping-options-popup.stella-ship-popup .stella-ship-nowrap {
  white-space: nowrap;
}

.shipping-options-popup.stella-ship-popup .stella-ship-banner {
  align-items: flex-start;
  background: #f7f4ef;
  border: 1px solid #ece7df;
  border-radius: 12px;
  color: #484848;
  display: flex;
  font-size: 13px;
  gap: 10px;
  line-height: 1.4;
  margin: 0 0 8px;
  padding: 12px 14px;
}

.shipping-options-popup.stella-ship-popup .stella-ship-banner--free {
  background: #eef5ef;
  border-color: #d7e6da;
  color: #2f5238;
}

.shipping-options-popup.stella-ship-popup .stella-ship-banner strong {
  display: block;
  font-weight: 650;
  margin-bottom: 2px;
}

.shipping-options-popup.stella-ship-popup .stella-ship-banner span {
  color: inherit;
  display: block;
  font-weight: 400;
}

.shipping-options-popup.stella-ship-popup .stella-ship-group {
  color: #8a8175;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  margin: 16px 0 4px;
  padding: 0 4px;
  text-transform: uppercase;
}

.shipping-options-popup.stella-ship-popup .stella-ship-group:first-of-type {
  margin-top: 8px;
}

.shipping-options-popup.stella-ship-popup .shipping-row {
  align-items: center;
  border-bottom: 1px solid #f0ebe3 !important;
  column-gap: 14px;
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  margin: 0 !important;
  padding: 14px 4px !important;
  row-gap: 0;
}

.shipping-options-popup.stella-ship-popup .shipping-row.stella-ship-row--secondary {
  opacity: 0.78;
}

.shipping-options-popup.stella-ship-popup .payment-logo {
  align-items: center;
  background: #faf8f5;
  border: 1px solid #ece7df;
  border-radius: 10px;
  display: inline-flex !important;
  grid-column: 1;
  grid-row: 1;
  height: 48px;
  justify-content: center;
  margin: 0 !important;
  padding: 6px;
  width: 72px;
}

.shipping-options-popup.stella-ship-popup .payment-logo img {
  display: block !important;
  height: 28px !important;
  max-height: 28px !important;
  max-width: 56px !important;
  object-fit: contain;
  width: auto !important;
}

.shipping-options-popup.stella-ship-popup .payment-logo.stella-ship-logo--claim {
  background: #fff;
  padding: 8px 6px;
}

.shipping-options-popup.stella-ship-popup .payment-logo.stella-ship-logo--claim img {
  height: 22px !important;
  max-height: 22px !important;
  max-width: 58px !important;
}

.shipping-options-popup.stella-ship-popup .payment-logo.stella-ship-logo--voucher {
  background: #faf8f5;
}

.shipping-options-popup.stella-ship-popup .stella-ship-voucher {
  display: block;
}

.shipping-options-popup.stella-ship-popup .payment-logo.stella-ship-logo--empty {
  color: #8a8175;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
}

.shipping-options-popup.stella-ship-popup .payment-info {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.shipping-options-popup.stella-ship-popup .shipping-billing-name {
  color: #2a2a2a !important;
  font-family: Inter, sans-serif !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
  text-transform: none !important;
}

.shipping-options-popup.stella-ship-popup .stella-ship-meta {
  color: #8a8175;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.shipping-options-popup.stella-ship-popup .payment-shipping-price {
  color: #2a2a2a !important;
  font-family: Inter, sans-serif !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  grid-column: 3;
  grid-row: 1;
  letter-spacing: -0.01em;
  line-height: 1.2 !important;
  margin: 0 !important;
  text-align: right;
  white-space: nowrap;
}

.shipping-options-popup.stella-ship-popup .payment-shipping-price.for-free {
  background: #eef5ef;
  border-radius: 999px;
  color: #3f6b4a !important;
  padding: 5px 10px;
}

.shipping-options-popup.stella-ship-popup .extra.delivery {
  display: none !important;
}

.shipping-options-popup.stella-ship-popup #pricer {
  background: #eef5ef !important;
  border: 1px solid #d7e6da !important;
  border-radius: 12px !important;
  box-sizing: border-box;
  margin: 18px 0 0 !important;
  padding: 12px 14px !important;
}

.shipping-options-popup.stella-ship-popup #pricer .sptop {
  align-items: center;
  color: #2f5238 !important;
  display: flex !important;
  font-family: Inter, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  gap: 10px;
  line-height: 1.35 !important;
  margin: 0 !important;
  text-transform: none !important;
}

.shipping-options-popup.stella-ship-popup #pricer .sptop::before {
  align-items: center;
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233f6b4a' d='M3 6.5A1.5 1.5 0 0 1 4.5 5h9A1.5 1.5 0 0 1 15 6.5V8h2.2c.5 0 .96.24 1.25.65l2.2 3.1c.18.26.28.57.28.89V16a1.5 1.5 0 0 1-1.5 1.5h-.7a2.5 2.5 0 0 1-4.8 0H10.8a2.5 2.5 0 0 1-4.8 0H4.5A1.5 1.5 0 0 1 3 16V6.5Zm13.5 8.7a1.3 1.3 0 1 0 0 2.6 1.3 1.3 0 0 0 0-2.6Zm-9.5 0a1.3 1.3 0 1 0 0 2.6 1.3 1.3 0 0 0 0-2.6ZM15 11.5V9.5h2.05l1.7 2H15Z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  border: 1px solid #d7e6da;
  border-radius: 999px;
  content: "";
  display: inline-flex;
  flex: 0 0 auto;
  height: 32px;
  width: 32px;
}

.shipping-options-popup.stella-ship-popup #pricer.stella-ship-pricer .sptop::before {
  display: none;
}

.shipping-options-popup.stella-ship-popup #pricer .sptop strong {
  font-weight: 700 !important;
  text-transform: none !important;
}

.shipping-options-popup.stella-ship-popup .stella-ship-pricer__icon {
  align-items: center;
  background: #fff;
  border: 1px solid #d7e6da;
  border-radius: 999px;
  color: #3f6b4a;
  display: inline-flex;
  flex: 0 0 auto;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.shipping-options-popup.stella-ship-popup .stella-ship-pricer__truck {
  display: block;
}

.shipping-options-popup.stella-ship-popup #pricer .pbot {
  background: #dceadf !important;
  border-radius: 999px !important;
  height: 4px !important;
  margin-top: 10px !important;
  overflow: hidden !important;
  width: 100% !important;
}

.shipping-options-popup.stella-ship-popup #pricer .pbot[hidden],
.shipping-options-popup.stella-ship-popup #pricer.stella-ship-pricer--free .pbot,
.shipping-options-popup.stella-ship-popup #pricer .pbot:has(.prange[style*="100%"]) {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
}

.shipping-options-popup.stella-ship-popup #pricer .prange {
  background: #3f6b4a !important;
  border-radius: 999px !important;
  display: block !important;
  height: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 767px) {
  .type-detail a.shipping-options.stella-ship-trigger {
    margin-left: 0 !important;
    padding: 11px 12px;
  }

  .stella-ship-trigger__logos img:nth-child(n + 4) {
    display: none;
  }

  .shipping-options-popup.stella-ship-popup {
    padding: 22px 16px 18px;
  }

  .shipping-options-popup.stella-ship-popup h1 {
    font-size: 19px !important;
  }

  .shipping-options-popup.stella-ship-popup .shipping-row {
    column-gap: 10px;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    padding: 12px 0 !important;
  }

  .shipping-options-popup.stella-ship-popup .payment-logo {
    height: 42px;
    width: 56px;
  }

  .shipping-options-popup.stella-ship-popup .payment-logo img {
    height: 24px !important;
    max-height: 24px !important;
    max-width: 42px !important;
  }

  .shipping-options-popup.stella-ship-popup .payment-logo.stella-ship-logo--claim img {
    height: 18px !important;
    max-height: 18px !important;
    max-width: 44px !important;
  }

  .shipping-options-popup.stella-ship-popup .shipping-billing-name {
    font-size: 13px !important;
  }

  .shipping-options-popup.stella-ship-popup .payment-shipping-price {
    font-size: 13px !important;
  }
}
