/* EcoShea Stripe Checkout — luxury native UI layer v0.1.1 */

.ecoshea-stripe-shell,
.ecoshea-stripe-result {
  width: min(1080px, calc(100vw - 32px));
  margin: clamp(72px, 10vw, 132px) auto clamp(64px, 8vw, 112px);
  color: #24311e;
  isolation: isolate;
}

.ecoshea-stripe-shell__inner,
.ecoshea-stripe-result__card {
  position: relative;
  overflow: hidden;
  border-radius: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(196, 154, 74, 0.30);
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 214, 160, 0.24), transparent 46%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.94), rgba(255, 246, 231, 0.78));
  box-shadow:
    0 34px 96px rgba(23, 19, 13, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: clamp(28px, 5vw, 58px);
}

.ecoshea-stripe-shell__intro {
  max-width: 680px;
  margin: 0 auto clamp(24px, 4vw, 42px);
  text-align: center;
}

.ecoshea-stripe-shell__kicker {
  margin: 0 0 12px;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a77a30;
}

.ecoshea-stripe-shell__title,
.ecoshea-stripe-result__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.045em;
  color: #b88a3c;
  text-align: center;
  text-shadow: none;
}

.ecoshea-stripe-shell__lede,
.ecoshea-stripe-result__text {
  margin: 18px auto 0;
  max-width: 34em;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.65;
  color: rgba(36, 49, 30, 0.76);
  text-align: center;
}

.ecoshea-stripe-shell__status {
  min-height: 28px;
  margin: 0 auto 22px;
  text-align: center;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(36, 49, 30, 0.72);
  transition: opacity 260ms ease, transform 260ms ease;
}

.ecoshea-stripe-shell__status[data-status="error"] {
  display: block;
  width: min(560px, 100%);
  padding: 14px 18px;
  border: 1px solid rgba(167, 122, 48, 0.32);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.72);
  color: #765820;
}

.ecoshea-stripe-shell__status[data-status="ready"] {
  opacity: 0;
  height: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.ecoshea-embedded-checkout {
  width: 100%;
  min-height: 540px;
}

.ecoshea-stripe-shell__support {
  margin: 26px 0 0;
  text-align: center;
}

.ecoshea-stripe-shell__support a,
.ecoshea-stripe-result__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 20px;
  border: 1px solid rgba(167, 122, 48, 0.42);
  border-radius: 999px;
  background: transparent;
  color: #a77a30;
  text-decoration: none;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background 280ms ease, border-color 280ms ease, transform 280ms ease;
}

.ecoshea-stripe-shell__support a:hover,
.ecoshea-stripe-result__button:hover {
  background: rgba(244, 214, 160, 0.14);
  border-color: rgba(167, 122, 48, 0.72);
  transform: translateY(-1px);
}

.ecoshea-cart-bag-has-pending {
  cursor: pointer;
}

.ecoshea-cart-bag-has-pending svg {
  opacity: 1;
}

.ecoshea-product-carousel img,
.ecoshea-stripe-shell img,
.ecoshea-stripe-result img {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

html.ecoshea-js .ecoshea-stripe-shell,
html.ecoshea-js .ecoshea-stripe-result {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

body.ecoshea-ready .ecoshea-stripe-shell,
body.ecoshea-ready .ecoshea-stripe-result,
html:not(.ecoshea-js) .ecoshea-stripe-shell,
html:not(.ecoshea-js) .ecoshea-stripe-result {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity .78s cubic-bezier(.2,.7,.2,1), transform .78s cubic-bezier(.2,.7,.2,1);
}

@media (max-width: 720px) {
  .ecoshea-stripe-shell,
  .ecoshea-stripe-result {
    width: min(100%, calc(100vw - 22px));
    margin-top: 52px;
  }

  .ecoshea-stripe-shell__inner,
  .ecoshea-stripe-result__card {
    padding: 26px 16px;
    border-radius: 28px;
  }

  .ecoshea-embedded-checkout {
    min-height: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecoshea-stripe-shell,
  .ecoshea-stripe-result,
  .ecoshea-stripe-shell__support a,
  .ecoshea-stripe-result__button {
    transition: none !important;
    transform: none !important;
  }
}


/* v0.1.1: checkout-page product, CH/EU and quantity controls */
.ecoshea-checkout-config[hidden] {
  display: none !important;
}

.ecoshea-checkout-config {
  width: min(680px, 100%);
  margin: clamp(18px, 3vw, 32px) auto clamp(18px, 3vw, 28px);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(196, 154, 74, 0.24);
  border-radius: clamp(24px, 3vw, 34px);
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 214, 160, 0.16), transparent 52%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.42), rgba(255, 246, 231, 0.20));
  box-shadow:
    0 18px 58px rgba(23, 19, 13, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-align: center;
}

.ecoshea-checkout-config__label {
  margin: 0 0 8px;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(167, 122, 48, 0.78);
}

.ecoshea-checkout-config__product {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: #b88a3c;
  text-shadow: none;
}

.ecoshea-checkout-config__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(36, 49, 30, 0.72);
}

.ecoshea-checkout-config__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: clamp(18px, 3vw, 26px);
}

.ecoshea-checkout-config__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid rgba(196, 154, 74, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.22);
}

.ecoshea-checkout-config__control-label {
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(118, 88, 32, 0.70);
}

.ecoshea-checkout-config__pill,
.ecoshea-checkout-config__qty {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #a77a30;
  cursor: pointer;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.10em;
  padding: 7px 8px;
  transition: background 240ms ease, color 240ms ease, transform 240ms ease;
}

.ecoshea-checkout-config__pill.is-active {
  background: rgba(244, 214, 160, 0.22);
  color: #24311e;
}

.ecoshea-checkout-config__pill:hover,
.ecoshea-checkout-config__qty:hover {
  background: rgba(244, 214, 160, 0.16);
  transform: translateY(-1px);
}

.ecoshea-checkout-config__divider,
.ecoshea-checkout-config__qty-value {
  min-width: 14px;
  color: rgba(167, 122, 48, 0.56);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.ecoshea-checkout-config__qty {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(167, 122, 48, 0.20);
}

.ecoshea-checkout-config__hint {
  max-width: 36em;
  margin: 14px auto 0;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(36, 49, 30, 0.58);
}

.ecoshea-checkout-config__button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 18px;
  padding: 12px 22px;
  border: 1px solid rgba(167, 122, 48, 0.44);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.18);
  color: #a77a30;
  cursor: pointer;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background 280ms ease, border-color 280ms ease, transform 280ms ease;
}

.ecoshea-checkout-config__button:hover {
  background: rgba(244, 214, 160, 0.14);
  border-color: rgba(167, 122, 48, 0.72);
  transform: translateY(-1px);
}

.ecoshea-stripe-shell.is-checkout-mounted .ecoshea-checkout-config,
.ecoshea-stripe-shell.is-preparing-checkout .ecoshea-checkout-config {
  opacity: 0;
  max-height: 0;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, max-height 300ms ease, margin 300ms ease, padding 300ms ease;
}

.ecoshea-stripe-shell__status[data-status="idle"] {
  opacity: 0;
  height: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

@media (max-width: 720px) {
  .ecoshea-checkout-config {
    padding: 18px 14px;
    border-radius: 26px;
  }

  .ecoshea-checkout-config__controls {
    gap: 10px;
  }

  .ecoshea-checkout-config__control {
    width: 100%;
    max-width: 320px;
  }
}
