/*
 * NOISSEY compatibility layer. Loaded last.
 * Restores the original hover/focus colors that Astra's global button and link
 * hover rules would otherwise override, and adapts a few elements that are links in WordPress.
 */

/* Links that were buttons in the HTML version. */
.lucky-button, .drawer-lucky { display: grid; place-items: center; text-align: center; }
.lucky-button:is(:hover, :focus), .drawer-lucky:is(:hover, :focus) { color: #fff; background: var(--n-accent); }
.chat-button:is(:hover, :focus) { color: #fff; background: var(--n-chat); }
.article-card:is(:hover, :focus) { color: inherit; }

/* Header + announcement. */
.noissey-ui .announcement:is(:hover, :focus) { color: var(--n-ann-text); }
.noissey-ui .wordmark:is(:hover, :focus) { color: var(--n-heading); }
.noissey-ui .icon-button:is(:hover, :focus) { color: #84909a; }
.noissey-ui .wordmark-logo { display: flex; align-items: center; }
.noissey-ui .wordmark-logo img { width: auto; height: var(--n-logo-height, 34px); max-width: 220px; }
.noissey-ui .wordmark-logo a { display: block; }

/* Carousels. */
.noissey-ui .carousel-arrow:is(:hover, :focus) { color: #fff; background: #0007; }
.noissey-ui .lookbook-controls button:is(:hover, :focus) { background-color: #a5a5a5; border-color: #fff; }
.noissey-ui .lookbook-controls button.active:is(:hover, :focus) { background-color: #111; }
.noissey-ui .marquee-pause:is(:hover, :focus) { color: #6c7479; background: #f7f7f7; }
.noissey-ui .social-marquee-handle:is(:hover, :focus) { color: #111; }

/* Dialog buttons. */
.noissey-ui .close-button:is(:hover, :focus) { color: #111; }
.noissey-ui .drawer-top .close-button:is(:hover, :focus) { color: #687780; }
.noissey-ui #search-dialog .search-close:is(:hover, :focus) { color: #56616a; }

/* Buttons. */
.noissey-ui .button-dark.button-dark.button-dark.button-dark:is(:hover, :focus) { color: var(--n-button-text); background: var(--n-button-hover); border-color: var(--n-button-hover); }
.noissey-ui .button-outline.button-outline.button-outline.button-outline:is(:hover, :focus) { border-color: #e6e6e6; color: inherit; background: #f4f4f4; }

/* Product page. */
.noissey-ui .qv-thumbnail:is(:hover, :focus) { background: #f4f4f4; }
.noissey-ui .qv-gallery-arrow:is(:hover, :focus) { background: #fffb; color: var(--n-text); }
.noissey-ui .qv-details .size-options button:is(:hover, :focus) { background: #fff; color: var(--n-text); border-color: #e5e5df; }
.noissey-ui .qv-details .size-options button.selected:is(:hover, :focus) { border-color: var(--n-text); }

/* Shop. */
.noissey-ui .shop-pagination .shop-page-arrow:is(:hover, :focus),
.noissey-ui .shop-pagination :is(.prev, .next):is(:hover, :focus) { color: #fff; background: var(--n-button); }
.shop-filter-backdrop:not([hidden]):is(:hover, :focus) { background: #0006; }

/* Draggable sliders and rows. */
[data-banner-carousel] { touch-action: pan-y; cursor: grab; }
[data-banner-carousel].is-dragging { cursor: grabbing; }
[data-banner-carousel] :is(img, a) { -webkit-user-drag: none; user-select: none; }
.lookbook-track, #trending-preview { cursor: grab; }
.is-drag-scrolling { cursor: grabbing; scroll-snap-type: none !important; scroll-behavior: auto !important; user-select: none; }
.is-drag-scrolling :is(img, a) { -webkit-user-drag: none; pointer-events: none; }

/* Astra adds a gray page background on some layouts. */
body.noissey-full #page, body.noissey-full .site-content { background: var(--n-bg); }
