body.der-account-modal-open {
  overflow: hidden;
}

.der-account-modal {
  box-sizing: border-box;
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
  max-height: min(860px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 30px;
  background: transparent;
  color: #171512;
}

.der-account-modal::backdrop {
  background: rgba(23, 21, 18, .72);
  backdrop-filter: blur(5px);
}

.der-account-modal__surface {
  position: relative;
  box-sizing: border-box;
  max-height: min(860px, calc(100dvh - 32px));
  padding: clamp(26px, 4vw, 48px);
  overflow: auto;
  border: 1px solid rgba(23,21,18,.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(244,197,66,.2), transparent 32%),
    #fffaf0;
  box-shadow: 0 34px 90px rgba(23,21,18,.3);
  scrollbar-gutter: stable both-edges;
}

.der-account-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(23,21,18,.14);
  border-radius: 50%;
  background: rgba(255,250,240,.96);
  color: #171512;
  font-size: 29px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(23,21,18,.1);
  cursor: pointer;
}

.der-account-modal__close:focus-visible {
  background: #f4c542;
  color: #171512;
}

.der-account-modal__close:focus-visible,
.der-account-modal__tabs button:focus-visible,
.der-account-modal :is(input, button, a):focus-visible {
  outline: 3px solid #f4c542;
  outline-offset: 0;
  box-shadow: 0 0 0 5px #171512 !important;
}

.der-account-modal__header {
  max-width: 680px;
  margin: 0 auto 24px;
  padding: 0 54px;
  text-align: center;
}

.der-account-modal__eyebrow {
  margin: 0 0 8px;
  color: #9b241b;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
}

.der-account-modal__header h2 {
  margin: 0;
  color: #171512;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.der-account-modal__header > p:last-child {
  margin: 12px auto 0;
  color: rgba(23,21,18,.72);
  font-size: 15px;
  line-height: 1.5;
}

.der-account-modal__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(560px, 100%);
  margin: 0 auto 24px;
  padding: 5px;
  border: 1px solid rgba(23,21,18,.12);
  border-radius: 999px;
  background: rgba(23,21,18,.06);
}

.der-account-modal__tabs:has(button:only-child) {
  grid-template-columns: 1fr;
}

.der-account-modal__tabs button {
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(23,21,18,.7);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.der-account-modal__tabs button[aria-selected="true"] {
  background: #171512;
  color: #fffaf0;
  box-shadow: 0 8px 20px rgba(23,21,18,.16);
}

.der-account-modal__forms .woocommerce {
  width: 100%;
}

.der-account-modal__forms .woocommerce-notices-wrapper,
.der-account-modal__forms > :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) {
  width: min(620px, 100%);
  margin: 0 auto 18px;
}

.der-account-modal__forms .woocommerce-form-login,
.der-account-modal__forms .woocommerce-form-register {
  box-sizing: border-box;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(23,21,18,.1);
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 16px 44px rgba(23,21,18,.08);
}

.der-account-modal__forms .u-columns {
  display: block;
  margin: 0;
}

.der-account-modal__forms .u-column1,
.der-account-modal__forms .u-column2 {
  float: none;
  width: 100%;
  margin: 0;
}

.der-account-modal__forms .u-column1 > :is(h2, h3),
.der-account-modal__forms .u-column2 > :is(h2, h3) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.der-account-modal__forms p.form-row {
  margin: 0 0 15px;
}

.der-account-modal__forms label {
  display: block;
  margin: 0 0 7px;
  color: #171512;
  font-size: 14px;
  font-weight: 850;
}

.der-account-modal__forms input.input-text {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(23,21,18,.2);
  border-radius: 14px;
  background: #fff;
  color: #171512;
  font-size: 16px;
  box-shadow: none;
}

.der-account-modal__forms input.input-text:focus {
  border-color: #171512;
}

.der-account-modal__forms .woocommerce-form-login__submit,
.der-account-modal__forms .woocommerce-form-register__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 8px 0 0;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #171512;
  color: #fffaf0;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.der-account-modal__forms .woocommerce-form-login__submit:hover,
.der-account-modal__forms .woocommerce-form-register__submit:hover {
  background: #2d2822;
  color: #fffaf0;
}

.der-account-modal__forms .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 8px;
}

.der-account-modal__forms .woocommerce-LostPassword {
  margin: 14px 0 0;
  text-align: center;
}

.der-account-modal__forms .woocommerce-LostPassword a,
.der-account-modal__privacy a {
  color: #171512;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: #f4c542;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.der-account-modal__forms .nsl-container {
  margin: 0 0 18px !important;
}

.der-account-modal__forms .nsl-container-buttons {
  width: 100% !important;
  gap: 10px !important;
}

.der-account-modal__forms .nsl-button {
  min-height: 46px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.der-account-modal__privacy {
  width: min(620px, 100%);
  margin: 18px auto 0;
  color: rgba(23,21,18,.66);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .der-account-modal__close:hover {
    background: #f4c542;
    color: #171512;
  }
}

@media (max-width: 640px) {
  .der-account-modal {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 24px;
  }

  .der-account-modal__surface {
    max-height: calc(100dvh - 18px);
    padding: 24px 16px 20px;
    border-radius: 24px;
  }

  .der-account-modal__close {
    top: 11px;
    right: 11px;
  }

  .der-account-modal__header {
    margin-bottom: 18px;
    padding: 0 38px;
  }

  .der-account-modal__header h2 {
    font-size: 29px;
  }

  .der-account-modal__header > p:last-child {
    font-size: 14px;
  }

  .der-account-modal__tabs {
    margin-bottom: 16px;
  }

  .der-account-modal__tabs button {
    padding-inline: 10px;
    font-size: 13px;
  }

  .der-account-modal__forms .woocommerce-form-login,
  .der-account-modal__forms .woocommerce-form-register {
    padding: 18px 15px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .der-account-modal *,
  .der-account-modal *::before,
  .der-account-modal *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}