/* NoLimits account and staff views. Mobile first, reuse site tokens. */
.nl-account-wrap{max-width:950px;margin-inline:auto;min-height:560px}
.nl-account-card{background:var(--paper);border:1px solid var(--line-light);padding:clamp(22px,4vw,44px)}
.nl-account-card h2{font-family:var(--font-head);font-size:clamp(1.75rem,3vw,2.45rem);margin:0 0 12px}
.nl-account-card p{color:var(--text-soft);line-height:1.7}
.nl-account-card a:not(.btn){color:#765825}
.nl-account-card .btn{margin-top:12px}
.nl-form-grid{display:grid;gap:16px}
.nl-field{display:flex;flex-direction:column;gap:7px}
.nl-field label{font-weight:650;color:var(--ink)}
.nl-field input,.nl-field select,.nl-field textarea{font:inherit;width:100%;padding:13px 14px;border:1px solid var(--line-light);border-radius:0;background:#fff;color:#1b1a17;min-height:46px}
.nl-field textarea{min-height:94px;resize:vertical}
.nl-field input:focus,.nl-field select:focus,.nl-field textarea:focus{outline:2px solid var(--gold);outline-offset:1px}
.nl-account-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:16px}
.nl-notice{border-left:4px solid var(--gold-deep);padding:12px 16px;background:#f2e6d0;color:#2d2517;line-height:1.6;margin-bottom:22px}
.nl-notice.error{background:#f9e9e4;border-color:#a53d24;color:#7c2718}
.nl-small{font-size:.88rem;color:var(--text-soft)}
.nl-quick{margin:20px 0;padding:22px;border:1px solid var(--line-light);background:var(--surface)}
.nl-quick strong{font-family:var(--font-head);font-size:1.4rem}
.nl-cols{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.nl-tag{font-size:.7rem;letter-spacing:.13em;text-transform:uppercase;color:#765825;font-weight:700}
.nl-contact{display:block;width:100%;padding:14px;border:1px solid var(--line-light);background:#fff;text-align:left;font:inherit;cursor:pointer}
.nl-contact[aria-pressed="true"]{border-color:var(--gold-deep);background:#fbf5e8}
.nl-contact strong,.nl-contact span{display:block}
.nl-contact span{font-size:.87rem;color:var(--text-soft);margin-top:4px;word-wrap:break-word}
.nl-contact-list{display:grid;gap:7px;max-height:520px;overflow:auto}
.nl-admin-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
.nl-admin-panel{padding:20px;background:var(--paper);border:1px solid var(--line-light)}
.nl-admin-panel h2{font-family:var(--font-head);font-size:1.65rem;margin:0 0 14px}
.nl-appt{border-bottom:1px solid var(--line-light);padding:12px 0;line-height:1.5}
.nl-appt:last-child{border:0}
.nl-appt small{display:block;color:var(--text-soft)}
.nl-plain-button{border:1px solid var(--line-light);padding:10px 14px;background:transparent;color:var(--ink);font:inherit;cursor:pointer}
.nl-scroll{max-height:420px;overflow:auto}
[hidden]{display:none!important}
@media(min-width:850px){.nl-admin-grid{grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr)}.nl-cols{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.nl-account-actions .btn{width:100%;justify-content:center}.nl-admin-panel{padding:14px}}

.nl-account-prompt{margin:0 0 20px}.nl-account-prompt a{color:#765825;font-weight:650}

/* Social login: no third-party scripts or requests until explicit user action. */
.nl-social-login{display:grid;gap:10px;margin-top:22px}
.nl-social-button{appearance:none;display:flex;align-items:center;justify-content:center;position:relative;gap:12px;width:100%;min-height:48px;padding:11px 18px;border:1px solid #d2d2d2;border-radius:5px;background:#fff;color:#222;font-family:inherit;font-size:15px;font-weight:600;line-height:1.35;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
.nl-social-button:hover{background:#f5f5f5;border-color:#9f9f9f}
.nl-social-button:focus-visible{outline:3px solid var(--gold-deep);outline-offset:3px}
.nl-social-button:disabled{cursor:wait;opacity:.65}
.nl-social-icon{flex:none;display:block}
.nl-social-note{margin:10px 0 0;font-size:.86rem}
.nl-auth-separator{display:flex;align-items:center;gap:13px;margin:22px 0 14px;color:var(--text-soft);font-size:.9rem}
.nl-auth-separator:before,.nl-auth-separator:after{content:"";height:1px;flex:1;background:var(--line-light)}
@media (max-width:560px){.nl-social-button{min-height:50px}}

/* Keep account page height stable while OAuth/Supabase restores the session. */
.nl-account-loading{min-height:420px}

/* NoLimits customer-account action hierarchy. */
.nl-account-card .nl-login-actions{align-items:stretch}
.nl-login-actions>.btn{flex:1 1 220px;min-width:0;min-height:52px;margin-top:0;text-align:center;white-space:normal}
.nl-account-card .nl-btn-white{background:#fff;color:#171715;border:1px solid #c8c3bb;box-shadow:none}
.nl-account-card .nl-btn-white:hover{background:#f7f7f5;color:#171715;border-color:#999}
.nl-account-card .nl-btn-white::before{display:none}
.nl-account-card .nl-btn-outline{background:transparent;color:var(--ink);border:1px solid var(--ink);box-shadow:none}
.nl-account-card .nl-btn-outline:hover{background:#e8e0d5;color:var(--ink)}
.nl-account-card .nl-btn-outline::before{display:none}
.nl-account-card .nl-btn-signout{background:transparent;border:1px solid #aaa096;color:#302c27;box-shadow:none}
.nl-account-card .nl-btn-signout:hover{background:#ede6dd;color:#171715}
.nl-account-card .nl-btn-signout::before{display:none}
.nl-profile-actions .nl-btn-signout{margin-left:auto}
@media(max-width:560px){
 .nl-login-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 .nl-login-actions>.btn{width:100%;min-height:52px;margin-top:0}
 .nl-profile-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .nl-profile-actions>.btn{width:100%;min-width:0;margin-top:0;min-height:52px;padding-inline:10px;letter-spacing:.05em;text-align:center;white-space:normal}
 .nl-profile-actions>.btn:first-child{grid-column:1/-1}
 .nl-profile-actions>.nl-btn-outline{grid-column:1}
 .nl-profile-actions>.nl-btn-signout{grid-column:2;margin-left:0}
}

/* Google Identity Services is loaded only after a deliberate tap/click.
   The native Google button is centered and scales within mobile viewport. */
.nl-google-gsi-slot{width:100%;max-width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.nl-google-gsi-slot[hidden]{display:none!important}
.nl-google-gsi-slot iframe{max-width:100%}

/* Single-click Google sign-in: reserve its footprint, then show the official button. */
.nl-google-gsi-slot{min-height:52px;width:100%;display:flex;align-items:center;justify-content:center}
.nl-google-gsi-slot>.nl-google-loading{display:flex;align-items:center;justify-content:center;min-height:50px;width:min(400px,100%);border:1px solid #d2d2d2;background:#fff;color:#59534a;font-size:.88rem;text-align:center;padding:8px}
.nl-google-gsi-slot>div{max-width:100%}

/* Stable, non-personalized Google sign-in button (no Google account details in the UI). */
.nl-google-clean-button{width:min(400px,100%);margin-inline:auto;min-height:52px;font-weight:500}
/* Center only the login heading and its Google button, not form fields. */
#nl-login>h2{text-align:center}


/* Mobile staff dashboard: keep the CSV file control and grid children within
   the 320px viewport. Works with long local filenames, too. */
@media (max-width: 560px) {
  .nl-admin-grid, .nl-admin-grid > *, .nl-admin-panel,
  .nl-form-grid, .nl-form-grid > *, .nl-field {
    min-width: 0;
    max-width: 100%;
  }
  #nl-wix-file {
    display: block;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
}

/* The German staff heading has no natural line break on very narrow phones. */
.nl-admin-title{overflow-wrap:anywhere}
@media (max-width:359px){
  .nl-admin-title{font-size:clamp(2rem,9vw,2.6rem);line-height:1.12}
}


/* NoLimits customer quick-booking layout and accessible staff select design - 2026-11-19 */
/* Service name and CTA are actual grid items, never an inline text/button pair. */
#nl-last.nl-quick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  min-width: 0;
  margin: 22px 0;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line-light);
  background: var(--surface);
}
#nl-last.nl-quick strong {
  display: block;
  min-width: 0;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.nl-account-card #nl-last.nl-quick > .btn {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding-inline: clamp(14px, 2vw, 22px);
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  letter-spacing: .1em;
}
@media (max-width: 760px) {
  #nl-last.nl-quick {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 14px;
  }
  .nl-account-card #nl-last.nl-quick > .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }
}

/* Native controls retain keyboard handling, validation and accessible options.
   Unsupported browsers get a polished native select; supporting browsers
   also render the *opened* option picker in NoLimits colors. */
#nl-admin-book-form .nl-field select {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 14px 44px 14px 16px;
  color: #25231e;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23856531' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  border: 1px solid #cfc6b5;
  border-radius: 8px;
  font: inherit;
  font-size: .96rem;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
#nl-admin-book-form .nl-field select:hover {
  border-color: #9c7a44;
  background-color: #fffdf9;
}
#nl-admin-book-form .nl-field select:focus,
#nl-admin-book-form .nl-field select:focus-visible {
  outline: 2px solid #a17a40;
  outline-offset: 2px;
  border-color: #a17a40;
  box-shadow: 0 0 0 4px rgba(161, 122, 64, .12);
}
#nl-admin-book-form .nl-field select:disabled {
  cursor: not-allowed;
  opacity: .6;
  background-color: #f1ede7;
}
/* Chromium 135+, Safari 27+: customize the entire opened menu. */
@supports (appearance: base-select) {
  #nl-admin-book-form .nl-field select,
  #nl-admin-book-form .nl-field select::picker(select) {
    appearance: base-select;
  }
  #nl-admin-book-form .nl-field select {
    background-image: none;
    padding-right: 16px;
  }
  #nl-admin-book-form .nl-field select::picker-icon {
    color: #856531;
    margin-left: 16px;
    transition: transform .2s ease;
  }
  #nl-admin-book-form .nl-field select:open::picker-icon {
    transform: rotate(180deg);
  }
  #nl-admin-book-form .nl-field select::picker(select) {
    border: 1px solid #d7c7ac;
    border-radius: 10px;
    padding: 7px;
    background: #fffdfa;
    color: #25231e;
    box-shadow: 0 15px 38px rgba(24, 22, 18, .18);
    max-height: min(360px, 60vh);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #nl-admin-book-form .nl-field select option {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 11px 13px;
    border-radius: 6px;
    white-space: normal;
    line-height: 1.45;
    font-size: .93rem;
    cursor: pointer;
  }
  #nl-admin-book-form .nl-field select option:hover,
  #nl-admin-book-form .nl-field select option:focus-visible {
    background: #f3eadd;
  }
  #nl-admin-book-form .nl-field select option:checked {
    background: #f2e4cd;
    color: #694716;
    font-weight: 700;
  }
  #nl-admin-book-form .nl-field select option::checkmark {
    color: #856531;
  }
}


/* An import without Isen's approval must also *look* unavailable, not gold. */
#nl-wix-import:disabled {
  opacity: .48;
  background: #ddd5c8;
  color: #655e53;
  border-color: #ddd5c8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
#nl-wix-import:disabled:hover { transform: none; box-shadow: none; }
