.avina,
.avina * {
  box-sizing: border-box;
}

.avina {
  --ink: #1D2321;
  --ink-2: #2F3936;
  --muted: #BCBCBC;
  --bg: #F4F4F4;
  --white: #FFFFFF;
  --olive: #6B7862;
  --olive-2: #AFB79D;
  --nude: #B9B3A2;
  --nude-2: #E4E0D3;
  --btn-text: #FFFFFF;
  --olive-3: #d9e2d3;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  font-family: inherit;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--nude-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  max-width: 900px;
  width: 100%;
  margin: 24px auto;
}

.avina h3 {
  font-family: inherit;
  color: var(--ink);
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 10px 0;
}

.avina .steps {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 18px;
  flex-wrap: wrap;
}

.avina .step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--nude-2);
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  transition: all 0.3s ease;
}

.avina .step.active {
  background: var(--olive);
  color: var(--btn-text);
  border-color: var(--olive);
  transform: scale(1.1);
}

.avina .panel {
  display: none;
}

.avina .panel.active {
  display: block;
}

.avina .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.avina .row-1 {
  grid-template-columns: 1fr;
}

.avina label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.avina .input,
.avina .select,
.avina .textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--nude-2);
  border-radius: 12px;
  background: var(--white);
  transition: border 0.2s, box-shadow 0.2s;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
}

.avina .input:focus,
.avina .select:focus,
.avina .textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(107, 120, 98, 0.15);
}

.avina .help {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 4px;
}

.avina .btn {
  background: var(--olive);
  color: var(--btn-text);
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
}

.avina .btn:hover:not(:disabled) {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-1px);
}

.avina .btn.secondary {
  background: var(--nude);
  color: var(--ink);
}

.avina .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.avina .actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.avina .cal {
  border: 1px solid var(--nude-2);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.avina .cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg);
  flex-wrap: wrap;
  gap: 8px;
}

.avina .cal-head .title {
  font-weight: 700;
  color: var(--ink);
}

.avina .cal-head .nav {
  display: flex;
  gap: 8px;
}

.avina .cal-head button {
  border: none;
  background: var(--white);
  border: 1px solid var(--nude-2);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.2s ease;
}

.avina .cal-head button:hover:not(:disabled) {
  background: var(--olive);
  color: var(--btn-text);
  border-color: var(--olive);
}

.avina .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 12px;
  width: 100%;

  grid-auto-rows: 1fr;
}

.avina .cal-dow {
  font-size: 12px;
  color: var(--ink-2);
  text-align: center;
  font-weight: 600;
}

.avina .day {
  height: 44px;
  border: 1px solid var(--nude-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--white);
  color: var(--ink);
  transition: all 0.2s ease;
  font-weight: 600;
  font-family: inherit;
  font-size: 14px;
  padding: 0;
}

.avina .day:hover:not(.disabled) {
  background: var(--olive-3);
  border-color: var(--olive);
  transform: scale(1.05);
}

.avina .day.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f9f9f9;
  color: #666;
}

.avina .day.selected {
  background: var(--olive);
  color: var(--btn-text);
  border-color: var(--olive);
  transform: scale(1.05);
}

.avina .slots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  min-height: 50px;

  justify-content: center;
}

.avina .slot {
  padding: 10px 12px;
  border: 2px solid var(--nude-2);
  border-radius: 999px;
  cursor: pointer;
  background: var(--white);
  color: var(--ink);
  transition: all 0.2s ease;
  font-weight: 600;
}

.avina .slot:hover {
  background: var(--olive-3);
  border-color: var(--olive);
}

.avina .slot.selected {
  background: var(--olive);
  color: var(--btn-text);
  border-color: var(--olive);
}

.avina .message {
  min-height: 20px;
  margin-top: 8px;
}

.avina .error {
  color: #b00020;
  background: #ffebee;
  padding: 8px 12px;
  border-radius: 8px;
  margin: 8px 0;
}

.avina .success {
  color: #2e7d32;
  background: #e8f5e8;
  padding: 8px 12px;
  border-radius: 8px;
  margin: 8px 0;
}

.avina .review,
.avina .pay-box {
  background: var(--bg);
  border: 1px solid var(--nude-2);
  border-radius: 12px;
  padding: 16px;
  line-height: 1.6;

  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  overflow-x: hidden;
}

.avina .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.avina .service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--white);
  border: 3px solid var(--nude-2);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.avina .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.avina .service-card.selected {
  border-color: var(--olive) !important;
  border-width: 3px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px) scale(1.02);
}

.avina .service-card.selected::before {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: var(--olive);
  color: var(--btn-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.avina .service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 16px;
  transition: transform 0.3s ease;
}

.avina .service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.avina .service-name {
  display: block;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--ink);
}

.avina .service-description {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  margin: 0 0 12px 0;
  min-height: 36px;
  line-height: 1.4;
}

.avina .service-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--nude-2);
}

.avina .service-duration {
  display: flex;
  align-items: center;
  gap: 4px;
}

.avina .service-price {
  font-weight: 700;
  color: var(--olive);
  font-size: 15px;
}

@media (max-width: 720px) {
  .avina {
    padding: 18px;
  }

  .avina .row {
    grid-template-columns: 1fr;
  }

  .avina .cal-grid {
    gap: 4px;
    padding: 8px;

    grid-auto-rows: 1fr;
  }

  .avina .day {
    height: 38px;
    font-size: 13px;
  }

  .avina .services-grid {
    grid-template-columns: 1fr;
  }

  .avina .service-card {
    padding: 16px;
  }

  .avina .service-icon {
    width: 60px;
    height: 60px;
    font-size: 32px;
  }

  .avina .slots {
    justify-content: center;
  }
}
.avina .panel-title {
  text-align: center;
  margin: 0 0 20px;
  color: var(--ink);
}

.avina .avina-times {
  margin-top: 10px;
}

.avina .avina-consent {
  font-weight: 400;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.avina .avina-consent input {
  margin-top: 4px;
  flex-shrink: 0;
}

.avina .slot {
  font-family: inherit;
  font-size: 14px;
}

.avina .service-card:focus-visible,
.avina .day:focus-visible,
.avina .slot:focus-visible,
.avina .btn:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}

.avina .service-icon img {
  display: block;
}

.avina .cal-head button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.avina .day.blocked {
  background-color: #fee2e2;
  color: #b91c1c;
  text-decoration: line-through;
}

.avina .review-service {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  border-left: 4px solid var(--olive);
  background: var(--white);
}

.avina .service-icon-review {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.avina .service-icon-review span {
  font-size: 22px !important;
}

.avina .review-duration {
  font-size: 13px;
  color: var(--ink-2);
}

@media (prefers-reduced-motion: reduce) {
  .avina * {
    transition: none !important;
    transform: none !important;
  }
}

.avina .day.selected,
.avina .day.selected:hover,
.avina .slot.selected,
.avina .slot.selected:hover {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--btn-text);
}
