:root {
  --angi-upsell-accent-color: rgba(0, 129, 158, 1);
  --angi-upsell-link-color: var(--angi-upsell-accent-color);
  --angi-upsell-modal-background: rgba(255, 255, 255, 1);
  --angi-upsell-overlay: rgba(122, 120, 120, 0.53);
  --angi-upsell-spacing: 1.2em;
  --angi-upsell-border-radius: 0.4em;
  --angi-upsell-modal-border-radius: 1.2em;
  --angi-upsell-font-size: 1.6em;
  --angi-upsell-line-height: 1.375;
  --angi-upsell-font-size-small: 1.6em;
  --angi-upsell-learn-more-font-size: 1.4em;
  --angi-upsell-terms-font-size: 1em;
  --angi-upsell-image-size: 6em;
  --angi-upsell-checkbox-size: 2.4em;
  --angi-upsell-checkbox-border-checked: 0.2em solid rgba(0, 129, 158, 1);
  --angi-upsell-checkbox-checked-color: var(--angi-upsell-accent-color);
  --angi-upsell-close-button-background: rgba(245, 245, 242, 1);
  --angi-upsell-close-button-background-hover: rgba(245, 245, 242, 0.8);
  --angi-upsell-points-color: rgb(231, 111, 81);
}

.angi-color-scheme-auto,
.angi-color-scheme-light {
  --angi-upsell-border-color: rgba(219, 217, 212, 1);
  --angi-upsell-text-color: rgba(40, 40, 39, 1);
  --angi-upsell-background: rgba(255, 255, 255, 1);
  --angi-upsell-checkbox-border: 0.2em solid rgba(40, 40, 39, 1);
  --angi-upsell-terms-color: rgba(109, 109, 109, 1);
}

.angi-color-scheme-dark {
  --angi-upsell-border-color: rgba(40, 40, 39, 1);
  --angi-upsell-text-color: rgba(255, 255, 255, 1);
  --angi-upsell-background: rgba(40, 40, 39, 1);
  --angi-upsell-checkbox-border: 0.2em solid var(--angi-upsell-text-color);
  --angi-upsell-terms-color: rgba(188, 185, 180, 1);
}

.angi-color-scheme-light .angi-logo-dark,
.angi-color-scheme-auto .angi-logo-dark {
  display: none;
}

.angi-color-scheme-dark .angi-logo-light {
  display: none;
}

.angi-color-scheme-dark .angi-logo-dark {
  display: inline;
}

@media (prefers-color-scheme: dark) {
  .angi-color-scheme-auto {
    --angi-upsell-border-color: rgba(40, 40, 39, 1);
    --angi-upsell-text-color: rgba(255, 255, 255, 1);
    --angi-upsell-background: rgba(40, 40, 39, 1);
    --angi-upsell-checkbox-border: 0.2em solid var(--angi-upsell-text-color);
    --angi-upsell-terms-color: rgba(188, 185, 180, 1);
  }

  .angi-color-scheme-auto .angi-logo-light {
    display: none;
  }

  .angi-color-scheme-auto .angi-logo-dark {
    display: inline;
  }
}

.angi-upsell-powered-by {
  display: flex;
}

.angi-upsell-widget {
  font-size: 10px;
  display: flex;
  flex-direction: column;
  margin: var(--angi-upsell-spacing) 0;
  padding: 1.6em 1em;
  border: 0.1em solid var(--angi-upsell-border-color);
  border-radius: var(--angi-upsell-border-radius);
  background-color: var(--angi-upsell-background);
}

.angi-upsell-checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.angi-upsell-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.angi-upsell-checkbox input[type="checkbox"]:focus-visible + label::before {
  outline: 0.2em solid var(--angi-upsell-accent-color);
  outline-offset: 0.2em;
}

.angi-upsell-checkbox input[type="checkbox"] + label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--angi-upsell-checkbox-size);
  height: var(--angi-upsell-checkbox-size);
  border: var(--angi-upsell-checkbox-border);
  border-radius: var(--angi-upsell-border-radius);
  background-color: var(--angi-upsell-background);
  transition: all 0.2s ease;
}

.angi-upsell-checkbox input[type="checkbox"]:checked + label::before {
  border: var(--angi-upsell-checkbox-border-checked);
  background-color: var(--angi-upsell-checkbox-checked-color);
}

.angi-upsell-checkbox
  input[type="checkbox"]:checked:focus-visible
  + label::before {
  outline: 0.2em solid var(--angi-upsell-accent-color);
  outline-offset: 0.2em;
}

.angi-upsell-checkbox input[type="checkbox"]:checked + label::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--angi-upsell-checkbox-size);
  height: var(--angi-upsell-checkbox-size);
  background-image: var(--check-icon-url);
  background-size: 1.2em;
  background-position: center;
  background-repeat: no-repeat;
}

.angi-upsell-label {
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  width: 100%;
  padding-left: calc(
    var(--angi-upsell-checkbox-size) + var(--angi-upsell-spacing)
  );
  position: relative;
}

.angi-upsell-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 2.4em;
}

.angi-upsell-image img {
  width: var(--angi-upsell-image-size);
  height: var(--angi-upsell-image-size);
  object-fit: cover;
  border-radius: var(--angi-upsell-border-radius);
}

.angi-upsell-details {
  display: flex;
  flex-direction: column;
}

.angi-upsell-title {
  color: var(--angi-upsell-text-color);
  font-weight: 500;
  font-size: var(--angi-upsell-font-size);
  line-height: var(--angi-upsell-line-height);
  letter-spacing: 0;
  margin-bottom: 0.5em;
}

.angi-upsell-price {
  color: var(--angi-upsell-text-color);
  font-weight: 400;
  font-size: var(--angi-upsell-font-size-small);
  line-height: var(--angi-upsell-line-height);
  letter-spacing: 0%;
}

.angi-upsell-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: calc(var(--angi-upsell-spacing) / 2);
  width: 100%;
}

.angi-upsell-learn-more {
  color: var(--angi-upsell-link-color);
  font-size: var(--angi-upsell-font-size);
  font-weight: 500;
  line-height: 1.4285;
  text-decoration: none;
}

.angi-upsell-learn-more:hover {
  text-decoration: underline;
}

.angi-upsell-terms {
  width: 100%;
  color: var(--angi-upsell-terms-color);
  font-size: var(--angi-upsell-terms-font-size);
  line-height: 1.6;
  text-decoration: none;
  text-align: right;
}

.angi-upsell-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--angi-upsell-overlay);
  z-index: 999999;
  overflow-y: auto;
  font-size: 10px;
}

.angi-upsell-modal-content {
  position: relative;
  background: var(--angi-upsell-modal-background);
  margin: 5em auto;
  padding: calc(var(--angi-upsell-spacing) * 2);
  width: 80%;
  max-width: 64em;
  border-radius: var(--angi-upsell-modal-border-radius);
  z-index: 1000000;
}

.angi-upsell-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 1.6em;
  top: 1.6em;
  background-color: var(--angi-upsell-close-button-background);
  border: none;
  cursor: pointer;
  z-index: 1000001;
  padding: 0.5em;
  border-radius: 50%;
  width: 3.2em;
  height: 3.2em;
  transition: background-color 0.2s ease;
}

.angi-upsell-modal-close:hover,
.angi-upsell-widget--active .angi-upsell-modal-close {
  background-color: var(--angi-upsell-close-button-background-hover);
}

.angi-upsell-modal-close:focus {
  outline: 0.2em solid var(--angi-upsell-accent-color);
  outline-offset: 0.2em;
}

.angi-upsell-modal-description {
  margin-top: 3.6em;
  letter-spacing: -0.05em;
  position: relative;
  z-index: 1000000;
}

.angi-upsell-modal-description h2 {
  font-size: 2em;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 0.8em;
}

.angi-upsell-modal-description h3 {
  font-size: 1.6em;
  line-height: 1.25;
  letter-spacing: 0;
  margin-top: 1.5em;
  margin-bottom: 1.25em;
}

.angi-upsell-modal-description p {
  font-size: 1.4em;
  line-height: 1.4285;
  letter-spacing: 0;
  margin-bottom: 1em;
  margin-top: 1em;
}

.angi-upsell-modal-description ol {
  list-style: none;
  counter-reset: angi-steps;
  padding: 0;
  margin: 0;
}

.angi-upsell-modal-description ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.angi-upsell-modal-description ol li {
  padding-left: 1.85715em;
  counter-increment: angi-steps;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5em;
  margin-bottom: 1.285em;
  font-size: 1.4em;
  line-height: 1.14285;
  position: relative;
}

.angi-upsell-modal-description ul li {
  padding-left: 1.85715em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5em;
  margin-bottom: 1.285em;
  font-size: 1.4em;
  line-height: 1.14285;
  position: relative;
}

.angi-upsell-modal-description ol li::before {
  content: counter(angi-steps);
  min-width: 1.3334em;
  height: 1.3334em;
  background-color: var(--angi-upsell-points-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.85715em;
  line-height: 1;
  position: absolute;
  left: 0;
  top: 0;
}

.angi-upsell-modal-description ul li::before {
  content: "";
  font-size: 0.85715em;
  min-width: 1.3334em;
  height: 1.3334em;
  background-color: var(--angi-upsell-points-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: var(--check-icon-url);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 0.8em;
  position: absolute;
  left: 0;
  top: 0;
}

.angi-upsell-learn-more:focus {
  outline: 0.2em solid var(--angi-upsell-accent-color);
  outline-offset: 0.2em;
  border-radius: 0.4em;
}

.angi-upsell-checkbox:focus-within label::before {
  outline: 0.2em solid var(--angi-upsell-accent-color);
  outline-offset: 0.2em;
}

.angi-upsell-widget__design-mode-warning {
  color: red;
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 1em;
}
