/* Basic resets & fonts */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Main container for each card */
.main-container {
  max-width: 1000px;
  margin: 1rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  border: 1px solid #ddd;
  padding: 0;
}

/* Offer Header */
.offer-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
/* Set a fixed size for the logo container */
.brand-logo {
  width: 150px;          /* Desired fixed width */
  height: 100px;         /* Desired fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;  /* Retain your padding if needed */
  border-radius: 8px;
  overflow: hidden;      /* Ensures the image doesn’t spill out */
}

/* Force the logo image to fill the container while maintaining its aspect ratio */
.actual-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* Ensures the entire logo is visible without distortion */
}


/* Offer Content and Title (Bonus) */
.offer-content {
  flex: 1;
}
.offer-title {
  font-size: 2rem;
  font-weight: 500; /* lighter font weight */
  color: #333;
  margin-bottom: 8px;
  text-align: center;
}

/* Claim Bonus Button */
.claim-btn {
  background: #2e8b57;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 24px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.claim-btn:hover {
  background: #276f48;
}

/* Terms and Conditions (Offer Subtitle) – always visible */
.offer-subtitle {
  margin: 0 1rem;
  padding: 0.5rem 0 1rem 0;
  font-size: 12px;
  color: #8f8f8f;
  line-height: 1.4;
}

/* More Info Content (hidden by default) */
.more-info-content {
  padding: 16px;
}

/* Grid for More Info: two columns (review on left, info on right) */
.more-info-grid {
  display: flex;
  gap: 20px;
}
.review-column {
  flex: 1;
}
.info-column {
  flex: 2;
}

/* Review Card */
.review-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 600;
  background: #f0fff0;
  border: 1px solid #90ee90;
  border-radius: 8px;
  padding: 5px;
  font-size: 0.8rem;
}
.check-icon {
  color: #2e8b57;
}
.review-content {
  display: flex;
  gap: 16px;
}
.reviewer-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ddd;
}
.review-text {
  flex: 1;
  font-size: 0.9rem;
  color: #444;
}
.review-text p {
  margin-bottom: 0.5rem;
}

/* Merged Features & License Block */
.features-license-block {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
}
.features-license-block .top-row {
  display: flex;
  gap: 20px;
  /* Ensure the two columns appear side-by-side */
}
.features-license-block .payment-methods-row {
  margin-top: 20px;
  text-align: center;
}
.features-column {
  flex: 1;
}
.license-column {
  flex: 1;
}
.features-title {
  font-size: 1rem;
  color: #0099ff;
  margin-bottom: 16px;
  font-weight: 600;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-check {
  color: #ff6b6b;
}

.license-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  word-wrap: break-word;
}

.license-title {
  font-size: 1rem;
  color: #0099ff;
  margin-bottom: 8px;
  font-weight: 600;
}
.license-content a,
.license-content span {
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

/* Payment Methods Block inside merged block */
.payment-grid-small {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.payment-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
}
.payment-img-small {
  max-height: 30px;
  width: auto;
  height: auto;
}
/* .payment-alt-text {
  font-size: 10px;
  text-align: center;
  margin-top: 4px;
} */

/* Toggle Section */
.toggle-section {
  padding: 16px;
  text-align: center;
  background: #f8f8f8;
}
.toggle-btn {
  color: #0099ff;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .offer-header {
    flex-direction: column;
    align-items: stretch;
  }
  .brand-logo {
    margin: 0 auto 0rem auto; /* Centers the element horizontally and adds bottom spacing */
  }
  .offer-content {
    width: 100%;
  }
  .claim-btn {
    margin: 1rem auto 0 auto; /* Centers the button horizontally with top spacing */
    align-self: center;       /* Ensures it centers within the flex container */
  }
  .more-info-grid {
    flex-direction: column;
  }
  .features-license-block .top-row {
    flex-direction: column;
  }
}
