/* NiceAwe checkout — chrome aligned to LDY niceawe.de (not LoomGum checkout-v3) */
:root {
  --na-green: #15855c;
  --na-green-dark: #0f6b49;
  --na-ink: #1a1a1a;
  --na-muted: #5c5c5c;
  --na-line: #e6e6e6;
  --na-bg: #ffffff;
  --na-soft: #f7f8f7;
  --na-sale: #e11d48;
  --na-radius: 8px;
  --na-max: 1100px;
  --na-font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--na-ink);
  font-family: var(--na-font);
  background: var(--na-bg);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--na-green); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }

/* —— Top notice (LDY .head-notice) —— */
.na-head-notice {
  background: var(--na-green);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  letter-spacing: .01em;
}
.na-head-notice a { color: #fff; text-decoration: none; }

/* —— Header —— */
.na-header {
  border-bottom: 1px solid var(--na-line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}
.na-header__inner {
  width: min(100% - 1.5rem, var(--na-max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 8px 0;
}
.na-header__icon {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--na-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  padding: 0;
}
.na-header__icon svg { width: 22px; height: 22px; }
.na-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.na-logo img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.na-header__ops {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 84px;
  justify-content: flex-end;
}

/* —— Layout —— */
.na-main {
  width: min(100% - 1.5rem, var(--na-max));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}
.na-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .na-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* —— Gallery —— */
.na-gallery__main {
  border-radius: 4px;
  overflow: hidden;
  background: var(--na-soft);
  aspect-ratio: 1;
}
.na-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.na-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.na-thumbs button {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  background: var(--na-soft);
  cursor: pointer;
}
.na-thumbs button.is-active { border-color: var(--na-green); }
.na-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* —— Product summary —— */
.na-title {
  margin: 0 0 .65rem;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1.3;
}
.na-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .55rem .85rem;
  margin: 0 0 1.1rem;
}
.na-price {
  color: var(--na-sale);
  font-size: 1.45rem;
  font-weight: 800;
}
.na-compare {
  color: #8a8a8a;
  text-decoration: line-through;
  font-size: 1rem;
}
.na-field-label {
  font-size: 14px;
  margin: 0 0 .45rem;
  color: var(--na-ink);
}
.na-field-label b { font-weight: 700; }
.na-field-label .na-val { color: var(--na-muted); font-weight: 500; }

.na-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
}
.na-pills button {
  border: 1px solid #cfcfcf;
  background: #fff;
  color: var(--na-ink);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.na-pills button.is-active,
.na-pills button[aria-pressed="true"] {
  border-color: var(--na-green);
  background: var(--na-green);
  color: #fff;
  font-weight: 600;
}

.na-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.1rem;
}
.na-qty button {
  width: 40px;
  height: 40px;
  border: 0;
  background: #f3f3f3;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--na-ink);
}
.na-qty button:disabled { opacity: .4; cursor: default; }
.na-qty input {
  width: 48px;
  height: 40px;
  border: 0;
  border-left: 1px solid #cfcfcf;
  border-right: 1px solid #cfcfcf;
  text-align: center;
  background: #fff;
}

.na-pack {
  display: grid;
  gap: 8px;
  margin: 0 0 1.25rem;
}
.na-pack__opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 2px solid #ddd;
  border-radius: var(--na-radius);
  padding: .75rem 1rem;
  cursor: pointer;
  background: #fff;
}
.na-pack__opt.selected {
  border-color: var(--na-green);
  background: #f0faf5;
}
.na-pack__opt .pkg-title { font-weight: 700; font-size: 14px; }
.na-pack__opt .pkg-save { color: var(--na-green); font-size: 13px; }
.na-pack__opt .pkg-price { text-align: right; font-weight: 700; }
.na-pack__opt .pkg-was {
  display: block;
  text-decoration: line-through;
  color: #999;
  font-weight: 500;
  font-size: 12px;
}

/* —— Express + form —— */
.na-express { margin: 0 0 1rem; }
.na-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.25rem 0 .75rem;
  padding-top: .5rem;
  border-top: 1px solid var(--na-line);
}
.na-section-title:first-of-type { border-top: 0; padding-top: 0; }

.na-form .frm-flds {
  margin: 0 0 .75rem;
  position: relative;
}
.na-form .frm-flds label.fl-label,
.na-form .frm-flds > label:not(.fieldToggle) {
  display: block;
  font-size: 12px;
  color: var(--na-muted);
  margin-bottom: 4px;
}
.na-form input.form-control,
.na-form select.form-select,
.na-form select.form-control,
.na-form .input-flds {
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  padding: .7rem .85rem;
  background: #fff;
  color: var(--na-ink);
}
.na-form input.form-control:focus,
.na-form select:focus {
  outline: 2px solid rgba(21, 133, 92, .35);
  border-color: var(--na-green);
}
.na-form .frm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
@media (max-width: 520px) {
  .na-form .frm-row { grid-template-columns: 1fr; }
}

.phone-wrapper {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.flag-select {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  padding: 0 .65rem;
  min-width: 92px;
  cursor: pointer;
  background: #fff;
  flex: 0 0 auto;
}
.flag-select .flag-icon img { width: 22px; height: auto; }
.flag-dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 50;
  width: 260px;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--na-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.flag-dropdown.open { display: block; }
.phone-wrapper input { flex: 1; }

.fieldToggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: .5rem 0 1rem;
  cursor: pointer;
  font-size: 14px;
}
.billing-info { margin-bottom: 1rem; }

.payoptbox { margin: .5rem 0 1rem; }
.paymybtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--na-line);
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: .65rem;
  background: var(--na-soft);
  font-weight: 600;
}
.card-inline-error {
  display: none;
  clear: both;
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0 6px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdecea;
  color: #b00020;
  border: 1px solid #f5c2c0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.card-inline-error:not(:empty) { display: block; }

.na-form label.error,
.na-form .error:not(input):not(select) {
  display: block;
  color: #c00;
  font-size: 12px;
  margin-top: 4px;
}

.na-summary {
  background: var(--na-soft);
  border: 1px solid var(--na-line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}
.na-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  margin: .35rem 0;
}
.na-summary__row.total {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--na-line);
  font-weight: 800;
  font-size: 1.05rem;
}
.na-summary__note { font-size: 12px; color: var(--na-muted); margin: .5rem 0 0; }

.termSec { margin-top: 1rem; }
.termSec p { font-size: 12px; color: var(--na-muted); margin: 0 0 .85rem; }
.complete-btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--na-green);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.complete-btn:hover { background: var(--na-green-dark); }
.complete-btn:active { transform: translateY(1px); }

.na-trust {
  margin-top: 1rem;
  font-size: 12px;
  color: var(--na-muted);
  text-align: center;
}

.na-footer {
  border-top: 1px solid var(--na-line);
  padding: 1.25rem 0 2rem;
  text-align: center;
  font-size: 12px;
  color: var(--na-muted);
}
.na-footer a { margin: 0 .4rem; color: var(--na-muted); }
.na-footer a:hover { color: var(--na-green); }

/* Loading overlay */
#custom-loading-indicator {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: none;
  background: rgba(0,0,0,.45);
  align-items: center;
  justify-content: center;
}
#custom-loading-indicator.is-visible { display: flex; }
#custom-loading-indicator .box {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  color: var(--na-ink);
}

/* Mobile sticky CTA */
.mobile-sticky-checkout,
.mobile-sticky-checkout-spacer { display: none; }
@media (max-width: 767px) {
  .mobile-sticky-checkout-spacer {
    display: block;
    height: calc(88px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-sticky-checkout {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 99980;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.97);
    box-shadow: 0 -4px 16px rgba(0,0,0,.12);
  }
  .mobile-sticky-checkout .complete-btn { width: 100%; margin: 0; }
}
