/*
 * Provides a drop-in pointer for the default Trix stylesheet that will format the toolbar and
 * the trix-editor content (whether displayed or under editing). Feel free to incorporate this
 * inclusion directly in any other asset bundle and remove this file.
 *
*/

/*
 * We need to override trix.css’s image gallery styles to accommodate the
 * <action-text-attachment> element we wrap around attachments. Otherwise,
 * images in galleries will be squished by the max-width: 33%; rule.
*/
.trix-content .attachment-gallery > action-text-attachment,
.trix-content .attachment-gallery > .attachment {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
}

.trix-content .attachment-gallery.attachment-gallery--2 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--2 > .attachment, .trix-content .attachment-gallery.attachment-gallery--4 > action-text-attachment,
.trix-content .attachment-gallery.attachment-gallery--4 > .attachment {
  flex-basis: 50%;
  max-width: 50%;
}

.trix-content action-text-attachment .attachment {
  padding: 0 !important;
  max-width: 100% !important;
}

.trix-content p {
  color: #4d4d4d;
}
/*! @algolia/ui-components-horizontal-slider-theme 1.2.1 (UNRELEASED acd5a1b) | MIT License | Â© Algolia, Inc. and contributors | https://github.com/algolia/ui-components */
:root {
    --aui-primary-color: #9698c3;
    --aui-muted-color: #c4c4c4;
    --aui-dark-color: #0f0f0f
}

.uic-HorizontalSlider-container {
    position: relative;
}

.uic-HorizontalSlider-navigation {
    align-items: center;
    background: #f1f1f1;
    border: 1px solid #fff;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(90, 94, 154, .44);
    color: #9698c3;
    color: var(--aui-primary-color);
    cursor: pointer;
    display: flex;
    height: 40px;
    justify-content: center;
    outline-color: #9698c3;
    outline-color: var(--aui-primary-color);
    padding: 0;
    position: absolute;
    top: 35%;
    transition: opacity .15s;
    width: 32px;
    z-index: 1
}

@media (hover: none) and (pointer: coarse) {
    .uic-HorizontalSlider-navigation {
        display: none
    }
}

.uic-HorizontalSlider-container:hover .uic-HorizontalSlider-navigation:not([hidden]) {
    opacity: 1;
    visibility: visible
}

.uic-HorizontalSlider-navigation, .uic-HorizontalSlider-navigation[hidden] {
    opacity: 0;
    visibility: hidden
}

.uic-HorizontalSlider-navigation--previous {
    left: 0;
    transform: translateX(-25%)
}

.uic-HorizontalSlider-navigation--next {
    right: 0;
    transform: translateX(25%)
}

.uic-HorizontalSlider-list {
    display: grid;
    grid-gap: .5rem;
    gap: .5rem;
    list-style: none;
    margin: 0;
    outline-color: #9698c3;
    outline-color: var(--aui-primary-color);
    outline-offset: .5rem;
    scroll-behavior: smooth;
    -ms-scroll-snap-type: mandatory;
    scroll-snap-type: mandatory;
    grid-auto-columns: 42%;
    grid-auto-flow: column;
    overflow-x: auto;
    padding: 0 0 .5rem;
    -ms-scroll-snap-type: x proximity;
    scroll-snap-type: x proximity;
    scrollbar-color: #0f0f0f #c4c4c4;
    scrollbar-color: var(--aui-dark-color) var(--aui-muted-color);
    scrollbar-width: thin
}

.uic-HorizontalSlider-list::-webkit-scrollbar {
    height: 2px
}

.uic-HorizontalSlider-list::-webkit-scrollbar-track {
    background-color: #c4c4c4;
    background-color: var(--aui-muted-color)
}

.uic-HorizontalSlider-list::-webkit-scrollbar-thumb {
    background-color: #0f0f0f;
    background-color: var(--aui-dark-color)
}

@media (min-width: 999px) {
    .uic-HorizontalSlider-list {
        grid-auto-columns: 30%
    }
}

.uic-HorizontalSlider-item {
    scroll-snap-align: start
}

.uic-HorizontalSlider-item * {
    outline-color: #9698c3;
    outline-color: var(--aui-primary-color);
    outline-offset: 3px
}
@tailwind base;
@tailwind components;
@tailwind utilities;

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/

/*
 * Sucursal picker (Leaflet): the zoom control sits bottom-LEFT so it can't
 * collide with a marker popup, which opens top-left. On a narrow map the
 * OSM/CARTO attribution wraps to two lines and grows leftward across the
 * bottom edge, landing on top of that control — at 375px the "−" button was
 * covered and unclickable (elementFromPoint returned the attribution link).
 * The attribution has to stay intact for OSM/CARTO terms, so lift the zoom
 * control clear of it instead. Mobile-only: on wider maps the attribution
 * stays on one line and never reaches the control.
 */
@media (max-width: 640px) {
  .leaflet-bottom.leaflet-left .leaflet-control-zoom {
    margin-bottom: 2.5rem;
  }
}

/*
 * Variant switch in flight — variant_switch_controller.js sets these between a
 * chip click and the turbo stream that replaces every node styled here, so
 * nothing needs to be undone on success.
 *
 * The clicked chip takes the selected look at once (ring-1 on top of its 1px
 * border matches the current chip's border-2 without resizing it), plus a
 * spinner, and the old selection IN THAT ROW gives way. The spinner is a
 * pseudo-element so no chip ships hidden markup for it — every chip is in the
 * uncompressed stream twice. Absolutely positioned against the chip's `relative`,
 * it keeps the chip's size and its neighbours put. Other rows keep theirs:
 * a plain chip only changes its own row, and whatever a dashed chip does change
 * elsewhere is repainted by the stream anyway. (Without :has() — Firefox < 121 —
 * the old chip just stays highlighted next to the busy one.)
 *
 * The stale gallery/price/stock only dim if the switch is still pending 300 ms
 * in: a desktop switch lands in ~0.2 s and would otherwise flash. The buy block
 * stops taking clicks immediately (the controller also sets `inert`), because
 * until the stream lands it still posts the previous variant's product[id].
 */
a[data-variant-chip][aria-busy="true"] {
  @apply border-sky-500 bg-sky-50 text-sky-700 ring-1 ring-sky-500 cursor-progress transition-none;
}

a[data-variant-chip][aria-busy="true"]::after {
  content: "";
  @apply pointer-events-none absolute -right-1.5 -top-1.5 h-3 w-3 animate-spin rounded-full border-2 border-sky-500 border-t-transparent bg-white;
}

@media (prefers-reduced-motion: reduce) {
  a[data-variant-chip][aria-busy="true"]::after {
    animation: none;
  }
}

html[data-variant-pending] [data-variant-row]:has(a[data-variant-chip][aria-busy="true"]) [data-variant-current] {
  @apply border-gray-300 bg-white text-gray-400;
}

html[data-variant-pending] [data-variant-stale] {
  opacity: 0.5;
  transition: opacity 150ms ease-out 300ms;
}

html[data-variant-pending] [data-variant-stale="inert"] {
  pointer-events: none;
}
.show-when-disabled {
    display: none;
}

[disabled] .show-when-disabled {
    display: initial;
}

.show-when-enabled {
    display: initial;
}

[disabled] .show-when-enabled {
    display: none;
}
.tippy-box[data-animation=fade][data-state=hidden] {
    opacity: 0
}

[data-tippy-root] {
    max-width: calc(100vw - 10px);
    z-index: 9999 !important;
}

.tippy-box {
    position: relative;
    background-color: white;
    color: black;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    outline: 0;

    transition-property: transform, visibility, opacity;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 5px;
    /*overflow: clip;*/
}

.tippy-box[data-placement^=top] > .tippy-arrow {
    bottom: 0
}

.tippy-box[data-placement^=top] > .tippy-arrow:before {
    bottom: -7px;
    left: 0;
    border-width: 8px 8px 0;
    border-top-color: initial;
    transform-origin: center top
}

.tippy-box[data-placement^=bottom] > .tippy-arrow {
    top: 0
}

.tippy-box[data-placement^=bottom] > .tippy-arrow:before {
    top: -7px;
    left: 0;
    border-width: 0 8px 8px;
    border-bottom-color: initial;
    transform-origin: center bottom
}

.tippy-box[data-placement^=left] > .tippy-arrow {
    right: 0
}

.tippy-box[data-placement^=left] > .tippy-arrow:before {
    border-width: 8px 0 8px 8px;
    border-left-color: initial;
    right: -7px;
    transform-origin: center left
}

.tippy-box[data-placement^=right] > .tippy-arrow {
    left: 0
}

.tippy-box[data-placement^=right] > .tippy-arrow:before {
    left: -7px;
    border-width: 8px 8px 8px 0;
    border-right-color: initial;
    transform-origin: center right
}

.tippy-box[data-inertia][data-state=visible] {
    transition-timing-function: cubic-bezier(.54, 1.5, .38, 1.11)
}

.tippy-arrow {
    width: 16px;
    height: 16px;
    color: white
}

.tippy-arrow:before {
    content: "";
    position: absolute;
    border-color: transparent;
    border-style: solid
}

.tippy-content {
    position: relative;
    padding: 5px 9px;
    z-index: 1;
    background-color: white;
    border-radius: 5px;
    overflow: clip;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

@import "vendor/swiper.css";

@layer utilities {

    /* Chrome, Safari and Opera */
    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }

    .no-scrollbar {
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
    }
}

/* Bazaarvoice inline ratings: invisible until bv.js draws into the slot. Visibility, never display: the slot's h-6 mt-1
   keeps its 28 px row from the first paint, so the stars never push a card's stock and prices down when they arrive.
   Collapsed until then, every rated card grew 28 px at once (layout shift 0.115 on the notebooks page, on a phone). */
div[data-bv-show="inline_rating"] {
    visibility: hidden;
}

div[data-bv-show="inline_rating"]:has(div) {
    visibility: visible;
}

/* A product with no reviews: bv.js draws five empty stars, "0.0" and "(0)", then hides them with its own
   `[data-bv-show="inline_rating"] .bv_main_container.bv_hide_visibility { visibility: hidden !important }`. Shown here,
   so the row holds empty stars rather than a blank (owner, 2026-11-16); one more element in the selector, also
   !important, wins over bv.js's. The "0.0" average is left out, because it reads as a bad rating, and "(0)" says why. */
div[data-bv-show="inline_rating"] .bv_main_container.bv_hide_visibility {
    visibility: visible !important;
}

div[data-bv-show="inline_rating"] .bv_main_container.bv_hide_visibility .bv_averageRating_component_container {
    display: none !important;
}

/* Swiper's pagination dots (vendor/stylesheets/swiper-bundle.min.css) are 14 px: each becomes a 30 px tap target
   (WCAG 2.5.8 asks 24) with the dot still 14 px, its background clipped to the content box. Two classes, so the
   vendored stylesheet, which loads after this one and sets the dot's background shorthand (resetting the clip), does
   not undo it. The row loses Swiper's 8 px bottom offset and 4 px gaps, which the padding now gives, so the dots stay
   where they were and only spread 8 px wider. The row itself takes no clicks: it lies over the banner's link, which
   counts banner clicks. */
.swiper-pagination-bullets.swiper-pagination-horizontal {
    --swiper-pagination-bottom: 0px;
    --swiper-pagination-bullet-horizontal-gap: 0px;
    pointer-events: none;
}

.swiper-pagination-bullets .swiper-pagination-bullet {
    box-sizing: content-box;
    padding: 8px;
    background-clip: content-box;
    pointer-events: auto;
}

/* The vendored active dot is a navy centre in a 3.8 px white border, 14 px in all. Its border would sit outside the
   padding (a 37.6 px dot that jumps the row at every slide), so the same ring is drawn as a background instead. The
   centre is 7.2 px, not the 6.4 px the border leaves: the navy shows through the border's anti-aliased inner edge,
   and this matches what the eye saw. */
.swiper-pagination-bullets .swiper-pagination-bullet-active {
    border: 0;
    background: radial-gradient(circle, #1e3a8a 3.6px, white 3.6px 7px, transparent 7px) content-box;
}
