/**
 * Override globali — caricato per ultimo (dopo Elementor e template.css).
 * Scrivi qui le regole che devono avere priorità sul resto del sito.
 */

/* Header: il tema forza maiuscolo su "Search" (header v6/v7) */
.bwp-header.header-v6 .text-search .search-toggle,
.bwp-header.header-v7 .text-search .search-toggle,
.bwp-header .header-page-link .search-box .search-toggle span {
	text-transform: none;
}

/* Pulsanti misura: quadrati, un solo bordo */
body.single-product .variations_form .tawcvs-swatches[data-attribute_name="attribute_pa_scegli-la-misura"] .swatch.swatch-label,
body.single-product .variations_form .tawcvs-swatches[data-attribute_name="attribute_pa_size"] .swatch.swatch-label {
	border-radius: 0 !important;
	-webkit-border-radius: 0 !important;
	box-shadow: none !important;
	border: 1px solid #ccc !important;
	background: transparent !important;
	min-width: 40px;
	min-height: 40px;
	width: 40px;
	height: 40px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce div.product .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce div.product .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce div.product .woosb-product .variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce div.product .woosb-product .variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce:not(.archive) li.product .cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce:not(.archive) li.product .cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce:not(.archive) li.product .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce:not(.archive) li.product .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce:not(.archive) li.product .woosb-product .variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce:not(.archive) li.product .woosb-product .variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce.archive .cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce.archive .cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce.archive .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce.archive .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce.archive .woosb-product .variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce.archive .woosb-product .variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .wc-product-table-wrapper .cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .wc-product-table-wrapper .cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .wc-product-table-wrapper .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .wc-product-table-wrapper .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .wc-product-table-wrapper .woosb-product .variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .wc-product-table-wrapper .woosb-product .variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce.single-product .cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce.single-product .cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce.single-product .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce.single-product .bundled_item_cart_content.cart.variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle, .woocommerce.single-product .woosb-product .variations_form .tawcvs-swatches .swatch.swatch-shape-circle, .woocommerce.single-product .woosb-product .variations_form .tawcvs-swatches .swatch-show-more.swatch-shape-circle{
	border-radius: 0% !important;
}

body.single-product .variations_form .tawcvs-swatches[data-attribute_name="attribute_pa_scegli-la-misura"] .swatch.swatch-label::before,
body.single-product .variations_form .tawcvs-swatches[data-attribute_name="attribute_pa_size"] .swatch.swatch-label::before {
	display: none !important;
	content: none !important;
	border: none !important;
}

body.single-product .variations_form .tawcvs-swatches[data-attribute_name="attribute_pa_scegli-la-misura"] .swatch.swatch-label:hover,
body.single-product .variations_form .tawcvs-swatches[data-attribute_name="attribute_pa_scegli-la-misura"] .swatch.swatch-label.selected,
body.single-product .variations_form .tawcvs-swatches[data-attribute_name="attribute_pa_size"] .swatch.swatch-label:hover,
body.single-product .variations_form .tawcvs-swatches[data-attribute_name="attribute_pa_size"] .swatch.swatch-label.selected {
	border: 1px solid var(--gray-dark, #000) !important;
	background: var(--gray-dark, #000) !important;
	color: #fff !important;
	box-shadow: none !important;
}

body.single-product .type_attribute label {
	font-weight: bold;
}


.quickview-container .product-type-variable .variations_form.cart table tr td label, .single-product .product-type-variable .variations_form.cart table tr td label,
.quickview-container .bwp-single-info .single_add_to_cart_button.button, .single-product .bwp-single-info .single_add_to_cart_button.button,
.quickview-container .bwp-single-info .button.quick-buy, .single-product .bwp-single-info .button.quick-buy,
.woosw-popup .woosw-popup-inner .woosw-popup-content .woosw-popup-content-top{
    text-transform: unset !important;

}

.quickview-container .bwp-single-info .woosw-wishlist, .single-product .bwp-single-info .woosw-wishlist{
	margin-right: 0 !important;
}

.quickview-container .bwp-single-info .woosw-wishlist .woosw-btn:before, .single-product .bwp-single-info .woosw-wishlist .woosw-btn:before {
    color: #ffffff91;
}

.quickview-container .bwp-single-info .woosw-wishlist .woosw-btn, .single-product .bwp-single-info .woosw-wishlist .woosw-btn {
    background: #a2872c;

}

/* ============================================================
   Video prodotto self-hosted (<video>) — vedi functions.php
   ============================================================ */
/* Slide "inner" nel carosello immagini */
.video-additional video.adena-self-video {
    width: 100%;
    height: auto;
    display: block;
}
/* Modale popup (stile Video = Popup) */
.content-video .modal-dialog video.adena-self-video {
    width: 100%;
    max-height: 80vh;
    display: block;
}

/* ============================================================
   360 / 3D da video — box + scrubbing (vedi js/adena-360-video.js)
   Riusa l'overlay .content-product-360-view del parent; il box e la X
   sono ridefiniti qui perche' non usiamo .product-360-view (a cui si
   aggancerebbe il viewer a immagini del parent).
   ============================================================ */
.adena-360-video-wrap .adena-360-video-box {
    position: relative;
    width: calc(100% - 30px);
    max-width: 600px;
    margin: auto;
    padding: 30px;
    background: #fff;
    box-sizing: border-box;
}
.adena-360-video-wrap .adena-360-video-box > .adena-360-button {
    height: 30px;
    width: 30px;
    position: absolute;
    top: -10px;
    right: -10px;
    left: auto;
    box-sizing: border-box;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    z-index: 2;
}
.adena-360-video-wrap .adena-360-video-box > .adena-360-button:before,
.adena-360-video-wrap .adena-360-video-box > .adena-360-button:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: #222;
    transform: translate(-50%, -50%) rotate(45deg);
}
.adena-360-video-wrap .adena-360-video-box > .adena-360-button:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.adena-360-video-stage {
    position: relative;
    width: 100%;
    text-align: center;
}
.adena-360-video-stage video {
    width: auto;
    max-width: 100%;
    max-height: 70vh;      /* il video (anche verticale) sta sempre nello schermo */
    height: auto;
    margin: 0 auto;
    display: inline-block;
    vertical-align: middle;
    cursor: ew-resize;
    touch-action: none; /* niente scroll pagina durante il drag su touch */
}
.adena-360-video-wrap.is-scrubbing .adena-360-video-stage video {
    cursor: grabbing;
}
.adena-360-hint {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    opacity: 0.65;
}

/* ============================================================
   Tooltip SEMPRE visibili su icone Video (play) e 360/3D.
   Il tema mostra il tooltip (content: attr(data-title)) solo all'hover
   (opacity:0/visibility:hidden); qui lo rendiamo persistente cosi' l'utente
   capisce subito che le icone sono cliccabili.
   ============================================================ */
.adena-360-button.image:before,
.adena-360-button.image:after,
.contents-detail .bwp-single-product .adena-bt-video .bwp-video:before,
.contents-detail .bwp-single-product .adena-bt-video .bwp-video:after {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ---- Mobile: adattamenti video/360 ---- */
@media (max-width: 767px) {
    /* box 360 video piu' compatto */
    .adena-360-video-wrap .adena-360-video-box {
        padding: 15px;
    }
    .adena-360-video-wrap .adena-360-video-box > .adena-360-button {
        top: 5px;
        right: 5px;
    }
    .adena-360-video-stage video {
        max-height: 65vh;
    }

    /* tooltip SOTTO l'icona (a destra sforerebbe fuori schermo) e freccia
       laterale nascosta perche' punterebbe nella direzione sbagliata */
    .adena-360-button.image:before,
    .contents-detail .bwp-single-product .adena-bt-video .bwp-video:before {
        right: auto;
        left: 50%;
        top: 100%;
        transform: translate(-50%, 7px);
    }
    .adena-360-button.image:after,
    .contents-detail .bwp-single-product .adena-bt-video .bwp-video:after {
        display: none !important;
    }
}
