/* Medical Weight Loss callback popup — plugin v3.2.5 */

.abn-cb-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(12, 24, 48, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.abn-cb-overlay[hidden] {
  display: none !important;
}

.abn-cb-modal {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: min(92vh, 860px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 32px 32px 26px;
  box-shadow: 0 18px 60px rgba(12, 24, 48, 0.28);
  font-family: Lato, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #14213d;
  box-sizing: border-box;
}

.abn-cb-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #8a93a6;
  cursor: pointer;
  padding: 4px 8px;
}

.abn-cb-close:hover {
  color: #14213d;
}

.abn-cb-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2e5eaa;
}

.abn-cb-modal h2 {
  margin: 0 0 8px;
  font-family: Marcellus, Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  color: #14213d;
}

.abn-cb-modal p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.45;
  color: #4a5568;
}

.abn-cb-topic {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef3fb;
  color: #1e4d8c;
  font-size: 13px;
  font-weight: 700;
}

.abn-cb-topic[hidden] {
  display: none !important;
}

.abn-cb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.abn-cb-grid .abn-cb-field {
  margin-bottom: 0;
}

.abn-cb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #14213d;
}

.abn-cb-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7deea;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 400;
  font-family: inherit;
  color: #14213d;
  background: #f7f9fc;
  outline: none;
}

.abn-cb-field input:focus {
  border-color: #2e5eaa;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46, 94, 170, 0.15);
}

.abn-cb-dates-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.abn-cb-dates {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.abn-cb-times {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.abn-cb-week-nav {
  flex: 0 0 40px;
  width: 40px;
  margin: 0;
  border: 1.5px solid #d7deea;
  background: #f7f9fc;
  border-radius: 12px;
  color: #2E5EAA;
  font-size: 22px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.abn-cb-week-nav:hover:not(:disabled) {
  background: #3FA358;
  border-color: #3FA358;
  color: #fff;
}

.abn-cb-week-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.abn-cb-chip {
  margin: 0;
  border: 1.5px solid #d7deea;
  background: #f7f9fc;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  color: #14213d;
  cursor: pointer;
  line-height: 1.2;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.abn-cb-chip:hover:not(:disabled),
.abn-cb-chip.is-selected:hover:not(:disabled) {
  background: #3FA358;
  border-color: #3FA358;
  color: #fff;
}

.abn-cb-chip.is-selected {
  background: #2E5EAA;
  border-color: #2E5EAA;
  color: #fff;
}

.abn-cb-chip:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.abn-cb-date-chip {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
}

.abn-cb-date-chip small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 4px;
}

.abn-cb-date-chip small .abn-cb-day-short {
  display: none;
}

.abn-cb-date-chip > span {
  display: block;
  font-size: 20px;
  font-weight: 700;
}

.abn-cb-times-hint {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}

.abn-cb-more {
  margin: 0;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #2E5EAA;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.2;
}

.abn-cb-more:hover,
.abn-cb-more:focus,
.abn-cb-more:focus-visible {
  background: transparent;
  color: #2E5EAA;
  outline: none;
}

.abn-cb-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.abn-cb-error {
  margin: 0 0 12px;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
}

.abn-cb-error[hidden],
.abn-cb-success[hidden],
#abn-cb-form-wrap[hidden] {
  display: none !important;
}

.abn-cb-submit {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: #2E5EAA;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.abn-cb-submit:hover:not(:disabled) {
  background: #3FA358;
  color: #fff;
}

.abn-cb-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.abn-cb-success h2 {
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .abn-cb-modal {
    padding: 24px 14px 20px;
  }

  .abn-cb-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .abn-cb-dates-row {
    gap: 4px;
  }

  .abn-cb-dates {
    gap: 4px;
  }

  .abn-cb-week-nav {
    flex: 0 0 22px;
    width: 22px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    font-size: 18px;
    color: #2E5EAA;
  }

  .abn-cb-week-nav:hover:not(:disabled) {
    background: transparent;
    color: #3FA358;
  }

  .abn-cb-date-chip {
    padding: 6px 0 7px;
    border-radius: 10px;
    border-width: 1px;
  }

  .abn-cb-date-chip small {
    font-size: 8px;
    letter-spacing: 0;
    margin-bottom: 2px;
  }

  .abn-cb-date-chip small .abn-cb-day-full {
    display: none;
  }

  .abn-cb-date-chip small .abn-cb-day-short {
    display: block;
  }

  .abn-cb-date-chip > span {
    font-size: 15px;
  }
}
