/**
 * @file dvc-pdp-cro.css
 * @description Option A global floating contact, demo top-bar suppression,
 * PDP CTA hierarchy, size guidance/alerts, modals, and mobile sticky bar.
 */

/* Hide Minimog demo top-bar & demo social header-above; keep #dvc-usp-bar / .dvc-usp-bar visible */
#page-top-bar, .page-top-bar, .header-above { display: none !important; }

/* Global Floating Contact [UX-03] */
body.woocommerce-cart .dvc-floating-contact,
body.woocommerce-checkout .dvc-floating-contact,
body.popup-fly-cart-opened .dvc-floating-contact { display: none !important; }

.dvc-floating-contact {
	position: fixed !important; right: 12px !important; bottom: 20px !important; z-index: 9980 !important;
	display: flex !important; flex-direction: column !important; align-items: flex-end !important; gap: 8px !important;
	transition: bottom 0.25s ease !important;
}
.dvc-floating-contact .dvc-float-btn {
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	width: 42px !important; height: 42px !important; padding: 0 !important; border-radius: 999px !important;
	overflow: hidden !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
	text-decoration: none !important; transition: width 0.25s ease, padding 0.25s ease, transform 0.2s ease !important;
}
.dvc-floating-contact .dvc-float-btn .dvc-btn-text {
	max-width: 0 !important; opacity: 0 !important; overflow: hidden !important; white-space: nowrap !important;
	font-size: 13px !important; font-weight: 600 !important; transition: max-width 0.25s ease, opacity 0.2s ease, margin 0.25s ease !important;
}

@media (min-width: 768px) {
	.dvc-sticky-product-bar { display: none !important; }
	.dvc-floating-contact .dvc-float-btn:hover { width: auto !important; padding: 0 14px !important; transform: translateY(-2px) !important; }
	.dvc-floating-contact .dvc-float-btn:hover .dvc-btn-text { max-width: 110px !important; opacity: 1 !important; margin-left: 6px !important; }
}

/* Option A Inline CTA Buttons [UX-02] */
.single-product .entry-product-quantity-wrapper .single_add_to_cart_button span,
.woocommerce div.product .entry-product-quantity-wrapper .single_add_to_cart_button span,
.elementor-widget-woocommerce-product-add-to-cart .entry-product-quantity-wrapper .single_add_to_cart_button span {
	font-size: 13.5px !important; line-height: 1.2 !important; text-transform: uppercase !important;
}
.single-product .entry-product-quantity-wrapper .single_add_to_cart_button span::after,
.woocommerce div.product .entry-product-quantity-wrapper .single_add_to_cart_button span::after,
.elementor-widget-woocommerce-product-add-to-cart .entry-product-quantity-wrapper .single_add_to_cart_button span::after {
	content: none !important; display: none !important;
}

.single-product .entry-product-quantity-wrapper .single_add_to_cart_button:not(.button-buy-now):not(#dvc-spec),
.single-product .entry-product-quantity-wrapper .single_add_to_cart_button:not(.button-buy-now).disabled:not(#dvc-spec),
.single-product .entry-product-quantity-wrapper .single_add_to_cart_button:not(.button-buy-now).wc-variation-selection-needed:not(#dvc-spec),
.woocommerce div.product .entry-product-quantity-wrapper .single_add_to_cart_button:not(.button-buy-now):not(#dvc-spec),
.woocommerce div.product .entry-product-quantity-wrapper .single_add_to_cart_button:not(.button-buy-now).disabled:not(#dvc-spec),
.elementor-widget-woocommerce-product-add-to-cart .entry-product-quantity-wrapper .single_add_to_cart_button:not(.button-buy-now):not(#dvc-spec),
.elementor-widget-woocommerce-product-add-to-cart .entry-product-quantity-wrapper .single_add_to_cart_button:not(.button-buy-now).disabled:not(#dvc-spec) {
	background: #ffffff !important; background-color: #ffffff !important; color: #221f20 !important; border: 1.5px solid #221f20 !important;
	height: 48px !important; font-weight: 700 !important; opacity: 1 !important; cursor: pointer !important;
}
.single-product .entry-product-quantity-wrapper .single_add_to_cart_button:not(.button-buy-now):not(#dvc-spec):hover,
.woocommerce div.product .entry-product-quantity-wrapper .single_add_to_cart_button:not(.button-buy-now):not(#dvc-spec):hover,
.elementor-widget-woocommerce-product-add-to-cart .entry-product-quantity-wrapper .single_add_to_cart_button:not(.button-buy-now):not(#dvc-spec):hover {
	background: #f3f4f6 !important; background-color: #f3f4f6 !important; color: #221f20 !important; border-color: #221f20 !important;
}

.single-product .entry-product-quantity-wrapper .single_add_to_cart_button.button-buy-now:not(#dvc-spec),
.single-product .entry-product-quantity-wrapper .single_add_to_cart_button.button-buy-now.disabled:not(#dvc-spec),
.single-product .entry-product-quantity-wrapper .single_add_to_cart_button.button-buy-now.wc-variation-selection-needed:not(#dvc-spec),
.woocommerce div.product .entry-product-quantity-wrapper .single_add_to_cart_button.button-buy-now:not(#dvc-spec),
.woocommerce div.product .entry-product-quantity-wrapper .single_add_to_cart_button.button-buy-now.disabled:not(#dvc-spec),
.elementor-widget-woocommerce-product-add-to-cart .entry-product-quantity-wrapper .single_add_to_cart_button.button-buy-now:not(#dvc-spec),
.elementor-widget-woocommerce-product-add-to-cart .entry-product-quantity-wrapper .single_add_to_cart_button.button-buy-now.disabled:not(#dvc-spec) {
	background: #e06a84 !important; background-color: #e06a84 !important; color: #ffffff !important; border: 1.5px solid #e06a84 !important;
	height: 48px !important; font-weight: 700 !important; text-transform: uppercase !important; box-shadow: 0 4px 14px rgba(224, 106, 132, 0.28) !important;
	opacity: 1 !important; cursor: pointer !important;
}
.single-product .entry-product-quantity-wrapper .single_add_to_cart_button.button-buy-now:not(#dvc-spec):hover,
.woocommerce div.product .entry-product-quantity-wrapper .single_add_to_cart_button.button-buy-now:not(#dvc-spec):hover,
.elementor-widget-woocommerce-product-add-to-cart .entry-product-quantity-wrapper .single_add_to_cart_button.button-buy-now:not(#dvc-spec):hover {
	background: #cf5671 !important; background-color: #cf5671 !important; border-color: #cf5671 !important; color: #ffffff !important;
}

/* Size Label Actions, Inline Weight Guide & Inline Size Alert */
.single-product form.cart .variations .label,
.single-product form.cart .row-isw-swatch .label {
	display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 8px !important;
}
.dvc-size-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dvc-size-action-btn {
	display: inline-flex !important; align-items: center !important; gap: 4px !important;
	padding: 4px 9px !important; min-height: 26px !important; height: auto !important; border-radius: 5px !important;
	font-size: 12px !important; font-weight: 600 !important; line-height: 1.2 !important; text-transform: none !important;
	letter-spacing: 0 !important; cursor: pointer !important; box-shadow: none !important; transition: background-color 0.2s ease !important;
}
.dvc-size-action-btn--chart { background: #ffffff !important; color: #1d6fb8 !important; border: 1px solid #1d6fb8 !important; }
.dvc-size-action-btn--chart:hover { background: #eff6ff !important; }
.dvc-size-action-btn--consult { background: #fff5f7 !important; color: #c83d60 !important; border: 1px solid #f2a9ba !important; }
.dvc-size-action-btn--consult:hover { background: #ffe8ee !important; }

.dvc-inline-weight-guide {
	display: flex !important; flex-wrap: nowrap !important; align-items: center !important;
	gap: 4px !important; margin: 4px 0 2px !important; font-size: 11px; color: #4b5563;
	white-space: nowrap !important; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.dvc-inline-weight-guide::-webkit-scrollbar { display: none; }
.dvc-wg-label { font-size: 11px; font-weight: 600; color: #4b5563; margin-right: 1px; flex-shrink: 0; }
.single-product form.cart .dvc-inline-weight-guide button.dvc-wg-item,
.dvc-inline-weight-guide button.dvc-wg-item,
.dvc-wg-item {
	appearance: none !important; -webkit-appearance: none !important;
	display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 2.5px !important;
	height: auto !important; min-height: 23px !important; padding: 2px 6px !important; margin: 0 !important; border-radius: 999px !important;
	background: #f9fafb !important; background-color: #f9fafb !important; border: 1px solid #d1d5db !important; color: #374151 !important;
	font-size: 11px !important; font-weight: 500 !important; line-height: 1.2 !important; text-transform: none !important;
	letter-spacing: -0.1px !important; white-space: nowrap !important; flex-shrink: 0 !important;
	box-shadow: none !important; cursor: pointer !important; transition: all 0.2s ease !important;
}
.dvc-inline-weight-guide button.dvc-wg-item strong { font-weight: 700 !important; }
.single-product form.cart .dvc-inline-weight-guide button.dvc-wg-item:hover:not(:disabled),
.dvc-inline-weight-guide button.dvc-wg-item:hover:not(:disabled),
.dvc-wg-item:hover:not(:disabled) {
	background: #fff5f7 !important; background-color: #fff5f7 !important; border-color: #e06a84 !important; color: #be185d !important;
}
.single-product form.cart .dvc-inline-weight-guide button.dvc-wg-item.is-active,
.dvc-inline-weight-guide button.dvc-wg-item.is-active,
.dvc-wg-item.is-active {
	background: #fff1f4 !important; background-color: #fff1f4 !important; border-color: #e06a84 !important; color: #be185d !important;
	font-weight: 700 !important; box-shadow: 0 0 0 1px rgba(224, 106, 132, 0.25) !important;
}
.single-product form.cart .dvc-inline-weight-guide button.dvc-wg-item:disabled,
.single-product form.cart .dvc-inline-weight-guide button.dvc-wg-item.is-disabled,
.dvc-inline-weight-guide button.dvc-wg-item:disabled,
.dvc-inline-weight-guide button.dvc-wg-item.is-disabled,
.dvc-wg-item:disabled,
.dvc-wg-item.is-disabled {
	opacity: 0.45 !important; cursor: not-allowed !important; text-decoration: line-through !important;
	background: #f3f4f6 !important; background-color: #f3f4f6 !important; color: #9ca3af !important; border-color: #e5e7eb !important;
}

#dvc-inline-size-alert {
	display: none; align-items: center; gap: 6px; margin: 8px 0 2px; padding: 8px 11px; border-radius: 6px;
	background: #fff1f2; border: 1px solid #f43f5e; color: #be123c; font-size: 13px; font-weight: 600; line-height: 1.35;
}
#dvc-inline-size-alert.is-visible { display: flex !important; }

@keyframes dvcSizeShake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-5px); }
	40%, 80% { transform: translateX(5px); }
}
.single-product form.cart .variations.dvc-size-missing {
	border: 1.5px solid #f43f5e !important; border-radius: 8px !important; background: #fff8f9 !important;
	padding: 8px 10px !important; animation: dvcSizeShake 0.45s ease-in-out 2 !important;
}

/* Trust Microcopy */
.dvc-pdp-trust-microcopy {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 12px; padding: 8px 11px;
	border-radius: 6px; background: #f9fafb; border: 1px solid #e5e7eb; font-size: 12.5px; font-weight: 500; color: #374151;
}

/* Size Chart & Size Consultation Modals */
#dvc-size-chart-modal, #dvc-size-consult-modal { display: none !important; }
#dvc-size-chart-modal.is-open, #dvc-size-consult-modal.is-open {
	display: flex !important; position: fixed !important; inset: 0 !important; z-index: 99999 !important;
	align-items: center !important; justify-content: center !important; padding: 14px !important;
	opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
}
.dvc-sc-modal-dialog { max-width: 440px !important; }
.dvc-sc-intro { margin: 0 0 10px; font-size: 13.5px; line-height: 1.45; color: #374151; }
.dvc-sc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dvc-sc-chip {
	padding: 4px 9px !important; height: auto !important; min-height: 0 !important; border-radius: 999px !important;
	border: 1px solid #e5e7eb !important; background: #f9fafb !important; color: #221f20 !important;
	font-size: 12px !important; font-weight: 600 !important; cursor: pointer !important;
}
.dvc-sc-chip:hover, .dvc-sc-chip.is-selected { background: #fff1f4 !important; border-color: #e06a84 !important; color: #be185d !important; }
.dvc-sc-form { display: flex; flex-direction: column; gap: 10px; }
.dvc-sc-field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.dvc-sc-label { font-size: 12.5px; font-weight: 600; color: #221f20; }
.dvc-sc-form input {
	width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d1d5db; border-radius: 6px;
	font-size: 14px; color: #111827; background: #ffffff; box-sizing: border-box;
}
.dvc-sc-form input:focus { outline: none; border-color: #e06a84; box-shadow: 0 0 0 3px rgba(224, 106, 132, 0.16); }
.dvc-sc-status { display: none; padding: 8px 10px; border-radius: 6px; font-size: 13px; line-height: 1.4; font-weight: 500; }
.dvc-sc-status.is-error { display: block; background: #fff1f2; border: 1px solid #fda4af; color: #be123c; }
.dvc-sc-status.is-success { display: block; background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.dvc-sc-submit {
	width: 100% !important; height: 44px !important; background: #e06a84 !important; color: #ffffff !important;
	border: none !important; border-radius: 6px !important; font-size: 13.5px !important; font-weight: 700 !important; cursor: pointer !important;
}
.dvc-sc-submit:disabled { opacity: 0.7 !important; cursor: wait !important; }
.dvc-sc-zalo-wrap { margin-top: 10px; text-align: center; }
.dvc-sc-zalo-link { font-size: 13px; font-weight: 600; color: #0068ff; text-decoration: underline; }
#dvc-size-consult-modal.is-submitted .dvc-sc-form-view { display: none !important; }
#dvc-size-consult-modal:not(.is-submitted) .dvc-sc-success-view { display: none !important; }
#dvc-size-consult-modal.is-submitted .dvc-sc-success-view {
	display: flex !important; flex-direction: column; align-items: center; text-align: center;
	padding: 16px 8px 6px; gap: 10px;
}
.dvc-sc-success-icon {
	width: 52px; height: 52px; border-radius: 999px; background: #ecfdf5; border: 2px solid #10b981;
	color: #059669; font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.dvc-sc-success-title { margin: 2px 0 0; font-size: 18px; font-weight: 700; color: #111827; line-height: 1.3; }
.dvc-sc-success-desc { margin: 0 0 8px; font-size: 14px; color: #4b5563; line-height: 1.5; max-width: 340px; }
#dvc-size-consult-modal button.dvc-sc-continue-btn {
	appearance: none !important; -webkit-appearance: none !important;
	width: 100% !important; height: 46px !important; min-height: 46px !important; margin: 4px 0 0 !important;
	background: #e06a84 !important; color: #ffffff !important; border: none !important; border-radius: 8px !important;
	font-size: 14px !important; font-weight: 700 !important; letter-spacing: 0.4px !important;
	text-transform: uppercase !important; cursor: pointer !important;
}
#dvc-size-consult-modal button.dvc-sc-continue-btn:hover { background: #cc526d !important; }

/* Video Fullscreen 9:16 Button & Native Fullscreen Reset */
.single-product .dvc-inline-video-wrap { position: relative !important; }
.single-product form.cart button.dvc-video-fs-btn,
.single-product .woo-single-gallery button.dvc-video-fs-btn {
	appearance: none !important; -webkit-appearance: none !important;
	position: absolute !important; top: 10px !important; left: 10px !important; z-index: 16 !important;
	display: inline-flex !important; align-items: center !important; gap: 5px !important;
	height: 28px !important; min-height: 28px !important; padding: 0 10px !important; margin: 0 !important;
	border-radius: 999px !important; background: rgba(17, 17, 17, 0.56) !important;
	backdrop-filter: blur(6px) !important; -webkit-backdrop-filter: blur(6px) !important;
	border: 1px solid rgba(255, 255, 255, 0.35) !important; color: #ffffff !important;
	font-size: 11.5px !important; font-weight: 600 !important; line-height: 1 !important;
	text-transform: none !important; letter-spacing: 0 !important; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
	cursor: pointer !important; transition: background-color 0.2s ease, transform 0.15s ease !important;
}
.single-product .woo-single-gallery button.dvc-video-fs-btn:hover { background: rgba(17, 17, 17, 0.8) !important; }
.single-product video.dvc-inline-product-video:fullscreen,
.single-product video.dvc-inline-product-video:-webkit-full-screen {
	width: 100vw !important; height: 100vh !important; max-height: 100vh !important;
	aspect-ratio: auto !important; object-fit: contain !important; object-position: center center !important;
	border-radius: 0 !important; background: #000000 !important;
}

/* Mobile First Fold [UX-04] & Option A Peek Gallery + Sticky Product Bar */
@media (max-width: 767px) {
	.dvc-floating-contact { right: 10px !important; bottom: 18px !important; gap: 6px !important; }
	body.dvc-spb-active .dvc-floating-contact { bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important; }
	.dvc-floating-contact .dvc-float-btn { width: 38px !important; height: 38px !important; }
	.dvc-floating-contact .dvc-float-btn .dvc-btn-icon svg { width: 18px !important; height: 18px !important; }

	.single-product .woo-single-gallery .minimog-main-swiper .swiper-nav-buttons { display: none !important; }
	.single-product .woo-single-gallery .minimog-main-swiper.dvc-mobile-peek,
	.single-product .woo-single-gallery .minimog-main-swiper:has(.swiper-wrapper > .swiper-slide:nth-child(2)) {
		width: calc(100% + 15px) !important; max-width: calc(100% + 15px) !important;
		margin-left: 0 !important; margin-right: -15px !important;
		border-radius: 8px 0 0 8px !important; overflow: hidden !important;
	}
	.single-product .woo-single-gallery .minimog-main-swiper .swiper-inner,
	.single-product .woo-single-gallery .minimog-main-swiper .swiper {
		aspect-ratio: auto !important; height: auto !important; max-height: none !important;
		background: transparent !important; border-radius: 0 !important;
	}
	.single-product .woo-single-gallery .minimog-main-swiper.dvc-mobile-peek:not(.dvc-swiper-ready) .swiper-slide,
	.single-product .woo-single-gallery .minimog-main-swiper:not(.dvc-swiper-ready):has(.swiper-wrapper > .swiper-slide:nth-child(2)) .swiper-slide {
		width: 87.2%; margin-right: 10px; flex-shrink: 0;
	}
	.single-product .woo-single-gallery .minimog-main-swiper .swiper-slide {
		aspect-ratio: auto !important; height: auto !important; max-height: none !important;
		border-radius: 8px !important; overflow: hidden !important; background: #f8f8f8 !important;
	}
	.single-product .woo-single-gallery .minimog-main-swiper .woocommerce-product-gallery__image,
	.single-product .woo-single-gallery .minimog-main-swiper m-image.minimog-lazy-image {
		width: 100% !important; height: auto !important; aspect-ratio: 2 / 3 !important;
		max-height: 60vh !important; --lazy-image-height: 150% !important;
		border-radius: 8px !important; overflow: hidden !important;
	}
	.single-product .woo-single-gallery .minimog-main-swiper .swiper-slide img,
	.single-product .woo-single-gallery .minimog-main-swiper .swiper-slide video.dvc-inline-product-video,
	.single-product .woo-single-gallery .minimog-main-swiper video.dvc-inline-product-video {
		width: 100% !important; height: 100% !important; aspect-ratio: 2 / 3 !important;
		max-height: 60vh !important; object-fit: cover !important; object-position: center 20% !important;
		border-radius: 8px !important;
	}
	.single-product .woo-single-gallery .minimog-thumbs-swiper,
	.single-product .woo-single-gallery .minimog-thumbs-swiper-wrap { display: none !important; }
	.single-product .product_title { font-size: 17px !important; line-height: 1.28 !important; }
	.single-product .entry-price-wrap .price { font-size: 22px !important; }
	.single-product .dvc-social-proof-bar { margin: 2px 0 4px !important; }

	#dvc-sticky-product-bar {
		display: block !important; position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
		width: 100% !important; background: #ffffff !important; border-top: 1px solid #ececec !important;
		box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08) !important; z-index: 9995 !important;
		transform: translateY(110%) !important; opacity: 0 !important; pointer-events: none !important;
		transition: transform 0.25s ease, opacity 0.25s ease !important;
	}
	#dvc-sticky-product-bar.is-visible { transform: translateY(0) !important; opacity: 1 !important; pointer-events: auto !important; }
	#dvc-spb-size-col { flex: 0 0 18% !important; max-width: 18% !important; }
	#dvc-spb-atc { flex: 0 0 30% !important; max-width: 30% !important; }
	#dvc-spb-buynow { flex: 1 1 52% !important; background: #e06a84 !important; color: #ffffff !important; }
}
