/* Kitchy Christmas calculators: shared styles. Scoped to .kc-tool so the theme is untouched. */
.kc-tool {
  --kc-red: #e42340;
  --kc-red-dark: #b8152e;
  --kc-teal: #63c9c7;
  --kc-teal-soft: #e8f7f7;
  --kc-ink: #222;
  --kc-muted: #5f6368;
  --kc-line: #dfe3e6;
  --kc-paper: #fff;
  --kc-cream: #fdf8f3;
  color: var(--kc-ink);
  font-size: 17px;
  line-height: 1.55;
}
.kc-tool *, .kc-tool *::before, .kc-tool *::after { box-sizing: border-box; }
.kc-tool .kc-test-banner {
  background: #fff4d6; border: 1px dashed #d9a400; color: #6b5200;
  padding: 8px 12px; border-radius: 8px; font-size: 14px; margin: 0 0 18px;
}
.kc-tool .kc-intro { font-size: 18px; margin: 0 0 20px; }
.kc-tool .kc-card {
  background: var(--kc-paper); border: 1px solid var(--kc-line); border-radius: 14px;
  padding: 20px; margin: 0 0 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.kc-tool .kc-card h2, .kc-tool .kc-card h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.3; }
.kc-tool .kc-card > h2::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--kc-red); margin-right: 10px; vertical-align: middle; position: relative; top: -2px;
}
.kc-tool .kc-grid { display: grid; gap: 14px 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kc-tool label.kc-field { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 15px; }
.kc-tool label.kc-field small { font-weight: 400; color: var(--kc-muted); font-size: 13px; }
.kc-tool input[type="number"], .kc-tool input[type="text"], .kc-tool input[type="date"],
.kc-tool input[type="time"], .kc-tool select {
  width: 100%; font: inherit; font-size: 16px; padding: 9px 11px; border: 1px solid #c8ced3;
  border-radius: 9px; background: #fff; color: var(--kc-ink); min-height: 44px;
}
.kc-tool input:focus, .kc-tool select:focus { outline: 3px solid rgba(99,201,199,.45); border-color: var(--kc-teal); }
.kc-tool .kc-check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.kc-tool .kc-check input { width: 20px; height: 20px; accent-color: var(--kc-red); }
.kc-tool .kc-btn {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: 16px;
  border: 0; border-radius: 999px; padding: 11px 20px; cursor: pointer; min-height: 44px;
  background: var(--kc-red); color: #fff; text-decoration: none;
}
.kc-tool .kc-btn:hover { background: var(--kc-red-dark); color: #fff; }
.kc-tool .kc-btn.kc-btn-ghost { background: #fff; color: var(--kc-red); border: 2px solid var(--kc-red); }
.kc-tool .kc-btn.kc-btn-ghost:hover { background: #fff1f3; }
.kc-tool .kc-btn.kc-btn-small { padding: 6px 14px; font-size: 14px; min-height: 36px; }
.kc-tool .kc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.kc-tool .kc-results { background: var(--kc-cream); border-color: #f0dfcf; }
.kc-tool .kc-big { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 14px; }
.kc-tool .kc-stat { background: #fff; border-radius: 12px; padding: 12px 14px; border: 1px solid #f0dfcf; }
.kc-tool .kc-stat b { display: block; font-size: 28px; line-height: 1.15; color: var(--kc-red); font-variant-numeric: tabular-nums; }
.kc-tool .kc-stat span { font-size: 14px; color: var(--kc-muted); }
.kc-tool .kc-stat.kc-teal b { color: #23807e; }
.kc-tool table.kc-table { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: 16px; background: #fff; }
.kc-tool table.kc-table th, .kc-tool table.kc-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--kc-line); vertical-align: top; }
.kc-tool table.kc-table th { background: var(--kc-teal-soft); font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.kc-tool table.kc-table td.kc-num, .kc-tool table.kc-table th.kc-num { text-align: right; font-variant-numeric: tabular-nums; }
.kc-tool .kc-rows { display: flex; flex-direction: column; gap: 10px; }
.kc-tool .kc-row { display: grid; gap: 10px; grid-template-columns: 1fr 140px 44px; align-items: end; }
.kc-tool .kc-row.kc-row-4 { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr) 44px; }
.kc-tool .kc-row .kc-remove {
  border: 0; background: #f3f4f6; border-radius: 9px; height: 44px; cursor: pointer; font-size: 20px; color: var(--kc-muted);
}
.kc-tool .kc-row .kc-remove:hover { background: #ffe3e8; color: var(--kc-red); }
.kc-tool .kc-note { font-size: 14px; color: var(--kc-muted); margin: 10px 0 0; }
.kc-tool .kc-warn { background: #fff1f3; border-left: 4px solid var(--kc-red); padding: 10px 12px; border-radius: 6px; margin: 10px 0; font-size: 15px; }
.kc-tool .kc-ok { background: var(--kc-teal-soft); border-left: 4px solid var(--kc-teal); padding: 10px 12px; border-radius: 6px; margin: 10px 0; font-size: 15px; }
.kc-tool .kc-bar { height: 12px; border-radius: 999px; background: #eee; overflow: hidden; }
.kc-tool .kc-bar > i { display: block; height: 100%; background: var(--kc-teal); width: 0; transition: width .3s; }
.kc-tool .kc-bar.kc-over > i { background: var(--kc-red); }
.kc-tool .kc-shop { border-top: 2px dashed var(--kc-line); padding-top: 16px; }
.kc-tool .kc-shop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.kc-tool .kc-shop a {
  display: block; padding: 10px 12px; border: 1px solid var(--kc-line); border-radius: 10px; text-decoration: none;
  color: var(--kc-ink); background: #fff; font-weight: 600; font-size: 15px;
}
.kc-tool .kc-shop a::after { content: " \2192"; color: var(--kc-red); }
.kc-tool .kc-shop a:hover { border-color: var(--kc-teal); background: var(--kc-teal-soft); }
.kc-tool .kc-disclose { font-size: 13px; color: var(--kc-muted); margin: 10px 0 0; }
.kc-tool .kc-countdown { display: flex; gap: 10px; flex-wrap: wrap; }
.kc-tool .kc-countdown div { background: var(--kc-red); color: #fff; border-radius: 12px; padding: 10px 14px; min-width: 76px; text-align: center; }
.kc-tool .kc-countdown b { display: block; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.kc-tool .kc-countdown span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.kc-tool .kc-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #eee; color: #444; }
.kc-tool .kc-pill.kc-pill-red { background: #ffe3e8; color: var(--kc-red-dark); }
.kc-tool .kc-pill.kc-pill-teal { background: var(--kc-teal-soft); color: #1d6d6b; }
.kc-tool .kc-pill.kc-pill-gray { background: #eceff1; color: #555; }
.kc-tool .kc-print-head { display: none; }
.kc-tool-index { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.kc-tool-index a { display: block; height: 100%; padding: 16px; border: 1px solid #dfe3e6; border-radius: 14px; text-decoration: none; color: #222; background: #fff; }
.kc-tool-index a:hover { border-color: #63c9c7; background: #e8f7f7; }
.kc-tool-index b { display: block; font-size: 18px; color: #e42340; margin-bottom: 4px; }
.kc-tool-index span { font-size: 15px; color: #5f6368; }

/* Undo the theme's red button styling on small icon buttons */
.kc-tool button.kc-remove { background: #f3f4f6; color: #5f6368; padding: 0; margin: 0; border: 0; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; cursor: pointer; }
.kc-tool button.kc-remove:hover, .kc-tool button.kc-remove:focus { background: #ffe3e8; color: #e42340; }

/* Live Amazon product cards */
.kc-tool .kc-shop ul.kc-has-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kc-tool .kc-shop li.kc-card-item a.kc-prod { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 12px; }
.kc-tool .kc-shop li.kc-card-item a.kc-prod::after { content: none; }
.kc-tool .kc-prod img { width: 100%; height: 150px; object-fit: contain; background: #fff; }
.kc-tool .kc-prod-kind { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #23807e; font-weight: 700; }
.kc-tool .kc-prod-title { font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kc-tool .kc-prod-price { font-size: 20px; font-weight: 800; color: #e42340; margin-top: auto; }
.kc-tool .kc-prod-asof { font-size: 11px; color: #5f6368; }
.kc-tool .kc-prod-asof abbr { text-decoration: underline dotted; cursor: help; }
.kc-tool .kc-prod-btn { display: block; text-align: center; background: #e42340; color: #fff; border-radius: 999px; padding: 8px 10px; font-weight: 700; font-size: 14px; margin-top: 6px; }
.kc-tool a.kc-prod:hover .kc-prod-btn { background: #b8152e; }
@media print { .kc-tool .kc-shop { display: none !important; } }

@media (max-width: 600px) {
  .kc-tool .kc-card { padding: 16px; }
  .kc-tool .kc-row { grid-template-columns: 1fr 100px 44px; }
  .kc-tool .kc-row.kc-row-4 { grid-template-columns: 1fr 1fr; padding-bottom: 12px; border-bottom: 1px solid var(--kc-line); }
  .kc-tool .kc-row.kc-row-4 > :first-child { grid-column: 1 / -1; }
  .kc-tool .kc-row.kc-row-4 .kc-remove { grid-column: 1 / -1; height: 36px; font-size: 15px; }
  .kc-tool .kc-row.kc-row-4 .kc-remove::after { content: " Remove"; }
  .kc-tool .kc-stat b { font-size: 24px; }
}

/* Printing: show only the printable result. */
@media print {
  .top-bar, #masthead, #site-navigation, #right-sidebar, .site-footer, .entry-header,
  .kc-noprint, .adsbygoogle, ins, iframe, .google-auto-placed { display: none !important; }
  .site, .site-content, .content-area, .inside-article, .grid-container { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; }
  body { background: #fff !important; }
  .kc-tool { font-size: 13pt; }
  .kc-tool .kc-card { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }
  .kc-tool .kc-results { background: #fff; }
  .kc-tool .kc-print-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid #e42340; padding-bottom: 8px; margin-bottom: 14px; }
  .kc-tool .kc-print-head img { height: 34px; width: auto; }
  .kc-tool .kc-print-head span { font-size: 11pt; color: #555; }
  .kc-tool a { color: #222; text-decoration: none; }
}
