/*! AtlasAR public bundle — generated by 'npm run css:bundle' from:
    ar-vr-3d-model-try-on-public.css, atlas_ar_modal.css, image-3d-toggle.css, ar-tryon-buttons.css
    Do NOT edit directly; edit the sources and rebuild. */

/* --- ar-vr-3d-model-try-on-public.css --- */
/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
	model-viewer {
		width: 320px;
		height: 320px;
	}
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
	model-viewer {
		width: 600px;
		height: 400px;
	}
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
	model-viewer {
		width: 450px;
		height: 450px;
	}
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
	model-viewer {
		width: 450px;
		height: 450px;
	}
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
	model-viewer {
		width: 450px;
		height: 450px;
	}
}

/* jQuery UI Dialog*/
.ui-dialog {
	z-index: 1000 !important ;
}

#atlas_ar_qr_code {
	position: fixed;
	right: 0;
	left: 90%;
	bottom: 3%;
	z-index: 9999;
	overflow: visible !important;

	padding: 2px;
	background-color: #f0f0f0;
	border: 1px solid #ccc;
	width: fit-content;
	border-radius: 8px;
}

/* Close button — small circular chip anchored to the card's top-right
 * corner. Slight outward offset (-8px / -8px) keeps it visually
 * attached to the card while still reading as a separate affordance.
 * A white fill + thin border + subtle shadow makes it stand out
 * against both light and dark backgrounds behind the QR. */
#ar_close_btn {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 20px;
	height: 20px;
	padding: 0;
	margin: 0;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 50%;
	font: 700 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #555;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

#ar_close_btn:hover {
	background: #f5f5f5;
	color: #000;
	transform: scale(1.05);
}

/* AtlasAR brand watermark below the QR image. Designed as a compact
 * stamp — small, uppercase, tracked, thin top border — so it reads
 * as a discreet credit rather than a chunky label. Hidden on Pro
 * (filter `atlas_ar_qr_brand_label` returns empty there). `!important`
 * defeats theme `font-size` cascades that would otherwise inflate it
 * to the surrounding body size. */
#atlas_ar_qr_code .atlas_ar_qr_brand {
	display: block !important;
	box-sizing: border-box !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 3px 0 0 !important;
	border-top: 1px solid #d8d8d8 !important;
	font: 700 8px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	text-align: center !important;
	text-transform: uppercase !important;
	letter-spacing: 1px !important;
	color: #888 !important;
	user-select: none !important;
	pointer-events: none !important;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
	#atlas_ar_qr_code {
		right: 0;
		left: 70%;
	}
}


/*************************
DIMENSIONS
 ************************/

#controls {
	position: absolute;
	bottom: 16px;
	left: 16px;
	max-width: unset;
	transform: unset;
	pointer-events: auto;
	z-index: 100;
}

.dot{
	display: none;
}

.glass {
	background: rgba(255, 255, 255, 0.37);
	backdrop-filter: blur(8px) contrast(0.89) saturate(1.27);
	-webkit-backdrop-filter: blur(8px) contrast(0.89) saturate(1.27);
	border: 1px solid rgba(255, 255, 255, 0.4);
	padding: 0.5rem;
	border-radius: 0.5rem;
}

.dim {
	border-radius: 4px;
	border: none;
	box-sizing: border-box;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
	color: rgba(0, 0, 0, 0.8);
	display: block;
	font-family: Futura, Helvetica Neue, sans-serif;
	font-size: 1em;
	font-weight: 700;
	max-width: 128px;
	overflow-wrap: break-word;
	padding: 0.5em 1em;
	position: absolute;
	width: max-content;
	height: max-content;
	transform: translate3d(-50%, -50%, 0);
	pointer-events: none;
	--min-hotspot-opacity: 0;
}

@media only screen and (max-width: 800px) {
	.dim {
		font-size: 3vw;
	}
}

.dimensionLineContainer {
	pointer-events: none;
	display: block;
}

.dimensionLine {
	stroke: #16a5e6;
	stroke-width: 2;
	stroke-dasharray: 2;
}

.hide {
	display: none;
}

:not(:defined) > * {
	display: none;
}

/**************************
hotspot
 */


.hotspot {
	display: block;
	width: 20px;
	height: 20px;
	border-radius: 10px;
	border: none;
	background-color: blue;
	box-sizing: border-box;
	pointer-events: none;
}

.hotspot[slot="hotspot-hand"] {
	--min-hotspot-opacity: 0;
	background-color: red;
}

.hotspot[slot="hotspot-foot"]:not([data-visible]) {
	background-color: transparent;
	border: 3px solid blue;
}

.annotation {
	background-color: #ffffff;
	position: absolute;
	transform: translate(10px, 10px);
	border-radius: 10px;
	padding: 10px;
}


/***********************************
slider css start
************************************/
/* This keeps child nodes hidden while the element loads */
:not(:defined) > * {
	display: none;
}

model-viewer {
	background-color: #eee;
	overflow-x: hidden;
}

#ar-button {
	background-image: url(https://modelviewer.dev/assets/ic_view_in_ar_new_googblue_48dp.png);
	background-repeat: no-repeat;
	background-size: 20px 20px;
	background-position: 12px 50%;
	background-color: #fff;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	bottom: 132px;
	padding: 0px 16px 0px 40px;
	font-family: Roboto Regular, Helvetica Neue, sans-serif;
	font-size: 14px;
	color:#4285f4;
	height: 36px;
	line-height: 36px;
	border-radius: 18px;
	border: 1px solid #DADCE0;
}

#ar-button:active {
	background-color: #E8EAED;
}

#ar-button:focus {
	outline: none;
}

#ar-button:focus-visible {
	outline: 1px solid #4285f4;
}

@keyframes circle {
	from { transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg); }
	to   { transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg); }
}

@keyframes elongate {
	from { transform: translateX(100px); }
	to   { transform: translateX(-100px); }
}

model-viewer > #ar-prompt {
	position: absolute;
	left: 50%;
	bottom: 175px;
	animation: elongate 2s infinite ease-in-out alternate;
	display: none;
}

model-viewer[ar-status="session-started"] > #ar-prompt {
	display: block;
}

model-viewer > #ar-prompt > img {
	animation: circle 4s linear infinite;
}

model-viewer > #ar-failure {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 175px;
	display: none;
}

model-viewer[ar-tracking="not-tracking"] > #ar-failure {
	display: block;
}

.slider {
	width: 100%;
	text-align: center;
	overflow: hidden;
	position: absolute;
	bottom: 16px;
}

.slides {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

.slide {
	scroll-snap-align: start;
	flex-shrink: 0;
	width: 100px;
	height: 100px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	background-color: #fff;
	margin-right: 10px;
	border-radius: 10px;
	border: none;
	display: flex;
	cursor:pointer;
}

.slide.selected {
	border: 2px solid #4285f4;
}

.slide:focus {
	outline: none;
}

.slide:focus-visible {
	outline: 1px solid #4285f4;
}

/*****************************
custom css start
******************************/

.ar_vr_3d_model_try_on{
	cursor: pointer;
}


@keyframes art-spin {
	to {
		transform: rotate(360deg)
	}
}

.art-animate-spin {
	animation: art-spin 1s linear infinite
}
.art-h-5 {
	height: 1.25rem
}

.art-w-5 {
	width: 1.25rem
}

/* --- atlas_ar_modal.css --- */
.art-fixed {
  position: fixed
}

.art-relative {
  position: relative
}

.art-inset-0 {
  inset: 0px
}

.art-z-\[999999\] {
  z-index: 999999
}

.art-flex {
  display: flex
}

.art-h-5 {
  height: 1.25rem
}

.art-h-full {
  height: 100%
}

.art-w-11\/12 {
  width: 91.666667%
}

.art-w-5 {
  width: 1.25rem
}

.art-w-full {
  width: 100%
}

.art-max-w-lg {
  max-width: 32rem
}

.art-max-w-none {
  max-width: none
}

.art-flex-1 {
  flex: 1 1 0%
}

.art-shrink-0 {
  flex-shrink: 0
}

@keyframes art-spin {
  to {
    transform: rotate(360deg)
  }
}

.art-animate-spin {
  animation: art-spin 1s linear infinite
}

.art-cursor-pointer {
  cursor: pointer
}

.art-flex-col {
  flex-direction: column
}

.art-items-center {
  align-items: center
}

.art-justify-end {
  justify-content: flex-end
}

.art-justify-center {
  justify-content: center
}

.art-justify-between {
  justify-content: space-between
}

.art-gap-2 {
  gap: 0.5rem
}

.art-overflow-y-auto {
  overflow-y: auto
}

.art-rounded {
  border-radius: 0.25rem
}

.art-rounded-lg {
  border-radius: 0.5rem
}

.art-rounded-none {
  border-radius: 0px
}

.art-border-b {
  border-bottom-width: 1px
}

.art-border-t {
  border-top-width: 1px
}

.art-border-gray-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1))
}

.art-bg-black\/50 {
  background-color: rgb(0 0 0 / 0.5)
}

.art-bg-gray-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1))
}

.art-bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1))
}

.art-p-1 {
  padding: 0.25rem
}

.art-p-4 {
  padding: 1rem
}

.art-px-4 {
  padding-left: 1rem;
  padding-right: 1rem
}

.art-py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem
}

.art-text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem
}

.art-font-semibold {
  font-weight: 600
}

.art-text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1))
}

.art-shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}

.hover\:art-bg-gray-400:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1))
}

/* --- image-3d-toggle.css --- */
/**
 * Image/3D Toggle Styles
 * Toggle button overlays on the featured product image
 * Theme-compatible styles with CSS resets
 *
 * @since 1.8.2
 */

/* ==================== CSS Reset for Plugin Elements ==================== */
/* Ensures consistent styling across all themes */

.atlas-ar-toggle-container,
.atlas-ar-toggle-container *,
.atlas-ar-toggle-btn,
.atlas-ar-toggle-btn *,
.atlas-ar-3d-viewer-overlay,
.atlas-ar-3d-viewer-overlay *,
.atlas-ar-fullscreen-overlay,
.atlas-ar-fullscreen-overlay *,
.atlas-ar-fullscreen-close-btn,
.atlas-ar-fullscreen-close-btn *,
.atlas-ar-fullscreen-viewer,
.atlas-ar-fullscreen-viewer * {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: normal !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    vertical-align: baseline !important;
    background: transparent !important;
    float: none !important;
    clear: none !important;
}

/* ==================== Main Container Positioning ==================== */

/* Main image container needs position relative for overlay */
.woocommerce-product-gallery__image {
    position: relative !important;
}

/* Toggle button container - positioned at bottom middle of featured image */
.atlas-ar-toggle-container {
    position: absolute !important;
    bottom: 15px !important;
    left: 50% !important;
    top: auto !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 100 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ==================== Toggle Button Styles ==================== */

.atlas-ar-toggle-btn:not(.atlas-ar-fullscreen-btn) {
    display: flex !important;
}

.atlas-ar-toggle-btn {
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    padding: 10px !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #333 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    text-indent: 0 !important;
    color: #333 !important;
}

.atlas-ar-toggle-btn:hover {
    background-color: #333 !important;
    color: #fff !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    border-color: #333 !important;
}

.atlas-ar-toggle-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.3) !important;
}

.atlas-ar-toggle-btn:active {
    transform: scale(1.05) !important;
}

.atlas-ar-toggle-btn svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    fill: currentColor !important;
    transition: fill 0.3s ease !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.atlas-ar-toggle-btn:hover svg {
    fill: #fff !important;
}

/* Fullscreen button specific styles */
/* Note: display property is controlled by JavaScript */
.atlas-ar-fullscreen-btn {
    /* display is set via JS */
}

/* ==================== 3D Viewer Overlay ==================== */
/* Note: display property is controlled by JavaScript, so we don't use !important on it */

.atlas-ar-3d-viewer-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 5 !important;
    background-color: #f5f5f5 !important;
    overflow: hidden !important;
}

.atlas-ar-3d-viewer-overlay.atlas-ar-active {
    animation: atlasArFadeIn 0.3s ease !important;
}

/* Model viewer inside overlay */
.atlas-ar-3d-viewer-overlay model-viewer,
.atlas-ar-3d-viewer-overlay .atlas_ar_model_viewer {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block !important;
}

.atlas-ar-3d-viewer-overlay > div {
    width: 100% !important;
    height: 100% !important;
}

/* ==================== Fullscreen Overlay Styles ==================== */
/* Note: display property is controlled by JavaScript */

.atlas-ar-fullscreen-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.95) !important;
    z-index: 999999 !important;
    justify-content: center !important;
    align-items: center !important;
    animation: atlasArFadeIn 0.3s ease !important;
    overflow: hidden !important;
}

/* Close button for fullscreen */
.atlas-ar-fullscreen-close-btn {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    padding: 10px !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    z-index: 1000000 !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.atlas-ar-fullscreen-close-btn:hover {
    background-color: #ff4444 !important;
    border-color: #ff4444 !important;
    transform: scale(1.1) !important;
}

.atlas-ar-fullscreen-close-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5) !important;
}

.atlas-ar-fullscreen-close-btn svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    fill: #333 !important;
    transition: fill 0.3s ease !important;
    display: block !important;
}

.atlas-ar-fullscreen-close-btn:hover svg {
    fill: #fff !important;
}

/* Fullscreen 3D viewer container */
.atlas-ar-fullscreen-viewer {
    width: 90vw !important;
    height: 90vh !important;
    max-width: 1400px !important;
    max-height: 900px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    background-color: #f5f5f5 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    position: relative !important;
}

.atlas-ar-fullscreen-viewer model-viewer,
.atlas-ar-fullscreen-viewer .atlas_ar_model_viewer {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    display: block !important;
}

.atlas-ar-fullscreen-viewer > div {
    width: 100% !important;
    height: 100% !important;
}

/* ==================== Animation ==================== */

@keyframes atlasArFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== Responsive Styles ==================== */

@media screen and (max-width: 768px) {
    .atlas-ar-toggle-container {
        bottom: 10px !important;
        gap: 8px !important;
    }

    .atlas-ar-toggle-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
        padding: 8px !important;
    }

    .atlas-ar-toggle-btn svg {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
    }

    .atlas-ar-fullscreen-close-btn {
        top: 10px !important;
        right: 10px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !important;
    }

    .atlas-ar-fullscreen-close-btn svg {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
    }

    .atlas-ar-fullscreen-viewer {
        width: 95vw !important;
        height: 85vh !important;
        border-radius: 4px !important;
    }
}

@media screen and (max-width: 480px) {
    .atlas-ar-toggle-container {
        bottom: 8px !important;
        gap: 6px !important;
    }

    .atlas-ar-toggle-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        padding: 6px !important;
    }

    .atlas-ar-toggle-btn svg {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
    }

    .atlas-ar-fullscreen-viewer {
        width: 98vw !important;
        height: 80vh !important;
        border-radius: 2px !important;
    }
}

/* ==================== Dark Mode Support ==================== */

@media (prefers-color-scheme: dark) {
    .atlas-ar-toggle-btn {
        background-color: rgba(51, 51, 51, 0.95) !important;
        color: #fff !important;
        border-color: #fff !important;
    }

    .atlas-ar-toggle-btn:hover {
        background-color: #fff !important;
        color: #333 !important;
        border-color: #fff !important;
    }

    .atlas-ar-toggle-btn svg {
        fill: #fff !important;
    }

    .atlas-ar-toggle-btn:hover svg {
        fill: #333 !important;
    }

    .atlas-ar-3d-viewer-overlay {
        background-color: #2a2a2a !important;
    }

    .atlas-ar-fullscreen-viewer {
        background-color: #2a2a2a !important;
    }
}

/* ==================== WooCommerce Theme Compatibility ==================== */

/* Base WooCommerce gallery fixes */
.woocommerce-product-gallery {
    position: relative !important;
}

/* Ensure toggle button appears above all WooCommerce gallery elements */
.woocommerce-product-gallery__image .atlas-ar-toggle-container {
    z-index: 100 !important;
}

/* Fix for flex slider viewport */
.woocommerce-product-gallery .flex-viewport {
    position: relative !important;
}

/* Ensure the 3D viewer overlay works with flexslider */
.woocommerce-product-gallery .flex-viewport .atlas-ar-3d-viewer-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* ==================== Popular Theme Compatibility ==================== */

/* Storefront theme */
.storefront .woocommerce-product-gallery__image .atlas-ar-toggle-container,
.theme-storefront .woocommerce-product-gallery__image .atlas-ar-toggle-container {
    z-index: 100 !important;
}

/* Astra theme */
.ast-woocommerce-container .woocommerce-product-gallery__image .atlas-ar-toggle-container,
.theme-astra .woocommerce-product-gallery__image .atlas-ar-toggle-container {
    z-index: 100 !important;
}

/* OceanWP theme */
.theme-flavor .woocommerce-product-gallery__image .atlas-ar-toggle-container,
.theme-flavor-flavor .woocommerce-product-gallery__image .atlas-ar-toggle-container,
.oceanwp-theme .woocommerce-product-gallery__image .atlas-ar-toggle-container,
.theme-flavor-flavor .woocommerce-product-gallery__image .atlas-ar-toggle-container {
    z-index: 100 !important;
}

/* flavor theme */
.flavor-woo-gallery .atlas-ar-toggle-container,
.flavor-shop .woocommerce-product-gallery__image .atlas-ar-toggle-container {
    z-index: 100 !important;
}

/* flavor theme */
.flavor-builder .woocommerce-product-gallery__image .atlas-ar-toggle-container,
.fl-builder .woocommerce-product-gallery__image .atlas-ar-toggle-container {
    z-index: 100 !important;
}

/* flavor theme */
.flavor-woocommerce .woocommerce-product-gallery__image .atlas-ar-toggle-container,
.flavor-product .woocommerce-product-gallery__image .atlas-ar-toggle-container {
    z-index: 100 !important;
}

/* flavor theme */
.flavor .woocommerce-product-gallery__image .atlas-ar-toggle-container {
    z-index: 100 !important;
}

/* flavor theme */
.flavor-product-gallery .atlas-ar-toggle-container {
    z-index: 100 !important;
}

/* flavor theme */
.flavor .woocommerce-product-gallery__image .atlas-ar-toggle-container {
    z-index: 100 !important;
}

/* flavor theme */
.flavor .product .images .atlas-ar-toggle-container {
    z-index: 100 !important;
}

/* flavor and flavor themes */
.flavor-page .woocommerce-product-gallery__image .atlas-ar-toggle-container,
.flavor-page .woocommerce-product-gallery__image .atlas-ar-toggle-container {
    z-index: 100 !important;
}

/* flavor theme */
body .woocommerce-product-gallery__image .atlas-ar-toggle-container {
    z-index: 100 !important;
}

/* WooCommerce Blocks compatibility */
.wc-block-grid__product .atlas-ar-toggle-container,
.wp-block-woocommerce-product-image .atlas-ar-toggle-container {
    z-index: 100 !important;
}

/* ==================== Fix for Theme Button Resets ==================== */

/* Override common theme button resets */
button.atlas-ar-toggle-btn,
button.atlas-ar-fullscreen-close-btn,
.atlas-ar-toggle-btn[type="button"],
.atlas-ar-fullscreen-close-btn[type="button"] {
    background-image: none !important;
    text-shadow: none !important;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

button.atlas-ar-toggle-btn:hover,
.atlas-ar-toggle-btn[type="button"]:hover {
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

button.atlas-ar-fullscreen-close-btn:hover,
.atlas-ar-fullscreen-close-btn[type="button"]:hover {
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

/* ==================== RTL Support ==================== */

[dir="rtl"] .atlas-ar-toggle-container,
.rtl .atlas-ar-toggle-container {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

[dir="rtl"] .atlas-ar-fullscreen-close-btn,
.rtl .atlas-ar-fullscreen-close-btn {
    right: auto !important;
    left: 20px !important;
}

@media screen and (max-width: 768px) {
    [dir="rtl"] .atlas-ar-fullscreen-close-btn,
    .rtl .atlas-ar-fullscreen-close-btn {
        left: 10px !important;
    }
}

/* ==================== Accessibility ==================== */

/* Focus visible for keyboard navigation */
.atlas-ar-toggle-btn:focus-visible,
.atlas-ar-fullscreen-close-btn:focus-visible {
    outline: 2px solid #007cba !important;
    outline-offset: 2px !important;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .atlas-ar-toggle-btn,
    .atlas-ar-fullscreen-close-btn,
    .atlas-ar-3d-viewer-overlay,
    .atlas-ar-fullscreen-overlay {
        transition: none !important;
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .atlas-ar-toggle-btn {
        border-width: 3px !important;
    }

    .atlas-ar-fullscreen-close-btn {
        border-width: 3px !important;
    }
}

/* ==================== Print Styles ==================== */

@media print {
    .atlas-ar-toggle-container,
    .atlas-ar-3d-viewer-overlay,
    .atlas-ar-fullscreen-overlay {
        display: none !important;
    }
}

/* --- ar-tryon-buttons.css --- */
/**
 * Dynamic Try-On / View-in-AR buttons block.
 *
 * Previously emitted as an inline <style> block (per-wrapper, keyed by the
 * wrapper DOM id) from AR_TRY_ON_Tryon::build_button_style_block(). Moved to
 * this enqueued stylesheet (class-scoped) so no inline <style> ships in the
 * page body — the wp.org reviewer flagged inline style/script output.
 *
 * The CSS custom properties below are sensible DEFAULTS derived from block
 * theme variables (--wp--preset--color--*). The wp_footer sampler
 * (print_dynamic_button_sampler_script) still overrides them by setting the
 * same custom properties INLINE on each wrapper element once it has measured
 * the active theme's primary button — inline custom props win over these
 * class defaults, so the cascade is identical to the old per-id <style>.
 *
 * The two button icons used to be inline <svg> in the markup; they are now
 * mask-image data-URIs here, tinted with `background-color: currentColor`
 * so they still inherit the button's text color exactly like the old
 * `stroke="currentColor"` SVGs did.
 */

.atlas-ar-tryon-buttons {
	margin-block-start: var( --wp--style--block-gap, 1.5rem );
	gap: 0.75rem;
	border: none !important;
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	--atlas-ar-btn-bg: var( --wp--preset--color--primary, var( --wp-admin-theme-color, #111 ) );
	--atlas-ar-btn-bg-image: none;
	--atlas-ar-btn-color: var( --wp--preset--color--background, #fff );
	--atlas-ar-btn-border-width: 0;
	--atlas-ar-btn-border-style: solid;
	--atlas-ar-btn-border-color: transparent;
	--atlas-ar-btn-radius: 9999px;
	--atlas-ar-btn-padding: 0.7em 1.4em;
	--atlas-ar-btn-font-family: inherit;
	--atlas-ar-btn-font-size: 1rem;
	--atlas-ar-btn-font-weight: 600;
	--atlas-ar-btn-line-height: 1.2;
	--atlas-ar-btn-letter-spacing: normal;
	--atlas-ar-btn-text-transform: none;
	--atlas-ar-btn-text-decoration: none;
	--atlas-ar-btn-shadow: none;
	--atlas-ar-btn-transition: filter .15s ease, background-color .15s ease, color .15s ease;
	--atlas-ar-btn-cursor: pointer;
	--atlas-ar-btn-min-height: auto;
}

.atlas-ar-tryon-buttons .atlas-ar-tryon-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	background-color: var( --atlas-ar-btn-bg );
	background-image: var( --atlas-ar-btn-bg-image );
	color: var( --atlas-ar-btn-color );
	border: var( --atlas-ar-btn-border-width ) var( --atlas-ar-btn-border-style ) var( --atlas-ar-btn-border-color );
	border-radius: var( --atlas-ar-btn-radius );
	padding: var( --atlas-ar-btn-padding );
	font-family: var( --atlas-ar-btn-font-family );
	font-size: var( --atlas-ar-btn-font-size );
	font-weight: var( --atlas-ar-btn-font-weight );
	line-height: var( --atlas-ar-btn-line-height );
	letter-spacing: var( --atlas-ar-btn-letter-spacing );
	text-transform: var( --atlas-ar-btn-text-transform );
	text-decoration: var( --atlas-ar-btn-text-decoration );
	box-shadow: var( --atlas-ar-btn-shadow );
	transition: var( --atlas-ar-btn-transition );
	cursor: var( --atlas-ar-btn-cursor );
	min-height: var( --atlas-ar-btn-min-height );
}

.atlas-ar-tryon-buttons .atlas-ar-tryon-btn--primary:hover {
	filter: brightness( 0.92 );
}

.atlas-ar-tryon-buttons .atlas-ar-tryon-btn--secondary {
	background-color: transparent;
	background-image: none;
	color: var( --atlas-ar-btn-bg );
	border-width: max( 2px, var( --atlas-ar-btn-border-width ) );
	border-style: solid;
	border-color: var( --atlas-ar-btn-bg );
}

.atlas-ar-tryon-buttons .atlas-ar-tryon-btn--secondary:hover {
	background-color: var( --atlas-ar-btn-bg );
	color: var( --atlas-ar-btn-color );
}

.atlas-ar-tryon-buttons .atlas-ar-btn-label {
	display: inline-block;
}

/* Icons — were inline <svg stroke="currentColor">, now mask-image tinted
   with the button's current text color. */
.atlas-ar-tryon-buttons .atlas-ar-btn-icon {
	flex: 0 0 auto;
	display: inline-block;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.atlas-ar-tryon-buttons .atlas-ar-btn-icon--3d {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L2 7v10l10 5 10-5V7L12 2z'/%3E%3Cpath d='M2 7l10 5 10-5'/%3E%3Cpath d='M12 22V12'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L2 7v10l10 5 10-5V7L12 2z'/%3E%3Cpath d='M2 7l10 5 10-5'/%3E%3Cpath d='M12 22V12'/%3E%3C/svg%3E");
}

.atlas-ar-tryon-buttons .atlas-ar-btn-icon--try {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='3.5'/%3E%3Cpath d='M5.5 20a6.5 6.5 0 0113 0'/%3E%3Crect x='3' y='4' width='18' height='16' rx='2' ry='2'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='3.5'/%3E%3Cpath d='M5.5 20a6.5 6.5 0 0113 0'/%3E%3Crect x='3' y='4' width='18' height='16' rx='2' ry='2'/%3E%3C/svg%3E");
}
