/* KT Thanksgiving Decor 2026 — two themes: keif (elegant harvest) and odoms (smokehouse BBQ).
   Everything is prefixed kt-tg and scoped by html[data-kt-tg="..."] */

/* =============== BASE (shared structure) =============== */
.kt-tg-bar, .kt-tg-bar *, .kt-tg-card, .kt-tg-card *, .kt-tg-badge, .kt-tg-badge * { box-sizing: border-box; }
.kt-tg-bar {
  position: relative; z-index: 99990;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 14px; padding: 11px 46px 11px 16px; text-align: center; line-height: 1.35;
}
.kt-tg-bar-ico { width: 30px; height: 30px; flex: none; }
.kt-tg-bar-ico svg, .kt-tg-card-ico svg { display: block; width: 100%; height: 100%; }
.kt-tg-bar-lead { white-space: nowrap; }
.kt-tg-bar-cta { display: inline-block; text-decoration: none !important; white-space: nowrap; transition: transform .15s ease, filter .15s ease; }
.kt-tg-bar-cta:hover { filter: brightness(1.1); }
.kt-tg-x {
  position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; border-radius: 50%; padding: 0;
  background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; opacity: .75;
}
.kt-tg-x:hover { opacity: 1; background: rgba(128,128,128,.2); }
.kt-tg-garland { position: absolute; left: 0; right: 0; pointer-events: none; background-repeat: repeat-x; }

.kt-tg-leaves { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 99980; }
.kt-tg-corner { position: fixed; bottom: 0; height: auto; pointer-events: none; z-index: 99970; }
.kt-tg-corner-l { left: 0; width: 210px; }
.kt-tg-corner-r { right: 0; width: 190px; }

.kt-tg-overlay {
  position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(25, 14, 8, .62); opacity: 0; transition: opacity .3s ease;
}
.kt-tg-overlay.kt-tg-show { opacity: 1; }
.kt-tg-card {
  position: relative; width: 100%; max-width: 450px; text-align: center;
  transform: translateY(14px) scale(.97); transition: transform .3s ease;
  box-shadow: 0 22px 54px rgba(0,0,0,.4);
}
.kt-tg-show .kt-tg-card { transform: none; }
.kt-tg-card-ico { width: 88px; height: 90px; margin: 0 auto 6px; }
.kt-tg-card h3 { margin: 0 0 10px; line-height: 1.15; }
.kt-tg-card p { margin: 0 0 20px; font-size: 16px; line-height: 1.55; }
.kt-tg-btn { display: inline-block; text-decoration: none !important; transition: filter .15s ease; }
.kt-tg-btn:hover { filter: brightness(1.12); }
.kt-tg-card .kt-tg-x { top: 12px; transform: none; }

/* =============== THEME: KEIF — elegant harvest =============== */
html[data-kt-tg="keif"] .kt-tg-bar {
  background: #fbf5e9; color: #2f4a3a;
  font: 600 16px/1.35 Georgia, "Times New Roman", serif; letter-spacing: .02em;
  border-top: 3px double #b98b2e; border-bottom: 3px double #b98b2e;
}
html[data-kt-tg="keif"] .kt-tg-bar::before,
html[data-kt-tg="keif"] .kt-tg-bar::after { content: ""; width: 54px; height: 1px; background: linear-gradient(90deg, transparent, #b98b2e); }
html[data-kt-tg="keif"] .kt-tg-bar::after { transform: scaleX(-1); }
html[data-kt-tg="keif"] .kt-tg-bar-cta {
  padding: 7px 20px; border-radius: 999px; background: #2f4a3a; color: #fbf5e9 !important;
  border: 1px solid #b98b2e; font-weight: 600;
}
html[data-kt-tg="keif"] .kt-tg-garland {
  top: 100%; height: 44px; margin-top: 3px; background-size: 120px 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='44' viewBox='0 0 120 44'%3E%3Cpath d='M0 3Q60 24 120 3' fill='none' stroke='%232f4a3a' stroke-width='1.8'/%3E%3Cpath d='M22 10V8' stroke='%235f6b2a' stroke-width='2'/%3E%3Cellipse cx='22' cy='18' rx='7.5' ry='6.5' fill='%23d9731c'/%3E%3Cellipse cx='22' cy='18' rx='3' ry='6.5' fill='%23ee8f45'/%3E%3Cpath d='M40 11q7-2 9 5-6 3-9-5z' fill='%237a2e2e'/%3E%3Cellipse cx='62' cy='15.5' rx='5.2' ry='3.6' fill='%236b4423'/%3E%3Cellipse cx='62' cy='22' rx='4' ry='5.6' fill='%23c28a3b'/%3E%3Cpath d='M94 9q8-2 11 6-8 3-11-6z' fill='%23b98b2e'/%3E%3Cpath d='M82 11q5-1 7 4-5 2-7-4z' fill='%236b7a3a'/%3E%3C/svg%3E");
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.15));
}
html[data-kt-tg="keif"] .kt-tg-bar-lead { font-style: italic; color: #b4501c; }
html[data-kt-tg="keif"] .kt-tg-tag { margin: 0 0 6px; font: 600 12px/1.4 Georgia, serif; letter-spacing: .34em; text-transform: uppercase; color: #b98b2e; }
html[data-kt-tg="keif"] .kt-tg-card {
  padding: 42px 32px 32px; background: #fbf5e9; color: #2f4a3a; border-radius: 4px;
  border: 1px solid #b98b2e; outline: 1px solid #b98b2e; outline-offset: -9px;
  font-family: Georgia, "Times New Roman", serif;
}
html[data-kt-tg="keif"] .kt-tg-card h3 { font: 700 28px/1.2 Georgia, "Times New Roman", serif; font-style: italic; color: #2f4a3a; }
html[data-kt-tg="keif"] .kt-tg-orn { display: flex; align-items: center; gap: 10px; width: 72%; margin: 14px auto 16px; }
html[data-kt-tg="keif"] .kt-tg-orn::before, html[data-kt-tg="keif"] .kt-tg-orn::after { content: ""; flex: 1; height: 1px; background: #b98b2e; }
html[data-kt-tg="keif"] .kt-tg-orn i { width: 7px; height: 7px; background: #b98b2e; transform: rotate(45deg); }
html[data-kt-tg="keif"] .kt-tg-badge { display: none; }
html[data-kt-tg="keif"] .kt-tg-btn {
  padding: 12px 30px; border-radius: 999px; background: #2f4a3a; color: #fbf5e9 !important;
  border: 1px solid #b98b2e; font-weight: 600; letter-spacing: .03em;
}
html[data-kt-tg="keif"] .kt-tg-card .kt-tg-x { color: #2f4a3a; }

/* =============== THEME: ODOMS — smokehouse BBQ =============== */
html[data-kt-tg="odoms"] .kt-tg-bar {
  padding-bottom: 22px; color: #f3e6d0; border-top: 3px solid #e8560f;
  background: #1b1412 repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 2px, transparent 2px 9px);
  font: 700 15px/1.35 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; letter-spacing: .07em; text-transform: uppercase;
}
html[data-kt-tg="odoms"] .kt-tg-bar-lead { color: #ffb02e; }
html[data-kt-tg="odoms"] .kt-tg-bar-cta {
  padding: 7px 18px; border-radius: 3px; background: #e8560f; color: #fff !important;
  border: 2px solid #ffb02e; transform: rotate(-1.5deg); box-shadow: 3px 3px 0 #000;
}
html[data-kt-tg="odoms"] .kt-tg-bar-cta:hover { transform: rotate(0deg) scale(1.04); }
html[data-kt-tg="odoms"] .kt-tg-garland {
  bottom: 0; height: 14px; background-size: 40px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14' viewBox='0 0 40 14'%3E%3Cpath d='M0 14C6 14 8 8 10 0c2 8 4 14 10 14 4 0 6-5 8-10 2 5 4 10 12 10z' fill='%23e8560f'/%3E%3Cpath d='M5 14c3 0 4-4 5-8 1 4 2 8 5 8zM25 14c2 0 3-2 3-5 1 3 2 5 4 5z' fill='%23ffb02e'/%3E%3C/svg%3E");
}
html[data-kt-tg="odoms"] .kt-tg-card {
  padding: 34px 28px 28px; background: #f3e6d0; color: #1b1412; border-radius: 6px;
  border: 3px solid #1b1412; outline: 2px dashed #9b2c1a; outline-offset: -12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html[data-kt-tg="odoms"] .kt-tg-tag {
  display: inline-block; margin: 0 0 12px; padding: 4px 14px; background: #1b1412; color: #ffb02e;
  font: 700 12px/1.4 Impact, "Arial Narrow Bold", sans-serif; letter-spacing: .22em; text-transform: uppercase; transform: rotate(-2deg);
}
html[data-kt-tg="odoms"] .kt-tg-card h3 {
  font: 400 31px/1.1 Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; text-transform: uppercase; letter-spacing: .02em; color: #9b2c1a;
}
html[data-kt-tg="odoms"] .kt-tg-orn { display: none; }
html[data-kt-tg="odoms"] .kt-tg-card p { padding-bottom: 18px; border-bottom: 2px dashed rgba(27,20,18,.45); }
html[data-kt-tg="odoms"] .kt-tg-btn {
  margin-top: 4px; padding: 13px 26px; border-radius: 3px; background: #e8560f; color: #fff !important;
  font: 400 18px/1.2 Impact, "Arial Narrow Bold", sans-serif; letter-spacing: .08em; text-transform: uppercase; box-shadow: 4px 4px 0 #1b1412;
}
html[data-kt-tg="odoms"] .kt-tg-card .kt-tg-x { color: #1b1412; }

/* Stamp badge (Odoms only) */
.kt-tg-badge {
  position: fixed; right: 18px; bottom: 18px; z-index: 99975; width: 112px; height: 112px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: #e8560f; color: #fff !important; text-decoration: none !important; transform: rotate(-8deg);
  font-family: Impact, "Arial Narrow Bold", sans-serif; text-transform: uppercase; line-height: 1.05;
  box-shadow: 0 0 0 4px #1b1412, 0 0 0 6px #ffb02e, 0 10px 22px rgba(0,0,0,.45);
  animation: kt-tg-pulse 2.6s ease-in-out infinite;
}
.kt-tg-badge small { font-size: 11px; letter-spacing: .16em; color: #ffe1b0; }
.kt-tg-badge strong { font-size: 24px; font-weight: 400; letter-spacing: .03em; margin: 2px 0; }
@keyframes kt-tg-pulse { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(-8deg) scale(1.06); } }

/* =============== RESPONSIVE / MOTION =============== */
@media (max-width: 700px) {
  html[data-kt-tg="keif"] .kt-tg-bar { font-size: 14px; }
  html[data-kt-tg="keif"] .kt-tg-bar::before, html[data-kt-tg="keif"] .kt-tg-bar::after { display: none; }
  html[data-kt-tg="odoms"] .kt-tg-bar { font-size: 13px; }
  .kt-tg-garland { background-size: auto 100%; }
  html[data-kt-tg="keif"] .kt-tg-garland { height: 33px; background-size: 90px 33px; }
  .kt-tg-corner-l { width: 110px; }
  .kt-tg-corner-r { width: 100px; }
  html[data-kt-tg="odoms"] .kt-tg-corner-l { width: 70px; left: 2px; }
  .kt-tg-bar-ico { width: 26px; height: 26px; }
  .kt-tg-card-ico { width: 72px; height: 74px; }
  .kt-tg-badge { width: 92px; height: 92px; right: 10px; bottom: 10px; }
  .kt-tg-badge small { font-size: 9px; }
  .kt-tg-badge strong { font-size: 14px; white-space: nowrap; }
  html[data-kt-tg="odoms"] .kt-tg-card h3 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .kt-tg-overlay, .kt-tg-card, .kt-tg-bar-cta { transition: none; }
  .kt-tg-badge { animation: none; }
}

/* v1.1.1 independent controls; original theme artwork remains unchanged. */
html[data-kt-tg="odoms"] .kt-tg-bar.kt-tg-no-garland { padding-bottom: 11px; }
.kt-tg-standalone { position: relative; height: 14px; pointer-events: none; z-index: 99990; }
html[data-kt-tg="keif"] .kt-tg-standalone { height: 44px; }
html[data-kt-tg="keif"] .kt-tg-standalone .kt-tg-garland { top: 0; margin-top: 0; }
@media (max-width: 700px) {
  html[data-kt-tg="keif"] .kt-tg-standalone { height: 33px; }
  html[data-kt-tg-desktop="1"] .kt-tg-bar,
  html[data-kt-tg-desktop="1"] .kt-tg-standalone,
  html[data-kt-tg-desktop="1"] .kt-tg-corner,
  html[data-kt-tg-desktop="1"] .kt-tg-leaves,
  html[data-kt-tg-desktop="1"] .kt-tg-overlay { display: none !important; }
}


/* v1.1.2: Odoms banner typography and isolated controls.
   Explicit overrides prevent Elementor/theme global button styles leaking in. */
html[data-kt-tg="odoms"] body .kt-tg-bar {
  --kt-tg-banner-bottom: 14px;
  padding-left: 54px; padding-right: 54px;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 15px !important; font-weight: 500; line-height: 1.45;
  letter-spacing: normal; text-transform: none;
}
html[data-kt-tg="odoms"] body .kt-tg-bar.kt-tg-no-garland { --kt-tg-banner-bottom: 0px; }
html[data-kt-tg="odoms"] body .kt-tg-bar .kt-tg-bar-lead,
html[data-kt-tg="odoms"] body .kt-tg-bar .kt-tg-bar-text,
html[data-kt-tg="odoms"] body .kt-tg-bar .kt-tg-bar-cta {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: inherit !important; line-height: 1.45 !important;
  letter-spacing: normal !important;
}
html[data-kt-tg="odoms"] body .kt-tg-bar .kt-tg-bar-lead { font-weight: 800 !important; text-transform: uppercase; }
html[data-kt-tg="odoms"] body .kt-tg-bar .kt-tg-bar-text { font-weight: 500 !important; text-transform: none !important; }
html[data-kt-tg="odoms"] body .kt-tg-bar .kt-tg-bar-cta { font-weight: 700 !important; text-transform: uppercase; }
html[data-kt-tg="odoms"] body .kt-tg-bar > button.kt-tg-x {
  all: unset !important;
  box-sizing: border-box !important; position: absolute !important;
  top: calc((100% - var(--kt-tg-banner-bottom)) / 2) !important;
  right: 12px !important; transform: translateY(-50%) !important;
  display: grid !important; place-items: center !important;
  width: 32px !important; height: 32px !important; min-width: 0 !important; min-height: 0 !important;
  padding: 0 !important; margin: 0 !important;
  border: 0 !important; border-radius: 50% !important;
  background: transparent !important; color: #f3e6d0 !important;
  font: 400 25px/1 Arial, Helvetica, sans-serif !important;
  box-shadow: none !important; text-shadow: none !important; cursor: pointer !important;
}
html[data-kt-tg="odoms"] body .kt-tg-bar > button.kt-tg-x::before,
html[data-kt-tg="odoms"] body .kt-tg-bar > button.kt-tg-x::after { content: none !important; }
html[data-kt-tg="odoms"] body .kt-tg-bar > button.kt-tg-x:hover { background: rgba(255,255,255,.12) !important; color: #ffb02e !important; }
html[data-kt-tg="odoms"] body .kt-tg-bar > button.kt-tg-x:focus-visible { outline: 2px solid #ffb02e !important; outline-offset: 2px !important; }
@media (max-width: 700px) {
  html[data-kt-tg="odoms"] body .kt-tg-bar { font-size: 13px !important; gap: 6px 10px; padding-left: 42px; padding-right: 42px; }
  html[data-kt-tg="odoms"] body .kt-tg-bar .kt-tg-bar-text { min-width: 0; overflow-wrap: anywhere; }
  html[data-kt-tg="odoms"] body .kt-tg-bar > button.kt-tg-x { right: 6px !important; }
}

/* v1.1.4: keep Odoms corner turkey above site content and particles. */
html[data-kt-tg="odoms"] svg.kt-tg-corner.kt-tg-corner-l {
  z-index: 9999999 !important;
  pointer-events: none !important;
}
/* Keep the optional Thanksgiving dialog above the turkey. */
html[data-kt-tg="odoms"] .kt-tg-overlay { z-index: 10000000; }

/* v1.1.5: isolate Keif banner close control from global theme buttons. */
html[data-kt-tg="keif"] body .kt-tg-bar {
  padding-left: 48px; padding-right: 48px;
}
html[data-kt-tg="keif"] body .kt-tg-bar > button.kt-tg-x {
  all: unset !important;
  box-sizing: border-box !important; position: absolute !important;
  top: 50% !important; right: 12px !important; transform: translateY(-50%) !important;
  display: grid !important; place-items: center !important;
  width: 32px !important; height: 32px !important;
  min-width: 0 !important; min-height: 0 !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important;
  border-radius: 50% !important; background: transparent !important;
  color: #2f4a3a !important; font: 400 25px/1 Arial, Helvetica, sans-serif !important;
  box-shadow: none !important; text-shadow: none !important; cursor: pointer !important;
}
html[data-kt-tg="keif"] body .kt-tg-bar > button.kt-tg-x::before,
html[data-kt-tg="keif"] body .kt-tg-bar > button.kt-tg-x::after { content: none !important; }
html[data-kt-tg="keif"] body .kt-tg-bar > button.kt-tg-x:hover { background: rgba(47,74,58,.10) !important; }
html[data-kt-tg="keif"] body .kt-tg-bar > button.kt-tg-x:focus-visible { outline: 2px solid #b98b2e !important; outline-offset: 2px !important; }
/* Compact left arrangement, offset above the site's cookie control. */
html[data-kt-tg="keif"] .kt-tg-corner.kt-tg-harvest {
  width: 138px; left: 8px; bottom: 68px; pointer-events: none !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.24));
}
@media (max-width: 700px) {
  html[data-kt-tg="keif"] body .kt-tg-bar { padding-left: 36px; padding-right: 36px; gap: 5px 8px; }
  html[data-kt-tg="keif"] body .kt-tg-bar > button.kt-tg-x { right: 3px !important; }
  html[data-kt-tg="keif"] .kt-tg-corner.kt-tg-harvest { width: 83px; left: 5px; bottom: 65px; }
}

/* v1.1.6: Keif garland stays above the header after banner dismissal. */
html[data-kt-tg="keif"] .kt-tg-bar,
html[data-kt-tg="keif"] .kt-tg-standalone {
  z-index: 9999998 !important;
}
html[data-kt-tg="keif"] .kt-tg-garland {
  z-index: 9999998 !important;
  pointer-events: none !important;
}
html[data-kt-tg="keif"] .kt-tg-overlay { z-index: 10000000; }


/* v1.1.7: Keif's standalone garland overlays the page like the corner art.
   No background strip or reserved layout space after the banner is dismissed. */
html[data-kt-tg="keif"] body > .kt-tg-standalone {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  bottom: auto !important; width: auto !important;
  height: 44px; margin: 0 !important; padding: 0 !important;
  border: 0 !important; background: transparent !important;
  box-shadow: none !important; overflow: visible !important;
  z-index: 9999998 !important; pointer-events: none !important;
}
html[data-kt-tg="keif"] body > .kt-tg-standalone > .kt-tg-garland {
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  margin: 0 !important; background-color: transparent !important;
  pointer-events: none !important;
}
html[data-kt-tg="keif"] body.admin-bar > .kt-tg-standalone { top: 32px !important; }
@media (max-width: 782px) {
  html[data-kt-tg="keif"] body.admin-bar > .kt-tg-standalone { top: 46px !important; }
}
@media (max-width: 700px) {
  html[data-kt-tg="keif"] body > .kt-tg-standalone { height: 33px; }
}

/* v1.2.3: one fixed, transparent Keif garland in both banner states.
   Follow the banner while it is visible; pin to viewport top as it scrolls away. */
html[data-kt-tg="keif"] body > .kt-tg-standalone,
html[data-kt-tg="keif"] body.admin-bar > .kt-tg-standalone {
  top: var(--kt-tg-keif-top, 0px) !important;
}
