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

.authentic-banner {
  display: flex;
  background-color: #f4f4f4;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 11px;
  padding-top: 9px; /* NOTE(akmal): requested by abg so that padding looks even */
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
}

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

.authentic-banner-text-block .authentic-banner-description {
  font-weight: 400;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: -0.25px;
  margin: 0;
  margin-top: 2px;
}

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

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

.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: 30px;
}

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

.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 {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.0032em;
  color: #0b0b0c;
}

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

.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;
  border-radius: 5px !important;
  text-align: center !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; /* Safari */
  animation: spin 1s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

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

/* NOTE: linear gradient version disabled after abg request */
/* .shop-abg-start-free-trial-button {
  background: #214099;
  color: #fff !important;
  border-radius: 0px;
  transition: 0.5s all ease;
  position: relative;
  overflow: hidden;
}

.shop-abg-start-free-trial-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: 40%;
  width: 50%;
  height: 100%;
  background-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(9, 171, 237, 0.7) 35%,
    rgba(9, 171, 237, 0.7) 60%,
    transparent 100%
  );
  z-index: 1;
  background-size: 100% auto;
  background-position: right center;
  opacity: 0;
}

.shop-abg-start-free-trial-button:hover:before {
  left: 45%;
  width: 100%;
  transition: 0.4s all ease-in-out;
  opacity: 1;
}

.shop-abg-start-free-trial-button span {
  position: relative;
  z-index: 2;
} */

.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;
}

.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: 13px;
}

.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: 99;
}

.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: 99;
}

.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: 5px;
  max-width: 440px;
  position: relative;
  z-index: 1000000;
}

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

.shop-abg-brands {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.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;
  }

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

/* Authentic savings widget */
.authentic-savings-widget {
  position: relative;
  background-color: #f4f4f4;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px;
  border-radius: 3px;
}

.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-savings-widget .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;
  /* bottom: 95%;
  left: 0;
  right: 0;
  margin: 0 auto; */
}

.authentic-savings-widget .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;
  line-height: 21px;
}

.abg-opener-links {
  color: #000000;
  font-size: 12px;
  line-height: 14px;
  padding: 0;
  border: none;
  background: transparent;
  display: inline;
  text-decoration: underline;
  cursor: pointer;
}

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

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

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

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

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

[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-modal-header-image {
    margin-bottom: 15px;
    margin-top: 20px;
  }

  /* .shop-abg-header-description {
    margin-bottom: 10px;
  } */

  /* button.authentic-modal-close-button + div {
    margin: 10px 0 !important;
  } */

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

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

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