/* Text Teresa Widget styles - 2026-05-09 */
#teresa-widget-root { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

#teresa-widget-fab {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 999998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #C9A96E;
  color: #111;
  border: none;
  padding: 14px 22px 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#teresa-widget-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28), 0 3px 8px rgba(0, 0, 0, 0.14);
}
#teresa-widget-fab .tw-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #111;
  color: #C9A96E;
  border-radius: 50%;
}
@media (max-width: 480px) {
  #teresa-widget-fab { padding: 12px 18px 12px 14px; font-size: 14px; bottom: 16px; left: 16px; }
  #teresa-widget-fab .tw-label { display: inline; }
}

#teresa-widget-panel {
  position: fixed;
  bottom: 90px;
  left: 22px;
  z-index: 999999;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #fff;
  color: #111;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24), 0 6px 16px rgba(0, 0, 0, 0.14);
  padding: 22px 22px 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
#teresa-widget-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#teresa-widget-panel .tw-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  color: #888;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
#teresa-widget-panel .tw-close:hover { color: #111; background: #f3f3f3; }

#teresa-widget-panel .tw-header { margin-bottom: 16px; }
#teresa-widget-panel .tw-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: #111;
  line-height: 1.1;
}
#teresa-widget-panel .tw-title em {
  font-style: italic;
  color: #C9A96E;
}
#teresa-widget-panel .tw-sub {
  margin-top: 6px;
  font-size: 12.5px;
  color: #555;
  line-height: 1.45;
}

#teresa-widget-panel .tw-buttons {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
#teresa-widget-panel .tw-btn {
  display: block;
  width: 100%;
  padding: 13px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  box-sizing: border-box;
  font-family: inherit;
}
#teresa-widget-panel .tw-btn-primary {
  background: #C9A96E;
  color: #111;
  border-color: #C9A96E;
}
#teresa-widget-panel .tw-btn-primary:hover {
  background: #d4b785;
  border-color: #d4b785;
}
#teresa-widget-panel .tw-btn-secondary {
  background: #111;
  color: #fff;
  border-color: #111;
}
#teresa-widget-panel .tw-btn-secondary:hover { background: #222; border-color: #222; }
#teresa-widget-panel .tw-btn-outline {
  background: transparent;
  color: #111;
  border-color: #C9A96E;
}
#teresa-widget-panel .tw-btn-outline:hover {
  background: #fff8ec;
}

#tw-callback-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#tw-callback-form label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #555;
  font-weight: 600;
  letter-spacing: 0.3px;
}
#tw-callback-form input[type="text"],
#tw-callback-form input[type="tel"] {
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #111;
  font-family: inherit;
}
#tw-callback-form input:focus {
  outline: none;
  border-color: #C9A96E;
  box-shadow: 0 0 0 3px rgba(201,169,110,0.18);
}
#tw-callback-form fieldset.tw-when {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 8px 12px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#tw-callback-form fieldset.tw-when legend {
  font-size: 12px;
  color: #555;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 0 6px;
}
#tw-callback-form fieldset.tw-when label {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #111;
}
#tw-callback-form .tw-submit {
  margin-top: 4px;
}

#tw-success {
  margin-top: 14px;
  background: #fff8ec;
  border-left: 4px solid #C9A96E;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #111;
}
#tw-success a { color: #8b6f1f; font-weight: 600; }

#teresa-widget-panel .tw-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  color: #555;
}
#teresa-widget-panel .tw-footer a {
  color: #555;
  text-decoration: none;
  border-bottom: 1px dotted #C9A96E;
}
#teresa-widget-panel .tw-footer a:hover { color: #111; }

@media (max-width: 480px) {
  #teresa-widget-panel {
    bottom: 80px;
    left: 12px;
    right: 12px;
    width: auto;
    padding: 18px 18px 16px;
  }
}

@media print { #teresa-widget-root { display: none !important; } }
