/*
 * Tabby checkout card (see js/components/tabby-promo.js): opens under the
 * Tabby option on tap. Tabby's own snippet renders the text and amount;
 * we only provide a calm frame and the continue button.
 */
.payment-bnpl__btn--tabby.payment-bnpl__btn--selected {
  border-color: var(--color-primary, #636eb2);
  background: rgba(99, 110, 178, 0.06);
}

.tabby-checkout-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-block: -4px 2px;
  padding: 12px;
  border: 1px solid var(--color-gray-200, #e2e5ec);
  border-radius: 12px;
  background: #fff;
  animation: tabby-card-in 0.2s ease-out;
}

.tabby-checkout-card[hidden] {
  display: none;
}

.tabby-checkout-card__snippet {
  min-height: 44px;
}

.tabby-checkout-card__continue {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--color-primary, #636eb2);
  color: var(--color-text-on-primary, #fff);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tabby-checkout-card__continue:hover {
  filter: brightness(0.95);
}

@keyframes tabby-card-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/*
 * Tabby's "learn more" pop-up (Tabby adds it to the page): on phones its white
 * panel can be shorter than the screen, leaving our page showing underneath.
 * Make the panel fill the screen. Tabby's class names are hashed, so match the
 * stable prefix.
 */
@media (max-width: 767px) {
  [class*="styles__dialogContent--"] {
    min-height: 100%;
    box-sizing: border-box;
  }
}

/* Scrolling inside the pop-up never scrolls the page behind it */
[class*="styles__dialog--"] {
  overscroll-behavior: contain;
}
