@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

:root{
  --tbr-font: 'Nunito', sans-serif;

  --tbr-bg: #ffe4b7;
  --tbr-surface: #FFFFFF;
  --tbr-primary: #722503;
  --tbr-secondary: #9A6040;
  --tbr-accent: #722503;
  --tbr-accent-hover: #5a1c02;
  --tbr-border: #f0c98a;
  --tbr-selected: #722503;
  --tbr-selected-text: #FFFFFF;
  --tbr-success: #4A7C59;
  --tbr-error: #C0392B;

  --tbr-text: #1A1A1A;
  --tbr-muted: rgba(26,26,26,.62);

  --tbr-radius: 10px;
  --tbr-radius-card: 16px;
  --tbr-shadow: 0 4px 24px rgba(114,37,3,0.10);
}

.tbr-wrapper {
  max-width: 420px;
  margin: 0 auto;
  font-family: 'Nunito', sans-serif;
  background: transparent;
  color: var(--tbr-text);
}

.tbr-widget {
  width: 100%;
  font-size: 13px;
}

.tbr-card {
  background: #fff;
  border-radius: var(--tbr-radius-card);
  box-shadow: var(--tbr-shadow);
  padding: 20px;
  border: 1px solid rgba(240,201,138,.45);
}

/* Sikeres foglalás lépés: ne ismétlődjen a főcím / alcím / fő szlogen */
.tbr-card--booking-success .tbr-widget-head {
  display: none;
}

.tbr-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--tbr-primary);
}

.tbr-subtitle {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(114,37,3,.88);
}

.tbr-hint {
  margin-top: 8px;
  font-weight: 600;
  font-size: 12px;
  color: var(--tbr-primary);
  line-height: 1.35;
}

.tbr-widget-body{ margin-top: 14px; }

.tbr-step{ display:none; }
.tbr-step.is-active{ display:block; }

.tbr-field{ margin-bottom: 14px; }

.tbr-label{
  display:block;
  font-size: 12px;
  color: var(--tbr-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.tbr-input,
.tbr-textarea,
select.tbr-input{
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #f0c98a;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: #1A1A1A;
  background: #FAFAF7;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tbr-input:focus,
.tbr-textarea:focus{
  border-color: #722503;
  outline: none;
  box-shadow: 0 0 0 3px rgba(114,37,3,0.08);
}

.tbr-inline-hint{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(114,37,3,.75);
}

.tbr-inline-hint--blocked{
  font-weight: 600;
  color: #8a6d3b;
  background: rgba(192,57,43,.08);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(192,57,43,.25);
}

.tbr-counter{
  display:flex;
  align-items:center;
  gap: 16px;
}

.tbr-counter-btn{
  width: 32px;
  height: 32px;
  border: 1.5px solid #722503;
  background: #fff;
  color: #722503;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink: 0;
}

.tbr-counter-btn[disabled]{
  opacity: .45;
  cursor: not-allowed;
}

.tbr-counter-value{
  font-size: 18px;
  font-weight: 700;
  color: #722503;
  min-width: 28px;
  text-align: center;
}

.tbr-location-row {
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tbr-location-btn {
  border: 1.5px solid #722503;
  background: #fff;
  color: #722503;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}

/* Nincs külön hover: a :hover felülírná a .selected bordó hátterét, fehér szöveg maradna → olvashatatlan. */
.tbr-location-btn.selected {
  background: #722503;
  color: #fff;
}

.tbr-location-btn[disabled]{
  border-color: #e0d5ca;
  color: #c4b8aa;
  cursor: not-allowed;
  opacity: .75;
}

.tbr-time-grid{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tbr-time-btn{
  border: 1.5px solid #722503;
  background: #fff;
  color: #722503;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.tbr-time-btn:hover:not(:disabled),
.tbr-time-btn.selected{
  background: #722503;
  color: #fff;
}

.tbr-time-btn.disabled,
.tbr-time-btn:disabled {
  border-color: #ddd;
  background: #f5f5f5;
  color: #bbb;
  text-decoration: line-through;
  cursor: not-allowed;
  pointer-events: none;
}

.tbr-btn-primary{
  width: 100%;
  background: #722503;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.tbr-btn-primary:hover{ background:#5a1c02; }
.tbr-btn-primary[disabled]{
  opacity: .55;
  cursor: not-allowed;
}

.tbr-back{
  border: none;
  background: transparent;
  padding: 0;
  margin: 0 0 10px 0;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(114,37,3,.9);
}

.tbr-mini-summary{
  display:flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  padding: 10px 10px;
  border: 1px solid rgba(240,201,138,.75);
  border-radius: 10px;
  background: #FAFAF7;
  margin-bottom: 12px;
  font-weight: 600;
  color: rgba(114,37,3,.92);
  font-size: 12px;
}

.tbr-check{
  display:flex;
  align-items:flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--tbr-text);
  margin: 8px 0 12px 0;
}
.tbr-check input{ margin-top: 2px; }

.tbr-toast{
  margin-top: 10px;
  font-size: 12px;
  color: var(--tbr-text);
}
.tbr-toast.tbr-toast--ok{
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  color: #1a5c38;
  background: rgba(74,124,89,.14);
  border: 1px solid rgba(74,124,89,.38);
}
.tbr-toast.tbr-toast--bad{
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  color: #8a1c12;
  background: rgba(192,57,43,.10);
  border: 1px solid rgba(192,57,43,.35);
}

.tbr-success{
  text-align:center;
  padding: 6px 0 4px 0;
}

.tbr-success__icon{
  width: 48px;
  height: 48px;
  border-radius: 999px;
  margin: 0 auto 10px auto;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(74,124,89,.12);
  color: var(--tbr-success);
  font-size: 24px;
  font-weight: 900;
}

.tbr-success__title{
  font-weight: 800;
  font-size: 15px;
  color: var(--tbr-primary);
  margin-bottom: 8px;
}

.tbr-success__text{
  font-size: 13px;
  line-height: 1.5;
  color: rgba(26,26,26,.82);
}

.tbr-success-panel{
  text-align: left;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(240,201,138,.6);
}

.tbr-success-panel__title{
  font-size: 13px;
  font-weight: 800;
  color: var(--tbr-primary);
  margin: 0 0 10px 0;
}

.tbr-success-kv{
  list-style: none;
  margin: 0 0 14px 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.45;
}

.tbr-success-kv__row{
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(240,201,138,.35);
}
.tbr-success-kv__row:last-child{
  border-bottom: none;
}

.tbr-success-kv__k{
  font-weight: 700;
  color: rgba(114,37,3,.85);
}
.tbr-success-kv__v{
  color: rgba(26,26,26,.88);
  word-break: break-word;
}

.tbr-btn-outline{
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid #722503;
  background: #fff;
  color: #722503;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 16px;
}

.tbr-btn-outline:hover{
  border-color: #722503;
  background: #fff;
  color: #722503;
}

/* Foglalás módosítás – törlés / lemondás link. */

.tbr-manage-cancel-wrap{
  margin-top: 4px;
}

.tbr-manage-cancel-wrap .tbr-inline-hint{
  margin-top: 14px;
  margin-bottom: 8px;
}

.tbr-manage-cancel-wrap .tbr-btn-cancel-route{
  border-color: rgba(192,57,43,.55);
  color: var(--tbr-error);
  font-weight: 800;
}

.tbr-manage-cancel-wrap .tbr-btn-cancel-route:hover{
  border-color: var(--tbr-error);
  background: rgba(192,57,43,.06);
  color: var(--tbr-error);
}

.tbr-cal-section-label{
  font-size: 12px;
  font-weight: 800;
  color: rgba(114,37,3,.9);
  margin: 0 0 10px 0;
}

.tbr-cal-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tbr-cal-btn{
  flex: 1 1 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1.5px solid #722503;
  border-radius: 10px;
  background: #fff;
  color: #722503;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.tbr-cal-btn__label{
  line-height: 1.2;
}

.tbr-cal-btn--google::before{
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%234285F4' d='M24 22v10h12.2c-.5 3-3 8.8-12.2 8.8-7.3 0-13.2-6-13.2-13.4S17.7 14 24 14c3.6 0 6.1 1.5 7.4 2.8l5-4.8C33.4 8.6 29 6.5 24 6.5 12.4 6.5 3 15.9 3 27.5S12.4 48.5 24 48.5c13.6 0 21-11.9 21-22.9 0-1.5-.1-2.7-.4-3.8H24z'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

.tbr-cal-btn--outlook::before{
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230078D4' d='M21.7 11.5V6.6l-7.9 3.6 7.9 4.3zM2.2 21h8.6V12.9L2.2 8.6V21zm9.6-8.1L21.7 9V21h-9.8V12.9zM2.2 7.1l8.6 4 8.6-4-8.6-4-8.6 4z'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

.tbr-cal-btn--apple::before{
  content: "";
  display: inline-block;
  width: 16px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M18.7 12.8c0-2.6 1.4-4.9 3.6-6-1.4-2-3.7-3.2-6.3-3.3-2.7-.1-5.2 1.6-6.5 1.6-1.4 0-3.6-1.6-5.9-1.5-3 .1-5.8 1.8-7.3 4.5-3.1 5.4-.8 13.4 2.2 17.8 1.5 2.2 3.2 4.7 5.5 4.6 2.2-.1 3.1-1.4 5.7-1.4 2.7 0 3.5 1.4 5.9 1.4 2.4 0 3.9-2.2 5.4-4.4 1.7-2.5 2.4-4.9 2.4-5-.1-.1-4.4-1.7-4.4-6.5zM15.8 3.9c1.2-1.4 2-3.4 1.8-5.4-1.7.1-3.8 1.1-5.1 2.5-1.1 1.3-2.1 3.4-1.8 5.4 1.9.2 3.8-.9 5.1-2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}
