/* Django shell additions to the generated component styles.
 *
 * The language switcher is a set of links here (each language is a real
 * address a crawler and a visitor without JavaScript can follow). A link does
 * not centre its label the way the button it replaces did, so it is told to. */
a.aents-language__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: normal;
  text-decoration: none;
}

/* aents_symbol "auto" ships both artworks; the root's scheme picks one. */
.aents-brand-symbol--on-dark,
:root[data-scheme="dark"] .aents-brand-symbol--on-light {
  display: none;
}
:root[data-scheme="dark"] .aents-brand-symbol--on-dark {
  display: block;
}

/* The viewport aents/js/notify.js fills, placed like @aents/ui-web's toaster:
   across the bottom on a phone, in the bottom-right corner from 601px, clear
   of the home indicator and of anything a page pins to the bottom edge. */
.aents-toaster {
  position: fixed;
  right: var(--space-4);
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px) + var(--aents-toast-clearance, 0px));
  left: var(--space-4);
  z-index: 9999;
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 601px) {
  .aents-toaster {
    right: var(--space-6);
    bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px) + var(--aents-toast-clearance, 0px));
    left: auto;
    width: min(380px, calc(100vw - 2 * var(--space-4)));
  }
}
.aents-toaster:empty {
  display: none;
}

/* Productos Aents (aents/shell/_offers.html): the group's house offers, labelled
 * as such. `cards` sits above a footer or in a page, `inline` inside a store's
 * footer, `spotlight` is the one offer a page leads with. Each offer is its
 * action-led title and one button; the button names the offer to assistive
 * technology through aria-describedby, and the compact button keeps the 44px
 * target through the overlay .aents-btn--small already draws. */
.aents-offers {
  margin-block: var(--space-8);
}
.aents-offers__inner {
  padding: var(--spacing-lg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--surface);
}
.aents-offers__label {
  margin: 0 0 var(--spacing-md);
  color: var(--text-secondary);
  font-size: var(--type-small-size);
  font-weight: var(--weight-semibold);
  line-height: var(--type-small-line);
}
.aents-offers__list {
  display: grid;
  gap: var(--spacing-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}
.aents-offers__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-sm);
}
.aents-offers__copy {
  display: grid;
  gap: var(--spacing-xs);
}
.aents-offers__title {
  margin: 0;
  color: var(--text);
  font-size: var(--type-body-size);
  font-weight: var(--weight-semibold);
  line-height: var(--type-body-line);
  text-wrap: pretty;
}
.aents-offers__note {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
}
.aents-offers__action:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.aents-offers__out {
  font-weight: var(--weight-bold);
}
.aents-offers--inline {
  margin-block: var(--spacing-lg) 0;
}
.aents-offers--spotlight .aents-offers__inner {
  padding: var(--spacing-xl) var(--spacing-lg);
  border-color: transparent;
  background: var(--primary-soft);
}
.aents-offers--spotlight .aents-offers__item {
  gap: var(--spacing-md);
}
.aents-offers--spotlight .aents-offers__title {
  font-size: var(--type-h2-size);
  font-weight: var(--type-h2-weight);
  line-height: var(--type-h2-line);
}
.aents-offers--spotlight .aents-offers__note {
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
}
@media (min-width: 640px) {
  .aents-offers--cards .aents-offers__list,
  .aents-offers--inline .aents-offers__list {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  }
}
@media (min-width: 768px) {
  .aents-offers--spotlight .aents-offers__inner {
    padding: var(--spacing-xl) var(--space-8);
  }
  .aents-offers--spotlight .aents-offers__item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
  }
}
