/**
 * Copyright since 2009 Websenso
 *
 * This file is part of Websenso plugin for PrestaShop. See COPYING.md for license details
 * Websenso is a Digital Agency
 *
 * This file is licenced under the Academic Free License 3.0 (AFL-3.0).
 * With the purchase or the installation of the software in your application
 * you accept the licence agreement
 *
 * @author    Websenso <bonjour@websenso.com> (https://www.websenso.com)
 * @copyright Since 2009 Websenso
 * @license   https://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
 */
/*
 * Product page and quick view plan buttons. Colors are global variables, also used by the final price rows
 * (final-price.css): the back office settings (displayHeader) or a theme can override them on :root.
 */
:root {
  --installments-choice-bg: #22578a;
  --installments-choice-color: #fff;
  --installments-choice-active-bg: #b5322a;
  --installments-choice-accent: #c0392b;
  --installments-choice-muted: #7a7a7a;
}
.installments-choice { margin: 1rem 0; }
.installments-choice__fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.installments-choice__legend {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.installments-choice__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 2rem;
}
.installments-choice__button { position: relative; display: block; margin: 0; cursor: pointer; }
.installments-choice__radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.installments-choice__button-label {
  display: flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .5rem 1.25rem;
  border: 1px solid var(--installments-choice-bg); border-radius: 999px;
  background: var(--installments-choice-bg); color: var(--installments-choice-color);
  text-align: center; text-transform: uppercase; font-size: .95rem; line-height: 1.2;
  transition: background-color .15s ease;
}
.installments-choice__radio:checked + .installments-choice__button-label { background: var(--installments-choice-active-bg); }
.installments-choice__radio:focus-visible + .installments-choice__button-label { outline: 3px solid var(--installments-choice-accent); outline-offset: 2px; }
.installments-choice__panel { margin-top: 1.25rem; }
.installments-choice__panel[hidden] { display: none; }
.installments-choice__heading { margin: 0 0 .5rem; color: var(--installments-choice-accent); font-size: 1.5rem; line-height: 1.25; }
.installments-choice__logos { display: block; max-width: 100%; max-height: 2.75rem; margin: 0 0 1rem; }
.installments-choice__count { max-width: 100%; margin-bottom: .75rem; border-radius: 999px; }
.installments-choice__price { margin: 0; color: var(--installments-choice-accent); font-size: 2rem; font-weight: 500; line-height: 1.2; }
.installments-choice__detail, .installments-choice__tax { margin: .25rem 0 0; color: var(--installments-choice-muted); font-size: .95rem; }
.installments-choice__notice { margin-top: 1rem; }
@media (max-width: 575.98px) {
  .installments-choice__buttons { grid-template-columns: minmax(0, 1fr); }
}
