/* =========================================================
   P-Clips – Logged-out My Account Login/Register UI
   Goal: ONE neat centred column + tabs + logo/home link
   Fix: neutralise wcaskin grid + stop notices wrapper acting as a "sidebar column"
   Scoped: body.woocommerce-account:not(.logged-in)
   ========================================================= */

/* --- NUCLEAR OVERRIDE: kill any "my account sidebar grid" rules on logged-out view --- */
/* wcaskin is applying display:grid + grid-template-columns somewhere on .woocommerce
   so we override with higher specificity + !important. */
body.woocommerce-account:not(.logged-in) .elementor .elementor-shortcode > .woocommerce,
body.woocommerce-account:not(.logged-in) .elementor .elementor-shortcode > div.woocommerce,
body.woocommerce-account:not(.logged-in) div.woocommerce {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
}

/* --- FIX NOTICES WRAPPER: don't let it behave like a grid column --- */
body.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper {
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 auto 18px !important;
  padding: 0 18px !important;
  box-sizing: border-box !important;
}

/* Hide it when it's empty (common when there are no messages). */
body.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper:empty {
  display: none !important;
}

/* If Elementor/theme injects whitespace so :empty doesn't match, we still prevent it shifting layout. */
body.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper {
  float: none !important;
  clear: both !important;
}

/* Page background */
body.woocommerce-account:not(.logged-in) {
  background: linear-gradient(180deg, #f6f8fc 0%, #ffffff 70%);
}

/* Outer section */
body.woocommerce-account:not(.logged-in) .pclips-auth {
  width: 100%;
  padding: 56px 18px 90px;
  box-sizing: border-box;
}

/* Centring container */
body.woocommerce-account:not(.logged-in) .pclips-auth__inner {
  max-width: 720px;
  margin: 0 auto;
}

/* Top bar: logo + home link */
body.woocommerce-account:not(.logged-in) .pclips-auth__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__logo img {
  max-height: 44px;
  width: auto;
  height: auto;
  display: block;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__sitename {
  font-weight: 900;
  font-size: 1.1rem;
  color: #0b1f3b;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__home {
  font-weight: 700;
  color: #0b57d0;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(11, 87, 208, 0.08);
}

body.woocommerce-account:not(.logged-in) .pclips-auth__home:hover {
  filter: brightness(0.97);
}

/* Header */
body.woocommerce-account:not(.logged-in) .pclips-auth__header {
  margin-bottom: 18px;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__kicker {
  display: inline-flex;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #0b57d0;
  margin-bottom: 10px;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__title {
  font-size: 2.1rem;
  line-height: 1.12;
  margin: 0px;
  color: #0b1f3b;
  font-weight: 800;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__sub {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #5a6a80;
  padding-top: 10px;
  font-weight: 600;
}

/* Card */
body.woocommerce-account:not(.logged-in) .pclips-auth__card {
  font-family: figtree;
  width: 100%;
  max-width: 1800px!important;
  margin: 22px auto 0;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(15, 35, 70, 0.08);
  box-shadow: 0 14px 40px rgba(10, 30, 70, 0.08);
  padding: 18px;
  box-sizing: border-box;
}

/* Tabs */
body.woocommerce-account:not(.logged-in) .pclips-auth__tabs {
    font-family: figtree;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 6px;
  background: rgba(11, 87, 208, 0.06);
  border-radius: 14px;
  margin-bottom: 14px;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__tab {
    font-family: figtree;
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 12px 12px;
  font-weight: 700;
  color: #0b1f3b;
  cursor: pointer;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__tab.is-active {
    font-family: figtree;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(10, 30, 70, 0.10);
  color: #0b57d0;
}

/* Panels */
body.woocommerce-account:not(.logged-in) .pclips-auth__panel {
  padding: 12px 10px 10px;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__panelhead {
  margin: 0 0 14px;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__paneltitle {
  font-size: 1.45rem;
  margin: 0 0 6px;
  color: #0b1f3b;
  font-weight: 700;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__paneldesc {
  margin: 0;
  color: #66758a;
  line-height: 1.5;
}

/* Form */
body.woocommerce-account:not(.logged-in) .pclips-auth__form {
  margin: 0;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__row {
  margin-bottom: 14px;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__row label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #0b1f3b;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__row .required {
  color: #d63638;
  font-weight: 700;
  margin-left: 3px;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__row input[type="text"],
body.woocommerce-account:not(.logged-in) .pclips-auth__row input[type="email"],
body.woocommerce-account:not(.logged-in) .pclips-auth__row input[type="password"] {
  width: 100%;
  max-width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 35, 70, 0.18);
  background: #fff;
  font-size: 0.98rem;
  line-height: 1.2;
  color: #0b1f3b;
  box-sizing: border-box;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__row input:focus {
  outline: none;
  border-color: rgba(11, 87, 208, 0.55);
  box-shadow: 0 0 0 4px rgba(11, 87, 208, 0.12);
}

/* Password toggle */
body.woocommerce-account:not(.logged-in) .pclips-auth__passwordwrap {
  position: relative;
  display: block;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__pwtoggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  color: #0b57d0;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

/* Actions */
body.woocommerce-account:not(.logged-in) .pclips-auth__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 16px;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__remember {
  display: inline-flex;
  align-items: center;
  gap: 0px;
  font-size: 0.9rem;
  color: #44556d;
  margin: 0;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__lost {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0b57d0;
  text-decoration: none;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__lost:hover {
  text-decoration: underline;
}

/* Buttons */
body.woocommerce-account:not(.logged-in) .pclips-auth__btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__btn--primary {
    background: #0b57d0;
    color: #ffffff;
    font-family: 'Figtree';
    font-weight: 700;
    border-radius: 4px;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__btn--primary:hover {
  filter: brightness(0.95);
}

body.woocommerce-account:not(.logged-in) .pclips-auth__btn--secondary {
    background: #0b57d0;
    color: #fff;
    font-family: 'Figtree';
    font-weight: 700;
    border-radius: 4px;
    margin-top: 10px;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__btn--secondary:hover {
  filter: brightness(0.95);
}

/* Responsive */
@media (max-width: 760px) {
  body.woocommerce-account:not(.logged-in) .pclips-auth__title {
    font-size: 1.75rem;
  }
  body.woocommerce-account:not(.logged-in) .pclips-auth__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   v1.0.4 additions
   - Mobile: keep logo + Return to Home on ONE row (space-between)
   - Mobile: pull the whole auth UI closer to the top
   ========================================================= */

@media (max-width: 760px) {
  /* Reduce top padding so the auth UI isn't pushed down on mobile */
  body.woocommerce-account:not(.logged-in) .pclips-auth {
    padding: 18px 16px 44px !important;
  }

  /* Keep logo + home button on the same row */
  body.woocommerce-account:not(.logged-in) .pclips-auth__top {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: nowrap;
  }

  body.woocommerce-account:not(.logged-in) .pclips-auth__brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.woocommerce-account:not(.logged-in) .pclips-auth__logo img {
    max-height: 36px;
  }

  body.woocommerce-account:not(.logged-in) .pclips-auth__home {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 9px 12px;
  }
}
/* =========================================================
   v1.0.2 additions
   - Ensure the auth screen always fills the viewport height (100vh)
   - Better interactive hover/focus states for the Return to Home button
   - First/Last name grid on register form
   - Lost password page: consistent spacing + backlink styling
   ========================================================= */

/* 100vh screen (fixes big blank area on lost password) */
body.woocommerce-account:not(.logged-in) .pclips-auth {
  min-height: 100vh;
  padding: 56px 18px 56px;
}

/* Make sure the gradient/bkg covers the full viewport even if the theme sets odd heights */
html, body.woocommerce-account:not(.logged-in) {
  min-height: 100%;
}

/* Return to Home: proper hover + focus-visible (keyboard users exist, allegedly) */
body.woocommerce-account:not(.logged-in) .pclips-auth__home {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, filter 160ms ease;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__home:hover {
  background: rgba(11, 87, 208, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(10, 30, 70, 0.10);
  filter: none;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__home:active {
  transform: translateY(0px);
  box-shadow: 0 6px 16px rgba(10, 30, 70, 0.08);
}

body.woocommerce-account:not(.logged-in) .pclips-auth__home:focus {
  outline: none;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__home:focus-visible {
  box-shadow: 0 0 0 4px rgba(11, 87, 208, 0.18), 0 10px 26px rgba(10, 30, 70, 0.10);
}

/* Register: First/Last name in two columns on desktop */
body.woocommerce-account:not(.logged-in) .pclips-auth__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 760px) {
  body.woocommerce-account:not(.logged-in) .pclips-auth__grid {
    grid-template-columns: 1fr;
  }
}

/* Hint under register form */
body.woocommerce-account:not(.logged-in) .pclips-auth__hint {
  margin: 6px 0 14px;
  color: #66758a;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Lost password: backlink */
body.woocommerce-account:not(.logged-in) .pclips-auth__backlink {
  margin: 10px 0 0;
  font-size: 0.95rem;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__backlink a {
  color: #0b57d0;
  text-decoration: none;
  font-weight: 700;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__backlink a:hover {
  text-decoration: underline;
}

/* =========================================================
   v1.0.3 additions
   - Notices rendered inside auth card for consistent styling
   - Hide WooCommerce eye icon toggle (we use our text button)
   ========================================================= */

/* Notices */
.pclips-auth__notices:empty { display: none; }

.pclips-auth__notices .woocommerce-message,
.pclips-auth__notices .woocommerce-info,
.pclips-auth__notices .woocommerce-error {
  margin: 0 0 16px 0 !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(11, 87, 208, 0.18) !important;
  background: rgba(11, 87, 208, 0.06) !important;
  color: inherit !important;
  font-size: 0.95rem !important;
  line-height: 1.35 !important;
}

.pclips-auth__notices .woocommerce-error {
  border-color: rgba(200, 0, 0, 0.18) !important;
  background: rgba(200, 0, 0, 0.06) !important;
}

.pclips-auth__notices .woocommerce-message::before,
.pclips-auth__notices .woocommerce-info::before,
.pclips-auth__notices .woocommerce-error::before {
  display: none !important;
}

.pclips-auth__notices a {
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* Kill Woo's injected eye icon toggle (we keep the 'Show' text button) */
body.woocommerce-account:not(.logged-in) .pclips-auth .show-password-input {
  display: none !important;
}

/* Some themes wrap password fields with .password-input and position the toggle; ensure no overlap */
body.woocommerce-account:not(.logged-in) .pclips-auth .password-input {
  display: block !important;
}

/* CTA row used on the reset-link-sent state */
body.woocommerce-account:not(.logged-in) .pclips-auth__cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__cta-row .pclips-auth__btn {
  width: auto !important;
  padding: 10px 16px !important;
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
  border-radius: 10px;
  box-shadow: none;
}

body.woocommerce-account:not(.logged-in) .pclips-auth__cta-row .pclips-auth__btn:hover {
  transform: translateY(-1px);
}



/* ---------------------------------------------------------
   Auth forms – force Figtree on input text
   --------------------------------------------------------- */

body.woocommerce-account:not(.logged-in)
.pclips-auth input[type="text"],
body.woocommerce-account:not(.logged-in)
.pclips-auth input[type="email"],
body.woocommerce-account:not(.logged-in)
.pclips-auth input[type="password"],
body.woocommerce-account:not(.logged-in)
.pclips-auth textarea,
body.woocommerce-account:not(.logged-in)
.pclips-auth select {
  font-family: 'Figtree', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;   /* optional but recommended for consistency */
  font-weight: 500;
}


/* =========================================================
   PCLIPS: Form typography (inputs) + robust password toggle
   ========================================================= */

/* 1) Make typed text use Figtree (inputs, selects, textareas) */
.pclips-auth input[type="text"],
.pclips-auth input[type="email"],
.pclips-auth input[type="password"],
.pclips-auth input[type="tel"],
.pclips-auth input[type="search"],
.pclips-auth input[type="url"],
.pclips-auth input[type="number"],
.pclips-auth select,
.pclips-auth textarea {
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-weight: 400;
}

/* Also ensure placeholders inherit nicely */
.pclips-auth input::placeholder,
.pclips-auth textarea::placeholder {
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-weight: 400;
}

/* 2) Password strength meter: Woo injects its UI after <span class="password-input">.
      Anchor our Show/Hide button to that wrapper so it never moves. */

/* The wrapper Woo creates around the input */
:root{
  --pclips-pw-icon-show: url('https://pclips.co.uk/wp-content/uploads/2026/03/show-password.svg');
  --pclips-pw-icon-hide: url('https://pclips.co.uk/wp-content/uploads/2026/03/hide-password.svg');
}

.pclips-auth .password-input{
  position: relative;
  display: block;
  width: 100%;
}

/* Reserve room on the right for the icon toggle */
.pclips-auth .password-input > input[type="password"],
.pclips-auth .password-input > input[type="text"]{
  width: 100%;
  padding-right: 54px !important;
  box-sizing: border-box;
}

/* Pin the toggle to the input wrapper, not the strength/hint blocks */
.pclips-auth .password-input > .pclips-auth__pwtoggle{
  position: absolute !important;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;

  width: 34px;
  height: 34px;
  padding: 0 !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  border: 0;
  border-radius: 10px;
  line-height: 1;
  white-space: nowrap;

  color: #111827;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pclips-auth .password-input > .pclips-auth__pwtoggle:hover{
  color: #0b57d0;
}

.pclips-auth .password-input > .pclips-auth__pwtoggle:focus{
  outline: 0;
  box-shadow: 0 0 0 .1875rem rgba(11,87,208,.18);
}

.pclips-auth .password-input > .pclips-auth__pwtoggle:active{
  transform: translateY(-50%) scale(0.98);
}

.pclips-auth .password-input .pclips-auth__pwicon{
  width: 20px;
  height: 20px;
  display: block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;

  -webkit-mask-image: var(--pclips-pw-icon-show);
  mask-image: var(--pclips-pw-icon-show);
}

/* When password is visible, swap to the hide icon */
.pclips-auth .password-input > .pclips-auth__pwtoggle.is-visible .pclips-auth__pwicon{
  -webkit-mask-image: var(--pclips-pw-icon-hide);
  mask-image: var(--pclips-pw-icon-hide);
}

/* Strength + hint should naturally sit beneath the input */
.pclips-auth .woocommerce-password-strength,
.pclips-auth .woocommerce-password-hint {
  display: block;
}

/* Confirm password UX */
.pclips-auth .pclips-auth__field-error{
  display:none;
  margin-top: 6px;
  font-size: .82rem;
  line-height: 1.35;
  color: #b91c1c;
}

.pclips-auth .pclips-auth__pwfield.is-mismatch .pclips-auth__field-error{
  display:block;
}

.pclips-auth .pclips-auth__pwfield.is-mismatch input{
  border-color: rgba(185, 28, 28, .65) !important;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, .12) !important;
}

small.woocommerce-password-hint {
    margin-bottom: 8px;
}


.woocommerce-privacy-policy-text {
    font-size: 0.85rem;
    font-weight: 500;
}