/* ========================================
   /profile/login — C7 Account Login
   Carrick 3-column layout
   Scoped with body:has(.c7-account-login) so it can live
   SITE-WIDE and survive C7's client-side view swaps
   (e.g. /profile -> /profile/login redirect).
   Font @import already exists in site head — not repeated here.
======================================== */

body:has(.c7-account-login) {
  background-color: #e7e2d6 !important;
  color: #341f24 !important;
  font-family: 'Albert Sans', Arial, sans-serif !important;
}

body:has(.c7-account-login) .codeembed.w-embed,
body:has(.c7-account-login) #c7-content {
  width: 100% !important;
}

body:has(.c7-account-login) #c7-content {
  width: 100% !important;
  max-width: 1440px !important;
  min-height: 430px !important;
  margin: 0 auto !important;
  padding: 120px 20px !important;

  display: block !important;

  color: #341f24 !important;
  font-family: 'Albert Sans', Arial, sans-serif !important;
  box-sizing: border-box !important;
}

body:has(.c7-account-login) #c7-content *,
body:has(.c7-account-login) #c7-content *::before,
body:has(.c7-account-login) #c7-content *::after {
  box-sizing: border-box !important;
}

/* C7 outputs h1 + form inside this nested section */
body:has(.c7-account-login) #c7-content > section {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;

  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: 20px !important;
  row-gap: 80px !important;
  align-items: start !important;
}

/* Page title */

body:has(.c7-account-login) #c7-content > section > h1,
body:has(.c7-account-login) #c7-content h1 {
  grid-column: 1 / 2 !important;
  grid-row: 1 !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #341f24 !important;
  font-family: 'Antic Didone', Georgia, serif !important;
  font-size: clamp(1.5rem, 4vw, 36px) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  text-align: left !important;
  text-transform: none !important;
}

/* Main login wrapper */

body:has(.c7-account-login) #c7-content .c7-account-login {
  grid-column: 2 / 4 !important;
  grid-row: 1 !important;

  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;

  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 20px !important;
  row-gap: 20px !important;
  align-items: start !important;

  color: #341f24 !important;
  font-family: 'Albert Sans', Arial, sans-serif !important;
}

body:has(.c7-account-login) #c7-content .c7-account-login--returning-customer,
body:has(.c7-account-login) #c7-content .c7-account-login--new,
body:has(.c7-account-login) #c7-content .c7-account-login--new-customer {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Column headings */

body:has(.c7-account-login) #c7-content .c7-account-login h4 {
  margin: 0 0 2rem !important;
  padding: 0 !important;

  color: #341f24 !important;
  font-family: 'Albert Sans', Arial, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

/* Form spacing */

body:has(.c7-account-login) #c7-content .c7-account-login .c7-form {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;

  display: grid !important;
  gap: 1.5rem !important;
}

body:has(.c7-account-login) #c7-content .c7-account-login .c7-form > div {
  margin: 0 !important;
  padding: 0 !important;
}

/* Labels */

body:has(.c7-account-login) #c7-content .c7-account-login label {
  display: block !important;
  margin: 0 0 0.35rem !important;

  color: #341f24 !important;
  font-family: 'Albert Sans', Arial, sans-serif !important;
  font-size: 0.6875rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

/* Inputs */

body:has(.c7-account-login) #c7-content .c7-account-login input {
  width: 100% !important;
  height: 24px !important;
  min-height: 24px !important;

  margin: 0 !important;
  padding: 5px 6px !important;

  border: 0 !important;
  border-bottom: 1px solid #ab8d3f !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;

  color: #341f24 !important;
  font-family: 'Albert Sans', Arial, sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}

body:has(.c7-account-login) #c7-content .c7-account-login input:focus {
  outline: none !important;
  border-bottom-color: #341f24 !important;
}

/* Buttons */

body:has(.c7-account-login) #c7-content .c7-account-login .c7-button,
body:has(.c7-account-login) #c7-content .c7-account-login button,
body:has(.c7-account-login) #c7-content .c7-account-login a.c7-button {
  width: auto !important;
  min-width: 150px !important;
  min-height: 2.25rem !important;

  margin: 0 !important;
  padding: 0.75rem 1.5rem !important;

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

  border: 1px solid #341f24 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;

  color: #341f24 !important;
  font-family: 'Albert Sans', Arial, sans-serif !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.06em !important;
  text-align: center !important;
  text-transform: uppercase !important;
  text-decoration: none !important;

  cursor: pointer !important;
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    opacity 200ms ease !important;
}

/* Returning customer button — gold solid */

body:has(.c7-account-login) #c7-content .c7-account-login--returning-customer .c7-button,
body:has(.c7-account-login) #c7-content .c7-account-login--returning-customer button,
body:has(.c7-account-login) #c7-content .c7-account-login--returning-customer a.c7-button {
  border-color: #ab8d3f !important;
  background-color: #ab8d3f !important;
  color: #ffffff !important;
}

body:has(.c7-account-login) #c7-content .c7-account-login--returning-customer .c7-button:hover,
body:has(.c7-account-login) #c7-content .c7-account-login--returning-customer button:hover,
body:has(.c7-account-login) #c7-content .c7-account-login--returning-customer a.c7-button:hover {
  border-color: #341f24 !important;
  background-color: #341f24 !important;
  color: #ffffff !important;
}

/* Create account button — outline */

body:has(.c7-account-login) #c7-content .c7-account-login--new .c7-button:hover,
body:has(.c7-account-login) #c7-content .c7-account-login--new button:hover,
body:has(.c7-account-login) #c7-content .c7-account-login--new a.c7-button:hover,
body:has(.c7-account-login) #c7-content .c7-account-login--new-customer .c7-button:hover,
body:has(.c7-account-login) #c7-content .c7-account-login--new-customer button:hover,
body:has(.c7-account-login) #c7-content .c7-account-login--new-customer a.c7-button:hover {
  background-color: #341f24 !important;
  color: #ffffff !important;
}

/* Copy */

body:has(.c7-account-login) #c7-content .c7-account-login p {
  margin: 0 !important;

  color: #341f24 !important;
  font-family: 'Albert Sans', Arial, sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

body:has(.c7-account-login) #c7-content .c7-account-login--new p,
body:has(.c7-account-login) #c7-content .c7-account-login--new-customer p {
  max-width: 34ch !important;
  margin: 0 0 1.5rem !important;
}

/* Links */

body:has(.c7-account-login) #c7-content .c7-account-login a,
body:has(.c7-account-login) #c7-content .c7-message--login-security a,
body:has(.c7-account-login) #c7-content .c7-message--login-questions a {
  color: #341f24 !important;
  text-decoration: underline !important;
  text-underline-offset: 0.15em !important;
}

body:has(.c7-account-login) #c7-content .c7-account-login a:hover,
body:has(.c7-account-login) #c7-content .c7-message--login-security a:hover,
body:has(.c7-account-login) #c7-content .c7-message--login-questions a:hover {
  color: #ab8d3f !important;
}

/* Bottom login messages (grouped by the site-wide script) */

body:has(.c7-account-login) #c7-content .carrick-login-messages {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;

  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.5rem !important;

  text-align: left !important;
}

body:has(.c7-account-login) #c7-content .carrick-login-messages .c7-message--login-security,
body:has(.c7-account-login) #c7-content .carrick-login-messages .c7-message--login-questions {
  width: 100% !important;
  max-width: 34ch !important;
  margin: 0 !important;
  padding: 0 !important;

  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;

  color: #341f24 !important;
  font-family: 'Albert Sans', Arial, sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

body:has(.c7-account-login) #c7-content .carrick-login-messages .c7-message--login-security p,
body:has(.c7-account-login) #c7-content .carrick-login-messages .c7-message--login-questions p {
  margin: 0 !important;
  text-align: left !important;
  font-weight: 400 !important;
}

body:has(.c7-account-login) #c7-modal:empty {
  display: none !important;
}

/* Tablet */

@media screen and (max-width: 991px) {
  body:has(.c7-account-login) #c7-content {
    padding: 80px 20px !important;
  }

  body:has(.c7-account-login) #c7-content > section {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    row-gap: 2rem !important;
  }

  body:has(.c7-account-login) #c7-content > section > h1,
  body:has(.c7-account-login) #c7-content h1 {
    grid-column: 1 / 3 !important;
    grid-row: auto !important;
    margin-bottom: 0 !important;
  }

  body:has(.c7-account-login) #c7-content .c7-account-login {
    grid-column: 1 / 3 !important;
    grid-row: auto !important;
  }

  body:has(.c7-account-login) #c7-content .carrick-login-messages {
    grid-column: 1 / 3 !important;
    grid-row: auto !important;
  }
}

/* Mobile */

@media screen and (max-width: 767px) {
  body:has(.c7-account-login) #c7-content {
    padding: 64px 20px !important;
  }

  body:has(.c7-account-login) #c7-content > section {
    grid-template-columns: 1fr !important;
    row-gap: 2rem !important;
  }

  body:has(.c7-account-login) #c7-content > section > h1,
  body:has(.c7-account-login) #c7-content h1 {
    grid-column: 1 / -1 !important;
    font-size: clamp(2rem, 12vw, 3.25rem) !important;
  }

  body:has(.c7-account-login) #c7-content .c7-account-login {
    grid-column: 1 / -1 !important;
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  body:has(.c7-account-login) #c7-content .carrick-login-messages {
    grid-column: 1 / -1 !important;
  }
}
