@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@600&display=swap");

.thl-home-billing-picker {
  flex: 0 0 auto;
  text-align: right;
}

.thl-home-billing-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #c5cbc8;
  border-radius: 0;
  background: #f4f6f5;
  transition: none !important;
}

.thl-home-billing-picker .thl-home-billing-switch button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  min-width: 82px !important;
  min-height: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #606866 !important;
  -webkit-text-fill-color: #606866 !important;
  font-size: 12px !important;
  font-family: "DM Sans", Arial, sans-serif !important;
  font-weight: 600 !important;
  line-height: 36px !important;
  transition: none !important;
  transform: none !important;
  cursor: pointer;
}

.thl-home-billing-picker .thl-home-billing-switch button:hover {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #606866 !important;
  -webkit-text-fill-color: #606866 !important;
  font-weight: 600 !important;
}

.thl-home-billing-picker .thl-home-billing-switch button:is(.is-active, .active),
.thl-home-billing-picker .thl-home-billing-switch button:is(.is-active, .active):hover {
  background: #fff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12) !important;
  color: #151b1a !important;
  -webkit-text-fill-color: #151b1a !important;
}

.thl-home-billing-picker > small {
  display: block;
  margin-top: 7px;
  color: #176f9d;
  font-size: 11px;
  font-weight: 400;
}

@media (max-width: 1050px) {
  .thl-home-billing-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .thl-home-billing-picker > small {
    margin-top: 0;
    line-height: 1.35;
  }
}

.billing-interval-dialog {
  width: min(440px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid rgba(10, 37, 64, .18);
  border-radius: 4px;
  background: #fff;
  color: #0a2540;
  box-shadow: 0 24px 70px rgba(10, 37, 64, .24);
}

.billing-interval-dialog::backdrop {
  background: rgba(9, 24, 38, .48);
  backdrop-filter: blur(6px);
}

.billing-interval-dialog-body {
  position: relative;
  padding: 28px;
}

.billing-interval-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(10, 37, 64, .16);
  border-radius: 2px;
  background: transparent;
  color: #0a2540;
  font: 25px/1 Arial, sans-serif;
  cursor: pointer;
}

.billing-interval-dialog-label {
  display: block;
  margin-bottom: 8px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.billing-interval-dialog h2 {
  max-width: 350px;
  margin: 0;
  color: inherit;
  font-size: 25px;
  line-height: 1.2;
}

.billing-interval-dialog p {
  margin: 12px 0 22px;
  color: #526273;
  font-size: 14px;
  line-height: 1.55;
}

.billing-interval-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.billing-interval-dialog-actions button {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 3px;
  font-weight: 750;
  cursor: pointer;
}

.billing-interval-dialog-secondary {
  border: 1px solid rgba(10, 37, 64, .18);
  background: #fff;
  color: #0a2540;
}

.billing-interval-dialog-primary {
  border: 1px solid #0a2540;
  background: #0a2540;
  color: #fff;
}

.billing-interval-dialog-primary span {
  margin-left: 6px;
  color: #b8e3c8;
  font-size: 11px;
}

html[data-theme="dark"] .billing-interval-dialog {
  border-color: #3c4652;
  background: #171a1f;
  color: #f4f5f6;
}

html[data-theme="dark"] .billing-interval-dialog-close,
html[data-theme="dark"] .billing-interval-dialog-secondary {
  border-color: #454f5b;
  background: #171a1f;
  color: #f4f5f6;
}

html[data-theme="dark"] .billing-interval-dialog p {
  color: #b8c0ca;
}

@media (max-width: 520px) {
  .billing-interval-dialog-body {
    padding: 25px 20px 20px;
  }

  .billing-interval-dialog h2 {
    padding-right: 30px;
    font-size: 22px;
  }

  .billing-interval-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .billing-interval-dialog-primary {
    grid-row: 1;
  }
}
