/* Feature banner - what the five designs share (sections/banner-feature.jinja).
 * Each design's geometry is in banner-feature-1.css .. banner-feature-5.css,
 * every rule there scoped to .dana-banner-feature--dN. Sizes in px: the root
 * font-size is 12px (runbook 5.0). One sheet for both directions.
 *
 * Colours: --dbf-ink is written by the template only when the merchant chose a
 * text colour, or when the ground under the text is dark (a dark panel or
 * card, or the picture itself in design 2); otherwise the identity's heading
 * and text colours apply. --dbf-panel is the merchant's panel/card colour;
 * --dbf-btn-bg / --dbf-btn-ink the button's pair, always written together.
 * --dbf-title and --dbf-desc are the title's and the description's own
 * colours (title_color, description_color), over --dbf-ink when written;
 * --dbf-pill / --dbf-pill-ink the pill's ground and its readable words.
 */
.dana-banner-feature__box { position: relative; }
.dana-banner-feature__media { position: relative; display: block; min-inline-size: 0; color: inherit; }
.dana-banner-feature__tile { position: relative; overflow: hidden; }
.dana-banner-feature__pic { display: block; inline-size: 100%; }
.dana-banner-feature__pic img,
.dana-banner-feature__video { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.dana-banner-feature__pic img { block-size: auto; }

/* ---- The text ---------------------------------------------------------- */
.dana-banner-feature__body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-inline-size: 0;
  color: var(--dbf-ink, var(--dana-text));
  text-align: start;
}
.dana-banner-feature--align-center .dana-banner-feature__body { text-align: center; }
.dana-banner-feature__head { display: grid; min-inline-size: 0; }
.dana-banner-feature__eyebrow {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--dbf-ink, var(--dana-heading));
  overflow-wrap: anywhere;
}
/* Arabic has no capitals and suffers from tracking. */
[dir="rtl"] .dana-banner-feature__eyebrow { text-transform: none; letter-spacing: 0; }
/* The template's gold «NEW IN» pill (home-mega-electronic.html:9629,
   styles.css 17696-17703): 12/18 at 600, 5px 12px, 22px corners, in the
   accent with its own text colour. */
.dana-banner-feature .dana-banner-feature__head .dana-banner-feature__eyebrow--pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 22px;
  background-color: var(--dbf-pill, var(--dana-accent));
  color: var(--dbf-pill-ink, var(--dana-on-accent));
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}
.dana-banner-feature--align-center .dana-banner-feature__head .dana-banner-feature__eyebrow--pill { justify-self: center; }
/* `eyebrow_style: line`, a larger plain line (home-phonecase.html:3866
   p.sub.text-xl: 20/30, sentence case, no tracking, 400; .text-xl is 18/28
   at 767 and under and 16/26 at 575 and under, styles.css 22648, 22934,
   measured 16/26 at 390). Three classes, above any design sheet. */
.dana-banner-feature .dana-banner-feature__head .dana-banner-feature__eyebrow--line {
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
/* Low specificity on purpose: a page with two instances links this sheet
   again after the first instance's design sheet, so every rule here must
   lose to a design sheet by specificity, never by order (measured: design
   2's 24px arrow lost to the shared 16px on a page where design 5 came
   after it). It still follows core's `.dana-section :where(h2)`. */
:where(.dana-banner-feature) .dana-banner-feature__title {
  margin: 0;
  color: var(--dbf-title, var(--dbf-ink, var(--dana-heading)));
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.dana-banner-feature__text {
  margin: 0;
  color: var(--dbf-desc, var(--dbf-ink, var(--dana-text)));
  white-space: pre-line;
  overflow-wrap: anywhere;
}
/* The merchant's title size wins over the design's own (three classes, above
   any design sheet's two). The steps are core.css's heading tokens. */
.dana-banner-feature .dana-banner-feature__head .dana-banner-feature__title--small { font-size: var(--dana-fs-h6); line-height: var(--dana-lh-h6); }
.dana-banner-feature .dana-banner-feature__head .dana-banner-feature__title--medium { font-size: var(--dana-fs-h4); line-height: var(--dana-lh-h4); }
.dana-banner-feature .dana-banner-feature__head .dana-banner-feature__title--large { font-size: var(--dana-fs-h3); line-height: var(--dana-lh-h3); }
.dana-banner-feature .dana-banner-feature__head .dana-banner-feature__title--xlarge { font-size: var(--dana-fs-h2); line-height: var(--dana-lh-h2); }
/* `title_weight` (fashion-women's 400, furniture2's 500) over the Look's
   heading weight and design 5's 700; `title_italic` (skincare2's slanted
   Playfair) on Latin pages only: Arabic fonts have no italic and the
   browser's slanted Arabic is a defect, as product-spotlight.css 102. */
.dana-banner-feature.dana-banner-feature--weight .dana-banner-feature__head .dana-banner-feature__title { font-weight: var(--dbf-title-weight); }
.dana-banner-feature--italic .dana-banner-feature__title { font-style: italic; }
[dir="rtl"] .dana-banner-feature--italic .dana-banner-feature__title { font-style: normal; }
/* `description_size: small` (home-florist.html:1969 and
   home-pet-accessories.html:2485 p.text-md: 16/24, 14/22 on phones) where
   the design draws it larger (1 and 3); designs 2, 4 and 5 already draw
   16px, so there it is one step down, 14/22. Four classes, above any
   design sheet. */
.dana-banner-feature.dana-banner-feature--desc-small .dana-banner-feature__head .dana-banner-feature__text { font-size: 16px; line-height: 24px; }
.dana-banner-feature.dana-banner-feature--desc-small:is(.dana-banner-feature--d2, .dana-banner-feature--d4, .dana-banner-feature--d5) .dana-banner-feature__head .dana-banner-feature__text { font-size: 14px; line-height: 22px; }
.dana-banner-feature__actions { display: flex; flex-wrap: wrap; min-inline-size: 0; }
.dana-banner-feature--align-center .dana-banner-feature__actions { justify-content: center; }
/* A long button label wraps inside the column instead of pushing the page
   wider (core's .dana-btn is nowrap). */
.dana-banner-feature__btn { max-inline-size: 100%; white-space: normal; text-align: center; }
/* The template's arrow (.icon-arr-right) takes the button's own size: 16px,
   14px on phones (core draws every .dana-btn icon at 16). */
.dana-banner-feature__btn .di { font-size: inherit; }
.dana-banner-feature__btn.dana-link { color: var(--dbf-ink, var(--dana-heading)); }
.dana-banner-feature__btn.dana-link:is(:hover, :focus-visible) { color: var(--dana-accent-ink); }

/* On a dark ground (light words): the outline draws in white and fills
   white on hover; the underlined text already takes the words' colour. */
.dana-banner-feature--on-dark .dana-banner-feature__btn.dana-btn--outline { border-color: #ffffff; color: #ffffff; }
.dana-banner-feature--on-dark .dana-banner-feature__btn.dana-btn--outline:is(:hover, :focus-visible) { background-color: #ffffff; border-color: #ffffff; color: #000000; }

/* The merchant's button pair (button_color / button_text_color): a filled
   button takes both, the outline draws its line and words in the colour and
   fills with it on hover, the underlined text takes the colour. */
.dana-banner-feature--btn-own .dana-banner-feature__btn.dana-btn:not(.dana-btn--outline),
.dana-banner-feature--btn-own .dana-banner-feature__btn.dana-btn:not(.dana-btn--outline):is(:hover, :focus-visible) {
  background-color: var(--dbf-btn-bg);
  border-color: var(--dbf-btn-bg);
  color: var(--dbf-btn-ink);
}
.dana-banner-feature--btn-own .dana-banner-feature__btn.dana-btn--outline { border-color: var(--dbf-btn-bg); color: var(--dbf-btn-bg); }
.dana-banner-feature--btn-own .dana-banner-feature__btn.dana-btn--outline:is(:hover, :focus-visible) { background-color: var(--dbf-btn-bg); border-color: var(--dbf-btn-bg); color: var(--dbf-btn-ink); }
.dana-banner-feature--btn-own .dana-banner-feature__btn.dana-link { color: var(--dbf-btn-bg); }

/* `image_ratio` (designs 1 and 3, and design 4's large picture): the
   picture beside the text in a fixed shape from the first paint, cut to fill
   it (pet: the box was 654 then 537 at 1440 in design 1, 660 then 859 in
   design 3, as the file arrived). In design 1 the picture still stretches to
   a taller panel; design 4's small picture keeps its own shape. */
.dana-banner-feature--ratio:is(.dana-banner-feature--d1, .dana-banner-feature--d3) .dana-banner-feature__tile .dana-banner-feature__pic img,
.dana-banner-feature--ratio.dana-banner-feature--d4 .dana-banner-feature__tile--main .dana-banner-feature__pic img { aspect-ratio: var(--dbf-ratio); object-fit: cover; }

/* `text_inset` off: the words beside the picture start at their column's
   edge. The 50/90px inset of designs 3 and 4 is .banner-text-skincare's own
   (styles.css 19613, 20619); the pet, fashion, plant and phonecase blocks
   start their title at the edge. Four classes, above any design sheet. */
.mt-section.dana-banner-feature--flush:is(.dana-banner-feature--d3, .dana-banner-feature--d4) .dana-banner-feature__body { padding-inline-start: 0; }

/* The template centres every banner's text on phones (styles.css 22476-22484,
   22432, 22096). */
@media (max-width: 767px) {
  .dana-banner-feature .dana-banner-feature__body { text-align: center; }
  .dana-banner-feature .dana-banner-feature__actions { justify-content: center; }
  .dana-banner-feature .dana-banner-feature__head .dana-banner-feature__eyebrow--pill { justify-self: center; }
  .dana-banner-feature .dana-banner-feature__head .dana-banner-feature__eyebrow--line { font-size: 18px; line-height: 28px; }
  .dana-banner-feature.dana-banner-feature--desc-small .dana-banner-feature__head .dana-banner-feature__text { font-size: 14px; line-height: 22px; }
}

@media (max-width: 575px) {
  .dana-banner-feature .dana-banner-feature__head .dana-banner-feature__eyebrow--line { font-size: 16px; line-height: 26px; }
}

/* ---- Hover on the pictures (a mouse only; nothing on touch) --------------
   zoom: .hover-shine + .hover-img (styles.css 3615-3663) - the picture grows
   to 1.06 over 2s and a band of light crosses it once.
   curtain: .hover-overlay-2 (3762-3802) - two half-width dark curtains, one
   from the top at the start, one from the bottom at the end, .3s, the second
   .2s later. The target is the tile; design 1 hovers the whole banner. */
.dana-banner-feature--hover-zoom .dana-banner-feature__tile :is(img, video) { transition: opacity .5s ease, transform 2s cubic-bezier(0, 0, .44, 1.18); }
.dana-banner-feature--hover-zoom .dana-banner-feature__tile::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset-block-start: 50%;
  left: 50%;
  inline-size: 200%;
  block-size: 0;
  background-color: rgba(255, 255, 255, .3);
  transform: translate(-50%, -50%) rotate(-45deg);
  pointer-events: none;
}
.dana-banner-feature--hover-curtain .dana-banner-feature__tile::before,
.dana-banner-feature--hover-curtain .dana-banner-feature__tile::after {
  content: "";
  position: absolute;
  z-index: 2;
  inline-size: 50%;
  block-size: 0;
  background-color: #000000;
  opacity: .1;
  pointer-events: none;
  transition: block-size .3s ease-in-out;
}
.dana-banner-feature--hover-curtain .dana-banner-feature__tile::before { inset-block-start: 0; inset-inline-start: 0; }
.dana-banner-feature--hover-curtain .dana-banner-feature__tile::after { inset-block-end: 0; inset-inline-end: 0; transition-delay: .2s; }
@media (hover: hover) {
  .dana-banner-feature--hover-zoom .dana-banner-feature__tile:hover :is(img, video) { transform: scale(1.06); }
  .dana-banner-feature--hover-zoom .dana-banner-feature__tile:hover::after { block-size: 250%; background-color: transparent; transition: all .6s linear; }
  .dana-banner-feature--hover-curtain .dana-banner-feature__tile:hover::before,
  .dana-banner-feature--hover-curtain .dana-banner-feature__tile:hover::after { block-size: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .dana-banner-feature--hover-zoom .dana-banner-feature__tile :is(img, video),
  .dana-banner-feature--hover-curtain .dana-banner-feature__tile::before,
  .dana-banner-feature--hover-curtain .dana-banner-feature__tile::after { transition: none; }
  .dana-banner-feature--hover-zoom .dana-banner-feature__tile::after { display: none; }
}
