/* plans.css */

/* Pricing Section General Layout */
.pricing-wrapper {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.pricing__top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-direction: column;
}

.pricing__bottom {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Pricing Cards */
.pricing-card {
  min-height: 510px;
  padding: 32px 24px;
  background-color: var(--light-dark);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
}

.pricing-card__top {
  width: 90%;
}

.pricing-card__middle {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-card__bottom {
  /* Styles for list are below */
}

.pricing-card__price {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.pricing-header {
  margin-bottom: 0;
  /* Inherits h2 styles */
}

.pricing-p {
  font-size: 1.125rem;
  color: var(--medium-base);
}

.monthly-breakdown {
  font-size: 0.925rem;
  color: var(--medium-base);
  margin-top: -26px;
  display: block;
  width: 100%;
  text-align: center;
}

/* Pricing Card List */
.pricing-card__list {
  gap: 12px;
  display: flex;
  flex-direction: column;
}
.pricing-card__list div {
  /* This rule might be too general, consider specific class if needed */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card__list__item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--dark-medium);
}

.pricing-card__list__item a {
  color: var(--accent-base-bold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pricing-card__list__item a:hover {
  color: #4338ca; /* Darker indigo on hover */
  text-decoration: underline;
}

.pricing-card__list__item .icon-container img {
  height: 16px;
  width: 16px;
}

/* Plan Limits Skeleton Loader */
.plan-limits-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px; /* Match list gap */
}

.skeleton-text--limit {
  width: 80%; /* Adjust width as needed */
  height: 1rem; /* Adjust height as needed */
  border-radius: 0.25rem;
}

/* Pricing Buttons */
.pricing-button {
  padding: 12px 24px;
  border-radius: 999px;
  background-color: #ffffff;
  border: 1px solid var(--dark-base);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.pricing-button:hover {
  background-color: var(--light-dark); /* Example hover effect */
}

/* Disabled button state */
.pricing-button--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f3f4f6;
  border-color: #d1d5db;
  color: var(--medium-base);
}

.pricing-button--disabled:hover {
  background-color: #f3f4f6;
}

/* EID Reader toggle link styles */
.eid-toggle-link-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -10px;
  font-size: 0.85rem;
  text-align: center;
}

.eid-toggle-link-included {
  color: var(--medium-base);
  margin-bottom: 5px;
}

.eid-toggle-link {
  font-size: 0.85rem;
  color: var(--accent-base-bold);
  text-decoration: underline;
  cursor: pointer;
}

.eid-toggle-link:hover {
  color: var(--dark-base);
}

/* Selected Pricing Card */
.pricing-card--selected {
  background-color: var(--accent-base);
}

.pricing-card--selected .pricing-button {
  background-color: var(--dark-base);
  color: #ffffff;
}

.pricing-card--selected .pricing-p {
  color: var(--dark-base);
}

/* Special Pricing Cards */
.pricing-card--ask-flockfinder {
  grid-column: 1;
  background-color: #1e7e34; /* Dark green background */
  color: white;
  min-height: 300px;
}
.pricing-card--ask-flockfinder p {
  color: white;
}
.pricing-card--ask-flockfinder .icon-container img {
  filter: brightness(0) invert(1); /* Make the checkmark icons white */
}

.pricing-card--custom-plan {
  grid-column: 2/4;
  background-color: #ffffff !important;
  text-align: left;
  padding-top: 10px !important;
  min-height: 200px !important;
}

.pricing-card--note {
  grid-column: 4;
  background-color: #ffffff !important;
  text-align: left;
  min-height: 200px !important; /* Adjusted from original 300px */
  padding-top: 10px !important;
}
.pricing-card--note p {
  color: var(--medium-base);
}

/* Pricing Filter */
.filter {
  background-color: var(--light-dark);
  border-radius: 999px;
  padding: 6px;
  width: 320px;
  display: flex;
  gap: 4px;
  position: relative;
}

.filter__left,
.filter__right {
  width: 152px;
  padding: 10px 12px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  cursor: pointer;
}

.filter__toggle {
  position: absolute;
  left: 6px;
  width: 152px;
  height: calc(100% - 12px);
  background: #ffffff;
  border-radius: 993px;
  box-shadow: rgba(0, 0, 0, 0.08) 0px 1px 2px 0px;
  z-index: 1;
  transition: left 0.3s ease; /* Added transition */
}

.filter-heading {
  margin-bottom: 20px;
}

.span--savings {
  color: #f60419;
  font-size: 0.75rem;
  font-weight: 400;
}

/* Reader toggle styles */
.filter--reader {
  position: relative;
  max-width: 65px;
  min-width: 30px !important;
  min-height: 35px !important;
  background-color: #e5e7eb !important; /* Light gray background when not selected */
  transition: background-color 0.3s ease !important;
  margin-right: 5px !important; /* Keep consistent spacing */
}

/* When toggle is in the "on" position (right side) */
.filter--reader:has(.filter__toggle[style*="left: 50%"]) {
  background-color: var(
    --accent-base
  ) !important; /* Light blue background when selected */
}

.filter--reader .filter__toggle {
  width: 25px !important;
  height: calc(100% - 11px) !important;
  transition: left 0.3s ease !important;
}

.filter--reader .filter__right p,
.filter--reader .filter__left p {
  font-size: 14px;
}

.filter--reader .span--savings {
  font-size: 10px;
  top: -8px;
}

/* Add fixed width to the toggle text span */
#reader-toggle-text {
  display: inline-block;
  min-width: 120px; /* Adjust this width based on the longest text */
  text-align: left; /* Keep text alignment consistent */
}

/* Pricing Features Section */
.pricing-features {
  /* Inherits .section--light, .section--large styles */
}

.pricing-features-heading {
  text-align: center;
  /* Inherits h3 styles */
}

.pricing-features-wrapper {
  display: flex;
  /* padding: 40px; /* This might conflict with section padding */
  gap: 48px;
}

.pricing-features__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 600px;
}

.pricing-features__left h4 {
  /* Inherits h4 styles */
}

.pricing-features__left .btn {
  align-self: flex-start;
}

.pricing-features__right {
  max-width: 478px;
  /* Contains testimonials__item, styled elsewhere */
}

.pricing-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-features-list__item {
  display: flex;
  gap: 6px;
  align-items: center; /* Align icon and text */
}

.pricing-features-list__item p {
  /* Inherits p styles */
}

.pricing-features-icon {
  /* Assuming it's just a container for the checkmark image */
  display: inline-flex; /* Or flex */
  align-items: center;
  justify-content: center;
}

.pricing-features-icon img {
  height: 16px; /* Adjust as needed */
  width: 16px; /* Adjust as needed */
}

/* Custom Plan Section (within Pricing) */
.custom-plan {
  /* Appears to be a standalone section in HTML, but styled here for context */
  padding: var(--section-padding-s);
  background-color: var(--light-base);
}

.custom-plan__content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 0px !important; /* Override if necessary */
}

.custom-plan__content h4 {
  color: var(--dark-base);
  margin-bottom: 0;
  font-size: var(--font-size-m);
}

.custom-plan__content p {
  color: var(--dark-medium);
  font-size: var(--font-size-m);
}

.custom-plan__content a {
  font-weight: 700;
  font-size: var(--font-size-m);
  word-wrap: anywhere;
}

.custom-plan__email {
  color: var(--accent-base-bold);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.custom-plan__email:hover {
  text-decoration: underline;
}

/* Media Queries for Pricing */
@media screen and (max-width: 1190px) {
  .pricing__bottom {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card--custom-plan {
    grid-column: 1 / 3; /* Span full width if needed */
  }
  .pricing-card--note {
    grid-column: 1 / 3; /* Span full width if needed */
  }
}

@media screen and (max-width: 835px) {
  .pricing-features-wrapper {
    flex-direction: column;
    gap: 32px;
  }
  .pricing-features__right {
    max-width: 100%;
  }
  .reader-promo-display {
    display: none !important;
  }

  /* Improve toggle layout on smaller screens */
  .pricing__top {
    gap: 15px;
  }

  .pricing__top > div {
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .filter--reader {
    /* margin-top: 5px;
    max-width: 80px; */
  }

  #reader-toggle-text {
    margin-top: 8px;
    text-align: center;
    display: block;
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .pricing__bottom {
    grid-template-columns: repeat(1, 1fr);
  }
  .pricing-card--custom-plan {
    grid-column: 1 !important; /* Ensure it takes full width */
  }
  .pricing-card--note {
    grid-column: 1 !important; /* Ensure it takes full width */
  }
  .custom-plan__content a {
    font-size: var(--font-size-s) !important;
  }

  .filter__left,
  .filter__right {
    flex-grow: 1; /* Allow buttons to grow */
    width: auto;
  }
  .filter__toggle {
    width: calc(50% - 6px); /* Adjust toggle width */
  }
  .reader-promo-display {
    display: none; /* Hide on mobile */
  }
}

/* Loading Spinner Styles */
.loading-spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Reader image and price badge styles */
.reader-image-overlay {
  position: absolute;
  top: -32px;
  right: -20px;
  z-index: 2;
  rotate: 10deg;
  transition: all 0.3s ease;
  display: none; /* Hidden by default */
}

.reader-image-overlay:hover {
  transform: rotate(15deg) scale(1.1);
}

/* Show reader image when the pricing card has reader-enabled class */
.pricing-card.reader-enabled .reader-image-overlay {
  display: block;
}

.reader-price-badge {
  position: absolute;
  top: 85px;
  right: -5px;
  background-color: #34b67a;
  color: white;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 16px;
  z-index: 3;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  transform: rotate(10deg);
  transition: all 0.3s ease;
}

.reader-price-badge:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Add a "FREE" badge with animation for yearly plans */
.reader-price-badge .savings-text {
  display: block;
  font-size: 12px;
  margin-top: 2px;
  font-weight: normal;
}

/* Special styling for FREE badges */
.reader-price-badge.free-badge {
  background-color: #f60419;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(246, 4, 25, 0.7);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(246, 4, 25, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(246, 4, 25, 0);
  }
}

/* Make reader promo more eye-catching */
.reader-promo-display {
  position: absolute;
  right: -250px;
  top: -60px;
  width: 200px;
  height: 200px;
  display: none; /* Hide by default - JavaScript will show if needed */
  flex-direction: column;
  align-items: center;
  z-index: 10;
  rotate: 10deg;
  transition: all 0.3s ease;
}

.reader-promo-price {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: var(--medium-base);
  color: white;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 18px;
  z-index: 11;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.reader-promo-price.free {
  background-color: #f60419;
  animation: pulse 2s infinite;
  transform: scale(1.1) rotate(-5deg);
}

.reader-promo-price-value {
  font-size: 28px;
  font-weight: 700;
}

.reader-promo-price-rrp {
  font-size: 14px;
  font-weight: 400;
}

/* Highlight "With EID Reader" text for better emphasis */
#reader-toggle-text {
  font-weight: 600;
}

.filter--reader .filter__toggle[style*="left: 50%"] ~ #reader-toggle-text {
  color: #34b67a;
}

/* Make reader promotion image more prominent */
.reader-promo-image {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.reader-promo-display:hover .reader-promo-image {
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3));
}

/* Animation for shine effect */
@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Special offer banner styling */
.special-offer-banner {
  position: relative;
  overflow: hidden;
  margin-top: 0px;
  background-color: #f60419;
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
}

.special-offer-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0; /* Changed from -100% */
  width: 50%; /* Reduced from 100% */
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: translateX(-100%); /* Start off-screen */
  animation: shine 2s infinite;
  will-change: transform; /* Optimize for animation */
}

/* Make the limited time banner text more specific */
.limited-time-banner {
  position: absolute;
  top: -20px;
  right: 10px;
  background-color: #f60419;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  transform: rotate(4deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 5;
  display: none; /* Hidden by default, shown via JS */
  white-space: nowrap;
  overflow: hidden; /* Prevent content overflow */
}

.limited-time-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: translateX(-100%); /* Start off-screen */
  animation: shine 2s infinite;
  will-change: transform; /* Optimize for animation */
}

/* Reader promo price summary styling restored */
.reader-promo-price-summary-below {
  position: absolute;
  bottom: 35px !important;
  left: 10px;
  color: var(--dark-base);
  background-color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  width: 100%;
  text-align: center;
  rotate: -10deg;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Restore spinner styles that were removed */
.spinner-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--accent-base);
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.spinner-text {
  font-size: 1.2rem;
  color: var(--dark-base);
  font-weight: 500;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Display reader price clearly */
.reader-price {
  display: inline-block;
  font-weight: bold;
}

/* Pricing CTA Section */
#pricing-cta {
  display: none;
  margin-top: -30px;
  margin-bottom: 0px;
  position: relative;
  z-index: 10;
  width: 100%;
  left: 0;
  right: 0;
}

#pricing-cta .container {
  display: flex;
  justify-content: center;
}

.pricing-cta-note {
  font-size: 12px;
  margin-top: 10px;
  color: #666;
  position: absolute;
  bottom: -30px;
  width: 100%;
  text-align: center;
}

/* Pricing Filter Container */
.pricing-filter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
  flex-wrap: wrap;
}

.pricing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

/* Reader toggle container - hidden by default to prevent flash */
.reader-toggle-wrapper {
  display: none; /* Hide by default - JavaScript will show if needed */
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Make the reader promo price more attention-grabbing when free */
.reader-promo-price.free {
  background-color: #f60419;
  animation: pulse 2s infinite;
  transform: scale(1.1) rotate(-5deg);
}

.reader-promo-price.free::before {
  content: "Limited Time!";
  position: absolute;
  bottom: -20px;
  left: 0;
  background-color: #333;
  color: white;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  transform: rotate(-5deg);
}

/* Animation for shine effect */
@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Show reader-dependent elements only when needed */
.reader-dependent-element {
  display: none; /* Hidden by default, JS will toggle */
}

/* EID Reader Info Popup Styles */
.eid-reader-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.eid-reader-popup.active {
  display: flex;
}

.eid-reader-popup-content {
  background-color: white;
  width: 100%;
  max-width: 500px;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: popup-appear 0.2s ease forwards; /* Added forwards to maintain final state */
}

@keyframes popup-appear {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.eid-reader-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.eid-reader-popup-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.5;
}

.eid-reader-popup-close {
  background: none;
  border: none;
  color: #6b7280;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.eid-reader-popup-close:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.eid-reader-popup-body {
  padding: 1.5rem;
}

/* Standard alert for lead time warning */
#eid-lead-time-warning {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-left: 4px solid;
  transition: all 0.3s ease;
}

/* Default style - for non-members (red warning) */
#eid-lead-time-warning.lead-time-warning {
  background-color: #fef2f2;
  color: #991b1b;
  border-left-color: #ef4444;
}

/* Style for existing members (blue information) */
#eid-lead-time-warning.member-info {
  background-color: #e0f2fe;
  color: #0369a1;
  border-left-color: #0ea5e9;
}

#eid-lead-time-warning a {
  color: inherit;
  font-weight: bold;
  text-decoration: underline;
}

#eid-lead-time-warning a:hover {
  text-decoration: none;
}

/* Reader info sections */
.eid-reader-info {
  background-color: #f9fafb;
  padding: 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Different info sections - shown/hidden based on state */
.eid-reader-info-standard,
.eid-reader-info-member {
  display: none;
}

/* Control visibility based on mode */
.eid-reader-popup.member-mode .eid-reader-info-member {
  display: block;
}

.eid-reader-popup.standard-mode .eid-reader-info-standard {
  display: block;
}

.eid-reader-info h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.eid-reader-info ul {
  margin: 0;
  padding-left: 1.5rem;
}

.eid-reader-info li {
  margin-bottom: 0.5rem;
  color: #4b5563;
  font-size: 0.875rem;
}

.eid-reader-info li:last-child {
  margin-bottom: 0;
}

.eid-reader-popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.eid-reader-popup-button {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
}

.eid-reader-popup-button-cancel {
  background-color: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

.eid-reader-popup-button-cancel:hover {
  background-color: #f9fafb;
}

.eid-reader-popup-button-continue {
  background-color: var(--accent-base);
  font-weight: 600;
}

/* Email support button styling */
.eid-reader-popup-button-continue.email-support {
  background-color: #0ea5e9;
}

.eid-reader-popup-button-continue.email-support:hover {
  background-color: #0284c7;
}

.eid-reader-popup-button-continue:hover {
  filter: brightness(0.95);
}

/* Responsive styles */
@media screen and (max-width: 600px) {
  html,
  body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }

  .eid-reader-popup {
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    padding: 0; /* Remove padding */
    overflow: hidden; /* Prevent overflow */
  }

  .eid-reader-popup-content {
    position: relative;
    width: 95vw;
    max-width: 95vw;
    margin: 0 auto;
    box-sizing: border-box;
    animation: none; /* Disable animation */
    transition: none; /* Disable transitions */
  }

  .eid-reader-popup-actions {
    flex-direction: column-reverse;
  }

  .eid-reader-popup-button {
    width: 100%;
    padding: 0.625rem 1rem;
    text-align: center;
  }
}

/* Info-only mode for EID reader popup */
.eid-reader-popup.info-only-mode .eid-reader-popup-actions {
  justify-content: center;
}

.eid-reader-popup.info-only-mode .eid-reader-popup-button-continue {
  background-color: var(--dark-base);
  color: white;
  padding: 0.625rem 1.5rem;
  min-width: 120px;
  text-align: center;
}

.eid-reader-popup.info-only-mode .eid-reader-popup-button-continue:hover {
  background-color: #1e293b;
}

/* Make the reader images have a pointer cursor to indicate they're clickable */
.reader-promo-display,
.reader-image-overlay {
  cursor: pointer;
}

/* Add subtle hover effect to indicate clickability */
.reader-promo-display:hover,
.reader-image-overlay:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

@media screen and (max-width: 600px) {
  .eid-reader-popup.info-only-mode .eid-reader-popup-actions {
    margin-top: 1rem;
  }

  .eid-reader-popup.info-only-mode .eid-reader-popup-button-continue {
    width: 100%;
  }
}

/* Features Grid Layout */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin: 40px 0;
}

.feature-category {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-category-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}

.feature-emoji {
  font-size: 2rem;
  margin-right: 10px;
}

.feature-category-header h4 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark-base);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.feature-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feature-title {
  font-weight: 600;
  margin: 0 0 5px 0;
  font-size: 1rem;
  color: var(--dark-base);
}

.feature-description {
  margin: 0;
  font-size: 0.9rem;
  color: var(--medium-base);
  padding-right: 30px; /* Make space for the help icon */
}

.help-link {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #f0f0f0;
  text-decoration: none;
  color: var(--medium-base);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.help-link:hover {
  background-color: var(--accent-base);
  color: white;
}

.help-icon {
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
}

.features-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* Media Queries for Features Grid */
@media screen and (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 600px) {
  .feature-category {
    padding: 20px;
  }

  .feature-emoji {
    font-size: 1.5rem;
  }

  .feature-category-header h4 {
    font-size: 1.2rem;
  }

  .feature-title {
    font-size: 0.9rem;
  }

  .feature-description {
    font-size: 0.8rem;
  }
}
