.sunbed-reservations {
  max-width: 560px;
  margin: 24px auto;
  color: #172026;
}

.sunbed-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid #d9e2e7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(25, 42, 54, 0.08);
}

.sunbed-field,
.sunbed-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.sunbed-label {
  font-weight: 700;
}

.sunbed-choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sunbed-choice-group--compact label,
.sunbed-period-group label {
  justify-content: center;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid #b8c5cc;
  border-radius: 6px;
  background: #fff;
  color: #172026;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
  user-select: none;
}

.sunbed-period-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: calc(100% - 28px);
  margin: 8px auto 0;
}

.sunbed-period-group[hidden] {
  display: none;
}

.sunbed-choice-group label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sunbed-choice-group input,
.sunbed-period-group input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.sunbed-choice-group label:has(input:checked),
.sunbed-period-group label:has(input:checked),
.sunbed-choice-group label.is-selected,
.sunbed-period-group label.is-selected {
  border-color: #6fd69a;
  background: linear-gradient(135deg, #e8fff1 0%, #c9f7dc 100%);
  box-shadow: 0 0 0 2px rgba(35, 160, 87, 0.16), 0 10px 24px rgba(35, 160, 87, 0.12);
  color: #0f5132;
}

.sunbed-choice-group label:has(input:focus-visible),
.sunbed-period-group label:has(input:focus-visible) {
  outline: 2px solid #1faa59;
  outline-offset: 3px;
}

.sunbed-choice-group label:hover,
.sunbed-period-group label:hover {
  border-color: #8bdcaf;
  transform: translateY(-1px);
}

.sunbed-period-group label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 750;
  gap: 3px;
  flex-direction: column;
}

.sunbed-period-group small {
  display: block;
  color: #4d635a;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.sunbed-period-title {
  display: block;
}

.sunbed-field input,
.sunbed-form input {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #b8c5cc;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

.sunbed-status {
  padding: 12px;
  border-radius: 6px;
  background: #eef8f2;
  border: 1px solid #b9e4c8;
}

.sunbed-pack-description {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #d8b66c;
  border-radius: 6px;
  background: linear-gradient(135deg, #fff9ea 0%, #fff0c8 100%);
  color: #1f2a24;
  box-shadow: 0 10px 22px rgba(216, 182, 108, 0.14);
}

.sunbed-pack-description__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #d8b66c;
  color: #1f2a24;
  font-size: 16px;
  font-weight: 900;
}

.sunbed-pack-description strong {
  display: block;
  font-size: 14px;
  font-weight: 850;
}

.sunbed-pack-description small {
  display: block;
  margin-top: 3px;
  color: #465348;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.sunbed-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sunbed-summary div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 6px;
  background: #f5f8fa;
}

.sunbed-summary .sunbed-summary-total {
  border: 1px solid #79d8a2;
  background: linear-gradient(135deg, #ecfff4 0%, #d2f7e2 100%);
  box-shadow: 0 10px 22px rgba(35, 160, 87, 0.12);
}

.sunbed-summary span {
  font-size: 13px;
  color: #53636d;
}

.sunbed-summary strong {
  font-size: 20px;
}

.sunbed-summary-total span {
  color: #0f5132;
  font-weight: 800;
}

.sunbed-summary-total strong {
  color: #0f5132;
  font-size: 24px;
}

.sunbed-message {
  min-height: 22px;
  font-weight: 700;
}

.sunbed-message[data-type="error"] {
  color: #b42318;
}

.sunbed-message[data-type="info"] {
  color: #315a73;
}

.sunbed-button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: #0f766e;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.sunbed-button:hover {
  background: #115e59;
}

.sunbed-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 520px) {
  .sunbed-reservations {
    margin: 16px 0;
  }

  .sunbed-form {
    padding: 16px;
  }

  .sunbed-summary {
    grid-template-columns: 1fr;
  }

  .sunbed-choice-group {
    grid-template-columns: 1fr;
  }

  .sunbed-period-group {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
    padding: 0 6px;
  }

  .sunbed-period-group label {
    min-height: 50px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .sunbed-period-group small {
    font-size: 11.5px;
  }
}
