/* Native public booking widget styles aligned with AET design tokens */
.aet-booking-widget {
  --ab-ink: var(--text, #242946);
  --ab-cream: var(--background, #f9f4da);
  --ab-card: var(--kırık-beyaz, #fcf5ed);
  --ab-lime: var(--cta, #c0ff72);
  --ab-teal: var(--secondary, #225560);
  --ab-pink: #e85a91;
  --ab-pink-deep: #b92860;
  --ab-muted: #5a5e75;
  --ab-border: rgba(36, 41, 70, 0.16);
  font-family: Outfit, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ab-ink);
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.aet-booking-widget *,
.aet-booking-widget *::before,
.aet-booking-widget *::after {
  box-sizing: border-box;
}

.ab-card {
  background: var(--ab-card);
  border: 1.5px solid var(--ab-border);
  border-radius: 22px;
  box-shadow: 0 10px 0 rgba(36, 41, 70, 0.08);
  padding: clamp(20px, 3vw, 34px);
}

.aet-booking-widget.is-compact .ab-card {
  box-shadow: none;
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
}

.ab-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(36, 41, 70, 0.12);
}

.ab-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ab-teal);
  margin: 0 0 4px;
}

.ab-title {
  font-family: "Paytone One", sans-serif;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  color: var(--ab-ink);
}

.aet-booking-widget.is-compact .ab-title {
  font-size: 22px;
}

.ab-sub {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ab-muted);
}

.ab-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ab-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(36, 41, 70, 0.06);
  color: var(--ab-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.ab-pill.is-lime {
  background: var(--ab-lime);
}

.ab-pill.is-rose {
  background: #fbe9ef;
  color: var(--ab-pink-deep);
}

.ab-pill.is-emerald {
  background: #e1fae8;
  color: #14532d;
}

.ab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.aet-booking-widget.is-compact .ab-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (max-width: 920px) {
  .ab-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

.ab-section-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ab-ink);
  margin: 0 0 10px;
}

.ab-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 520px) {
  .ab-type-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ab-type-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  border: 1.5px solid var(--ab-border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ab-ink);
  font-family: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

@media (hover: hover) and (pointer: fine) {
  .ab-type-btn:hover {
    border-color: var(--ab-teal);
    transform: translateY(-1px);
  }
}

.ab-type-btn[aria-pressed="true"] {
  border-color: var(--ab-ink);
  background: var(--ab-lime);
}

.ab-type-btn strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.ab-type-btn span {
  font-size: 13px;
  color: var(--ab-muted);
  line-height: 1.35;
}

.ab-type-btn[aria-pressed="true"] span {
  color: var(--ab-ink);
}

.ab-days-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ab-day-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 96px;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--ab-border);
  background: #ffffff;
  color: var(--ab-ink);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ab-day-btn:hover:not(:disabled) {
  border-color: var(--ab-teal);
}

.ab-day-btn.is-active {
  background: var(--ab-ink);
  border-color: var(--ab-ink);
  color: #ffffff;
}

.ab-day-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  background: rgba(36, 41, 70, 0.04);
}

.ab-day-name {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}

.ab-day-date {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.ab-day-count {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
  opacity: 0.82;
}

.ab-slots-panel {
  background: #ffffff;
  border: 1px solid rgba(36, 41, 70, 0.12);
  border-radius: 16px;
  padding: 16px;
}

.ab-slots-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.ab-slots-head h3 {
  margin: 0;
  font-family: Outfit, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ab-ink);
}

.ab-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--ab-border);
  background: #ffffff;
  color: var(--ab-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ab-refresh-btn:hover:not(:disabled) {
  background: var(--ab-cream);
  border-color: var(--ab-ink);
}

.ab-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: 8px;
}

.ab-slot-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--ab-border);
  background: #ffffff;
  color: var(--ab-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}

@media (hover: hover) and (pointer: fine) {
  .ab-slot-btn:hover:not(:disabled) {
    border-color: var(--ab-teal);
    transform: translateY(-1px);
  }
}

.ab-slot-btn[aria-pressed="true"] {
  background: var(--ab-lime);
  border-color: var(--ab-ink);
  color: var(--ab-ink);
}

.ab-slot-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ab-teal);
  margin-top: 2px;
}

.ab-slot-btn[aria-pressed="true"] .ab-slot-tag {
  color: var(--ab-ink);
}

.ab-selected-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ab-cream);
  border: 1px solid rgba(36, 41, 70, 0.1);
}

.ab-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ab-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--ab-ink);
  background: #ffffff;
  color: var(--ab-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ab-chip:hover {
  background: #fbe9ef;
  border-color: var(--ab-pink-deep);
}

.ab-helper {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ab-muted);
}

.ab-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
  border: 1px solid rgba(36, 41, 70, 0.12);
  border-radius: 16px;
  padding: 20px;
}

.ab-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ab-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ab-ink);
}

.ab-field input,
.ab-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid rgba(36, 41, 70, 0.22);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ab-ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
}

.ab-field textarea {
  min-height: 82px;
  resize: vertical;
}

.ab-field input:focus,
.ab-field textarea:focus {
  border-color: var(--ab-teal);
  outline: 2px solid rgba(34, 85, 96, 0.25);
  outline-offset: 0;
}

.ab-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.ab-alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.ab-alert.is-error {
  background: #fbe9ef;
  border: 1px solid #efc3d4;
  color: var(--ab-pink-deep);
}

.ab-alert.is-info {
  background: #eef6f7;
  border: 1px solid #c5dfe2;
  color: var(--ab-teal);
}

.ab-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 13px 20px;
  border: 1.5px solid var(--ab-ink);
  border-radius: 10px;
  background: var(--ab-ink);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, transform 0.12s ease;
}

.ab-submit-btn:hover:not(:disabled) {
  background: var(--ab-teal);
  border-color: var(--ab-teal);
}

.ab-submit-btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.ab-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1.5px solid var(--ab-border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ab-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.ab-secondary-btn:hover:not(:disabled) {
  border-color: var(--ab-ink);
  background: var(--ab-cream);
}

.ab-danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1.5px solid #efc3d4;
  border-radius: 10px;
  background: #ffffff;
  color: var(--ab-pink-deep);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ab-danger-btn:hover:not(:disabled) {
  background: #fbe9ef;
}

.ab-status-card {
  background: #ffffff;
  border: 1.5px solid var(--ab-border);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.ab-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 14px;
  background: var(--ab-cream);
}

.ab-status-item span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ab-muted);
  margin-bottom: 4px;
}

.ab-status-item strong {
  font-size: 15px;
  line-height: 1.4;
  color: var(--ab-ink);
}

.ab-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ab-fallback-box {
  background: #ffffff;
  border: 1.5px dashed rgba(36, 41, 70, 0.25);
  border-radius: 16px;
  padding: 22px;
}

.ab-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ab-skeleton {
  height: 180px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(36, 41, 70, 0.06) 25%, rgba(36, 41, 70, 0.11) 50%, rgba(36, 41, 70, 0.06) 75%);
  background-size: 200% 100%;
  animation: abShimmer 1.3s infinite;
}

@keyframes abShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.aet-booking-widget button:focus-visible,
.aet-booking-widget a:focus-visible {
  outline: 3px solid var(--ab-teal);
  outline-offset: 3px;
}

.ab-status-item strong,
.ab-chip,
.ab-type-btn {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .ab-days-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 8px;
  }

  .ab-day-btn {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .ab-card {
    padding: 16px;
    border-radius: 18px;
  }

  .ab-slots-panel,
  .ab-form {
    padding: 14px;
  }

  .ab-slots-grid {
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-skeleton {
    animation: none;
  }

  .ab-type-btn,
  .ab-day-btn,
  .ab-slot-btn,
  .ab-submit-btn {
    transition: none;
  }
}
