/* SabaiSabai — Cennik */
.ss-cennik-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 24px 64px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ss-cennik-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
  color: #5c4a3a;
  font-size: 1.05rem;
  line-height: 1.7;
}
.ss-cennik-intro strong {
  color: #2c1a0e;
}

/* —— Tabela desktop —— */
.ss-cennik-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(44, 26, 14, 0.08);
  background: #fff;
  margin-bottom: 40px;
  -webkit-overflow-scrolling: touch;
}

.ss-cennik-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.92rem;
}

.ss-cennik-table thead th {
  background: linear-gradient(135deg, #2c1a0e 0%, #4a3020 100%);
  color: #e8dcc8;
  font-weight: 600;
  padding: 16px 14px;
  text-align: center;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  text-transform: uppercase;
  white-space: nowrap;
}
.ss-cennik-table thead th:first-child {
  text-align: left;
  padding-left: 24px;
  min-width: 260px;
}

.ss-cennik-table tbody tr {
  transition: background 0.15s;
}
.ss-cennik-table tbody tr:nth-child(even) {
  background: #faf7f2;
}
.ss-cennik-table tbody tr:hover {
  background: #f3ebe0;
}

.ss-cennik-table td {
  padding: 14px 14px;
  text-align: center;
  border-bottom: 1px solid #ede5d8;
  color: #3d2e1e;
}
.ss-cennik-table td:first-child {
  text-align: left;
  padding-left: 24px;
  font-weight: 500;
  color: #2c1a0e;
  line-height: 1.4;
}

.ss-cennik-price {
  display: inline-block;
  font-weight: 700;
  color: #8b6914;
  font-size: 0.95rem;
  white-space: nowrap;
}
.ss-cennik-price::after {
  content: " zł";
  font-weight: 500;
  font-size: 0.82em;
  color: #a08050;
}
.ss-cennik-dash {
  color: #ccc4b8;
  font-weight: 300;
}

.ss-cennik-table tbody tr.ss-cennik-row-highlight {
  background: linear-gradient(90deg, #fff9ee 0%, #fff5e0 100%);
}
.ss-cennik-table tbody tr.ss-cennik-row-highlight:hover {
  background: #fff0d0;
}
.ss-cennik-table tbody tr.ss-cennik-row-highlight td:first-child::before {
  content: "✦ ";
  color: #c9a96e;
}

/* —— Karty mobile —— */
.ss-cennik-cards {
  display: none;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.ss-cennik-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 16px rgba(44, 26, 14, 0.07);
  border: 1px solid #ede5d8;
}
.ss-cennik-card.ss-cennik-card-premium {
  border-color: #c9a96e;
  background: linear-gradient(145deg, #fffdf8 0%, #fff8e8 100%);
}

.ss-cennik-card-title {
  font-weight: 600;
  color: #2c1a0e;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.ss-cennik-durations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ss-cennik-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #faf7f2;
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 72px;
  border: 1px solid #e8dfd0;
}
.ss-cennik-pill-time {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a7560;
  margin-bottom: 2px;
}
.ss-cennik-pill-price {
  font-weight: 700;
  color: #8b6914;
  font-size: 0.95rem;
}
.ss-cennik-pill-price span {
  font-weight: 500;
  font-size: 0.8em;
  color: #a08050;
}

/* —— Sekcja premium —— */
.ss-cennik-specials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.ss-cennik-special {
  position: relative;
  background: linear-gradient(145deg, #2c1a0e 0%, #4a3020 100%);
  color: #fff;
  border-radius: 18px;
  padding: 28px 24px;
  overflow: hidden;
}
.ss-cennik-special::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: rgba(201, 169, 110, 0.15);
  border-radius: 50%;
}
.ss-cennik-special-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #c9a96e;
  margin-bottom: 8px;
}
.ss-cennik-special h3 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
}
.ss-cennik-special-meta {
  font-size: 0.85rem;
  color: #c9b89a;
  margin-bottom: 16px;
}
.ss-cennik-special-price {
  font-size: 2rem;
  font-weight: 700;
  color: #c9a96e;
  line-height: 1;
}
.ss-cennik-special-price span {
  font-size: 1rem;
  font-weight: 500;
  color: #c9b89a;
}

/* —— Stopka / CTA —— */
.ss-cennik-footer {
  text-align: center;
  padding: 28px 24px;
  background: #faf7f2;
  border-radius: 14px;
  border: 1px solid #ede5d8;
}
.ss-cennik-footer p {
  margin: 0 0 16px;
  color: #5c4a3a;
  font-size: 0.95rem;
}
.ss-cennik-footer p a {
  color: #8b6914;
  font-weight: 600;
  text-decoration: none;
}
.ss-cennik-footer p a:hover {
  text-decoration: underline;
}

/* Ukryj pusty obszar pod tytułem strony */
.page-template-page-with-title .entry-content > *:first-child {
  margin-top: 0;
}
.ss-cennik-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c9a96e;
  color: #1a0a00 !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 25px;
  transition: all 0.2s;
}
.ss-cennik-cta:hover {
  background: #b8934f;
  color: #fff !important;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .ss-cennik-table-wrap { display: none; }
  .ss-cennik-cards { display: flex; }
  .ss-cennik-wrap { padding: 0 16px 48px; }
}


/* ===== Gutenberg: cennik-bloki ===== */
.page-id-41 .entry-content {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.ss-gutenberg-cennik-page.ss-cennik-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 64px;
  box-sizing: border-box;
}

.ss-gutenberg-cennik-page .ss-cennik-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px !important;
  color: #5c4a3a;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Owijka tabeli — pełna szerokość */
.ss-gutenberg-cennik-page .ss-gutenberg-cennik-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 40px;
  padding: 0 !important;
}

.ss-gutenberg-cennik-page .ss-gutenberg-cennik-table-wrap > .wp-block-table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(44, 26, 14, 0.08);
  background: #fff;
  -webkit-overflow-scrolling: touch;
  border: none !important;
}

.ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table > table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0;
  font-size: 0.92rem;
  table-layout: fixed !important;
  margin: 0 !important;
  border: none !important;
}

.ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table col.ss-col-name {
  width: 40% !important;
}
.ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table col.ss-col-p {
  width: 15% !important;
}

.ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table th,
.ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table td {
  border: none !important;
  border-bottom: 1px solid #ede5d8 !important;
  background: transparent;
  box-sizing: border-box;
}

/* Jednolity nagłówek — nadpisanie motywu */
.ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table thead th,
.ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table thead td {
  background: linear-gradient(135deg, #2c1a0e 0%, #4a3020 100%) !important;
  background-color: #2c1a0e !important;
  color: #e8dcc8 !important;
  font-weight: 600 !important;
  padding: 16px 10px !important;
  text-align: center !important;
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

.ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table thead th:first-child {
  text-align: left !important;
  padding-left: 22px !important;
}

.ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table tbody td {
  padding: 15px 10px !important;
  text-align: center !important;
  vertical-align: middle !important;
  color: #3d2e1e;
}

.ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table tbody td:first-child {
  text-align: left !important;
  padding-left: 22px !important;
  padding-right: 12px !important;
  font-weight: 500;
  color: #2c1a0e;
  line-height: 1.4;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table .ss-cennik-price {
  display: inline-block;
  font-weight: 700;
  color: #8b6914;
  font-size: 0.95rem;
  white-space: nowrap;
}
.ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table .ss-cennik-price::after {
  content: " zł";
  font-weight: 500;
  font-size: 0.82em;
  color: #a08050;
}

.ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table .ss-cennik-dash {
  color: #ccc4b8 !important;
  font-weight: 300 !important;
}

.ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table tbody tr:nth-child(even) td {
  background-color: #faf7f2 !important;
}
.ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table tbody tr:hover td {
  background-color: #f3ebe0 !important;
}
.ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table tbody tr.ss-cennik-row-highlight td {
  background: linear-gradient(90deg, #fff9ee 0%, #fff5e0 100%) !important;
}
.ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table tbody tr.ss-cennik-row-highlight:hover td {
  background: #fff0d0 !important;
}

/* Premium + footer */
.ss-gutenberg-cennik-page .ss-gutenberg-cennik-specials {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  margin-bottom: 36px;
}
.ss-gutenberg-cennik-page .ss-cennik-special {
  position: relative;
  overflow: hidden;
  flex-basis: auto !important;
}
.ss-gutenberg-cennik-page .ss-cennik-special::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: rgba(201,169,110,0.15);
  border-radius: 50%;
  pointer-events: none;
}
.ss-gutenberg-cennik-page .ss-cennik-footer {
  width: 100%;
  text-align: center;
  padding: 28px 24px;
  background: #faf7f2;
  border-radius: 14px;
  border: 1px solid #ede5d8;
  box-sizing: border-box;
}
.ss-gutenberg-cennik-page .ss-cennik-footer p { margin: 0 0 16px; color: #5c4a3a; }
.ss-gutenberg-cennik-page .ss-cennik-footer p a:not(.ss-cennik-cta) {
  color: #8b6914; font-weight: 600; text-decoration: none;
}

@media (max-width: 768px) {
  .ss-gutenberg-cennik-page.ss-cennik-wrap { padding: 0 12px 48px; }
  .ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table {
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table > table {
    min-width: 0 !important;
    table-layout: auto !important;
  }
  .ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table colgroup { display: none; }
  .ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table thead { display: none; }
  .ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table tbody tr {
    display: block;
    margin-bottom: 14px;
    padding: 18px 20px;
    background: #fff !important;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(44,26,14,0.07);
    border: 1px solid #ede5d8;
  }
  .ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table tbody tr.ss-cennik-row-highlight {
    border-color: #c9a96e;
    background: linear-gradient(145deg, #fffdf8, #fff8e8) !important;
  }
  .ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table tbody td {
    display: flex;
    justify-content: space-between;
    width: 100% !important;
    padding: 7px 0 !important;
    border: none !important;
    background: transparent !important;
  }
  .ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table tbody td:first-child {
    display: block;
    font-weight: 600;
    padding: 0 0 12px !important;
    margin-bottom: 8px;
    border-bottom: 1px solid #ede5d8 !important;
    text-align: left !important;
  }
  .ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table tbody td:has(.ss-cennik-dash) { display: none; }
  .ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table tbody td:nth-child(2)::before { content: "30 min"; }
  .ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table tbody td:nth-child(3)::before { content: "60 min"; }
  .ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table tbody td:nth-child(4)::before { content: "90 min"; }
  .ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table tbody td:nth-child(5)::before { content: "120 min"; }
  .ss-gutenberg-cennik-page .wp-block-table.ss-gutenberg-cennik-table tbody td:not(:first-child)::before {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: #8a7560; font-weight: 500;
  }
  .ss-gutenberg-cennik-page .ss-gutenberg-cennik-specials { grid-template-columns: 1fr; }
}