.authentic-banner-section {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  position: relative;
}

.authentic-banner-section .authentic__loader {
  display: none !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2.5px solid #333333;
  border-radius: 50%;
  border-top: 2.5px solid #fff;
  animation: banner-spin 1s linear infinite;
  z-index: 2;
}

.authentic-banner-section.is-loading .authentic__loader {
  display: none !important;
}

.authentic-banner-section.is-loading .authentic-banner {
  opacity: 0.3;
  pointer-events: none;
}

.authentic-banner {
  background-color: #f4f4f4;
  width: 100%;
  margin: 0 auto;
}

.authentic-banner-text-block {
  flex-basis: 80%;
}

.authentic-banner-text-block .authentic-banner-heading {
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.2px;
  text-align: left;
  margin: 0;
}

.authentic-banner-text-block .authentic-banner-description {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.25px;
  margin: 0;
  margin-top: 2px;
  color: #464646;
  /* display: flex;
  flex-direction: column; */
}

@media screen and (max-width: 767px) {

  .authentic-banner-text-block .authentic-banner-heading {
    font-size: 12px;
    line-height: 16px;
  }

  .authentic-banner-heading .authentic-banner-description a,
  .authentic-banner-text-block .authentic-banner-description {
    font-size: 10px;
    line-height: 12px;
  }
}

.authentic-banner-image {
  padding: 0;
  margin-left: 0;
  display: flex;
  align-self: flex-start;
}

.authentic-banner-image img {
  width: 100%;
  max-width: 100px;
}

.authentic-banner-checkbox-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 3px;
}

.authentic-banner-checkbox-container input {
  width: 22px;
  height: 22px;
  border-radius: 2.44px;
  border: 1.22px solid #d9d9d9;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: opacity 0.2s ease;
}

.checkbox-loader {
  display: none;
  width: 22px;
  height: 22px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  opacity: 1;
}

[mode='dark'] .checkbox-loader {
  border: 2px solid #333333;
  border-top: 2px solid #ffffff;
}

.authentic-banner-checkbox-container.is-loading .checkbox-loader {
  display: block;
}

.authentic-banner-checkbox-container.is-loading input {
  opacity: 0;
  pointer-events: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.authentic-banner-checkbox-container.is-loading {
  opacity: 0.7;
}

.shop-abg-iframe {
  width: 100%;
  height: 0;
  border: 0;
  margin: auto;
}

.shop-abg-logo {
  justify-content: center;
  align-items: center;
  padding: 16px 16px 0;
  display: flex;
}

.shop-abg-header {
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

.shop-abg-header-ulc {
  text-align: center;
  padding-bottom: 0px;
  margin: 0 16px;
}

.shop-abg-header-title {
  letter-spacing: -0.2px;
  color: #000000;
  margin: 8px 0 16px 0;
  font-weight: 600;
  font-size: 32px;
  line-height: 120%;
}

.shop-abg-header-title-ulc {
  font-size: 18px;
  font-weight: 700;
  line-height: 25px;
  margin-bottom: 8px;
}

.shop-abg-header-description {
  font-size: 14px;
  font-weight: 400;
  color: #0f1721;
  letter-spacing: 0px;
  margin-bottom: 14px;
}

.shop-abg-modal-header-image {
  width: 100%;
  text-align: center;
  margin-bottom: 14px;
  margin-top: 14px;
}

.shop-abg-modal-header-image img {
  display: inline !important;
}

.shop-abg-description-divider-visible {
  padding-bottom: 20px;
  border-bottom: 1px solid #d9d9d9;
}

.shop-abg-content--fixed {
  min-height: 151px;
}

.shop-abg-processing {
  margin: 0 20px 7px 20px;
}

.shop-abg-processing-user {
  color: #0f1721;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    San Francisco,
    Roboto,
    Segoe UI,
    Helvetica Neue,
    sans-serif;
  font-size: 12px;
  letter-spacing: 0px;
  line-height: 21px;
  margin: 12px 0;
  min-height: 21px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  text-rendering: optimizelegibility;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

.shop-abg {
  margin: 0;
}

.shop-brands {
  margin: 20px 0;
}

.shop-abg-text {
  line-height: 24px;
  letter-spacing: 0.0032em;
  color: #0b0b0c;
}

.shop-abg-text b {
  font-weight: 700;
  font-size: 19px;
}

.shop-abg-text a {
  color: #0b0b0c;
}

.shop-abg-text-detail {
  font-size: 14px;
  font-weight: 400;
}

.shop-abg,
.shop-abg a {
  color: #424242;
}

.shop-abg h3 {
  font-size: 12px;
  margin: 0px 0 5px 0;
}

.shop-abg-disclosure {
  border: 1px solid #eee;
  border-radius: 5px;
  margin-bottom: 24px;
  padding: 10px;
  text-align: left;
}

.shop-abg-disclosure-text-container {
  border: none;
  width: 100%;
}

.shop-abg button {
  /* TODO: Centralize styling of shop branded buttons: https://github.com/Shopify/shop-identity/issues/1252 */
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font:
    16px/18px -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Helvetica;
  margin-bottom: 2px;
  padding: 16px;
  width: 100%;
}

.shop-abg button:last-of-type {
  margin-bottom: 0;
}

.shop-abg button.primary {
  background: #5433eb;
  color: #fff;
}

.shop-abg button.primary:hover {
  background: #7f68e9;
}

.shop-abg button.secondary {
  background: none;
  color: #5433eb;
}

.shop-abg button.secondary:hover {
  color: #7b61f0;
}

.shop-abg-start-free-trial-button {
  background-color: #000;
  color: #fff !important;
  font-weight: 700;
  border-radius: 5px !important;
  text-align: center !important;
}

.shop-abg-start-free-trial-button span {
  font-size: 14px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.authentic-banner-section {
  position: relative;
}

.authentic-banner-section.is-loading .authentic__loader {
  display: none !important;
}

.authentic-banner-section.is-loading .authentic-banner {
  opacity: 0.3;
  pointer-events: none;
}
/*
.authentic__loader {
  display: none !important;
} */

.authentic__loader {
  display: inline-block !important;
  border: 2.5px solid #333333;
  border-radius: 50%;
  border-top: 2.5px solid #fff;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  -webkit-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
}

.shop-abg-member-link {
  padding-bottom: 16px;
  text-decoration-line: underline;
  cursor: pointer;
  text-align: center;
  /* display: none; */
  color: #000000;
  font-size: 14px;
  display: block;
  font-weight: 600;
  color: #004299;
}

.shop-abg-member-login strong {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 5px;
  color: #1773b0;
  font-weight: 700;
  font-size: 14px;
}

.shop-abg-member-login a {
  color: #7c99a1;
}

.sda-hidden {
  position: absolute;
  height: 0 !important;
  border: 0;
  padding: 0;
  margin: 0;
  visibility: hidden;
  overflow: hidden;
}

discount-code {
  margin: 0 20px;
}

.shop-abg-content {
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  margin-top: 10px;
}

.shop-abg-legal {
  margin: 0;
  text-align: center;
  margin-top: 16px;
  padding-bottom: 16px;
  letter-spacing: 0.0015em;
  color: #616a75;
  font-size: 14px;
}

.authentic-popup-area {
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  display: none;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.authentic-popup-overlay {
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  display: none;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.authentic-popup-area.active {
  display: flex;
}

body.authentic-modal-active {
  overflow-y: hidden;
}

.authentic-popup-area.active .authentic-popup-overlay {
  display: flex;
}

.authentic-popup-container {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  position: relative;
  z-index: 1000000;
}

.authentic-modal-close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  cursor: pointer;
  border: none;
}

.shop-abg-brands > * {
  margin-bottom: 2%;
}

.shop-abg-brands > * + * {
  margin-left: 3%;
}

.authentic-popup-brand {
  width: 100%;
  max-width: 30%;
}

.authentic-popup-brand:nth-child(4) {
  margin-left: 0;
}

.shop-abg-brands[data-brands='2'] .authentic-popup-brand,
.shop-abg-brands[data-brands='4'] .authentic-popup-brand {
  max-width: 36%;
}

.shop-abg-brands[data-brands='4'] .authentic-popup-brand:nth-child(4) {
  margin-left: 3%;
}
.shop-abg-brands[data-brands='4'] .authentic-popup-brand:nth-child(3) {
  margin-left: 0;
}

.authentic-popup-brand img {
  width: 100%;
}

.email-area {
  width: 100%;
  display: none;
}

.email-input-field {
  width: 100%;
  height: 48px;
  padding: 5px 15px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  text-align: center;
  outline: 0;
}

.email-input-field:foucs {
  outline: 0;
}

.email-submit-btn {
  background: #000;
  color: #fff;
  border-radius: 0px;
  width: 100%;
  height: 46px;
  text-align: center;
  border: none;
}

.email-error {
  color: red;
  text-align: center;
  font-weight: 500;
  display: none;
}

@media screen and (max-width: 520px) {
  .authentic-popup-area {
    align-items: flex-end;
  }

  .authentic-popup-container {
    border-radius: 32px 32px 0 0;
    max-width: 100%;
  }

  .shop-abg-member-link {
    display: block;
  }
}

/* Authentic savings widget */
.authentic-savings-widget {
  background-color: #f4f4f4;
  width: 100%;
  margin: 0 auto;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px;
}

.authentic-savings-text-wrapper {
  flex-basis: 82%;
}

.authentic-savings-text {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  line-height: 21px;
}

.authentic-savings-help {
  cursor: help;
  margin-left: 4px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  color: #555555;
  border: 0.5px solid #555555;
  font-size: 10px;
  /* position: relative; */
}

.authentic-tooltiptext {
  visibility: hidden;
  width: max-content;
  max-width: 20rem;
  color: black;
  background-color: #d9d9d9;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
  border-radius: 4px;
  padding: 5px;
  box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.25);

  position: absolute;
  z-index: 1;
  margin-bottom: 70px;
}

.authentic-tooltiptext::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #d9d9d9 transparent transparent transparent;
}

.authentic-savings-help:hover .authentic-tooltiptext {
  visibility: visible;
}

.authentic-savings-description {
  font-size: 12px;
  margin: 0;
  letter-spacing: -0.25px;
  line-height: 18px;
  display: flex;
  flex-direction: column;
  color: #464646;
}

.abg-opener-links {
  color: #464646;
  padding: 0;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.abg-opener-links span {
  text-decoration: underline;
}

.abg-learn-more {
  color: #000;
}

[mode='dark'] .authentic-banner {
  background: #151515;
}

[mode='dark'] p {
  color: #e9e9e9 !important;
}

[mode='dark'] span:not(.authentic-tooltiptext) {
  color: #e9e9e9 !important;
}

[mode='dark'] .authentic-savings-widget {
  color: #e9e9e9;
  background-color: #151515;
}

[mode='dark'] .abg-opener-links {
  color: #e9e9e9 !important;
}

[mode='dark'] .abg-learn-more {
  color: #e9e9e9;
}

.authentic-additional-payment-message {
  font-size: 12px;
  line-height: 16px;
  color: #969696;
}

@media screen and (max-width: 520px) {
  .authentic-popup-container {
    padding: 10px;
  }

  .shop-abg-brands {
    margin: 15px;
  }

  .shop-abg-legal {
    margin-top: 10px;
    padding-bottom: 10px;
  }

  .shop-abg-member-link {
    padding-bottom: 0;
  }
}

/* Original banner styles */
.authentic-banner-section:not([data-display-membership-banner="true"]) .authentic-banner {
  display: flex;
  background-color: #f4f4f4;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 11px;
  padding-top: 9px;
  margin-left: auto;
  margin-right: auto;
  gap: 12px;
}

.authentic-banner-section:not([data-display-membership-banner="true"]) .authentic-banner-text-block .authentic-banner-heading {
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.2px;
  text-align: left;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.authentic-banner-section:not([data-display-membership-banner="true"]) .authentic-banner-text-block .authentic-banner-description {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.25px;
  margin: 0;
  margin-top: 2px;
  display: block;
}

/* Membership banner styles */
.authentic-banner-section[data-display-membership-banner="true"] {
  max-width: none;
}

.authentic-banner-section[data-display-membership-banner="true"] .authentic-banner {
  display: flex;
  background-color: #f4f4f4;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 11px;
  padding-top: 9px;
  margin-left: auto;
  margin-right: auto;
  gap: 12px;
}

.authentic-banner-section[data-display-membership-banner="true"] .authentic-banner-text-block {
  flex-basis: 80%;
}

.authentic-banner-section[data-display-membership-banner="true"] .authentic-banner-text-block .authentic-banner-heading {
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.2px;
  text-align: left;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.authentic-banner-section[data-display-membership-banner="true"] .authentic-banner-text-block .authentic-banner-description {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.25px;
  margin: 0;
  margin-top: 2px;
  color: #464646;
}

.authentic-banner-section .authentic-banner-checkbox-container {
  display: flex;
  align-self: flex-start;
  justify-content: center;
  margin-top: 3px;
}

/* Links styling */
.authentic-banner-section:not([data-display-membership-banner="true"]) .abg-opener-links {
  color: #000000;
  font-size: 12px;
  line-height: 14px;
  text-decoration: underline;
}

.authentic-banner-section[data-display-membership-banner="true"] .abg-opener-links {
  color: #464646;
  text-decoration: none;
}

.authentic-banner-section[data-display-membership-banner="true"] .abg-opener-links span {
  text-decoration: underline;
}

.authentic-membership-checkbox:hover {
  cursor: pointer;
}

.brands-scroll-container {
  overflow-x: scroll;
  position: relative;
  min-height: 200px;
}

.brands-scroll-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 9px 14px;
  border-radius: 36px;
  font-size: 14px;
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brands-scroll-hint-svg {
  display: flex;
  align-items: center;
}

.brands-scroll-hint svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
}

.brands-scroll-hint--hidden {
  opacity: 0;
  visibility: hidden;
}

.brands-grid {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  position: relative;
  min-height: 200px;
}

/* Shimmer effect styles */
.brands-grid.loading {
  position: relative;
  min-height: 200px;
}

.brands-grid.loading .brand-link {
  position: relative;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  min-height: 60px;
  width: 100%;
  height: 100%;
  display: block;
}

.brands-grid.loading .brand-link:not(:has(img))::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.5s infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Dark mode shimmer */
[data-theme="dark"] .brands-grid.loading .brand-link:not(:has(img)) {
  background: #333;
}

[data-theme="dark"] .brands-grid.loading .brand-link:not(:has(img))::before {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.brand-view {
  flex: 0 0 120px;
  width: 120px;
}

.brand-block-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-link {
  width: 100%;
  display: block;
  aspect-ratio: 6 / 5;
  position: relative;
}

.brand-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.brand-link img.loaded {
  opacity: 1;
  visibility: visible;
}

.authentic-popup,
.authentic-savings-widget {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
  position: relative;
}

authentic-banner {
  position: relative;
}

authentic-banner[style*="display: none"] {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Loading transition styles */
authentic-banner.loading-transition .authentic-banner-heading,
authentic-banner.loading-transition .authentic-banner-description {
  color: transparent !important;
  position: relative;
  overflow: hidden;
}

authentic-banner.loading-transition .authentic-banner-heading::before,
authentic-banner.loading-transition .authentic-banner-description::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(200, 200, 200, 0) 0%,
    rgba(200, 200, 200, 0.5) 50%,
    rgba(200, 200, 200, 0) 100%
  );
  border-radius: 4px;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

[mode='dark'] authentic-banner.loading-transition .authentic-banner-heading::before,
[mode='dark'] authentic-banner.loading-transition .authentic-banner-description::before {
  background: linear-gradient(
    90deg,
    rgba(100, 100, 100, 0) 0%,
    rgba(100, 100, 100, 0.5) 50%,
    rgba(100, 100, 100, 0) 100%
  );
}

authentic-banner.loading-transition .authentic-banner-heading span,
authentic-banner.loading-transition .authentic-banner-description span,
authentic-banner.loading-transition .authentic-banner-heading a,
authentic-banner.loading-transition .authentic-banner-description a {
  opacity: 0;
  visibility: hidden;
}
