.grid-container.upgrade-banner {
  background: url("../images/upgrade-bg.jpg") no-repeat center center;
  background-size: cover;
  border-bottom: 10px solid var(--sub-color);
  margin-bottom: 1.5em;
  color: #fff;
}

.upgradeh1 {
  font-family: var(--serif-font);
  font-size: 1.4em;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 1rem;
  line-height: normal;
}

.upgrade-banner {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.upgrade-banner p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.upgrade-button-row {
  margin-top: 2rem;
}

.upgrade-button-row .cell {
  /*margin-left: .25rem;*/
  /*margin-right: .25rem;*/
  /*max-width: 280px;*/
}

.upgrade-buttons-list {
  padding-bottom: 2rem;
}

.upgrade-banner .red_button {
  /*margin: 1rem 0 1rem 0;*/
  color: #fff;
  font-weight: 700;
  padding: 1.5em;
  width: 100%;
}

.plan-separator {
  width: 1px;
  background-image: linear-gradient(to bottom, transparent, var(--sub-color), transparent);
  opacity: 0.5;
}

.upgrade-group-name {
  color: #fff;
  font-family: var(--serif-font);
  margin-bottom: 1rem;
}

.upgrade-btn-box .upgrade-btn {
  margin-left: 0;
  margin-right: 0;
}

.upgrade-btn-box input:checked + .upgrade-btn {
  background: var(--primary-color);
  color: var(--sub-color);
}

/* Highlighted plan from URL parameter */
.js-subscription-plan.highlighted-plan {
  background: var(--primary-color) !important;
  color: var(--sub-color) !important;
  box-shadow:
    0 0 0 3px rgba(255, 48, 3, 0.4),
    0 0 20px rgba(255, 48, 3, 0.3);
  animation: highlight-pulse 2s ease-in-out 3;
  position: relative;
}

.js-subscription-plan.highlighted-plan::before {
  content: "Recommended";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@keyframes highlight-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(255, 48, 3, 0.4),
      0 0 20px rgba(255, 48, 3, 0.3);
  }

  50% {
    box-shadow:
      0 0 0 6px rgba(255, 48, 3, 0.6),
      0 0 30px rgba(255, 48, 3, 0.5);
  }
}

.head-row {
  background: #f8f8f8;
  font-weight: 700;
  font-size: 0.9375em;
  padding: 0.5em 0;
}

.rubric-row {
  padding: 0.5em;
}

.rubric-row:nth-child(even) {
  background: #f8f8f8;
}

.rubric-row:nth-child(even) {
  background: #ececec;
}

.rubric-standard,
.rubric-free,
.rubric-enhanced {
  text-align: center;
  position: relative;
}

.rubric-row .fa-times-circle,
.rubric-row .fa-check-circle {
  font-size: 2em;
}

.rubric-row .fa-times-circle {
  color: #fe0000;
}

.rubric-row .fa-check-circle {
  color: #59ad00;
}

.rubric-feature {
  order: 1;
}

.rubric-row .asterisk {
  position: absolute;
  font-weight: 700;
  font-size: 1.5em;
  right: 0;
  left: 1.8em;
}

.rubric-row .asteriskt {
  position: absolute;
  font-size: 0.5em;
  top: 1em;
  right: 0;
  left: 11.8em;
}

/* Sticky CTA Bar */
.sticky-cta {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background: white;
  color: inherit;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 20px;
  transition: bottom 0.3s ease;
  z-index: 1000;
}

.sticky-cta.visible {
  bottom: 0;
}

.selected-plan-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.selected-plan-info strong {
  color: inherit;
  font-size: 18px;
}

.upgrade-notice {
  font-size: 14px;
  color: #555;
  margin-top: 4px;
  font-style: italic;
  margin-bottom: 0;
}

#checkout-btn {
  width: auto;
  padding: 21px;
  position: relative;
  z-index: 1;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.checkout-error {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #ef4444;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 3000;
  animation: slideIn 0.3s ease;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 var(--red);
  }

  100% {
    box-shadow: 0 0 0 10px transparent;
  }
}

@media (min-width: 375px) {
  .upgradeh1 {
    font-size: 1.5em;
  }

  .rubric-container .grid-x > .small-12 {
    width: 50%;
  }

  .rubric-container .grid-x > .small-4 {
    width: 16.66667%;
  }

  .head-row {
    font-size: 0.75rem;
  }

  .rubric-feature {
    order: 0;
  }
}

@media (min-width: 500px) {
  .head-row {
    font-size: 0.875rem;
  }
}

@media (min-width: 640px) {
  .upgrade-banner p {
    font-size: 1rem;
    margin-bottom: 0;
  }

  .head-row {
    font-size: 0.9375rem;
  }
}

@media (min-width: 1024px) {
  .upgrade-banner {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }

  .upgradeh1 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .upgrade-banner p {
    font-size: 1.125rem;
  }

  .rubric-content {
    font-size: 1.125rem;
  }
}
