/* GM PWA Promotion — Styles v1.0 */

/* ─── Bottom Bar ─── */
.gmpwa-promo-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #fff;
  box-shadow: 0 -2px 20px rgba(0,0,0,.12);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.gmpwa-promo-bar.visible {
  transform: translateY(0);
}
.gmpwa-promo-bar-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
}
.gmpwa-promo-bar-icon img {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 8px;
}
.gmpwa-promo-bar-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.3;
}
.gmpwa-promo-bar-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 8px;
  background: #2C4A3A;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.gmpwa-promo-bar-btn:hover {
  background: #1e3529;
  color: #fff;
  text-decoration: none;
}
.gmpwa-promo-bar-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  color: #888;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.gmpwa-promo-bar-close:hover {
  background: #e0e0e0;
  color: #555;
}

/* ─── Popup Overlay ─── */
.gmpwa-promo-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.gmpwa-promo-popup-overlay.visible {
  opacity: 1;
  visibility: visible;
}
.gmpwa-promo-popup {
  background: #fff;
  border-radius: 16px;
  max-width: 420px;
  width: calc(100% - 32px);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  transform: translateY(20px) scale(.96);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  position: relative;
}
.gmpwa-promo-popup-overlay.visible .gmpwa-promo-popup {
  transform: translateY(0) scale(1);
}
.gmpwa-promo-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.06);
  color: #666;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background .2s;
}
.gmpwa-promo-popup-close:hover {
  background: rgba(0,0,0,.12);
}
.gmpwa-promo-popup-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}
.gmpwa-promo-popup-body {
  padding: 28px 24px 24px;
  text-align: center;
}
.gmpwa-promo-popup-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 auto 16px;
}
.gmpwa-promo-popup-icon img {
  width: 56px;
  height: 56px;
  display: block;
  border-radius: 14px;
}
.gmpwa-promo-popup-heading {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
  font-family: Georgia, 'Times New Roman', serif;
}
.gmpwa-promo-popup-text {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 24px;
}
.gmpwa-promo-popup-features {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}
.gmpwa-promo-popup-feat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #2C4A3A;
  font-weight: 500;
}
.gmpwa-promo-popup-feat svg {
  width: 16px;
  height: 16px;
  stroke: #2C4A3A;
  fill: none;
  stroke-width: 2;
}
.gmpwa-promo-popup-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  background: #2C4A3A;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background .2s;
  font-family: inherit;
}
.gmpwa-promo-popup-btn:hover {
  background: #1e3529;
  color: #fff;
  text-decoration: none;
}
.gmpwa-promo-popup-dismiss {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  color: #999;
  font-size: 13px;
  cursor: pointer;
}
.gmpwa-promo-popup-platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #999;
  margin-top: 16px;
}
.gmpwa-promo-popup-platforms svg {
  flex-shrink: 0;
}
.gmpwa-promo-popup-price {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-top: 8px;
}
.gmpwa-promo-popup-premium {
  display: block;
  margin: 12px auto 0;
  font-size: 13px;
  color: #B8883A;
  font-weight: 500;
  text-decoration: none;
}
.gmpwa-promo-popup-premium:hover {
  color: #8a6528;
  text-decoration: underline;
}
.gmpwa-promo-popup-dismiss:hover {
  color: #666;
}

/* ─── Recipe CTA ─── */
.gmpwa-recipe-cta {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #ece8e2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.gmpwa-recipe-cta-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.gmpwa-recipe-cta-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
}
.gmpwa-recipe-cta-icon img {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 12px;
}
.gmpwa-recipe-cta-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.gmpwa-recipe-cta-platforms {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #999;
}
.gmpwa-recipe-cta-platforms svg {
  flex-shrink: 0;
}
.gmpwa-recipe-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gmpwa-recipe-cta-text strong {
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 600;
}
.gmpwa-recipe-cta-text span {
  font-size: 13px;
  color: #888;
}
.gmpwa-recipe-cta-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 10px;
  background: #2C4A3A;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.gmpwa-recipe-cta-btn:hover {
  background: #1e3529;
  color: #fff;
  text-decoration: none;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .gmpwa-promo-bar {
    padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 10px);
  }
  .gmpwa-promo-bar-text {
    font-size: 13px;
  }
  .gmpwa-promo-bar-btn {
    padding: 7px 14px;
    font-size: 12px;
  }
  .gmpwa-promo-popup {
    border-radius: 16px 16px 0 0;
    max-width: 100%;
    width: 100%;
    position: fixed;
    bottom: 0;
  }
  .gmpwa-promo-popup-overlay {
    align-items: flex-end;
  }
  .gmpwa-promo-popup-body {
    padding: 24px 20px calc(env(safe-area-inset-bottom, 0px) + 20px);
  }
  .gmpwa-recipe-cta {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  .gmpwa-recipe-cta-body {
    flex-direction: column;
  }
  .gmpwa-recipe-cta-actions {
    align-items: center;
    width: 100%;
  }
  .gmpwa-recipe-cta-btn {
    width: 100%;
    text-align: center;
  }
}
