/*
 * Customer "My Account" sign up / login page (resources/views/customers/my-account.blade.php).
 * Same look as the checkout and reservation pages; scoped to .my-account so the forms
 * included elsewhere (checkout, landing pages) are not affected.
 */
.my-account {
  --ac-ink: #0f172a;
  --ac-muted: #64748b;
  --ac-line: #e2e8f0;
  --ac-soft: #f8fafc;
  --ac-accent: var(--storecolor, #102c56);
  background: var(--ac-soft) !important;
  background-image: none !important;
}

html,
body {
  overflow-x: clip !important;
}

/* outer frame: no tinted glass panel, just the two columns */
.my-account .cpr-shell {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* welcome block */
.my-account .cpr-eyebrow {
  color: var(--ac-accent) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}

.my-account .cpr-title {
  color: var(--ac-ink) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

.my-account .cpr-subtitle {
  color: var(--ac-muted) !important;
}

/* benefits: plain white card, store-colour ticks */
.my-account .cpr-benefits-card {
  border: 1px solid var(--ac-line) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: hidden;
}

.my-account .cpr-benefits-content h5 {
  color: var(--ac-ink) !important;
  font-weight: 700 !important;
}

.my-account .cpr-benefits-content li {
  color: #475569 !important;
}

.my-account .cpr-benefits-content li i {
  color: var(--ac-accent) !important;
}

/* form card */
.my-account .cpr-card {
  border: 1px solid var(--ac-line) !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.35) !important;
}

/* Signup / Login: segmented control, chosen side in the store colour */
.my-account .form_wrapper .tab {
  height: 44px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 11px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  background-image: none !important;
  color: #334155 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.my-account .form_wrapper {
  position: relative;
}

.my-account .form_wrapper .signup_tab,
.my-account .form_wrapper .login_tab {
  width: calc(50% - 6px) !important;
}

.my-account .form_wrapper .signup_tab {
  margin-left: 4px !important;
}

/* grey track behind the two tabs */
.my-account .form_wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  border-radius: 14px;
  background: #f1f5f9;
  pointer-events: none;
}

.my-account .form_wrapper .tab {
  position: relative;
  z-index: 1;
  margin-top: 4px !important;
}

.my-account .form_wrapper #signup:checked ~ .signup_tab,
.my-account .form_wrapper #login:checked ~ .login_tab {
  background: var(--ac-accent) !important;
  color: #ffffff !important;
}

/* form heading */
.my-account .myaccount-register-form h4,
.my-account .login_form h4,
.my-account .form_wrap h4 {
  margin: 18px 0 14px !important;
  color: var(--ac-ink) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  text-align: left !important;
}

/* fields */
.my-account .form_wrap .form-control {
  height: 48px !important;
  padding: 0 14px !important;
  border: 1px solid var(--ac-line) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: var(--ac-ink) !important;
  font-size: 15px !important;
  box-shadow: none !important;
}

.my-account .form_wrap .form-control::placeholder {
  color: #94a3b8 !important;
}

.my-account .form_wrap .form-control:focus {
  border-color: var(--ac-accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac-accent) 15%, transparent) !important;
}

.my-account .form_wrap .iti {
  width: 100%;
}

.my-account .form_wrap .iti input.form-control {
  padding-left: 92px !important;
}

.my-account .form_wrap .toggle-password {
  color: #94a3b8 !important;
}

/* checkboxes + consent text */
.my-account .form_wrap .custom-control-label {
  color: #475569 !important;
  font-size: 13.5px !important;
}

.my-account .form_wrap .custom-control-label a {
  color: var(--ac-accent) !important;
  font-weight: 600;
}

.my-account .form_wrap .custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--ac-accent) !important;
  background-color: var(--ac-accent) !important;
}

/* primary buttons: Create account / Sign in */
.my-account .form_wrap .btn-primary-grad,
.my-account .form_wrap #thesubmitbtn {
  width: 100% !important;
  height: 50px !important;
  margin-top: 14px !important;
  border: none !important;
  border-radius: 14px !important;
  background: var(--ac-accent) !important;
  background-image: none !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: 0 8px 22px -8px rgba(15, 23, 42, 0.35) !important;
  opacity: 1;
}

.my-account .form_wrap #thesubmitbtn:disabled {
  opacity: 0.45 !important;
  box-shadow: none !important;
}

/* social sign-in buttons */
.my-account .form_wrap .btn-neutral {
  height: 48px;
  border: 1px solid var(--ac-line) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: var(--ac-ink) !important;
  font-weight: 600 !important;
}

/* phones: welcome block compact so the form starts on the first screen */
@media (max-width: 991px) {
  .my-account {
    padding-top: 16px !important;
  }

  .my-account .cpr-left {
    padding: 0 4px 12px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .my-account .cpr-title {
    margin: 2px 0 4px !important;
    font-size: 24px !important;
  }

  .my-account .cpr-subtitle {
    margin: 0 !important;
    font-size: 14px !important;
  }

  .my-account .cpr-card {
    padding: 18px 16px !important;
    border-radius: 18px !important;
  }
}

.my-account .cpr-wrap {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}

.my-account .form_wrap {
  padding-top: 10px;
}

.my-account .form_wrap a:not(.btn) {
  color: var(--ac-accent) !important;
  font-weight: 600;
}

.my-account .form_wrap .custom-control-label {
  white-space: nowrap;
}

.my-account .myaccount-register-form .custom-control-label {
  white-space: normal;
}

/* ==========================================================================
   Outer card: welcome panel (store-colour wash) + form in one rounded box
   ========================================================================== */
.my-account .cpr-shell {
  position: relative;
  display: flex;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--ac-line) !important;
  border-radius: 28px !important;
  background: #ffffff !important;
  box-shadow: 0 30px 70px -36px rgba(15, 23, 42, 0.4) !important;
}

.my-account .cpr-left {
  position: relative;
  overflow: hidden;
  padding: 48px 44px !important;
  background: linear-gradient(160deg,
      color-mix(in srgb, var(--ac-accent) 16%, #ffffff) 0%,
      color-mix(in srgb, var(--ac-accent) 6%, #ffffff) 100%) !important;
}

/* soft decorative circles in the store colour */
.my-account .cpr-left::before,
.my-account .cpr-left::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--ac-accent);
  pointer-events: none;
}

.my-account .cpr-left::before {
  top: -90px;
  right: -90px;
  width: 260px;
  height: 260px;
  opacity: 0.1;
}

.my-account .cpr-left::after {
  bottom: -70px;
  left: -60px;
  width: 180px;
  height: 180px;
  opacity: 0.07;
}

.my-account .cpr-left > * {
  position: relative;
  z-index: 1;
}

/* form side: no second box inside the card */
.my-account .cpr-right {
  padding: 40px 44px !important;
  background: #ffffff;
}

.my-account .cpr-card {
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* benefits sit on the wash as a light card */
.my-account .cpr-left .cpr-benefits-card {
  border-color: color-mix(in srgb, var(--ac-accent) 18%, #ffffff) !important;
  box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.35) !important;
}

@media (max-width: 991px) {
  .my-account .cpr-shell {
    flex-direction: column;
    border-radius: 22px !important;
  }

  .my-account .cpr-left {
    padding: 22px 20px 20px !important;
    background: linear-gradient(160deg,
        color-mix(in srgb, var(--ac-accent) 16%, #ffffff) 0%,
        color-mix(in srgb, var(--ac-accent) 6%, #ffffff) 100%) !important;
  }

  .my-account .cpr-left::before {
    top: -70px;
    right: -60px;
    width: 160px;
    height: 160px;
  }

  .my-account .cpr-left::after {
    display: none;
  }

  .my-account .cpr-right {
    padding: 18px 16px 22px !important;
  }

  .my-account .cpr-card {
    padding: 0 !important;
  }
}

.my-account .cpr-shell {
  align-items: stretch !important;
}

.my-account .cpr-left {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-self: stretch !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.my-account .cpr-right {
  align-self: center;
}

@media (max-width: 991px) {
  .my-account .cpr-left,
  .my-account .cpr-right {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 auto !important;
  }
}
/* Remember me / consent checkbox: always visible, with tick */
.my-account .form_wrap .custom-control {
  position: relative;
  display: flex !important;
  align-items: center;
  min-height: 24px;
  padding-left: 30px !important;
}

.my-account .form_wrap .custom-control-input {
  position: absolute !important;
  left: 0;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: 0 !important;
  opacity: 0;
  transform: translateY(-50%);
  z-index: 2;
  cursor: pointer;
}

.my-account .form_wrap .custom-control-label {
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
}

.my-account .form_wrap .custom-control-label::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  width: 20px !important;
  height: 20px !important;
  transform: translateY(-50%) !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
}

.my-account .form_wrap .custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--ac-accent) !important;
  background: var(--ac-accent) !important;
}

.my-account .form_wrap .custom-control-label::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  width: 20px !important;
  height: 20px !important;
  transform: translateY(-50%) !important;
  background: none !important;
}

.my-account .form_wrap .custom-control-input:checked ~ .custom-control-label::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat !important;
}
/* Email / SMS / WhatsApp offers: all on one line */
.my-account .myaccount-register-form .custom-control.custom-checkbox:has(input[name*="email"]:not([type="email"])),
.my-account .myaccount-register-form .custom-control.custom-checkbox:has(input[name*="sms"]),
.my-account .myaccount-register-form .custom-control.custom-checkbox:has(input[name*="whatsapp"]) {
  display: inline-flex !important;
  width: auto !important;
  margin: 0 18px 8px 0 !important;
  vertical-align: middle;
}
/* Benefits card: image height follows the text, no empty gap */
.my-account .cpr-benefits-card {
  align-items: stretch;
}

.my-account .cpr-benefits-card .cpr-benefits-img {
  width: 38%;
  min-width: 130px;
  height: auto;
  max-height: 230px;
  object-fit: cover;
  align-self: stretch;
}

.my-account .cpr-benefits-card .cpr-benefits-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
}
/* ==========================================================================
   MOBILE: welcome wash on top, form as a bottom sheet
   ========================================================================== */
@media (max-width: 991px) {
  /* remove all the outer padding / nested boxes */
  .my-account.container-fluid,
  .my-account {
    padding: 0 !important;
  }

  .my-account .cpr-wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  /* one full-height panel: wash behind, sheet on top */
  .my-account .cpr-shell {
    display: flex !important;
    flex-direction: column !important;
    min-height: calc(100dvh - 60px);
    max-width: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: linear-gradient(160deg,
      color-mix(in srgb, var(--ac-accent) 18%, #ffffff) 0%,
      color-mix(in srgb, var(--ac-accent) 6%, #ffffff) 100%) !important;
  }

  /* welcome block: compact, sits on the wash */
  .my-account .cpr-left {
    flex: 0 0 auto !important;
    display: block !important;
    padding: 26px 20px 46px !important;
    background: transparent !important;
    text-align: left;
  }

  .my-account .cpr-left::before {
    top: -60px;
    right: -50px;
    width: 150px;
    height: 150px;
  }

  .my-account .cpr-title {
    margin: 2px 0 4px !important;
    font-size: 26px !important;
  }

  .my-account .cpr-subtitle {
    margin: 0 !important;
    font-size: 14px !important;
  }

  /* bottom sheet */
  .my-account .cpr-right {
    position: relative;
    flex: 1 1 auto !important;
    align-self: stretch !important;
    margin-top: -28px;
    padding: 26px 18px 28px !important;
    border-radius: 26px 26px 0 0;
    background: #ffffff;
    box-shadow: 0 -14px 34px -18px rgba(15, 23, 42, 0.35);
    animation: acSheetUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* drag handle */
  .my-account .cpr-right::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 42px;
    height: 4px;
    margin-left: -21px;
    border-radius: 4px;
    background: #cbd5e1;
  }

  .my-account .cpr-card {
    max-width: none !important;
    padding: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  /* benefits card: stays inside the sheet, below the form, compact */
  .my-account .cpr-benefits-card.d-lg-none {
    display: flex !important;
    margin: 0 18px 24px !important;
    border: 1px solid var(--ac-line) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .my-account .cpr-benefits-card.d-lg-none .cpr-benefits-img {
    width: 84px;
    min-width: 84px;
    max-height: none;
    object-fit: cover;
  }

  .my-account .cpr-benefits-card.d-lg-none .cpr-benefits-content {
    padding: 14px;
    justify-content: center;
  }

  .my-account .cpr-benefits-card.d-lg-none .cpr-benefits-content h5 {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .my-account .cpr-benefits-card.d-lg-none .cpr-benefits-content li {
    margin-bottom: 6px;
    font-size: 12px;
  }

  /* offers (Email / SMS / WhatsApp): one row, wraps only if too narrow */
  .my-account .myaccount-register-form .custom-control-label {
    font-size: 13px !important;
  }
}

@keyframes acSheetUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
/* Hide the inactive form completely so it takes no height */
.my-account .form_wrapper #login:checked ~ .myaccount-register-form,
.my-account .form_wrapper #signup:checked ~ .login_form {
  display: none !important;
}

/* Nothing in the sheet may force extra height */
.my-account .cpr-right,
.my-account .cpr-card,
.my-account .cpr-card .main,
.my-account .cpr-card .form_wrapper {
  height: auto !important;
  min-height: 0 !important;
}

@media (max-width: 991px) {
  .my-account .cpr-benefits-card.d-lg-none {
    margin-top: 0 !important;
  }
}
