/* Book embed layout: sticky footer (footer at bottom when content is short) */
.book-embed-template {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.book-embed-content {
  flex: 1 1 auto;
}

/* Reserve page - booking wizard with nav */

.reserve-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(23, 57, 92, 0.08);
}

.reserve-nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reserve-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--restaurant-navy, #17395c);
}

.reserve-nav-logo img {
  height: 3rem;
}

.reserve-nav-wizard {
  display: none;
}

@media (min-width: 768px) {
  .reserve-nav-wizard {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

.reserve-wizard-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reserve-wizard-step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.reserve-wizard-step-num.done {
  background: var(--restaurant-primary, #21c4b1);
  color: #fff;
}

.reserve-wizard-step-num.active {
  background: var(--restaurant-navy, #17395c);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(23, 57, 92, 0.15);
}

.reserve-wizard-step-num.pending {
  background: rgba(23, 57, 92, 0.1);
  color: var(--restaurant-muted, #6c737d);
}

.reserve-wizard-step-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--restaurant-muted, #6c737d);
}

.reserve-wizard-step-label.active {
  font-weight: 700;
  color: var(--restaurant-navy, #17395c);
}

.reserve-nav-signin {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--restaurant-navy, #17395c);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

.reserve-nav-signin:hover {
  color: var(--restaurant-primary, #21c4b1);
}

/* Step 2 layout */
.reserve-step2 {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 0rem;
}

.reserve-step2-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .reserve-step2-grid {
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
  }
}

.reserve-sidebar {
  position: static;
  top: auto;
}

@media (min-width: 1024px) {
  .reserve-sidebar {
    position: sticky;
    top: 6rem;
  }
}

.reserve-sidebar-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(23, 57, 92, 0.06);
  border: 1px solid rgba(23, 57, 92, 0.06);
  overflow: hidden;
}

.reserve-sidebar-image {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

.reserve-sidebar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reserve-sidebar-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
}

.reserve-sidebar-image-content {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: #fff;
}

.reserve-sidebar-image-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.reserve-sidebar-image-content p {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.reserve-sidebar-body {
  padding: 1.5rem;
}

.reserve-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.reserve-summary-item {
  text-align: center;
}

.reserve-summary-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--restaurant-muted, #6c737d);
  margin-bottom: 0.25rem;
}

.reserve-summary-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--restaurant-navy, #17395c);
}

.reserve-summary-block {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(23, 57, 92, 0.08);
}

.reserve-change-link {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  text-align: right;
}

.reserve-change-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--restaurant-primary, #21c4b1);
  text-decoration: none;
}

.reserve-change-link a:hover {
  text-decoration: none;
  color: var(--restaurant-navy, #17395c);
}

.reserve-change-link .material-icons-outlined {
  font-size: 1rem;
}

.reserve-notes-section {
  margin-top: 1.5rem;
}

.reserve-notes-section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--restaurant-navy, #17395c);
}

.reserve-notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reserve-notes-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--restaurant-muted, #6c737d);
}

.reserve-notes-list .material-icons-outlined {
  color: var(--restaurant-primary, #21c4b1);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.reserve-urgency-box {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 0.5rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.reserve-urgency-box .material-icons-outlined {
  color: #d97706;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.reserve-urgency-box p {
  font-size: 0.75rem;
  color: #92400e;
  margin: 0;
  line-height: 1.5;
}

.reserve-contact-info {
  margin-top: 1rem;
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.reserve-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: var(--restaurant-navy, #17395c);
}

.reserve-contact-item:last-child {
  margin-bottom: 0;
}

.reserve-contact-item .material-icons-outlined {
  color: var(--restaurant-primary, #21c4b1);
  font-size: 1.125rem;
  flex-shrink: 0;
}

.reserve-contact-item a {
  color: var(--restaurant-primary, #21c4b1);
  text-decoration: none;
}

.reserve-contact-item a:hover {
  text-decoration: underline;
}

.reserve-back-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--restaurant-primary, #21c4b1);
  text-decoration: none;
  transition: color 0.2s;
}

.reserve-back-link:hover {
  color: var(--restaurant-navy, #17395c);
}

.reserve-step1-submit {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(23, 57, 92, 0.08);
}

.reserve-floor-slots {
    margin-bottom: 1.5rem;
}
.reserve-floor-slots:last-child {
    margin-bottom: 0;
}
.reserve-floor-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(23, 57, 92, 0.9);
    margin: 0 0 0.5rem 0;
}
.reserve-hold-banner {
    background: rgba(34, 139, 34, 0.12);
    border: 1px solid rgba(34, 139, 34, 0.3);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.reserve-hold-banner p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(23, 57, 92, 0.9);
}
.reserve-hold-banner a {
    color: var(--primary, #17395c);
    font-weight: 600;
    text-decoration: underline;
}
.reserve-hold-banner--expired {
    background: rgba(220, 53, 69, 0.08);
    border-color: rgba(220, 53, 69, 0.25);
}
.reserve-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.reserve-slot-btn {
  padding: 0.75rem 1.25rem;
  background: var(--restaurant-bg, #f6f8f8);
  border: 1px solid rgba(23, 57, 92, 0.1);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--restaurant-navy, #17395c);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.reserve-slot-btn:hover {
  border-color: var(--restaurant-primary, #21c4b1);
  background: rgba(33, 196, 177, 0.08);
}

.reserve-slot-btn.selected {
  border-color: var(--restaurant-primary, #21c4b1);
  background: var(--restaurant-primary, #21c4b1);
  color: #fff;
}

.reserve-no-slots {
  color: var(--restaurant-muted, #6c737d);
  margin: 0;
  padding: 1rem 0;
}

.reserve-slots-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(23, 57, 92, 0.08);
}


/* Main form area */
.reserve-main {
  min-width: 0;
}

.reserve-main-header {
  margin-bottom: 2rem;
}

.reserve-main-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--restaurant-navy, #17395c);
  margin: 0 0 0.5rem;
}

.reserve-main-header p {
  font-size: 1rem;
  color: var(--restaurant-muted, #6c737d);
  margin: 0;
}

.reserve-form-card {
  --reserve-control-height: 47px;
  background: #fff;
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(23, 57, 92, 0.06);
  box-shadow: 0 1px 3px rgba(23, 57, 92, 0.04);
}

.reserve-action-switch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.reserve-action-btn {
  border: 1px solid transparent;
  border-radius: 0.65rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
  width: min(22rem, 100%);
}

.reserve-action-btn:active {
  transform: scale(0.98);
}

.reserve-action-btn--modify {
  background: rgba(33, 196, 177, 0.12);
  color: #0f766e;
  border-color: rgba(33, 196, 177, 0.35);
}

.reserve-action-btn--modify:hover {
  background: rgba(33, 196, 177, 0.2);
}

.reserve-action-btn--modify.active {
  background: var(--restaurant-primary, #21c4b1);
  color: #fff;
  box-shadow: 0 10px 25px -12px rgba(15, 118, 110, 0.65);
}

.reserve-action-btn--cancel {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.3);
}

.reserve-action-btn--cancel:hover {
  background: rgba(239, 68, 68, 0.18);
}

.reserve-action-btn--cancel.active {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 10px 25px -12px rgba(185, 28, 28, 0.6);
}

.reserve-action-btn--note {
  background: rgba(23, 57, 92, 0.08);
  color: var(--restaurant-navy, #17395c);
  border-color: rgba(23, 57, 92, 0.2);
}

.reserve-action-btn--note:hover {
  background: rgba(23, 57, 92, 0.16);
}

.reserve-form-section {
  margin-bottom: 2rem;
}

.reserve-form-section:last-of-type {
  margin-bottom: 0;
}

.reserve-form-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: var(--restaurant-navy, #17395c);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reserve-form-section h3 .material-icons-outlined {
  color: var(--restaurant-primary, #21c4b1);
}

/* Stripe card fields: same look as reserve-form-input (background, border, radius) */
.reserve-stripe-field {
  min-height: var(--reserve-control-height, 47px);
  padding: 0.5rem 1rem;
  background: var(--restaurant-bg, #f6f8f8);
  border: 1px solid rgba(23, 57, 92, 0.1);
  border-radius: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.reserve-stripe-field iframe {
  min-height: 1.5rem;
}

.reserve-deposit-section .reserve-form-grid + .reserve-form-grid {
  margin-top: 1rem;
}

@media (max-width: 767px) {
  .reserve-form-grid--cols3 {
    grid-template-columns: 1fr;
  }
}

.reserve-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .reserve-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .reserve-form-grid--cols3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.reserve-form-grid .span-2 {
  grid-column: 1 / -1;
}

.reserve-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reserve-form-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--restaurant-navy, #17395c);
}

.reserve-form-input {
  box-sizing: border-box;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--restaurant-bg, #f6f8f8);
  border: 1px solid rgba(23, 57, 92, 0.1);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.reserve-form-input:not([type="date"]):not(.reserve-form-textarea) {
  min-height: var(--reserve-control-height, 47px);
}

.reserve-form-input:focus {
  outline: none;
  border-color: var(--restaurant-primary, #21c4b1);
  box-shadow: 0 0 0 2px rgba(33, 196, 177, 0.2);
}

/* Date picker: teal accent + match time/party height */
.reserve-form-input[type="date"] {
  accent-color: var(--restaurant-primary, #21c4b1);
  color-scheme: light;
  padding-top: calc(0.75rem + 2px);
  padding-bottom: calc(0.75rem + 2px);
  min-height: var(--reserve-control-height, 47px);
}

/* Calendar icon: blue → teal */
.reserve-form-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(130deg) brightness(95%) contrast(90%);
  cursor: pointer;
}

.reserve-form-input::placeholder {
  color: var(--restaurant-muted, #6c737d);
}

.reserve-form-textarea {
  min-height: 5rem;
  resize: vertical;
}

.reserve-selected-details-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(23, 57, 92, 0.1);
  border-radius: 0.65rem;
}

.reserve-selected-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.125rem 0;
}

.reserve-selected-detail-item .material-icons-outlined {
  color: var(--restaurant-primary, #21c4b1);
  font-size: 1rem;
  margin-top: 0.1rem;
}

.reserve-selected-detail-label {
  margin: 0;
  font-size: 0.75rem;
  color: var(--restaurant-muted, #6c737d);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.reserve-selected-detail-value {
  margin: 0.125rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--restaurant-navy, #17395c);
}

@media (min-width: 768px) {
  .reserve-selected-details-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.reserve-char-count {
  font-size: 0.8125rem;
  color: var(--restaurant-muted, #6c737d);
  margin: 0.25rem 0 0;
}

.reserve-notes-section h3.reserve-notes-before-visit {
  margin-top: 20px;
}

.reserve-notes-custom {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--restaurant-muted, #6c737d);
  line-height: 1.4;
}

.reserve-form-field--spaced {
  margin-top: 20px;
}

/* Party size select: match date/time height (native select often renders smaller) */
.reserve-form-field select.reserve-form-input {
  padding-top: calc(0.75rem + 2px);
  padding-bottom: calc(0.75rem + 2px);
  min-height: var(--reserve-control-height, 47px);
}

/* Marketing opt-in & submit */
.reserve-marketing {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(23, 57, 92, 0.08);
}

.reserve-marketing label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--restaurant-muted, #6c737d);
  margin-bottom: 0.25rem;
}

.reserve-marketing label:hover {
  color: var(--restaurant-navy, #17395c);
}

.reserve-marketing input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--restaurant-primary, #21c4b1);
}

.reserve-marketing-footnote {
  font-size: 0.75rem;
  color: var(--restaurant-muted, #6c737d);
  margin: 0 0 0 calc(0.2rem + 1.25rem + 0.75rem);
  opacity: 0.85;
}

.reserve-submit-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(23, 57, 92, 0.08);
}

@media (min-width: 768px) {
  .reserve-submit-row {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }
}

.reserve-submit-row--start {
  align-items: flex-start;
}

@media (min-width: 768px) {
  .reserve-submit-row--start {
    justify-content: flex-start;
  }
}

.reserve-legal-note {
  font-size: 0.75rem;
  color: var(--restaurant-muted, #6c737d);
  margin: 1rem 0 0;
  line-height: 1.4;
}

.reserve-legal-note a {
  color: var(--restaurant-primary, #21c4b1);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.reserve-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--restaurant-navy, #17395c);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.1s;
}

.reserve-submit-btn--find-table {
  border-radius: 0.65rem;
}

.reserve-submit-btn__icon-end {
  font-size: 1.25rem;
  line-height: 1;
}

.reserve-submit-btn:hover:not(:disabled) {
  box-shadow: 0 10px 25px -5px rgba(23, 57, 92, 0.2);
}

.reserve-submit-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.reserve-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.reserve-submit-btn--danger {
  background: #dc2626;
}

.reserve-submit-btn--danger:hover:not(:disabled) {
  box-shadow: 0 10px 25px -5px rgba(185, 28, 28, 0.35);
}

.reserve-form-error {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 0.5rem;
  color: #b91c1c;
  font-size: 0.875rem;
}

.reserve-form-success {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: 0.5rem;
  color: #166534;
  font-size: 0.875rem;
}

/* Inline validation: red border, light red bg when field has error */
.reserve-form-input--error {
  border-color: rgba(220, 38, 38, 0.5) !important;
  background: rgba(220, 38, 38, 0.08) !important;
}

.reserve-validation-msg {
  font-size: 0.8125rem;
  color: #b91c1c;
  margin-top: 0.25rem;
}

/* Success state */
.reserve-success-card {
  max-width: 32rem;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(23, 57, 92, 0.06);
  border: 1px solid rgba(23, 57, 92, 0.06);
}

.reserve-success-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--restaurant-navy, #17395c);
  margin: 0 0 1rem;
}

.reserve-success-code {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--restaurant-primary, #21c4b1);
  margin: 1rem 0;
  letter-spacing: 0.05em;
}

.reserve-success-card p {
  font-size: 0.95rem;
  color: var(--restaurant-muted, #6c737d);
  margin: 0;
}

.reserve-success-card--error {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(254, 242, 242, 0.35);
}

.reserve-success-card--error h3 {
  color: #b91c1c;
}

.reserve-success-card--error p {
  color: #7f1d1d;
}

/* Phone: country + tel on one row; heights match --reserve-control-height */
.reserve-phone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.reserve-phone-row .reserve-form-input--tel {
  flex: 1 1 160px;
  min-width: 140px;
  height: var(--reserve-control-height, 47px);
  min-height: var(--reserve-control-height, 47px);
}

/* Custom country picker: closed = flag only; open = flag + name + dial code */
.reserve-phone-country-wrap {
  position: relative;
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  align-items: stretch;
}

.reserve-phone-country-wrap--open {
  z-index: 1060;
}

.reserve-phone-country-trigger {
  position: relative;
  z-index: 1061;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  box-sizing: border-box;
  width: 4.6rem;
  min-width: 4.6rem;
  max-width: 4.6rem;
  height: var(--reserve-control-height, 47px);
  min-height: var(--reserve-control-height, 47px);
  max-height: var(--reserve-control-height, 47px);
  padding: 0 0.2rem 0 0.15rem;
  border: 1px solid rgba(23, 57, 92, 0.2);
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.reserve-phone-country-chevron {
  font-size: 1.35rem !important;
  color: rgba(23, 57, 92, 0.55);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  line-height: 1;
  user-select: none;
}

.reserve-phone-country-wrap--open .reserve-phone-country-chevron {
  transform: rotate(180deg);
  color: rgba(23, 57, 92, 0.75);
}

.reserve-phone-country-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Fixed-size slots so flags with different PNG dimensions do not resize the trigger or jagged-align the list */
.reserve-phone-country-flag-slot {
  box-sizing: border-box;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.reserve-phone-country-flag-slot--trigger {
  width: 36px;
  height: 24px;
}

.reserve-phone-country-flag-slot--trigger img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.reserve-phone-country-flag-slot--option {
  flex: 0 0 32px;
  width: 32px;
  height: 22px;
}

.reserve-phone-country-flag-slot--option img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.reserve-phone-country-flag-fallback {
  font-size: 1.125rem;
  line-height: 1;
}

.reserve-phone-country-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: transparent;
}

.reserve-phone-country-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 1050;
  min-width: min(100vw - 2rem, 22rem);
  max-height: 16rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(23, 57, 92, 0.15);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(23, 57, 92, 0.12);
}

.reserve-phone-country-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.65rem;
  border: none;
  border-radius: 0.35rem;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.9375rem;
}

.reserve-phone-country-option-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.reserve-phone-country-option:hover,
.reserve-phone-country-option:focus {
  background: rgba(33, 196, 177, 0.12);
  outline: none;
}

.reserve-phone-country-option.is-selected {
  background: rgba(23, 57, 92, 0.06);
  font-weight: 600;
}
