.b2-appointments-widget {
  max-width: 640px;
  font-size: 1rem;
}
.b2-appointments-widget .b2-appointments-card {
  background: transparent;
}
.b2-appointments-widget .b2-appointments-header {
  margin-bottom: 1.5rem;
  width: 100%;
}
.b2-appointments-widget .b2-appointments-header .b2-appointments-header__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.b2-appointments-widget .b2-appointments-header h2 {
  margin: 0;
  font-size: 1.75rem;
  width: 100%;
}
.b2-appointments-widget .b2-appointments-service-amount {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(209, 89, 117, 0.2);
  border-radius: 0.8rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(209, 89, 117, 0.06) 100%);
  box-shadow: 0 0.4rem 1rem rgba(25, 23, 23, 0.04);
  font-size: 1rem;
}
.b2-appointments-widget .price {
  margin: 0;
  font-weight: bold;
  color: #583333;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
}
.b2-appointments-widget .b2-appointments-service-amount__label {
  font-size: 0.9rem;
  line-height: 1;
  color: rgba(25, 23, 23, 0.72);
}
.b2-appointments-widget .b2-appointments-form .b2-appointments-date {
  display: none;
}
.b2-appointments-widget .b2-appointments-form .form-control,
.b2-appointments-widget .b2-appointments-form .form-select {
  min-height: 3rem;
  border-color: rgba(209, 89, 117, 0.28);
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.75);
  color: rgba(25, 23, 23, 0.9);
  box-shadow: none;
  font-size: 1rem;
  padding: 0.375rem 0.75rem;
}
.b2-appointments-widget .b2-appointments-form .form-control::-moz-placeholder, .b2-appointments-widget .b2-appointments-form .form-select::-moz-placeholder {
  color: rgba(25, 23, 23, 0.6);
}
.b2-appointments-widget .b2-appointments-form .form-control::placeholder,
.b2-appointments-widget .b2-appointments-form .form-select::placeholder {
  color: rgba(25, 23, 23, 0.6);
}
.b2-appointments-widget .b2-appointments-form .form-control:focus,
.b2-appointments-widget .b2-appointments-form .form-select:focus {
  border-color: rgba(209, 89, 117, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(209, 89, 117, 0.12);
}
.b2-appointments-widget .b2-appointments-form textarea.form-control {
  min-height: 8rem;
  resize: vertical;
}
.b2-appointments-widget .b2-appointments-phone-picker {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}
.b2-appointments-widget .b2-appointments-phone-picker__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(209, 89, 117, 0.28);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.75);
  color: rgba(25, 23, 23, 0.9);
  white-space: nowrap;
}
.b2-appointments-widget .b2-appointments-phone-picker__flag {
  font-size: 1.125rem;
  line-height: 1;
}
.b2-appointments-widget .b2-appointments-phone-picker__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 30;
  width: min(22rem, 100%);
  max-height: 18rem;
  overflow: auto;
  padding: 0.35rem;
  border: 1px solid rgba(209, 89, 117, 0.2);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.75rem 1.5rem rgba(25, 23, 23, 0.08);
}
.b2-appointments-widget .b2-appointments-phone-picker__option {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: rgba(25, 23, 23, 0.9);
  text-align: left;
}
.b2-appointments-widget .b2-appointments-phone-picker__option:hover,
.b2-appointments-widget .b2-appointments-phone-picker__option.is-selected {
  background: rgba(209, 89, 117, 0.12);
}
.b2-appointments-widget .b2-appointments-calendar {
  padding: 1.25rem 1.35rem 1.4rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(209, 89, 117, 0.18);
  box-shadow: 0 0.6rem 1.4rem rgba(25, 23, 23, 0.06);
}
.b2-appointments-widget .b2-appointments-calendar__header,
.b2-appointments-widget .b2-appointments-calendar__weekdays,
.b2-appointments-widget .b2-appointments-calendar__days {
  display: grid;
  gap: 0.35rem;
}
.b2-appointments-widget .b2-appointments-calendar__header {
  grid-template-columns: 2.25rem 1fr 2.25rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.b2-appointments-widget .b2-appointments-calendar__month {
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--ilka-body-color, #191717);
}
.b2-appointments-widget .b2-appointments-calendar__nav {
  border: 0;
  background: transparent;
  color: var(--ilka-body-color, #191717);
  font-size: 1.35rem;
  line-height: 1;
  padding: 0;
}
.b2-appointments-widget .b2-appointments-calendar__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.b2-appointments-widget .b2-appointments-calendar__weekdays,
.b2-appointments-widget .b2-appointments-calendar__days {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.b2-appointments-widget .b2-appointments-calendar__weekday {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: rgba(25, 23, 23, 0.55);
}
.b2-appointments-widget .b2-appointments-calendar__day {
  min-height: 2.6rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.8);
  color: rgba(25, 23, 23, 0.92);
  text-align: center;
  padding: 0.35rem 0;
  border-radius: 0.45rem;
  -webkit-text-decoration: none line-through transparent;
          text-decoration: none line-through transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.b2-appointments-widget .b2-appointments-calendar__day.is-available {
  font-weight: 600;
  color: rgba(25, 23, 23, 0.95);
  border-color: rgba(209, 89, 117, 0.12);
  background: rgba(209, 89, 117, 0.08);
}
.b2-appointments-widget .b2-appointments-calendar__day:hover:not(.is-disabled):not(.is-empty) {
  border-color: rgba(209, 89, 117, 0.35);
  color: rgba(25, 23, 23, 0.9);
}
.b2-appointments-widget .b2-appointments-calendar__day.is-today {
  font-weight: 700;
  border-color: rgba(209, 89, 117, 0.55);
  color: rgba(25, 23, 23, 0.95);
}
.b2-appointments-widget .b2-appointments-calendar__day.is-selected {
  background: rgba(209, 89, 117, 0.42) !important;
  border-color: rgba(209, 89, 117, 0.85) !important;
  color: #191717 !important;
}
.b2-appointments-widget .b2-appointments-calendar__day.is-disabled {
  background: transparent;
  color: rgba(25, 23, 23, 0.28);
  text-decoration-color: rgba(25, 23, 23, 0.2);
  cursor: not-allowed;
}
.b2-appointments-widget .b2-appointments-calendar__day.is-empty {
  visibility: hidden;
}
.b2-appointments-widget .b2-appointments-calendar__empty {
  grid-column: 1/-1;
  padding: 1rem 0;
  text-align: center;
  color: rgba(25, 23, 23, 0.55);
}
.b2-appointments-widget .b2-appointments-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}
.b2-appointments-widget .b2-appointments-slot {
  min-height: 2.7rem;
  border: 1px solid rgba(209, 89, 117, 0.4);
  border-radius: 0.45rem;
  background: transparent;
  color: rgba(25, 23, 23, 0.9);
  padding: 0.5rem 0.75rem;
  text-align: center;
}
.b2-appointments-widget .b2-appointments-slot.is-selected {
  background: rgba(209, 89, 117, 0.24);
}
.b2-appointments-widget .b2-appointments-slots__empty {
  grid-column: 1/-1;
  padding: 0.9rem 1rem;
  border-radius: 0.45rem;
  background: rgba(209, 89, 117, 0.08);
  text-align: center;
  color: rgba(25, 23, 23, 0.6);
}
.b2-appointments-widget .b2-appointments-note {
  margin: 0.5rem 0 1.75rem;
  color: var(--ilka-body-color, #191717);
}
.b2-appointments-widget .b2-appointments-note strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}
.b2-appointments-widget .b2-appointments-note p {
  margin: 0;
  font-style: italic;
  color: rgba(25, 23, 23, 0.7);
}
.b2-appointments-widget .b2-appointments-submit {
  min-width: 140px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.35rem;
  box-shadow: none;
}
.b2-appointments-widget .b2-appointments-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.b2-appointments-widget .alert {
  margin-bottom: 1.5rem;
}
.b2-appointments-timezone {
  margin-bottom: 0.75rem;
}
.b2-appointments-timezone.is-hidden {
  display: none;
}
.b2-appointments-timezone label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.b2-appointments-timezone select {
  width: 100%;
}
.b2-appointments-feedback {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
}
.b2-appointments-feedback.is-hidden {
  display: none;
}
.b2-appointments-feedback.is-success {
  color: #1f6b2f;
  background: #e3f6e8;
  border: 1px solid #a9d8b5;
}
.b2-appointments-feedback.is-error {
  color: #8f1d1d;
  background: #fde7e7;
  border: 1px solid #e7b0b0;
}
.b2-appointments-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.b2-appointments-actions .b2-appointments-feedback {
  margin: 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
}
.b2-appointments-loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(208, 90, 122, 0.25);
  border-top-color: #d05a7a;
  border-radius: 50%;
  display: none;
  animation: b2-appointments-spin 0.8s linear infinite;
}
.b2-appointments-form.is-loading .b2-appointments-loader {
  display: inline-block;
}

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

@media (max-width: 767.98px) {
  .b2-appointments-widget .b2-appointments-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .b2-appointments-widget .b2-appointments-actions .b2-appointments-feedback {
    width: 100%;
  }
  .b2-appointments-widget .b2-appointments-loader {
    align-self: flex-start;
  }
  .b2-appointments-widget .b2-appointments-header h2 {
    font-size: 1.25rem;
  }
  .b2-appointments-widget .b2-appointments-form .form-control,
  .b2-appointments-widget .b2-appointments-form .form-select {
    min-height: 3rem;
    font-size: 1rem;
  }
  .b2-appointments-widget .b2-appointments-submit {
    width: 100%;
  }
  .b2-appointments-widget .b2-appointments-phone-picker {
    grid-template-columns: 1fr;
  }
  .b2-appointments-widget .b2-appointments-slots {
    grid-template-columns: 1fr;
  }
}
.post-type-appointments .b2-appointments-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.post-type-appointments .b2-appointments-status--pending {
  color: #8a5a00;
  background: #fff4d6;
  border-color: #f1d18a;
}
.post-type-appointments .b2-appointments-status--new {
  color: #405264;
  background: #eaf0f5;
  border-color: #c8d4e0;
}
.post-type-appointments .b2-appointments-status--confirmed {
  color: #0b5394;
  background: #dfefff;
  border-color: #a8c9ef;
}
.post-type-appointments .b2-appointments-status--paid {
  color: #1f6b2f;
  background: #e3f6e8;
  border-color: #a9d8b5;
}
.post-type-appointments .b2-appointments-status--cancelled {
  color: #8f1d1d;
  background: #fde7e7;
  border-color: #e7b0b0;
}
