.yalt-banner {
  padding: 12px 16px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.yalt-banner-button {
  border: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  font-weight: 600;
  cursor: pointer;
}

.yalt-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.yalt-modal.is-open {
  display: flex;
  animation: yalt-modal-fade-in 0.2s ease-out;
}

.yalt-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}

.yalt-modal-content {
  position: relative;
  width: min(720px, 92vw);
  height: min(80vh, 760px);
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
  animation: yalt-modal-scale-in 0.2s ease-out;
}

.yalt-modal-content iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.yalt-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  border: 0;
  background: rgba(15, 23, 42, 0.6);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.yalt-registration {
  position: relative;
  width: 100%;
  padding-bottom: 120%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
}

.yalt-registration iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yalt-product-earning {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f5f8ff;
  color: #1d2939;
  font-size: 14px;
}

.yalt-cart-wallet {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  gap: 12px;
}

.yalt-cart-wallet .button {
  margin-left: auto;
}

.yalt-account-wallet {
  margin: 20px 0;
  padding: 16px;
  border-radius: 12px;
  background: #f8fafc;
}

.yalt-account-wallet h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.yalt-program-description {
  margin: 12px 0 20px;
  padding: 12px 14px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #ffffff;
}

.yalt-program-description summary {
  color: #344054;
  cursor: pointer;
  font-weight: 600;
}

.yalt-program-description p {
  margin: 10px 0 0;
  color: #475467;
}

.yalt-rewards-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.yalt-rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
  margin: 16px 0 24px;
}

.yalt-reward-card {
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
}

.yalt-reward-card__image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f2f4f7;
}

.yalt-reward-card__content {
  padding: 16px;
}

.yalt-reward-card__content h3,
.yalt-reward-card__content h4 {
  margin: 0 0 8px;
}

.yalt-reward-card__content p {
  margin: 8px 0 0;
}

.yalt-reward-card__value {
  font-weight: 700;
}

.yalt-reward-card__code {
  padding: 10px;
  border-radius: 8px;
  background: #f2f4f7;
  overflow-wrap: anywhere;
}

.yalt-reward-status {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.yalt-reward-status--available {
  color: #067647;
  background: #ecfdf3;
}

.yalt-reward-status--unavailable {
  color: #b54708;
  background: #fffaeb;
}

.yalt-reward-status--expired,
.yalt-reward-status--used {
  color: #475467;
  background: #f2f4f7;
}

.yalt-bubble {
  position: fixed;
  background: #111827;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9998;
  text-decoration: none;
}

.yalt-bubble-position-top-left {
  top: 24px;
  left: 20px;
}

.yalt-bubble-position-top-right {
  top: 24px;
  right: 20px;
}

.yalt-bubble-position-bottom-left {
  bottom: 24px;
  left: 20px;
}

.yalt-bubble-position-bottom-right {
  bottom: 24px;
  right: 20px;
}

.yalt-bubble.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.yalt-bubble.is-hidden {
  visibility: hidden;
}

.yalt-bubble-title {
  white-space: nowrap;
}

.yalt-bubble-close {
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
}

.yalt-loyalty-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}

.yalt-loyalty-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #ffffff;
}

.yalt-loyalty-tabs {
  margin-top: 20px;
}

.yalt-loyalty-tab-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid #d0d5dd;
}

.yalt-loyalty-tab {
  flex: 0 0 auto;
  padding: 12px 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #475467;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.yalt-loyalty-tab[aria-selected="true"] {
  border-bottom-color: #175cd3;
  color: #1849a9;
}

.yalt-loyalty-tab:focus-visible {
  outline: 2px solid #175cd3;
  outline-offset: -2px;
}

.yalt-loyalty-tab-panel {
  padding: 20px 0 8px;
}

.yalt-loyalty-tab-panel[hidden] {
  display: none !important;
}

.yalt-loyalty-tab-panel h3 {
  margin: 0 0 12px;
}

.yalt-loyalty-empty-state {
  padding: 18px;
  border: 1px dashed #d0d5dd;
  border-radius: 10px;
  color: #667085;
}

.yalt-loyalty-stat span {
  color: #667085;
  font-size: 13px;
}

.yalt-loyalty-stat strong {
  color: #101828;
  font-size: 22px;
}

.yalt-purchase-history {
  overflow-x: auto;
  margin-bottom: 24px;
}

.yalt-purchase-history table {
  width: 100%;
  border-collapse: collapse;
}

.yalt-purchase-history th,
.yalt-purchase-history td {
  padding: 12px;
  border-bottom: 1px solid #e4e7ec;
  text-align: left;
}

@media (max-width: 900px) {
  .yalt-loyalty-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .yalt-loyalty-stats {
    grid-template-columns: 1fr;
  }

  .yalt-loyalty-tab-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .yalt-loyalty-tab {
    padding: 10px 8px;
    white-space: normal;
  }

  .yalt-rewards-grid {
    grid-template-columns: 1fr;
  }
}

.yalt-loyalty-opt-in,
.yalt-loyalty-join {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.yalt-loyalty-opt-in legend {
  padding: 0 6px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .yalt-bubble {
    right: 12px;
    left: 12px;
    justify-content: center;
  }

  .yalt-bubble-position-top-left,
  .yalt-bubble-position-top-right,
  .yalt-bubble-position-bottom-left,
  .yalt-bubble-position-bottom-right {
    top: auto;
    bottom: 16px;
  }
}

@keyframes yalt-modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes yalt-modal-scale-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
