/* Esitlus.ee — veebiesitluse lisamoodulid ja tellimuse kokkuvõte v4
   Staatiline HTML + CSS + JavaScript. Ei vaja sisuhaldust, andmebaasi ega serveripoolset arveloome loogikat. */
:root {
  --ee-bg: #f7f5ef;
  --ee-surface: #ffffff;
  --ee-ink: #172033;
  --ee-muted: #5f6f85;
  --ee-line: #e2e8f0;
  --ee-accent: #1f4f46;
  --ee-accent-soft: #e5eee9;
  --ee-accent-strong: #12352f;
  --ee-warm: #fff7ed;
  --ee-warm-line: #fed7aa;
  --ee-danger-soft: #fff1f2;
  --ee-danger-line: #fecdd3;
  --ee-radius: 22px;
  --ee-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --ee-max: 1120px;
  --ee-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body.ee-page {
  margin: 0;
  background: var(--ee-bg);
  color: var(--ee-ink);
  font-family: var(--ee-font);
}

.ee-addon-wrap,
.ee-order-wrap {
  width: min(var(--ee-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  font-family: var(--ee-font);
  color: var(--ee-ink);
}

.ee-addon-hero,
.ee-addon-section,
.ee-order-section {
  border-radius: var(--ee-radius);
  background: var(--ee-surface);
  box-shadow: var(--ee-shadow);
  border: 1px solid var(--ee-line);
}

.ee-addon-hero {
  display: grid;
  gap: 22px;
  padding: 42px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f1f7f4 100%);
  border-color: rgba(31, 79, 70, 0.12);
}

.ee-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ee-accent-soft);
  color: var(--ee-accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ee-addon-hero h1,
.ee-addon-section h2,
.ee-order-section h2,
.ee-addon-card h3,
.ee-addon-price-title,
.ee-order-card h3,
.ee-summary-card h3 {
  margin: 0;
  color: var(--ee-ink);
  letter-spacing: -0.035em;
}

.ee-addon-hero h1 {
  max-width: 920px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04;
}

.ee-addon-hero p,
.ee-addon-section p,
.ee-addon-card p,
.ee-addon-price-card p,
.ee-addon-note,
.ee-order-section p,
.ee-order-card p,
.ee-summary-card p,
.ee-mini-note {
  margin: 0;
  color: var(--ee-muted);
  line-height: 1.56;
}

.ee-addon-hero p {
  max-width: 900px;
  font-size: clamp(18px, 2.2vw, 22px);
}

.ee-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.ee-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ee-button:hover { transform: translateY(-1px); }

.ee-button-primary {
  background: var(--ee-accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(31, 79, 70, 0.22);
}

.ee-button-secondary {
  background: #fff;
  color: var(--ee-accent-strong);
  border: 1px solid rgba(31, 79, 70, 0.18);
}

.ee-addon-section,
.ee-order-section {
  padding: 42px;
}

.ee-section-header {
  display: grid;
  gap: 14px;
  max-width: 940px;
  margin-bottom: 28px;
}

.ee-section-header h2,
.ee-order-section h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.08;
}

.ee-section-header p { font-size: 18px; }

.ee-addon-grid,
.ee-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.ee-addon-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--ee-line);
  background: #fff;
  min-height: 100%;
}

.ee-addon-card h3 {
  font-size: 22px;
  line-height: 1.15;
}

.ee-addon-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--ee-muted);
}

.ee-addon-card li::marker { color: var(--ee-accent); }

.ee-price-pill {
  width: fit-content;
  margin-top: auto;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--ee-accent-soft);
  color: var(--ee-accent-strong);
  font-weight: 850;
}

.ee-addon-price-box {
  margin-top: 24px;
  padding: 24px;
  border-radius: 20px;
  background: var(--ee-warm);
  border: 1px solid var(--ee-warm-line);
}

.ee-addon-price-title {
  font-size: 24px;
  color: #7c2d12;
  margin-bottom: 8px;
}

.ee-addon-price-intro {
  margin: 0 0 18px !important;
  color: #7c2d12 !important;
}

.ee-addon-price-card {
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #fed7aa;
}

.ee-addon-price-card strong {
  display: block;
  color: var(--ee-ink);
  font-size: 17px;
  margin-bottom: 8px;
}

.ee-addon-price {
  display: block;
  margin-bottom: 8px;
  color: var(--ee-accent-strong);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.ee-addon-note,
.ee-order-note {
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--ee-line);
  font-size: 15px;
}

.ee-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.ee-flow-step {
  padding: 20px;
  border-radius: 18px;
  background: var(--ee-accent-soft);
  border: 1px solid rgba(31, 79, 70, 0.10);
}

.ee-flow-step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--ee-accent);
  color: #fff;
  font-size: 14px;
}

.ee-flow-step strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ee-accent-strong);
}

.ee-flow-step span {
  color: #47645d;
  font-size: 14px;
}

/* Tellimuse kokkuvõte */
.ee-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.ee-order-card,
.ee-summary-card {
  border: 1px solid var(--ee-line);
  border-radius: 20px;
  background: #fff;
  padding: 22px;
}

.ee-order-card h3,
.ee-summary-card h3 {
  font-size: 24px;
  line-height: 1.12;
  margin-bottom: 14px;
}

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

.ee-field {
  display: grid;
  gap: 6px;
}

.ee-field.ee-field-full { grid-column: 1 / -1; }

.ee-field label,
.ee-service-row label,
.ee-toggle-line label {
  color: var(--ee-ink);
  font-size: 14px;
  font-weight: 750;
}

.ee-field input,
.ee-field textarea,
.ee-service-row input[type="number"],
.ee-service-row input[type="text"] {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--ee-line);
  background: #fff;
  color: var(--ee-ink);
  font: inherit;
}

.ee-field textarea {
  min-height: 94px;
  resize: vertical;
}

.ee-service-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.ee-service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 118px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--ee-line);
  border-radius: 16px;
  background: #f8fafc;
}

.ee-service-main {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.ee-service-main input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ee-accent);
}

.ee-service-name {
  display: block;
  font-weight: 850;
  color: var(--ee-ink);
}

.ee-service-note {
  display: block;
  color: var(--ee-muted);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 3px;
}

.ee-small-label {
  display: block;
  margin-bottom: 4px;
  color: var(--ee-muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ee-vat-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--ee-accent-soft);
  border: 1px solid rgba(31, 79, 70, 0.12);
}

.ee-toggle-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ee-toggle-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ee-accent);
}

.ee-vat-rate-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ee-vat-rate-line input {
  width: 90px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(31, 79, 70, 0.18);
  border-radius: 10px;
  font: inherit;
}

.ee-summary-card {
  position: sticky;
  top: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.ee-total-box {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--ee-line);
  border-radius: 16px;
  background: #fff;
}

.ee-total-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ee-muted);
}

.ee-total-line strong {
  color: var(--ee-ink);
}

.ee-grand-total {
  padding-top: 8px;
  border-top: 1px solid var(--ee-line);
  font-size: 22px;
  font-weight: 900;
  color: var(--ee-accent-strong);
}

.ee-summary-output {
  width: 100%;
  min-height: 330px;
  padding: 14px;
  border: 1px solid var(--ee-line);
  border-radius: 16px;
  background: #fff;
  color: var(--ee-ink);
  font: 14px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  resize: vertical;
}

.ee-copy-status {
  min-height: 22px;
  margin-top: 10px;
  color: var(--ee-accent-strong);
  font-size: 14px;
  font-weight: 750;
}

.ee-disclaimer {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: var(--ee-danger-soft);
  border: 1px solid var(--ee-danger-line);
  color: #7f1d1d;
  font-size: 14px;
  line-height: 1.5;
}

.ee-disclaimer strong { color: #7f1d1d; }

@media (max-width: 980px) {
  .ee-addon-grid,
  .ee-price-grid,
  .ee-flow,
  .ee-order-layout { grid-template-columns: 1fr; }
  .ee-summary-card { position: static; }
}

@media (max-width: 720px) {
  .ee-addon-wrap,
  .ee-order-wrap {
    width: min(100% - 22px, var(--ee-max));
    padding: 24px 0;
  }

  .ee-addon-hero,
  .ee-addon-section,
  .ee-order-section { padding: 26px; }
  .ee-form-grid { grid-template-columns: 1fr; }
  .ee-service-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ee-button { transition: none; }
  .ee-button:hover { transform: none; }
}


/* Language switch */
.ee-lang-switch {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  width: min(var(--ee-max), calc(100% - 32px));
  margin: 18px auto -22px;
  font-family: var(--ee-font);
}
.ee-lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  color: var(--ee-accent-strong);
  background: #fff;
  border: 1px solid rgba(31, 79, 70, 0.16);
}
.ee-lang-switch a[aria-current="page"] {
  color: #fff;
  background: var(--ee-accent);
}

.ee-tax-status {
  color: var(--ee-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.ee-vat-box code {
  background: rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  padding: 1px 5px;
  font-size: 0.9em;
}

.ee-muted-inline{font-weight:500;color:#64748b;font-size:.92em;}
