/* === OFFER SIDEBAR STYLES === */
/* Main Sidebar Layout */
.offer-sidebar {
  max-width: 340px;  /* Consistent width for all sidebars */
  width: 100%;
  background: var(--surface-white);
  padding: 16px;  /* Consistent inner padding */
  border: 2px solid var(--accent);  /* Green border on all sidebars */
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;  /* Reduced from 8px */
  box-sizing: border-box;
}

/* Hero Bundle Image */
.offer-hero {
  margin: 0;
  display: flex;
  justify-content: center;
}

.offer-hero img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Removed border-radius and box-shadow for transparent banner image */
}

/* Price & Copy */
.price-headline { 
  display: flex;
  flex-direction: column;  /* Stack vertically instead of horizontal */
  align-items: center;  /* Center both lines */
  gap: 5px;  /* Small 5px gap between lines */
  margin: 4px 0 6px 0;  /* Reduced margins */
}

.price-headline p {
  margin: 0 !important;  /* Override global p margins */
  padding: 0 !important;
}

.price-headline .only {
  margin: 0 !important;
  padding: 0;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;  /* Very tight for close spacing */
  color: #ef4444; /* red-500 */
}

.price-headline .price { 
  font-weight: 900; 
}

.price-headline .save {
  margin: 0 !important;
  padding: 0;
  line-height: 1;  /* Tight line height */
  color: var(--muted);
  font-size: 13px;
}

.pitch { 
  margin: 0 0 8px 0;  /* Reduced bottom margin */
  font-size: 14px; 
  line-height: 1.5;  /* Proper readability for body text */
  color: var(--ink);
}

.pitch s { 
  color: var(--muted); 
}

/* Form */
.cta-form { 
  display: grid; 
  gap: 10px; 
}

.cta-form input {
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
}

.btn-primary-sidebar {
  height: 48px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: var(--surface-white);
  font-weight: var(--fw-700);
  letter-spacing: .25px;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition);
}

.btn-primary-sidebar:hover { 
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary-sidebar .arrow { 
  font-size: 16px; 
}

/* Trust line */
.trust-line {
  display: flex;
  align-items: center;
  justify-content: center;  /* Center the content */
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin: 10px auto 8px auto;  /* Auto margins for centering */
}

.icon-check {
  width: 18px; 
  height: 18px; 
  display: inline-block;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
}

.icon-check:after {
  content: "";
  position: absolute;
  width: 8px; 
  height: 4px; 
  left: 5px; 
  top: 7px;
  border: 2px solid #fff; 
  border-top: 0; 
  border-right: 0;
  transform: rotate(-45deg);
}

/* Guarantee Card */
.guarantee-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  background: #fff7d6; /* yellow-50 */
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 10px;  /* Reduced from 12px */
  align-items: center;
}

.guarantee-card .seal {
  width: 54px; 
  height: 54px; 
  object-fit: contain;
}

.guarantee-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;  /* Better readability for small text */
}

/* Video Cards */
.video-list { 
  display: grid; 
  gap: 12px; 
}

.video-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #000;
  text-decoration: none;
  color: inherit;
}

.video-thumb {
  width: 100%;
  height: auto;
  display: block;
  opacity: .92;
}

/* Caption chips overlay */
.video-card .chips {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  gap: 6px;
  max-width: calc(100% - 100px);
}

.video-card .chips span {
  background: rgba(255,255,255,.96);
  color: #111;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.video-card .chips .author {
  background: #fde68a; /* yellow highlight */
}

/* Play badge */
.play-badge {
  position: absolute;
  right: 14px; 
  top: 12px;
  width: 44px; 
  height: 44px;
}

.play-badge svg { 
  width: 100%; 
  height: 100%; 
  fill: #fff; 
}

.play-badge circle { 
  fill: rgba(255,255,255,.88); 
}

.play-badge polygon { 
  fill: #111; 
}

/* Bottom bar (time + actions) */
.video-bar {
  position: absolute;
  bottom: 0; 
  left: 0; 
  right: 0;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 8px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  color: #fff;
  font-size: 12px;
}

.video-bar .more { 
  display: inline-flex; 
  gap: 10px; 
}

.icon-share, .icon-dots {
  width: 18px; 
  height: 18px; 
  display: inline-block; 
  opacity: .95;
  background: #fff; 
  mask-size: contain; 
  -webkit-mask-size: contain;
}

.icon-share { 
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 16a3 3 0 0 0-2.82 1.99L8.91 14.7a3.02 3.02 0 0 0 0-1.39l6.27-3.3A3 3 0 1 0 14 8a3 3 0 0 0 .09.7L7.82 12a3 3 0 1 0 0 4l6.27 3.3c-.06.23-.09.46-.09.7a3 3 0 1 0 3-3z'/%3E%3C/svg%3E") center/contain no-repeat; 
}

.icon-dots { 
  -webkit-mask: radial-gradient(circle at 20% 50%, black 40%, transparent 41%), radial-gradient(circle at 50% 50%, black 40%, transparent 41%), radial-gradient(circle at 80% 50%, black 40%, transparent 41%); 
  background: #fff; 
}

/* Scribble "Play me!" */
.scribble {
  position: absolute;
  right: 10px; 
  top: 58px;
  font-size: 16px; 
  font-style: italic;
  color: #fff; 
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

/* Screen reader only */
.sr-only { 
  position: absolute; 
  width: 1px; 
  height: 1px; 
  padding: 0; 
  margin: -1px; 
  overflow: hidden; 
  clip: rect(0,0,0,0); 
  border: 0; 
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .offer-sidebar {
    max-width: 100%; /* Full width on mobile */
    padding: 16px;
    border-radius: 10px;
    margin: 0 auto; /* Center if not full width */
  }
}

@media (max-width: 480px) {
  .offer-sidebar {
    padding: 16px;
    border-radius: 10px;
  }
  
  .price-headline .only { 
    font-size: 20px; 
  }
  
  .video-card .chips { 
    max-width: calc(100% - 80px); 
  }
}

/* Shadow variable fallback */
:root {
  --shadow: 0 10px 18px rgba(0,0,0,.06);
}