@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
:root {
  /* Fonts */
  --smartrr-loyalty-font: "Inter", sans-serif;

  --smartrr-loyalty-header-size: 20px;
}

.smartrr-loyalty-points-display {
  margin: 0;
  padding-left: 20px;
}

.smartrr-loyalty-hide {
  display: none;
}

/* Modal Styles */
[data-smartrr-loyalty-modal] {
  position: fixed;
  inset: auto 0 0 0;
  margin: 0;
  max-width: 100%;

  border: none;
  border-radius: 8px;
}

.smartrr-loyalty-points-modal-close-container {
  display: flex;
  justify-content: flex-end;
}

[data-smartrr-loyalty-points-modal-close] {
  cursor: pointer;
}

.smartrr-loyalty-points-modal-header {
  text-align: center;
  font-family: var(--smartrr-loyalty-font);
  font-size: var(--smartrr-loyalty-header-size);
  margin-bottom: 5px;
}

.smartrr-loyalty-points-modal-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Tier Styles */
.smartrr-loyalty-points-modal-tiers-wrapper {
  display: flex;
  flex-direction: column;

  width: 100%;
}

.smartrr-loyalty-points-modal-tier-top {
  display: block !important;

  position: relative;
  top: 25px;

  z-index: -1;
  height: 32px;

  border-radius: 16px;
}

.smartrr-loyalty-points-modal-tier {
  width: 100%;
  border-radius: 16px;
  padding: 12px 18px;

  text-align: center;

  background-color: #fff;
}

[data-smartrr-loyalty-points-modal-tier-name] {
  font-weight: 700;
  font-size: 16px;
}

[data-smartrr-loyalty-points-modal-tier-points] {
  font-size: 16px;
}

/* Event Styles */
.smartrr-loyalty-points-modal-events-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.smartrr-loyalty-points-modal-event-container {
  display: flex;
  align-items: center;
  gap: 20px;

  width: 100%;
}

.smartrr-loyalty-points-modal-event-name {
  font-size: 14px;

  white-space: nowrap;
}

.smartrr-loyalty-points-modal-event-subtext {
  font-size: 12px;
}

/* Footer Styles */
.smartrr-loyalty-points-modal-modal-footer {
  font-size: 12px;
  text-align: center;
}

/* Media Queries */
@media only screen and (min-width: 767px) {
  [data-smartrr-loyalty-modal] {
    position: fixed;
    margin: auto;
    inset: revert;
    bottom: revert;
  }

  .smartrr-loyalty-points-modal-tiers-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
  }

  .smartrr-loyalty-points-modal-tier-container {
    flex: 1 1 calc(33.33% - 16px);
  }

  .smartrr-loyalty-points-modal-modal-footer {
    width: 55%;
  }
}
