/* Kamera Bulucu (partials/camera-finder.php + camera-finder.js). Tema renklerini kullanır, yoksa lacivert. */
:root { --cf-a: var(--k-navy, var(--c-primary, #14418f)); --cf-b: var(--k-blue, #1d6ae5); --cf-rec: var(--k-rec, #ef4444); --cf-wa-bottom: 18px; }

/* ---- Yüzen düğme: WhatsApp'ın üstünde ---- */
.cf-fab {
  position: fixed; right: 18px; bottom: calc(var(--cf-wa-bottom) + 68px); z-index: 151;
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px 7px 7px;
  border: 0; border-radius: 999px; cursor: pointer; font: inherit; text-align: left; color: #fff;
  background: linear-gradient(135deg, var(--cf-a), var(--cf-b));
  box-shadow: 0 8px 24px rgba(20, 65, 143, .35); transition: transform .2s ease, box-shadow .2s ease;
}
.cf-fab.cf-no-wa { bottom: var(--cf-wa-bottom); }
@media (hover: hover) { .cf-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20, 65, 143, .45); } }
.cf-fab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--cf-a); }
.cf-fab-ico { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.cf-fab-ico::after { /* kayıt ışığı */
  content: ""; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cf-rec); box-shadow: 0 0 0 2px rgba(255,255,255,.9); animation: cf-rec 1.6s ease-in-out infinite;
}
@keyframes cf-rec { 50% { opacity: .35; } }
.cf-fab-txt { display: flex; flex-direction: column; line-height: 1.15; }
.cf-fab-txt small { font-size: .7rem; opacity: .85; }
.cf-fab-txt b { font-size: .98rem; letter-spacing: .01em; }

.cf-tip {
  position: fixed; right: 18px; bottom: calc(var(--cf-wa-bottom) + 132px); z-index: 151; max-width: 250px;
  display: flex; align-items: flex-start; gap: 4px; padding: 10px 8px 10px 14px; border-radius: 14px;
  background: #fff; color: #101828; box-shadow: 0 10px 30px rgba(10,23,48,.18); font-size: .88rem;
  animation: cf-in .3s ease;
}
.cf-tip[hidden] { display: none; }
.cf-tip.cf-no-wa { bottom: calc(var(--cf-wa-bottom) + 64px); }
.cf-tip::after { content: ""; position: absolute; right: 34px; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); }
.cf-tip-open { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.cf-tip-x { background: none; border: 0; font-size: 1.2rem; line-height: 1; padding: 0 4px; color: #667085; cursor: pointer; }
@keyframes cf-in { from { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  .cf-fab-ico::after, .cf-tip, .cf-panel { animation: none; }
  .cf-fab { transition: none; }
}

/* ---- Pencere ---- */
html.cf-lock, html.cf-lock body { overflow: hidden; }
.cf-modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cf-modal[hidden] { display: none; }
.cf-backdrop { position: absolute; inset: 0; background: rgba(10, 23, 48, .55); backdrop-filter: blur(2px); }
.cf-panel {
  position: relative; width: min(640px, 100%); max-height: min(760px, calc(100dvh - 32px));
  display: flex; flex-direction: column; background: #fff; color: #101828; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(10,23,48,.35); overflow: hidden; animation: cf-in .22s ease;
}
.cf-modal .cf-head { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 18px 20px 12px;
  background: linear-gradient(135deg, var(--cf-a), var(--cf-b)); color: #fff; }
.cf-modal .cf-head > div { min-width: 0; flex: 1 1 auto; }
.cf-kicker { margin: 0 0 2px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.cf-head h2 { margin: 0; font-size: 1.15rem; line-height: 1.3; color: #fff; }
.cf-x { background: rgba(255,255,255,.16); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; flex: none; }
.cf-progress { height: 4px; background: #e7eaf2; }
.cf-progress span { display: block; height: 100%; width: 0; background: var(--cf-b); transition: width .3s ease; }
.cf-body { padding: 20px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.cf-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; border-top: 1px solid #e7eaf2; min-height: 48px; }
.cf-back { background: none; border: 0; color: var(--cf-a); font: inherit; font-weight: 600; cursor: pointer; padding: 6px 2px; }
.cf-step { color: #667085; font-size: .85rem; margin-left: auto; }

.cf-q { margin: 0 0 6px; font-size: 1.2rem; line-height: 1.3; outline: none; }
.cf-sub { margin: 0 0 16px; color: #667085; font-size: .92rem; }
.cf-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.cf-opts.cf-n7 .cf-opt:last-child { grid-column: 1 / -1; }
.cf-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 74px; padding: 14px;
  border: 2px solid #e7eaf2; border-radius: 14px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
@media (hover: hover) { .cf-opt:hover { border-color: var(--cf-b); background: #f4f8ff; } }
.cf-opt:focus-visible { outline: 3px solid var(--cf-b); outline-offset: 2px; }
.cf-opt:active { transform: scale(.98); }
.cf-opt.is-on { border-color: var(--cf-a); background: #eef4ff; }
.cf-ico { font-size: 1.5rem; line-height: 1; }
.cf-lbl { font-weight: 700; }
.cf-opt small { color: #667085; font-size: .8rem; }

/* ---- Keşif formu ---- */
.cf-form { display: grid; gap: 12px; margin-top: 8px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf-field { display: grid; gap: 4px; margin: 0; font-weight: 600; font-size: .88rem; }
.cf-field input { width: 100%; padding: 11px 12px; border: 1.5px solid #d0d5dd; border-radius: 10px; font: inherit; font-weight: 400; }
.cf-field input:focus { outline: none; border-color: var(--cf-b); box-shadow: 0 0 0 3px rgba(29,106,229,.15); }
.cf-field.has-err input { border-color: #ef4444; }
.cf-field em, .cf-err-inline { color: #d92d20; font-style: normal; font-size: .8rem; font-weight: 500; }
.cf-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; font-weight: 400; margin: 0; }
.cf-consent input { width: auto; margin-top: 3px; }
.cf-consent.has-err span { color: #d92d20; }
.cf-err { color: #d92d20; background: #fef3f2; padding: 10px 12px; border-radius: 10px; font-size: .9rem; }
.cf-submit { width: 100%; padding: 13px; }
.cf-skip { background: none; border: 0; color: #667085; text-decoration: underline; font: inherit; font-size: .88rem; cursor: pointer; }

/* ---- Yükleniyor / sonuç ---- */
.cf-loading { display: flex; align-items: center; gap: 12px; padding: 40px 4px; color: #344054; }
.cf-spin { width: 22px; height: 22px; border: 3px solid #e7eaf2; border-top-color: var(--cf-b); border-radius: 50%; animation: cf-spin .8s linear infinite; }
@keyframes cf-spin { to { transform: rotate(360deg); } }
.cf-ok { background: #ecfdf3; color: #05603a; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: .92rem; }
.cf-summary { color: #667085; font-size: .84rem; margin: 0 0 14px; }
.cf-note { background: #fffaeb; color: #93370d; padding: 10px 12px; border-radius: 10px; font-size: .9rem; }
.cf-card { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; margin-bottom: 12px;
  border: 1.5px solid #e7eaf2; border-radius: 16px; background: #fff; }
.cf-card.cf-primary { border-color: var(--cf-a); box-shadow: 0 6px 20px rgba(20,65,143,.12); }
.cf-badge { position: absolute; top: -10px; left: 14px; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: #eef2f6; color: #344054; }
.cf-primary .cf-badge { background: var(--cf-a); color: #fff; }
.cf-addon .cf-badge { background: #ecfdf3; color: #05603a; }
.cf-card-img img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: #f4f6fb; display: block; }
.cf-card-name { display: block; font-weight: 700; color: inherit; line-height: 1.3; margin-bottom: 4px; }
.cf-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.cf-price b { font-size: 1.05rem; color: var(--cf-a); }
.cf-price del { color: #98a2b3; font-size: .85rem; }
.cf-qty { color: #344054; font-weight: 600; font-size: .9rem; }
.cf-why { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 3px; font-size: .86rem; color: #344054; }
.cf-why li { padding-left: 20px; position: relative; }
.cf-why li::before { content: "✓"; position: absolute; left: 0; color: #12b76a; font-weight: 700; }
.cf-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-actions form { margin: 0; }
.cf-cart { background: #fff; border: 1.5px solid var(--cf-a); color: var(--cf-a); }
.cf-end { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 16px; }
.cf-wa { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #1fb356; color: #fff; font-weight: 700; text-decoration: none; }
.cf-wa:hover { color: #fff; background: #189a49; }
.cf-restart { background: none; border: 0; color: var(--cf-a); font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 900px) {
  .theme-kameram { --cf-wa-bottom: 76px; }
}
@media (max-width: 560px) {
  .cf-fab { right: 12px; padding: 6px 14px 6px 6px; }
  .cf-fab-ico { width: 38px; height: 38px; }
  .cf-fab-txt small { display: none; }
  .cf-tip { right: 12px; }
  .cf-modal { padding: 0; align-items: flex-end; }
  .cf-panel { width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; }
  .cf-opts { gap: 8px; }
  .cf-opt { min-height: 66px; padding: 12px; }
  .cf-row { grid-template-columns: 1fr; }
  .cf-card { grid-template-columns: 72px 1fr; gap: 10px; }
  .cf-card-img img { width: 72px; height: 72px; }
}
