.tfc-category-banner,
.tfc-single-calculator {
  --tfc-accent: #ffb238;
  --tfc-accent-dark: #f0a82a;
  --tfc-deep: #4c2448;
  --tfc-deep-2: #2a1a22;
  --tfc-text: #1f1714;
  --tfc-muted: #6d6762;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
}

/* Banner */
.tfc-category-banner {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .82fr);
  gap: 22px;
  padding: 24px 26px;
  background: linear-gradient(90deg, var(--tfc-deep) 0%, #371f2f 58%, var(--tfc-deep-2) 100%);
  border: 1px solid #2c1b22;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.09);
}

.tfc-banner-copy,
.tfc-banner-panel,
.tfc-banner-status { min-width: 0; }

.tfc-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 8px;
  background: rgba(255,255,255,.1);
  color: #f2ede7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tfc-banner-copy h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
}

.tfc-banner-copy p {
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 14px;
  line-height: 1.6;
}

.tfc-banner-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tfc-banner-points span {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
}

.tfc-banner-panel {
  align-self: center;
  padding: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
}

.tfc-banner-form-label {
  margin-bottom: 8px;
  color: #f3ede7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tfc-banner-form,
.tfc-single-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.tfc-input-wrap {
  display: flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  border: 1px solid #d7d3cf;
  background: #fff;
}

.tfc-input-wrap-large { flex: 1 1 auto; }

.tfc-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 14px !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--tfc-text);
  font-size: 16px;
  font-weight: 600;
}

.tfc-input-wrap em {
  padding-right: 12px;
  color: var(--tfc-muted);
  font-style: normal;
  font-size: 13px;
  white-space: nowrap;
}

.tfc-calc-button {
  min-height: 50px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--tfc-accent) !important;
  color: #111 !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.tfc-calc-button:hover,
.tfc-calc-button:focus {
  background: var(--tfc-accent-dark) !important;
  color: #111 !important;
}

.tfc-banner-mini-note {
  margin-top: 9px;
  color: rgba(255,255,255,.74);
  font-size: 12px;
  line-height: 1.5;
}

.tfc-banner-status {
  grid-column: 1 / -1;
  padding: 10px 12px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 13px;
}

.tfc-change-measure {
  padding: 0;
  border: 0;
  background: none;
  color: #ffd179;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

/* Single product calculator */
.tfc-single-calculator {
  margin: 18px 0 26px;
  padding: 20px;
  border: 1px solid #ddd6cf;
  background: #fff;
}

.tfc-single-input-row label { flex: 1; margin: 0; }
.tfc-single-input-row label > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: var(--tfc-text);
  font-weight: 700;
}

/* Result card */
.tfc-result {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #e4ddd6;
  background: #fff;
  text-align: left;
}

.tfc-result-loop,
.tfc-result-card,
.tfc-result-auto { margin: 10px 0 12px; }

.tfc-result-topline {
  margin-bottom: 6px;
  color: #8d6313;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tfc-result-label {
  color: #6a625d;
  font-size: 12px;
  line-height: 1.4;
}

.tfc-result-price {
  margin: 5px 0 12px;
  color: #1f1714;
  font-size: clamp(22px, 1.7vw, 28px);
  line-height: 1.1;
  font-weight: 800;
  word-break: break-word;
}

.tfc-result-price .woocommerce-Price-amount,
.tfc-result-price .amount,
.tfc-result-price bdi { font-weight: inherit; }

/* WhatsApp CTA - deliberately theme-proof */
a.tfc-whatsapp-button,
.tfc-result a.tfc-whatsapp-button {
  display: flex !important;
  width: 100% !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffb238 !important;
  color: #111 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  transform: none !important;
}

a.tfc-whatsapp-button:hover,
a.tfc-whatsapp-button:focus,
.tfc-result a.tfc-whatsapp-button:hover,
.tfc-result a.tfc-whatsapp-button:focus {
  display: flex !important;
  background: #f0a82a !important;
  color: #111 !important;
}

.tfc-whatsapp-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: #111;
  opacity: .9;
}

.tfc-whatsapp-button.tfc-wa-no-number { cursor: pointer; }

.tfc-disclaimer {
  margin-top: 8px;
  color: #7b726c;
  font-size: 10px;
  line-height: 1.45;
}

.tfc-error {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fff3f3;
  color: #9f1111;
  font-size: 13px;
}

.tfc-loading { opacity: .78; pointer-events: none; }
.tfc-result[hidden] { display: none !important; }

.tfc-auto-price-slot {
  width: 100%;
  margin: 8px 0;
  box-sizing: border-box;
}
.tfc-auto-price-slot:empty { display: none; }

li.product .tfc-auto-price-slot,
.product .tfc-auto-price-slot,
.elementor-widget-woocommerce-products .tfc-auto-price-slot,
.e-loop-item .tfc-auto-price-slot {
  clear: both;
}

@media (max-width: 991px) {
  .tfc-category-banner { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .tfc-category-banner {
    padding: 16px;
    gap: 16px;
  }

  .tfc-banner-copy h2 { font-size: 28px; }

  .tfc-banner-form,
  .tfc-single-input-row { flex-direction: column; }

  .tfc-calc-button,
  .tfc-whatsapp-button { width: 100% !important; }

  .tfc-banner-panel,
  .tfc-single-calculator,
  .tfc-result { padding: 14px; }

  .tfc-banner-status { line-height: 1.5; }
}
.tfc-whatsapp-icon { display: none !important; }

/* v0.8 montaj bölgesi */
.tfc-area-section {
  margin-top: 14px;
}

.tfc-area-label {
  margin-bottom: 7px;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tfc-banner-panel .tfc-area-label { color: #f3ede7; }

.tfc-area-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255,255,255,.18);
}

.tfc-single-calculator .tfc-area-options {
  border-color: #d7d3cf;
}

.tfc-area-option {
  min-height: 46px;
  padding: 8px 10px;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.tfc-area-option + .tfc-area-option {
  border-left: 1px solid rgba(255,255,255,.18) !important;
}

.tfc-single-calculator .tfc-area-option {
  background: #f5f3f1 !important;
  color: #1f1714 !important;
}

.tfc-single-calculator .tfc-area-option + .tfc-area-option {
  border-left-color: #d7d3cf !important;
}

.tfc-area-option small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  opacity: .78;
}

.tfc-area-option.is-active {
  background: #ffb238 !important;
  color: #111 !important;
}

.tfc-banner-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tfc-sort-controls {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.18);
}

.tfc-sort-button {
  min-height: 34px;
  padding: 6px 10px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.tfc-sort-button + .tfc-sort-button {
  border-left: 1px solid rgba(255,255,255,.18) !important;
}

.tfc-sort-button.is-active {
  background: #ffb238 !important;
  color: #111 !important;
}

.tfc-result-area {
  margin: -5px 0 10px;
  color: #7b726c;
  font-size: 10px;
  line-height: 1.4;
}

.tfc-best-price-card .tfc-result {
  border-color: #ffb238;
  box-shadow: inset 4px 0 0 #ffb238;
}

@media (max-width: 767px) {
  .tfc-area-options { grid-template-columns: 1fr; }
  .tfc-area-option + .tfc-area-option {
    border-left: 0 !important;
    border-top: 1px solid rgba(255,255,255,.18) !important;
  }
  .tfc-single-calculator .tfc-area-option + .tfc-area-option {
    border-top-color: #d7d3cf !important;
  }
  .tfc-banner-status {
    align-items: stretch;
    flex-direction: column;
  }
  .tfc-sort-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
}

/* v0.8.3 - Product detail refinements */
.tfc-single-calculator .tfc-kicker {
  display: block !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  background: transparent !important;
  color: #211915 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  letter-spacing: .035em !important;
  text-transform: uppercase !important;
  opacity: 1 !important;
}

@media (min-width: 768px) {
  .tfc-single-calculator .tfc-single-input-row {
    align-items: flex-end !important;
  }

  .tfc-single-calculator .tfc-calc-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 18px !important;
    line-height: 1 !important;
    align-self: flex-end !important;
    box-sizing: border-box !important;
  }
}
