@font-face { font-family: 'ETS Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/open-sans-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'ETS Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/open-sans-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'ETS Open Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/open-sans-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'ETS Open Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/open-sans-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'ETS Open Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/open-sans-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'ETS Open Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/open-sans-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'ETS Open Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/open-sans-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'ETS Open Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/open-sans-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Escape Time - Pokój Świąteczny. Wymiary wzorowane na widżecie Lock.me. */
.ets {
  --ets-accent: #f9c31f;
  --ets-card: #1e1e1e;
  --ets-muted: #8a8a8a;
  --ets-line: #e6e6e6;
  container-type: inline-size;
  color: #fff;
  background: transparent;
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 0;
  font-family: 'ETS Open Sans', 'Open Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: left;
  box-sizing: border-box;
}
.ets.ets {
  --ets-w: min(840px, calc(100vw - 24px));
  width: var(--ets-w) !important;
  max-width: none !important;
  margin-left: calc(50% - var(--ets-w) / 2) !important;
  margin-right: 0 !important;
}
.ets *, .ets *::before, .ets *::after { box-sizing: border-box; }

/* Reset stylów motywu */
.ets button, .ets input, .ets select, .ets textarea, .ets a {
  font-family: inherit; letter-spacing: normal; text-transform: none; text-shadow: none; box-shadow: none; margin: 0; line-height: 1.2;
}
.ets button { cursor: pointer; padding: 0; }
.ets button:disabled { cursor: default; }
.ets h3, .ets p { font-family: inherit; letter-spacing: normal; color: inherit; }
.ets :focus-visible { outline: 2px solid var(--ets-accent); outline-offset: 2px; }

.ets-ic { display: inline-flex; width: 1em; height: 1em; vertical-align: -0.12em; flex: none; }
.ets-ic svg { width: 100%; height: 100%; }
.ets-ic-lg { width: 34px; height: 34px; }

/* Nagłówek i karty pokoi */
.ets-title { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 16px; padding: 0 8px 12px; border-bottom: 2px solid var(--ets-line); }
.ets-title .ets-ic { width: 20px; height: 20px; }
.ets-rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 20px 0 16px; border-bottom: 2px solid var(--ets-line); }
.ets-room { display: flex; gap: 10px; align-items: center; height: 70px; padding: 10px; border-radius: 4px; background: var(--ets-card); }
.ets-room.is-active { background: var(--ets-accent); color: #000; }
.ets-room-img { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 3px; background: #000; color: var(--ets-accent); display: grid; place-items: center; }
.ets-room-img .ets-ic { width: 34px; height: 34px; }
.ets-room-name { font-size: 16px; font-weight: 500; line-height: 1.25; }
.ets-room-meta { font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ets-room-meta .ets-ic { width: 14px; height: 14px; }
.ets-room-price { margin-left: 4px; padding: 0 5px; border-radius: 3px; background: #000; color: var(--ets-accent); font-weight: 600; }

/* Zakładki kroków */
.ets-tabs { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 0 0 16px; }
.ets-tab { display: flex; gap: 8px; align-items: center; min-height: 44px; padding: 8px 8px 6px; border: 0; border-bottom: 2px solid var(--ets-line); background: none; color: #6e6e6e; font-size: 16px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ets-tab .ets-ic { width: 20px; height: 20px; }
.ets-tab.is-active { color: #fff; font-weight: 500; }
.ets-tab.is-link { color: #8a8a8a; text-decoration: underline; }
.ets-tab.is-link:hover { color: #fff; }

/* Kalendarz */
.ets-cal { position: relative; }
.ets-cal.is-loading { opacity: .5; pointer-events: none; }
.ets-days { display: grid; grid-template-columns: repeat(var(--ets-cols, 7), minmax(0, 1fr)); }
.ets-day { padding: 0 10px 20px; border-radius: 3px; }
.ets-day:nth-child(odd) { background: var(--ets-card); }
.ets-day-head { text-align: center; padding: 6px 0 10px; margin: 0 -10px 30px; border-radius: 3px 3px 0 0; }
.ets-day-head.is-today { background: #fff; color: #000; }
.ets-day-date { font-size: 24px; line-height: 1.25; }
.ets-day-wd { font-size: 12px; text-transform: uppercase; }
.ets-day-slots { display: grid; gap: 10px; }
.ets-slot { height: 40px; width: 100%; border: 1px solid #fff; border-radius: 3px; background: #000; color: #fff; font-size: 20px; font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.ets-slot:hover:not(:disabled) { background: #fff; color: #000; }
.ets-slot:disabled { border-color: #3a3a3a; color: #5c5c5c; background: transparent; }
.ets-closed { text-align: center; color: #5c5c5c; font-size: 14px; }
.ets-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 90px; border: 0; border-radius: 3px; background: var(--ets-card); color: #fff; display: grid; place-items: center; }
.ets-nav .ets-ic { width: 44px; height: 44px; }
.ets-nav-prev { left: -125px; }
.ets-nav-next { right: -125px; }
.ets-nav:disabled { opacity: .3; }
.ets-empty { text-align: center; color: var(--ets-muted); }
.ets-loading { padding: 60px 0; text-align: center; color: var(--ets-muted); }

/* Wiersze formularza */
.ets-row { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: center; min-height: 80px; padding: 16px 30px; border-radius: 4px; }
.ets-row.is-dark { background: var(--ets-card); }
.ets-row.is-top { align-items: start; }
.ets-row.is-top .ets-row-label { padding-top: 2px; }
.ets-row-label { display: flex; gap: 14px; align-items: center; font-size: 20px; font-weight: 600; }
.ets-big { font-size: 24px; line-height: 1.2; }
.ets-mid { font-size: 18px; }
.ets-small { font-size: 12px; text-transform: uppercase; }
.ets-muted { color: var(--ets-muted); font-size: 15px; }
.ets-when { display: flex; gap: 40px; }

/* Liczba osób - kwadraty jak w Lock.me */
.ets-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.ets .ets-chip { width: 36px; height: 36px; min-width: 36px; padding: 0; border: 1px solid #fff; border-radius: 3px; background: #000; color: #fff; font-size: 18px; display: grid; place-items: center; }
.ets .ets-chip.is-active { background: #fff; color: #000; }

/* Pola danych - etykieta nad polem */
.ets-fields { display: grid; gap: 14px; }
.ets-field { display: block; }
.ets-field > span { display: block; font-size: 16px; margin-bottom: 6px; }
.ets .ets-field input, .ets .ets-field select, .ets .ets-field textarea {
  display: block; width: 100%; height: 38px; padding: 0 12px; border: 1px solid #fff; border-radius: 3px; background: #000; color: #fff; font-size: 16px; outline: none;
}
.ets .ets-field textarea { height: 150px; padding: 10px 12px; resize: vertical; }
.ets .ets-field input::placeholder, .ets .ets-field textarea::placeholder { color: #8a8a8a; opacity: 1; }
.ets .ets-field input:focus, .ets .ets-field select:focus, .ets .ets-field textarea:focus { border-color: var(--ets-accent); }
.ets .ets-field select { appearance: none; -webkit-appearance: none; padding-right: 32px; background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23999' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; }
.ets-phone { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; }
.ets-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Radio i checkbox */
.ets-radios { display: grid; gap: 10px; }
.ets-radio, .ets-check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; font-size: 16px; }
.ets .ets-radio input { appearance: none; -webkit-appearance: none; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; border: 1.5px solid #fff; border-radius: 50%; background: #000; }
.ets .ets-radio input:checked { border: 5px solid var(--ets-accent); }
.ets .ets-check input { appearance: none; -webkit-appearance: none; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; border: 1.5px solid #fff; border-radius: 3px; background: #000; }
.ets .ets-check input:checked { background: var(--ets-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' d='M1 5l3.5 3.5L11 1'/%3E%3C/svg%3E") no-repeat center; border-color: var(--ets-accent); }
.ets-check a { color: #fff; text-decoration: underline; }
.ets-badge { display: inline-block; padding: 0 5px; border-radius: 3px; background: var(--ets-accent); color: #000; font-size: 11px; font-weight: 700; text-transform: uppercase; vertical-align: 2px; }
.ets-consent { padding: 18px 30px 0; }

/* Przyciski jak w Lock.me */
.ets-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 30px 15px 0; flex-wrap: wrap; }
.ets .ets-btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; height: 38px; padding: 0 14px; border: 0; border-radius: 3px; background: var(--ets-accent); color: #000; font-size: 16px; font-weight: 400; }
.ets .ets-btn .ets-ic { width: 18px; height: 18px; }
.ets .ets-btn:hover:not(:disabled) { filter: brightness(1.08); }
.ets .ets-btn:disabled { opacity: .6; }
.ets .ets-btn-ghost { background: #4b4b4b; color: #fff; }
.ets-error { margin: 14px 15px 0; padding: 10px 14px; border-left: 4px solid #e5484d; background: #2a1213; color: #ffd6d6; }

/* Symulator płatności */
.ets-pay { max-width: 480px; margin: 10px auto 0; padding: 26px; border-radius: 4px; background: var(--ets-card); text-align: center; }
.ets-pay-head { display: flex; justify-content: center; gap: 10px; align-items: center; font-size: 20px; }
.ets-pay-amount { font-size: 38px; font-weight: 700; color: var(--ets-accent); margin: 10px 0; }
.ets-pay .ets-actions { justify-content: center; padding: 16px 0 0; }
.ets-pay .ets-error { margin: 10px 0 0; text-align: left; }
.ets-timer { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Koniec */
.ets-done { text-align: center; padding: 30px 16px; }
.ets-done-icon { width: 70px; height: 70px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; font-weight: 700; }
.ets-done.is-ok .ets-done-icon { background: var(--ets-accent); color: #000; }
.ets-done.is-fail .ets-done-icon { background: #e5484d; color: #fff; }
.ets-done h3 { color: #fff; margin: 0 0 8px; font-size: 24px; font-weight: 600; }
.ets-done .ets-btn { margin-top: 10px; }

/* Stopka jak w Lock.me */
.ets-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; font-size: 16px; }
.ets-foot a { color: #fff; text-decoration: underline; }

/* Strzałki wchodzą do środka, gdy z boku nie ma miejsca */
@media (max-width: 1120px) {
  .ets-cal { padding: 0 44px; }
  .ets-nav { width: 36px; }
  .ets-nav .ets-ic { width: 32px; height: 32px; }
  .ets-nav-prev { left: 0; }
  .ets-nav-next { right: 0; }
}

@container (max-width: 720px) {
  .ets-rooms { grid-template-columns: minmax(0, 1fr); }
  .ets-tabs { gap: 6px; }
  .ets-tab { font-size: 13px; flex-direction: column; align-items: flex-start; gap: 4px; white-space: normal; }
  .ets-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; min-height: 0; }
  .ets-row-label { font-size: 18px; }
  .ets-when { gap: 24px; }
  .ets-consent { padding: 16px 16px 0; }
  .ets-actions { padding: 24px 16px 0; }
  .ets-error { margin-left: 16px; margin-right: 16px; }
  .ets-day { padding: 0 5px 16px; }
  .ets-day-head { margin: 0 -5px 16px; }
  .ets-phone { grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
}

/* Czarne tło całej strony (opcja w ustawieniach) */
body.ets-dark-page,
body.ets-dark-page .wp-site-blocks,
body.ets-dark-page #page,
body.ets-dark-page .site,
body.ets-dark-page .site-content,
body.ets-dark-page main,
body.ets-dark-page header,
body.ets-dark-page footer { background: #000 !important; color: #fff !important; }
body.ets-dark-page h1, body.ets-dark-page h2, body.ets-dark-page h3,
body.ets-dark-page .wp-block-site-title a,
body.ets-dark-page .wp-block-navigation a,
body.ets-dark-page .wp-block-navigation__container,
body.ets-dark-page .site-title a,
body.ets-dark-page .main-navigation a { color: #fff !important; }
body.ets-dark-page .wp-block-navigation__responsive-container.is-menu-open { background: #000 !important; }
