/* Tavara Perille Muuttolaskuri - WordPress Plugin Styles */

:root {
  --tpl-teal: #00B4A6;
  --tpl-dark: #1A2332;
  --tpl-light: #F0F9F8;
  --tpl-white: #ffffff;
  --tpl-gray: #6B7280;
  --tpl-gray-light: #F3F4F6;
  --tpl-border: #E5E7EB;
  --tpl-red: #DC2626;
}


/* ============================================================
   ELEMENTOR RESET — minimaalne, ainult kriitilised fixes
   ============================================================ */

/* Dropdown menu — peidetud v.a. .open klassi korral */
.tpl-dd-menu { display: none !important; }
.tpl-dd-wrap.open .tpl-dd-menu { display: block !important; }

/* Sammude nähtavus */
.tpl-step { display: none !important; }
.tpl-step.active { display: block !important; }

#tpl-calculator * {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

#tpl-calculator {
  background: var(--tpl-light);
  padding: 40px 20px;
  border-radius: 24px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  #tpl-calculator {
    padding: 20px 16px;
    border-radius: 16px;
  }
}

/* Sammude info-blokk — alati keskel */
.tpl-steps-info {
  max-width: 700px;
  margin: 0 auto 32px;
  text-align: center;
  padding: 0 12px;
}
.tpl-steps-info-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}
.tpl-steps-info-item {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.tpl-steps-info-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tpl-teal);
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tpl-steps-info-text {
  font-size: 13px;
  color: #333;
  font-weight: 600;
  line-height: 1.3;
  word-break: keep-all;
}
@media (max-width: 600px) {
  .tpl-steps-info {
    padding: 0 8px;
    max-width: 100%;
    margin-bottom: 20px;
  }
  .tpl-steps-info-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px;
  }
  .tpl-steps-info-num {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  .tpl-steps-info-text {
    font-size: 12px;
  }
}

.tpl-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 1000px) {
  .tpl-grid {
    grid-template-columns: 1fr !important;
    gap: 50px;
  }
  .tpl-sidebar {
    order: 2;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  #tpl-price-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Stepper */
.tpl-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.tpl-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s;
  background: #E5E7EB;
  color: #9CA3AF;
  flex-shrink: 0;
}

.tpl-step-dot.active {
  background: var(--tpl-teal);
  color: white;
  box-shadow: 0 4px 12px rgba(0,180,166,0.3);
}

.tpl-step-dot.done {
  background: rgba(0,180,166,0.2);
  color: var(--tpl-teal);
}

.tpl-step-line {
  width: 40px;
  height: 2px;
  border-radius: 2px;
  background: #E5E7EB;
  transition: background 0.3s;
}

.tpl-step-line.done {
  background: rgba(0,180,166,0.3);
}

/* Form card */
.tpl-form-card {
  background: white;
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--tpl-border);
}

/* Steps */
.tpl-step {
  display: none;
}

.tpl-step.active {
  display: block;
}

/* Vehicle options */
.tpl-vehicle-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 2px solid var(--tpl-border);
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  background: white;
  text-align: left;
  margin-bottom: 12px;
  pointer-events: auto !important;
  position: relative;
  z-index: 1;
}
.tpl-vehicle-option * {
  pointer-events: none;
}

.tpl-vehicle-option:hover {
  border-color: rgba(0,180,166,0.3);
  background: #F9FAFB;
}

.tpl-vehicle-option.selected {
  border-color: var(--tpl-teal);
  background: rgba(0,180,166,0.05);
  box-shadow: 0 0 0 4px rgba(0,180,166,0.1);
}

.tpl-vehicle-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tpl-gray-light);
  font-size: 20px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.tpl-vehicle-option.selected .tpl-vehicle-icon {
  background: var(--tpl-teal);
}

.tpl-vehicle-label {
  font-weight: 700;
  color: var(--tpl-dark);
  display: block;
  font-size: 15px;
}

.tpl-vehicle-desc {
  font-size: 12px;
  color: var(--tpl-gray);
  display: block;
}

/* Men count */
.tpl-men-buttons {
  display: flex;
  gap: 8px;
}

.tpl-men-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid var(--tpl-border);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  color: var(--tpl-gray);
  font-size: 16px;
}

.tpl-men-btn.selected {
  border-color: var(--tpl-teal);
  background: var(--tpl-teal);
  color: white;
}

/* Labels */
.tpl-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tpl-gray);
  display: block;
  margin-bottom: 8px;
}

/* Range inputs */
.tpl-range-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tpl-range-wrap input[type="range"] {
  flex: 1;
  accent-color: var(--tpl-teal);
}

.tpl-range-value {
  font-weight: 700;
  font-size: 16px;
  min-width: 60px;
  text-align: right;
  color: var(--tpl-dark);
}

/* Select */
.tpl-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--tpl-border);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  background: white;
  color: var(--tpl-dark);
}

.tpl-select:focus {
  border-color: var(--tpl-teal);
}

/* Input */
.tpl-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--tpl-border);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  color: var(--tpl-dark);
}

.tpl-input:focus {
  border-color: var(--tpl-teal);
}

.tpl-input.error {
  border-color: var(--tpl-red);
}

/* Textarea */
.tpl-textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--tpl-border);
  font-size: 14px;
  outline: none;
  min-height: 100px;
  resize: vertical;
  transition: border-color 0.2s;
  color: var(--tpl-dark);
}

.tpl-textarea:focus {
  border-color: var(--tpl-teal);
}

/* Checkbox label */
.tpl-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--tpl-dark);
}

.tpl-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--tpl-teal);
}

/* Toggle */
.tpl-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tpl-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.tpl-toggle {
  position: relative;
  width: 44px;
  height: 22px;
}

.tpl-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.tpl-toggle-slider {
  position: absolute;
  inset: 0;
  background: #E5E7EB;
  border-radius: 22px;
  transition: 0.3s;
}

.tpl-toggle-slider:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.tpl-toggle input:checked + .tpl-toggle-slider {
  background: var(--tpl-teal);
}

.tpl-toggle input:checked + .tpl-toggle-slider:before {
  transform: translateX(22px);
}

/* Box section */
.tpl-box-section {
  background: rgba(0,180,166,0.05);
  border: 1px solid rgba(0,180,166,0.15);
  border-radius: 16px;
  padding: 20px;
}

.tpl-distance-section {
  background: rgba(0,180,166,0.05);
  border: 1px solid rgba(0,180,166,0.1);
  border-radius: 16px;
  padding: 16px;
}

/* Two column grid */
.tpl-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .tpl-two-col {
    grid-template-columns: 1fr;
  }
}

.tpl-space-y > * + * {
  margin-top: 16px;
}

.tpl-space-y-sm > * + * {
  margin-top: 8px;
}

/* Buttons */
.tpl-btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--tpl-teal);
  color: white;
  border: none;
  border-radius: 16px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tpl-btn-primary:hover {
  background: var(--tpl-dark);
}

.tpl-btn-primary:disabled {
  background: #D1D5DB;
  color: #9CA3AF;
  cursor: not-allowed;
}

.tpl-btn-secondary {
  flex: 1;
  padding: 16px;
  background: var(--tpl-gray-light);
  color: var(--tpl-gray);
  border: none;
  border-radius: 16px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.tpl-btn-secondary:hover {
  background: #E5E7EB;
}

.tpl-btn-row {
  display: flex;
  gap: 12px;
}

.tpl-btn-row .tpl-btn-primary {
  flex: 2;
  width: auto;
}

/* Section title */
.tpl-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tpl-gray);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.tpl-section-icon {
  color: var(--tpl-teal);
}

/* Divider */
.tpl-divider {
  border: none;
  border-top: 1px solid var(--tpl-border);
  margin: 24px 0;
}

/* Sidebar price card */
.tpl-price-card {
  background: var(--tpl-dark);
  color: white;
  border-radius: 28px;
  padding: 32px;
  position: sticky;
  top: 100px;
  overflow: visible;
}

.tpl-price-glow-1 {
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: rgba(0,180,166,0.2);
  filter: blur(40px);
  border-radius: 50%;
}

.tpl-price-glow-2 {
  position: absolute;
  bottom: -40px; left: -40px;
  width: 120px; height: 120px;
  background: rgba(0,180,166,0.1);
  filter: blur(40px);
  border-radius: 50%;
}

.tpl-price-inner {
  position: relative;
  z-index: 1;
}

/* Hinnablokk — number keskel, pealkiri all */
.tpl-price-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tpl-teal);
  margin-bottom: 8px;
  text-align: center;
  order: 2;
}

.tpl-price-amount-wrap {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 4px;
  order: 1;
}

.tpl-price-amount {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: center;
  display: block;
}

.tpl-price-currency {
  font-size: 28px;
  color: var(--tpl-teal);
}

.tpl-price-vat {
  font-size: 11px;
  color: #6B7280;
  margin-top: 2px;
  margin-bottom: 20px;
  text-align: center;
  order: 3;
}

/* Järjesta hinnabloki ülaosa flex column */
.tpl-price-inner {
  display: flex;
  flex-direction: column;
}
.tpl-price-inner > :not(.tpl-price-label):not(.tpl-price-amount-wrap):not(.tpl-price-vat) {
  order: 4;
}

.tpl-price-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0 0 16px 0;
}

.tpl-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  margin-bottom: 10px;
  gap: 8px;
  min-width: 0;
}
.tpl-price-row-label {
  flex-shrink: 0;
  white-space: nowrap;
}
.tpl-price-row-value {
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  font-weight: 700;
}

.tpl-price-row-label {
  color: #9CA3AF;
}

.tpl-price-row-value {
  font-weight: 600;
}

.tpl-includes-box {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
}

.tpl-includes-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tpl-teal);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tpl-includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tpl-includes-list li {
  font-size: 12px;
  color: #9CA3AF;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tpl-includes-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tpl-teal);
  flex-shrink: 0;
}

.tpl-info-note {
  font-size: 10px;
  color: #6B7280;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  line-height: 1.4;
}

/* Error message */
.tpl-error-msg {
  font-size: 12px;
  color: var(--tpl-red);
  margin-top: 4px;
}

/* Success screen */
.tpl-success {
  text-align: center;
  padding: 48px 24px;
}

.tpl-success-icon {
  width: 80px;
  height: 80px;
  background: #DCFCE7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 40px;
}

.tpl-success h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--tpl-dark);
  margin-bottom: 16px;
}

.tpl-success p {
  color: var(--tpl-gray);
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Blocked state */
.tpl-blocked-card {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 24px;
  padding: 24px;
}

.tpl-blocked-title {
  color: var(--tpl-red);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Additional services */
.tpl-extras-box {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 16px;
  margin-top: 12px;
}

.tpl-extras-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tpl-extras-list li {
  font-size: 11px;
  color: #9CA3AF;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
  line-height: 1.4;
}

/* Heading */
.tpl-heading {
  font-size: 28px;
  font-weight: 900;
  color: var(--tpl-dark);
  margin-bottom: 8px;
}

.tpl-subheading {
  color: var(--tpl-gray);
  margin-bottom: 24px;
  font-size: 15px;
}

.tpl-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: tpl-spin 0.6s linear infinite;
}

@keyframes tpl-spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   CHATBOT – Jenna
   ============================================================ */

/* "Kysy Jenniltä" nupp */
.tpl-btn-jenna {
  width: 100%;
  padding: 14px;
  background: white;
  color: var(--tpl-teal);
  border: 2px solid var(--tpl-teal);
  border-radius: 16px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}
.tpl-btn-jenna:hover {
  background: var(--tpl-teal);
  color: white;
}

/* Chat overlay */
#tpl-chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
}

@media (max-width: 600px) {
  #tpl-chat-overlay {
    overflow: hidden;
    padding: 0;
    align-items: flex-end;
  }
}

/* Chat aken */
#tpl-chat-window {
  width: 380px;
  max-width: calc(100vw - 0px);
  max-width: 100%;
  height: 560px;
  max-height: 90vh;
  background: white;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
  #tpl-chat-overlay {
    overflow: hidden;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    align-items: flex-end !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  #tpl-chat-window {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0;
    height: 90vh;
    max-height: 90vh;
    box-sizing: border-box;
    overflow: hidden;
  }
  #tpl-chat-input-area {
    padding: 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    width: 100%;
  }
  #tpl-chat-input {
    font-size: 16px !important; /* iOS zoom fix */
    min-width: 0;
    flex: 1;
  }
  #tpl-chat-send {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  #tpl-float-btn {
    bottom: 16px;
    right: 16px;
    font-size: 14px;
    height: 44px;
    padding: 0 16px;
  }
}

/* Header */
#tpl-chat-header {
  background: var(--tpl-dark);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

#tpl-chat-avatar {
  width: 40px;
  height: 40px;
  background: var(--tpl-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}

#tpl-chat-name {
  font-weight: 700;
  font-size: 15px;
}

#tpl-chat-status {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

#tpl-chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
}
#tpl-chat-close:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

/* Sõnumid */
#tpl-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #F9FAFB;
}

.tpl-chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.tpl-chat-msg--bot {
  background: white;
  color: var(--tpl-dark);
  border: 1px solid var(--tpl-border);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.tpl-chat-msg--user {
  background: var(--tpl-teal);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

/* Trükkimise animatsioon */
.tpl-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 14px 18px;
}

.tpl-typing span {
  width: 7px;
  height: 7px;
  background: #CBD5E1;
  border-radius: 50%;
  animation: tpl-bounce 1.2s infinite;
}
.tpl-typing span:nth-child(2) { animation-delay: 0.2s; }
.tpl-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes tpl-bounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* Sisend */
#tpl-chat-input-area {
  padding: 16px;
  border-top: 1px solid var(--tpl-border);
  display: flex;
  gap: 8px;
  background: white;
}

#tpl-chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--tpl-border);
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
#tpl-chat-input:focus {
  border-color: var(--tpl-teal);
}

#tpl-chat-send {
  width: 42px;
  height: 42px;
  background: var(--tpl-teal);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
#tpl-chat-send:hover {
  background: var(--tpl-dark);
}

/* Broneerimise nupud */
.tpl-chat-booking-btn-wrap,
.tpl-chat-confirm-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: flex-start;
  max-width: 85%;
}

.tpl-booking-start-btn {
  padding: 12px 20px;
  background: var(--tpl-teal);
  color: white;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.tpl-booking-start-btn:hover {
  background: var(--tpl-dark);
}

.tpl-confirm-yes {
  padding: 12px 20px;
  background: var(--tpl-teal);
  color: white;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.tpl-confirm-yes:hover { background: var(--tpl-dark); }

.tpl-confirm-no {
  padding: 10px 20px;
  background: white;
  color: #9CA3AF;
  border: 1px solid var(--tpl-border);
  border-radius: 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.tpl-confirm-no:hover { background: #F3F4F6; }

.tpl-offer-btn {
  padding: 12px 20px;
  background: white;
  color: var(--tpl-teal);
  border: 2px solid var(--tpl-teal);
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}
.tpl-offer-btn:hover {
  background: var(--tpl-teal);
  color: white;
}

/* ============================================================
   UJUV CHATBOT NUPP (kogu saidil)
   ============================================================ */
#tpl-float-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  height: 48px;
  padding: 0 20px;
  border-radius: 24px;
  background: var(--tpl-teal);
  color: white;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,180,166,0.4);
  z-index: 99998;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
#tpl-float-btn:hover {
  background: var(--tpl-dark);
  transform: scale(1.03);
}

/* Mobiilis peida nupu tekst, näita ainult ikoon */
@media (max-width: 600px) {
  .tpl-float-text {
    display: none;
  }
  #tpl-float-btn {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    font-size: 24px;
    justify-content: center;
  }
}

/* Pulse animatsioon float nupule */
@keyframes tpl-pulse-anim {
  0%   { box-shadow: 0 0 0 0 rgba(0,180,166,0.6); }
  70%  { box-shadow: 0 0 0 14px rgba(0,180,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,180,166,0); }
}
#tpl-float-btn.tpl-pulse {
  animation: tpl-pulse-anim 1.2s ease-out infinite;
}


/* ============================================================
   LISÄPALVELUT CUSTOM DROPDOWN
   ============================================================ */
.tpl-dd-wrap {
  position: relative;
  margin-top: 8px;
  user-select: none;
  overflow: visible;
  width: 100%;
}
.tpl-dd-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  transition: border-color 0.2s;
  text-align: left;
}
.tpl-dd-trigger:hover,
.tpl-dd-wrap.open .tpl-dd-trigger {
  border-color: var(--tpl-teal);
  color: #1a2332;
}
.tpl-dd-arrow {
  font-size: 12px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.tpl-dd-wrap.open .tpl-dd-arrow {
  transform: rotate(180deg);
}
.tpl-dd-menu {
  display: none !important;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid var(--tpl-teal);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 999;
  max-height: 340px;
  overflow-y: auto;
}
.tpl-dd-wrap.open .tpl-dd-menu {
  display: block !important;
}
.tpl-dd-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f0f0f0;
}
.tpl-dd-item:last-child { border-bottom: none; }
.tpl-dd-item:hover { background: #f0fdfc; }
.tpl-dd-item.selected { background: #e6faf8; }
.tpl-dd-check {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #aaa;
  transition: color 0.15s;
}
.tpl-dd-item.selected .tpl-dd-check {
  color: var(--tpl-teal);
}
.tpl-dd-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.tpl-dd-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}
.tpl-dd-item-name {
  font-size: 13px;
  font-weight: 500;
  color: #1a2332;
  flex: 1;
  min-width: 0;
}
.tpl-dd-item-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--tpl-teal);
  white-space: nowrap;
  flex-shrink: 0;
}
.tpl-dd-note {
  width: 100%;
  font-size: 11px;
  color: #777;
  line-height: 1.4;
  margin-top: 2px;
}
.tpl-dd-qty {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: #444;
}
/* Koguse nupud */
.tpl-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tpl-qty-btn {
  background: none;
  border: none;
  color: var(--tpl-teal);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.tpl-qty-btn:hover {
  opacity: 0.7;
}
.tpl-qty-val {
  font-size: 15px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}
/* Valitud badge trigger peal */
.tpl-dd-badge {
  display: inline-block;
  background: var(--tpl-teal);
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  margin-left: 6px;
}
@media (max-width: 600px) {
  #tpl-float-tip {
    right: 8px !important;
    max-width: calc(100vw - 80px) !important;
  }
  .tpl-dd-menu { max-height: 260px; }
  .tpl-dd-item-name { font-size: 13px; }
}

/* Lisäpalvelut sidebar sektsioonis */
.tpl-dd-section {
  margin-bottom: 16px;
}
.tpl-dd-section .tpl-dd-menu {
  position: absolute;
  border: 2px solid var(--tpl-teal);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  max-height: 280px;
}
.tpl-dd-section .tpl-dd-wrap.open .tpl-dd-trigger {
  border-radius: 10px 10px 0 0;
}
.tpl-dd-section .tpl-dd-trigger {
  font-size: 13px;
}
.tpl-dd-section .tpl-dd-item-name {
  font-size: 13px;
}

/* ============================================================
   MOBIIL FIX — horisontaalse scroli vältimine
   ============================================================ */
#tpl-calculator * {
  box-sizing: border-box;
  max-width: 100%;
}

/* iPhone SE (375px) ja väiksemad */
@media (max-width: 480px) {
  #tpl-calculator {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .tpl-grid {
    gap: 20px;
  }

  /* Sõiduki valikud */
  .tpl-vehicle-option {
    padding: 12px;
    gap: 10px;
  }
  .tpl-vehicle-icon {
    font-size: 28px;
    min-width: 36px;
  }
  .tpl-vehicle-label {
    font-size: 14px;
  }
  .tpl-vehicle-desc {
    font-size: 12px;
  }

  /* Vormi kaardid */
  .tpl-form-card {
    padding: 16px 12px;
    border-radius: 16px;
  }

  /* Hinnakaart */
  .tpl-price-card {
    padding: 20px 12px;
    border-radius: 20px;
    position: static !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .tpl-price-amount {
    font-size: 48px !important;
  }
  /* Price row mobiilis — tekst ei lõigu */
  .tpl-price-row {
    font-size: 12px !important;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .tpl-price-row-label {
    flex-shrink: 0;
    font-size: 12px;
  }
  .tpl-price-row-value {
    text-align: right;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
  }

  /* Stepper */
  .tpl-stepper {
    gap: 6px;
  }
  .tpl-step-dot {
    width: 28px;
    height: 28px;
    font-size: 12px;
    flex-shrink: 0;
  }

  /* Nupud */
  .tpl-btn-row {
    flex-direction: column;
    gap: 8px;
  }
  .tpl-btn-secondary,
  .tpl-btn-primary {
    width: 100%;
  }

  /* Samm 4 — kaheks veeruks jaotus */
  .tpl-two-col {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Sammude info blokk */
  .tpl-steps-info-grid {
    gap: 12px;
  }
  .tpl-steps-info-item {
    min-width: 70px;
  }
  .tpl-steps-info-text {
    font-size: 12px;
  }

  /* Chatbot aken */
  #tpl-chat-window {
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 20px 20px 0 0 !important;
  }
  #tpl-chat-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  /* Dropdown sidebar */
  .tpl-dd-trigger {
    font-size: 12px;
    padding: 9px 10px;
  }
  .tpl-dd-item-name {
    font-size: 12px;
  }
  .tpl-dd-item-price {
    font-size: 12px;
  }
}

/* Takista horisontaalset scrolli kogu lehel */
@media (max-width: 600px) {
  #tpl-calculator {
    overflow-x: hidden;
  }
  .tpl-vehicle-option {
    overflow: hidden;
  }
}
/* ============================================================
   TPL HERO BLOKK — [tpl_hero] shortcode
   ============================================================ */
.tpl-hero {
  max-width: 860px;
  width: 100%;
  margin: 0 auto 32px;
  padding: 28px 24px;
  border: 2px solid #3aa6b9;
  border-radius: 20px;
  background: #f6fdff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

/* Elementor p/br reset hero blokis */
.tpl-hero p {
  margin: 0 !important;
  padding: 0 !important;
  display: none !important;
}
.tpl-hero br {
  display: none !important;
}
.tpl-hero * {
  box-sizing: border-box;
}
.tpl-hero-steps {
  display: grid !important;
}
.tpl-hero-step {
  display: flex !important;
}
.tpl-hero-step-num {
  display: flex !important;
}
.tpl-hero-checks {
  display: flex !important;
}
.tpl-hero-badges {
  display: flex !important;
}
.tpl-hero-badge,
.tpl-hero-title,
.tpl-hero-intro,
.tpl-hero-note,
.tpl-hero-booking,
.tpl-hero-footer,
.tpl-hero-step-body,
.tpl-hero-step-title,
.tpl-hero-step-desc,
.tpl-hero-booking-title,
.tpl-hero-booking-desc,
.tpl-hero-pill {
  display: block !important;
}
.tpl-hero-badge,
.tpl-hero-pill {
  display: inline-block !important;
}
.tpl-hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e8f8fb;
  font-size: 13px;
  color: #0f2e35;
  font-weight: 700;
  margin-bottom: 14px;
}
.tpl-hero-title {
  font-size: 28px;
  font-weight: 800;
  color: #2d97aa;
  margin: 0 0 10px;
  line-height: 1.2;
}
.tpl-hero-intro {
  font-size: 15px;
  line-height: 1.6;
  color: #17343a;
  margin: 0 0 10px;
}
.tpl-hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: #2a4a51;
  margin-bottom: 16px;
}
.tpl-hero-note {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: #17343a;
  line-height: 1.6;
  margin-bottom: 20px;
}
/* Sammude rida */
.tpl-hero-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.tpl-hero-step {
  background: #fff;
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.tpl-hero-step-num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #3aa6b9;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tpl-hero-step-title {
  font-weight: 800;
  font-size: 14px;
  color: #0f2e35;
  margin-bottom: 4px;
}
.tpl-hero-step-desc {
  font-size: 13px;
  color: #17343a;
  line-height: 1.5;
}
/* Broneeringu kaart */
.tpl-hero-booking {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.tpl-hero-booking-title {
  font-weight: 800;
  font-size: 15px;
  color: #0f2e35;
  margin-bottom: 6px;
}
.tpl-hero-booking-desc {
  font-size: 14px;
  color: #17343a;
  line-height: 1.6;
  margin-bottom: 10px;
}
.tpl-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tpl-hero-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f8fb;
  font-size: 13px;
  color: #0f2e35;
  font-weight: 700;
}
.tpl-hero-footer {
  text-align: center;
  font-size: 13px;
  color: #2a4a51;
  margin-top: 8px;
}
/* Mobiil */
@media (max-width: 600px) {
  .tpl-hero {
    padding: 20px 16px;
    border-radius: 16px;
    margin-bottom: 20px;
  }
  .tpl-hero-title {
    font-size: 22px;
  }
  .tpl-hero-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tpl-hero-checks {
    gap: 6px 12px;
    font-size: 12px;
  }
}


