.store-registration-container,
#registration-form-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  .field input {
    font-size: 16px;

    &:focus-visible {
      box-shadow: none;
    }
  }

  .form-errors-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;

    &:before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: -1;
      animation: fadeIn 0.15s ease-out forwards;
    }

    .form-errors-modal-inner.fade-in {
      animation: fadeSlideIn 0.15s ease-out forwards;
    }

    &.fade-out {
      &:before {
        animation: fadeOut 0.15s ease-out forwards;
      }

      &.fade-out .form-errors-modal-inner {
        animation: fadeSlideOut 0.15s ease-out forwards;
      }
    }

    .form-errors-modal-inner {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: center;
      width: 520px;
      min-height: 320px;
      max-width: 90%;
      height: auto;
      margin: 0 auto;
      z-index: 1;
      background-color: #FFFFFF;
      border-radius: 12px;
      padding: 24px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      text-align: center;
    }

    .close-modal-x {
      position: absolute;
      top: 8px;
      right: 8px;
      cursor: pointer;
      width: 20px;
      height: 20px;

      svg {
        margin-right: 0;
        width: 8px;
      }
    }

    .modal-actions {
      display: flex;
      flex-direction: column;
      gap: 8px;
      width: 100%;
      margin-top: 16px;

      button {
        margin-top: 0;
      }
    }

    button {
      width: 100%;
      margin-top: 8px;
    }


    .close-modal-button {
      background-color: transparent;
      border: 1px solid #CCCCCC;
      color: #333333;
    }

    .form-errors-modal-inner {

      button,
      button:before,
      button:after {
        height: 36px;
        min-height: 36px;
      }
    }

    .loyalty-feedback,
    .loyalty-modal-title {
      width: 100%;
      border-bottom: 1px solid #dfdfdf;
      padding-bottom: 1rem;
      margin-bottom: 1rem;
    }

    button {
      max-width: 320px;
      margin: 0 auto;
    }

    .form__success {
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-top: 16px;

      &.is-visible {
        display: flex;

        .password-modal-header {
          .icon-checkmark path {
            stroke-dashoffset: 0;
          }
        }
      }

      .form__success-title {
        font-size: 18px;
        border-bottom: 1px solid #dfdfdf;
        width: 100%;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
      }

      .form__success-description {
        margin-bottom: 2rem;
        font-size: 14px;
      }
    }

    .password-modal-header {
      margin-left: auto;
      margin-right: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 100%;
      border: 1px solid #262626;
      margin-bottom: 8px;

      .icon-checkmark {
        margin: 0;
        width: 16px;
        height: 16px;

        path {
          stroke-dasharray: 20;
          stroke-dashoffset: 20;
          transition: stroke-dashoffset 1.25s ease-out 0.25s;
        }
      }

      &.is-visible {
        .icon-checkmark path {
          stroke-dashoffset: 0;
        }
      }
    }
  }

  .form__message-item {
    color: #d98a87;
  }

  .request-password .button__spinner,
  .confirm-loyalty-button .button__spinner {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: button-spinner-anim 0.75s linear infinite;
    animation-play-state: running;
  }

  .request-password.loading .button__text,
  .confirm-loyalty-button.loading .button__text {
    visibility: hidden;
  }

  .request-password.loading .button__spinner,
  .confirm-loyalty-button.loading .button__spinner {
    display: block;
  }

  .request-password.loading,
  .confirm-loyalty-button.loading {
    pointer-events: none;
  }

  .form-message--error {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 20px 16px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .form-message--error ul,
  .form__success ul,
  .loyalty-modal-description {
    list-style: none;
    line-height: 1.4;
    color: #262626;
    text-align: center;
    margin: 1rem 0 2rem;
    padding-left: 0;
  }

  .form-message--error ul li a,
  .form__success ul li a {
    pointer-events: none;
  }

  .form-message--error {
    border: 1px solid #d98a87;
  }

  .form-message--error a,
  .form-message--error p {
    color: #d98a87;
  }

  .form-message--error li,
  .form-message--error a {
    font-size: 12px;
    text-align: left;
  }

  .form-message--error p {
    font-size: 18px;
  }

  .form-message--error.has-modal {
    padding: 0;
    align-items: center;
    border: none;
    margin: 0;

    li,
    a,
    p {
      text-align: center;
    }
  }

  .form-message--error.has-modal a,
  .form-message--error.has-modal p {
    color: #262626;
  }

  .form-message--error.has-modal li {
    font-size: 14px;
  }

  .form-message--error.has-modal h2 {
    font-size: 20px;
  }

  .form__success {
    border: none;
  }

  .form__success a,
  .form__success h2 {
    color: #262626;
  }

  .form__success li {
    font-size: 14px;
  }

  .form__success h2 {
    font-size: 16px;
  }

  .form-success p {
    margin-bottom: 16px;
  }

  .content-container {
    flex: 1 1 50%;
    padding: 0 20px;
    margin: 10rem auto;

    .success-message {
      padding: 20px;
      margin-bottom: 30px;

      h2 {
        margin-top: 0;
        font-size: 24px;
      }

      p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 20px;
      }

      .button-container {
        margin-top: 20px;
        text-align: center;

        .back-button {
          background-color: #f8f8f8;
          color: #333;
          border: 1px solid #ddd;
          padding: 10px 20px;
          font-size: 16px;
          cursor: pointer;
          transition: all 0.3s ease;

          &:hover {
            background-color: #eee;
          }
        }
      }
    }
  }

  .loyalty-modal-error {
    color: #d98a87;
    opacity: 1;
    transition: opacity 0.15s ease-out;

    &.is-hidden {
      opacity: 0;
    }
  }

  .image-section {
    flex: 1 1 50%;

    img {
      max-height: 100vh;
      width: 100%;
      object-fit: contain;
    }
  }

  .loyalty-modal-marketing.is-disabled,
  .store-registration-optin.is-disabled {
    pointer-events: none;
    opacity: 0.5;

    &+label,
    & {
      pointer-events: none;
      opacity: 0.5;
    }
  }

  .register-submit {
    z-index: 0;
  }
}


.store-registration-container.no-image {
  .content-container {
    flex: 1 1 100%;
    max-width: 800px;
  }

  .image-section {
    display: none;
  }
}

@media screen and (max-width: 991px) {
  .section-store-registration-padding {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .store-registration-container {
    flex-direction: column;

    .content-container,
    .image-section {
      flex: 1 1 100%;
      width: 100%;
    }

    .image-section {
      margin-top: 30px;
      order: 2;
    }

    .content-container {
      order: 1;
    }
  }
}

@media screen and (max-width: 767px) {
  .section-store-registration-padding {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .res-part {
    display: flex;
    flex-direction: column;
  }

  .res-part>div {
    margin-bottom: 15px;
  }

  .success-message p:first-child {
    font-size: 20px;
  }

  .success-message p {
    font-size: 14px;
  }
}

.h-captcha,
#shop-hcaptcha-badge-container {
  display: none !important;
}

.hcaptcha-badge {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

iframe[src*="hcaptcha.com"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-size: calc(var(--font-body-scale) * 62.5%);
  height: 100%;
}

body {
  font-size: calc(var(--font-body-scale) * 14px);
  font-family: var(--font-body-family);
  font-style: var(--font-body-style);
  font-weight: var(--font-body-weight);
  color: rgb(var(--color-foreground));
  grid-template-columns: 100%;
  min-height: 100%;
  margin: 0;
  line-height: calc(1 + 0.8 / var(--font-body-scale));
}

@media screen and (min-width: 768px) {
  body {
    font-size: calc(var(--font-body-scale) * 16px);
  }
}

.store-registration-image-container {
  margin-bottom: 2rem;
}

.store-registration-image-container.full-width {
  width: 100%;
}

.store-registration-image-container:not(.full-width) {
  margin-left: auto;
  margin-right: auto;
}

.store-registration-image {
  max-width: 100%;
  height: auto;
}

.shopify-pc__banner__dialog {
  visibility: hidden;
}

#loyalty-modal {
  .checkbox-wrapper {
    margin: 1rem 0;
    text-align: left;

    label {
      line-height: 1.3;
    }

    label::before {
      top: 0;
    }

    label::after {
      top: 3px;
    }
  }
}

#loyalty-modal p.loyalty-modal-title {
  font-size: 18px;
}

#loyalty-modal p.loyalty-modal-description {
  font-size: 14px;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeSlideOut {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@media screen and (max-width: 749px) {
  .store-registration-image-container {
    margin-bottom: 1.5rem;
  }
}

@keyframes button-spinner-anim {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.language-switcher {
  margin-bottom: 24px;

  a {
    position: relative;
  }

  a:before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #262626;
    transform: scaleX(0);
    transition: transform 0.25s ease;
  }

  a:hover:before,
  a.active:before,
  a:active {
    transform: scaleX(1);
  }
}

#registration-form-container {
  .form__message {
    ul {
      margin: 0;
    }
  }
}