/* ════════════════════════════════════════════════════════════
   Tiskarski Kalkulator — Frontend Styles  v1.2
   ════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  --tk-bg:          #F7F5F2;
  --tk-surface:     #FFFFFF;
  --tk-surface-alt: #F0EDE8;
  --tk-border:      #E2DDD7;
  --tk-accent:      #1A1A2E;
  --tk-accent-2:    #E8472A;
  --tk-text:        #1A1A2E;
  --tk-text-muted:  #7C7870;
  --tk-green:       #1E6A45;
  --tk-green-bg:    #E8F5EE;
  --tk-radius:      12px;
  --tk-radius-sm:   8px;
  --tk-shadow:      0 2px 12px rgba(26,26,46,.08);
  --tk-shadow-lg:   0 8px 40px rgba(26,26,46,.14);
  --tk-font:        'DM Sans', sans-serif;
  --tk-mono:        'DM Mono', monospace;
  --tk-transition:  0.2s cubic-bezier(.4,0,.2,1);
}

/* ── Wrapper ─────────────────────────────────────────────────── */
.tk-wrap {
  font-family: var(--tk-font);
  color: var(--tk-text);
  background: var(--tk-bg);
  border-radius: 16px;
  /* No overflow:hidden — that clips the result panel on small screens */
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  box-shadow: var(--tk-shadow-lg);
}

/* ── Tabs ────────────────────────────────────────────────────── */
.tk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  background: var(--tk-accent);
  padding: 6px 8px;
  border-radius: 16px 16px 0 0;
  box-sizing: border-box;
  width: 100%;
}

.tk-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: none;
  border-radius: var(--tk-radius-sm);
  color: rgba(255,255,255,.55);
  font-family: var(--tk-font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--tk-transition), color var(--tk-transition);
  letter-spacing: .01em;
  white-space: nowrap;
}

.tk-tab:hover {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
}

.tk-tab--active {
  background: var(--tk-accent-2) !important;
  color: #fff !important;
}

.tk-tab__icon { font-size: 15px; line-height: 1; }

/* ── Main panel — stacks vertically by default, side-by-side on wide screens */
.tk-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

/* Config area: options + qty side by side, wraps on narrow */
.tk-panel__config {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

/* ── Options column ──────────────────────────────────────────── */
.tk-options {
  flex: 0 0 220px;
  min-width: 180px;
  padding: 24px 20px;
  background: var(--tk-surface);
  border-right: 1px solid var(--tk-border);
  border-bottom: 1px solid var(--tk-border);
  box-sizing: border-box;
}

.tk-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tk-text-muted);
  margin: 0 0 16px;
}

.tk-field-group { margin-bottom: 12px; }

.tk-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--tk-text-muted);
  margin-bottom: 4px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.tk-select-wrap { position: relative; }

.tk-select,
.tk-input {
  width: 100%;
  padding: 8px 10px;
  background: var(--tk-surface-alt);
  border: 1.5px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  font-family: var(--tk-font);
  font-size: 13px;
  color: var(--tk-text);
  outline: none;
  transition: border-color var(--tk-transition), box-shadow var(--tk-transition);
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.tk-select { cursor: pointer; }

.tk-select-wrap::after {
  content: '';
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--tk-text-muted);
  pointer-events: none;
}

.tk-select:focus,
.tk-input:focus {
  border-color: var(--tk-accent);
  box-shadow: 0 0 0 3px rgba(26,26,46,.1);
}

/* ── Dimensions ──────────────────────────────────────────────── */
.tk-dims {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--tk-border);
}

.tk-dims__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tk-text-muted);
  margin: 0 0 10px;
}

.tk-dims__row {
  display: grid;
  grid-template-columns: 1fr 18px 1fr;
  align-items: end;
  gap: 4px;
}

.tk-dims__x {
  text-align: center;
  padding-bottom: 8px;
  color: var(--tk-text-muted);
  font-weight: 600;
}

.tk-dims__info { margin-top: 10px; }

.tk-dims__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--tk-green-bg);
  color: var(--tk-green);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── Quantity panel ──────────────────────────────────────────── */
.tk-qty-panel {
  flex: 1 1 300px;
  padding: 24px 20px;
  background: var(--tk-surface);
  border-bottom: 1px solid var(--tk-border);
  box-sizing: border-box;
  min-width: 0; /* prevent flex blowout */
}

.tk-qty-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tk-qty-btn {
  min-width: 64px;
  padding: 9px 12px;
  background: var(--tk-surface-alt);
  border: 1.5px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  font-family: var(--tk-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--tk-text);
  cursor: pointer;
  transition: all var(--tk-transition);
  text-align: center;
  line-height: 1.2;
  box-sizing: border-box;
}

.tk-qty-btn .tk-qty-btn__price {
  display: block;
  font-family: var(--tk-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--tk-text-muted);
  margin-top: 2px;
}

.tk-qty-btn:hover {
  border-color: var(--tk-accent);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--tk-shadow);
}

.tk-qty-btn--active {
  background: var(--tk-accent) !important;
  border-color: var(--tk-accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(26,26,46,.25) !important;
  transform: translateY(-2px) !important;
}

.tk-qty-btn--active .tk-qty-btn__price {
  color: rgba(255,255,255,.65) !important;
}

/* ── Result panel ────────────────────────────────────────────── */
.tk-result {
  background: var(--tk-accent);
  padding: 28px 24px;
  box-sizing: border-box;
  width: 100%;
}

.tk-result__inner { color: #fff; }

.tk-result__qty-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 4px;
}

.tk-result__qty {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 20px;
  color: #fff;
}

.tk-result__price-block {
  background: rgba(255,255,255,.07);
  border-radius: var(--tk-radius);
  padding: 16px;
  margin-bottom: 16px;
}

.tk-result__unit-label,
.tk-result__total-label,
.tk-result__vat-label,
.tk-result__final-label {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.tk-result__unit-price,
.tk-result__total-price,
.tk-result__vat-price {
  font-family: var(--tk-mono);
  font-size: 18px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  margin-bottom: 10px;
  word-break: break-all;
}

.tk-result__final-label {
  color: rgba(255,255,255,.65);
  margin-top: 6px;
}

.tk-result__final-price {
  font-family: var(--tk-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--tk-accent-2);
  letter-spacing: -.02em;
  word-break: break-all;
}

/* ── Breakdown ───────────────────────────────────────────────── */
.tk-result__breakdown { margin-bottom: 20px; }

.tk-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 4px 0;
  color: rgba(255,255,255,.5);
  border-bottom: 1px solid rgba(255,255,255,.06);
  gap: 8px;
}

.tk-breakdown-row:last-child { border-bottom: none; }

.tk-breakdown-row span:last-child {
  font-family: var(--tk-mono);
  color: rgba(255,255,255,.7);
  white-space: nowrap;
}

/* ── Order button ────────────────────────────────────────────── */
.tk-btn-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  background: var(--tk-accent-2);
  color: #fff;
  font-family: var(--tk-font);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--tk-radius-sm);
  text-decoration: none;
  letter-spacing: .02em;
  transition: all var(--tk-transition);
  box-shadow: 0 4px 20px rgba(232,71,42,.35);
  box-sizing: border-box;
}

.tk-btn-order:hover {
  background: #cf3a1f;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,71,42,.45);
  color: #fff;
  text-decoration: none;
}

.tk-btn-order:visited { color: #fff; }

.tk-btn-order.tk-btn-order--disabled {
  opacity: .4;
  pointer-events: none;
}

/* ── Wide layout: result sits to the right ───────────────────── */
@media (min-width: 780px) {
  .tk-panel {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .tk-panel__config {
    flex: 1 1 0;
    min-width: 0;
    flex-wrap: nowrap;
    border-right: 1px solid var(--tk-border);
  }

  .tk-options {
    border-bottom: none;
  }

  .tk-qty-panel {
    border-bottom: none;
  }

  .tk-result {
    flex: 0 0 300px;
    width: 300px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ── Medium: options stacks on top of qty grid ───────────────── */
@media (max-width: 779px) {
  .tk-panel__config {
    flex-direction: column;
  }
  .tk-options {
    flex: none;
    width: 100%;
    border-right: none;
  }
  .tk-qty-panel {
    flex: none;
    width: 100%;
  }
}

/* ── Small: simplify tabs ────────────────────────────────────── */
@media (max-width: 500px) {
  .tk-tab__label { display: none; }
  .tk-tab { padding: 8px 10px; }
  .tk-tab__icon { font-size: 18px; }
  .tk-result__final-price { font-size: 22px; }
}

/* ── Loading state ───────────────────────────────────────────── */
.tk-qty-btn--loading { opacity: .5; pointer-events: none; }

.tk-result--empty .tk-result__qty,
.tk-result--empty .tk-result__unit-price,
.tk-result--empty .tk-result__total-price,
.tk-result--empty .tk-result__vat-price,
.tk-result--empty .tk-result__final-price {
  color: rgba(255,255,255,.25);
}

/* ════════════════════════════════════════════════════════════
   WooCommerce single-product layout
   ════════════════════════════════════════════════════════════ */

.tk-wc-wrap {
  border-radius: 12px;
  margin-bottom: 24px;
}

/* Config row: options left, qty+result right */
.tk-wc-config {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.tk-wc-options {
  flex: 0 0 210px;
  min-width: 180px;
  border-right: 1px solid var(--tk-border);
  border-bottom: none;
}

.tk-wc-right {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
}

.tk-wc-qty-panel {
  flex: 1 1 260px;
  min-width: 0;
  border-right: 1px solid var(--tk-border);
}

.tk-wc-result {
  flex: 0 0 260px;
  min-width: 220px;
  border-radius: 0 0 12px 0;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
}

.tk-wc-result .tk-result__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Empty state inside result */
.tk-wc-result-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  color: rgba(255,255,255,.35);
  font-size: 13px;
  height: 100%;
  min-height: 180px;
  flex: 1;
}

.tk-wc-result-empty svg {
  opacity: .3;
  margin-bottom: 12px;
}

.tk-wc-result-empty p {
  margin: 0;
  line-height: 1.6;
}

/* Feedback after add-to-cart */
.tk-wc-feedback {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--tk-radius-sm);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.tk-wc-feedback--ok {
  background: rgba(30,106,69,.25);
  color: #6ee7b7;
  border: 1px solid rgba(110,231,183,.2);
}

.tk-wc-feedback--ok a {
  color: #6ee7b7;
  text-decoration: underline;
}

.tk-wc-feedback--err {
  background: rgba(232,71,42,.2);
  color: #fca5a5;
  border: 1px solid rgba(232,71,42,.3);
}

/* Archive price badge */
.tk-archive-price {
  font-size: 13px;
  color: var(--tk-text-muted, #666);
  margin-top: 4px;
}

/* Responsive WC */
@media (max-width: 680px) {
  .tk-wc-options {
    flex: 1 1 100%;
    border-right: none;
    border-bottom: 1px solid var(--tk-border);
  }
  .tk-wc-right    { flex: 1 1 100%; }
  .tk-wc-qty-panel{ border-right: none; }
  .tk-wc-result   {
    flex: 1 1 100%;
    border-radius: 0 0 12px 12px;
  }
}

/* ════════════════════════════════════════════════════════════
   Layout variants: horizontal (default) vs vertical
   ════════════════════════════════════════════════════════════ */

/* ── HORIZONTAL (default) — already handled by tk-wc-config flex ── */
.tk-wc-horizontal .tk-wc-config {
  flex-direction: row;
}

/* ── VERTICAL — all sections stack top→bottom ─────────────── */
.tk-wc-vertical .tk-wc-config {
  flex-direction: column;
}

.tk-wc-vertical .tk-wc-options {
  flex: none;
  width: 100%;
  border-right: none;
  border-bottom: 1px solid var(--tk-border);
  /* Horizontal row of fields inside options */
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  align-items: flex-start;
}

.tk-wc-vertical .tk-wc-options .tk-section-title {
  width: 100%;
  flex: 0 0 100%;
}

.tk-wc-vertical .tk-wc-options .tk-field-group {
  flex: 1 1 140px;
  min-width: 120px;
}

.tk-wc-vertical .tk-wc-options .tk-dims {
  flex: 0 0 100%;
  width: 100%;
  border-top: 1px solid var(--tk-border);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
}

.tk-wc-vertical .tk-wc-options .tk-dims__title {
  flex: 0 0 100%;
}

.tk-wc-vertical .tk-wc-options .tk-dims__row {
  flex: 0 0 auto;
}

.tk-wc-vertical .tk-wc-options .tk-dims__info {
  flex: 1 1 auto;
  margin-top: 0;
}

/* Quantity panel full-width */
.tk-wc-vertical .tk-wc-right {
  flex-direction: column;
}

.tk-wc-vertical .tk-wc-qty-panel {
  flex: none;
  width: 100%;
  border-right: none;
  border-bottom: 1px solid var(--tk-border);
}

/* Result full-width at bottom */
.tk-wc-vertical .tk-wc-result {
  flex: none;
  width: 100%;
  border-radius: 0 0 12px 12px;
  /* In vertical mode, result uses 2-col grid for the price details */
  display: block;
}

.tk-wc-vertical .tk-result__price-block {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 16px;
  align-items: baseline;
}

.tk-wc-vertical .tk-result__unit-label,
.tk-wc-vertical .tk-result__total-label,
.tk-wc-vertical .tk-result__vat-label,
.tk-wc-vertical .tk-result__final-label {
  /* Labels sit above their price in each column */
}

.tk-wc-vertical .tk-result__unit-price,
.tk-wc-vertical .tk-result__total-price,
.tk-wc-vertical .tk-result__vat-price {
  margin-bottom: 0;
}

.tk-wc-vertical .tk-result__final-price {
  font-size: 24px;
}

.tk-wc-vertical .tk-result__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  align-items: flex-start;
}

.tk-wc-vertical .tk-result__qty-label,
.tk-wc-vertical .tk-result__qty {
  flex: 0 0 100%;
}

.tk-wc-vertical .tk-result__price-block {
  flex: 1 1 400px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.tk-wc-vertical .tk-result__breakdown {
  flex: 0 0 100%;
}

.tk-wc-vertical .tk-btn-order {
  flex: 0 0 200px;
  align-self: center;
  margin-top: 0;
}

/* ── Large quantity buttons (WC product page) ────────────── */
.tk-qty-grid--large .tk-qty-btn {
  min-width: 90px;
  padding: 12px 16px;
  font-size: 14px;
}

.tk-qty-grid--large .tk-qty-btn .tk-qty-btn__price {
  font-size: 11px;
  margin-top: 4px;
}

/* ── After-description position ───────────────────────────── */
.tk-after-description {
  margin-top: 40px;
  margin-bottom: 24px;
  clear: both;
}

.tk-after-description .tk-wc-wrap {
  max-width: 100%;
}

/* Collapse vertical price grid on mobile */
@media (max-width: 600px) {
  .tk-wc-vertical .tk-result__price-block {
    grid-template-columns: 1fr 1fr;
  }
  .tk-wc-vertical .tk-btn-order {
    flex: 0 0 100%;
    margin-top: 16px;
  }
}

/* ════════════════════════════════════════════════════════════
   Demago-style calculator  v1.4
   ════════════════════════════════════════════════════════════ */

/* ── Outer wrapper ───────────────────────────────────────── */
.tk-calc {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-family: var(--tk-font);
  color: var(--tk-text);
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--tk-shadow);
  width: 100%;
  box-sizing: border-box;
}

/* ── Options (left) ──────────────────────────────────────── */
.tk-calc__options {
  flex: 1 1 360px;
  min-width: 0;
  padding: 0;
  border-right: 1px solid var(--tk-border);
  box-sizing: border-box;
}

/* ── Option section ──────────────────────────────────────── */
.tk-opt-section {
  padding: 18px 24px;
  border-bottom: 1px solid var(--tk-border);
}

.tk-opt-section:last-child { border-bottom: none; }

.tk-opt-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tk-opt-section__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tk-text-muted);
}

.tk-opt-selected {
  font-size: 13px;
  font-weight: 600;
  color: var(--tk-accent);
  background: var(--tk-surface-alt);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--tk-border);
}

/* ── Chip group ──────────────────────────────────────────── */
.tk-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tk-chip {
  padding: 7px 14px;
  background: var(--tk-surface-alt);
  border: 1.5px solid var(--tk-border);
  border-radius: 8px;
  font-family: var(--tk-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--tk-text);
  cursor: pointer;
  transition: all var(--tk-transition);
  white-space: nowrap;
  line-height: 1.3;
}

.tk-chip:hover {
  border-color: var(--tk-accent);
  background: #fff;
  color: var(--tk-accent);
}

.tk-chip--active {
  background: var(--tk-accent) !important;
  border-color: var(--tk-accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
}

/* ── Quantity chips ──────────────────────────────────────── */
.tk-qty-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tk-qty-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 76px;
  padding: 10px 12px;
  background: var(--tk-surface-alt);
  border: 1.5px solid var(--tk-border);
  border-radius: 10px;
  font-family: var(--tk-font);
  cursor: pointer;
  transition: all var(--tk-transition);
  text-align: center;
  gap: 3px;
}

.tk-qty-chip__n {
  font-size: 15px;
  font-weight: 700;
  color: var(--tk-text);
  line-height: 1;
}

.tk-qty-chip__price {
  font-size: 10px;
  font-family: var(--tk-mono);
  color: var(--tk-text-muted);
  font-weight: 400;
  white-space: nowrap;
}

.tk-qty-chip:hover {
  border-color: var(--tk-accent);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--tk-shadow);
}

.tk-qty-chip--active {
  background: var(--tk-accent) !important;
  border-color: var(--tk-accent) !important;
  box-shadow: 0 4px 16px rgba(26,26,46,.22) !important;
  transform: translateY(-2px) !important;
}

.tk-qty-chip--active .tk-qty-chip__n {
  color: #fff !important;
}

.tk-qty-chip--active .tk-qty-chip__price {
  color: rgba(255,255,255,.6) !important;
}

/* ── Summary (right) ─────────────────────────────────────── */
.tk-calc__summary {
  flex: 0 0 280px;
  min-width: 240px;
  background: var(--tk-accent);
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  box-sizing: border-box;
}

/* Empty state — centered */
.tk-summary-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,.3);
  gap: 12px;
}

.tk-summary-empty svg { opacity: .25; }

.tk-summary-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.35);
}

/* Price content */
.tk-summary-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  color: #fff;
}

.tk-summary__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 4px;
}

.tk-summary__price {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -.02em;
  font-family: var(--tk-mono);
}

/* Breakdown rows */
.tk-summary__breakdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
  background: rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 14px;
}

.tk-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 4px 0;
  color: rgba(255,255,255,.55);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.tk-summary__row:last-child { border-bottom: none; }

.tk-summary__row span:last-child {
  font-family: var(--tk-mono);
  font-weight: 500;
  color: rgba(255,255,255,.8);
}

.tk-summary__row--unit {
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,.1) !important;
}

.tk-summary__row--unit span:last-child {
  font-size: 14px;
  color: var(--tk-accent-2);
  font-weight: 700;
}

/* Detail breakdown (optional) */
.tk-summary__detail {
  margin-bottom: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 12px;
}

.tk-summary__detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,.4);
  padding: 2px 0;
}

.tk-summary__detail-row span:last-child {
  font-family: var(--tk-mono);
  color: rgba(255,255,255,.55);
}

/* Add to cart button */
.tk-summary__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  background: var(--tk-accent-2);
  color: #fff;
  font-family: var(--tk-font);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--tk-transition);
  box-shadow: 0 4px 20px rgba(232,71,42,.4);
  letter-spacing: .01em;
  margin-top: auto;
}

.tk-summary__btn:hover {
  background: #cf3a1f;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,71,42,.5);
}

.tk-summary__btn:disabled {
  opacity: .5;
  transform: none;
  cursor: default;
}

/* Feedback */
.tk-summary__feedback {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.tk-summary__feedback--ok {
  background: rgba(30,106,69,.3);
  color: #6ee7b7;
}

.tk-summary__feedback--ok a { color: #6ee7b7; text-decoration: underline; }

.tk-summary__feedback--err {
  background: rgba(232,71,42,.2);
  color: #fca5a5;
}

/* ── Vertical layout ─────────────────────────────────────── */
.tk-wc-vertical .tk-calc__options { flex: none; width: 100%; border-right: none; border-bottom: 1px solid var(--tk-border); }
.tk-wc-vertical .tk-calc__summary { flex: none; width: 100%; min-width: 0; flex-direction: row; flex-wrap: wrap; gap: 16px; align-items: flex-start; padding: 20px 24px; border-radius: 0 0 16px 16px; }
.tk-wc-vertical .tk-summary-content { flex-direction: row; flex-wrap: wrap; gap: 16px; flex: 1; }
.tk-wc-vertical .tk-summary__price { font-size: 28px; margin-bottom: 0; }
.tk-wc-vertical .tk-summary__breakdown { flex: 1 1 300px; margin-bottom: 0; }
.tk-wc-vertical .tk-summary__btn { flex: 0 0 200px; margin-top: 0; align-self: flex-end; }
.tk-wc-vertical .tk-summary-empty { min-height: 80px; flex-direction: row; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 720px) {
  .tk-calc { flex-direction: column; }
  .tk-calc__options { border-right: none; border-bottom: 1px solid var(--tk-border); }
  .tk-calc__summary { flex: none; width: 100%; border-radius: 0 0 16px 16px; }
  .tk-opt-section { padding: 14px 16px; }
  .tk-summary__price { font-size: 30px; }
}

/* ── Archive price badge ─────────────────────────────────── */
.tk-archive-price {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}
