/**
 * X-W Page Builder - Frontend Widgets Styles
 * Slider touch-friendly, Box Icone, FAQ Accordion, Banner CTA.
 */

/* ==========================================================================
   COMPATIBILITÀ ELEMENTOR & TEMPLATE A TUTTO SCHERMO
   Assicura che le pagine create con Elementor o a tutto schermo mantengano la larghezza intera originale
   ========================================================================== */
body.elementor-page .site-content,
body.elementor-page .entry-content,
body.content-full-screen .site-content,
body.content-full-screen .entry-content,
body.page-template-elementor_canvas .site-content,
body.page-template-elementor_canvas .entry-content,
body.page-template-elementor_header_footer .site-content,
body.page-template-elementor_header_footer .entry-content {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.elementor-page .entry-content > section.elementor-section {
    padding-top: initial;
    padding-bottom: initial;
}

/* ==========================================================================
   WIDGETS CONTAINER WRAPPER & OVERLAY
   ========================================================================== */
.xwpb-widget-container-wrap {
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.xwpb-container-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.xwpb-widget-container-wrap > *:not(.xwpb-container-overlay) {
    position: relative;
    z-index: 2;
}

/* Normalizzazione elementi interni al container wrap: occupano il 100% senza doppio breakout */
.xwpb-widget-container-wrap > .xwpb-slider-container,
.xwpb-widget-container-wrap > .xwpb-product-slider,
.xwpb-widget-container-wrap > .xwpb-feature-row,
.xwpb-widget-container-wrap > .xwpb-showcase-grid,
.xwpb-widget-container-wrap > .xwpb-shape-divider {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

.xwpb-widget-container-wrap > .xwpb-slider-container {
    margin: 0 !important;
}

/* Quando è a tutto schermo, azzeriamo qualsiasi raggio di curvatura per evitare micro-angoli arrotondati */
.xwpb-slider-container.is-full-width,
.xwpb-widget-container-wrap.is-full-width,
.xwpb-widget-container-wrap.is-full-width > .xwpb-slider-container,
.is-full-width .xwpb-slider-container,
.is-full-width .xwpb-slide {
    border-radius: 0 !important;
}

.xwpb-widget-container-wrap > .xwpb-product-slider {
    margin: 0 !important;
}

.xwpb-widget-container-wrap > .xwpb-feature-row {
    margin-bottom: 0 !important;
}

.xwpb-widget-container-wrap > .xwpb-showcase-grid {
    margin-bottom: 0 !important;
}

/* Breakout 100vw per container wrapper se a tutto schermo (solo se non già dentro .alignfull) */
.xwpb-widget-container-wrap.is-full-width:not(.alignfull > *),
body:not(.wp-admin) .entry .xwpb-widget-container-wrap.is-full-width:not(.alignfull > *),
body:not(.wp-admin).content-full-screen .entry .xwpb-widget-container-wrap.is-full-width:not(.alignfull > *),
body:not(.wp-admin).content-full-screen .entry-content .xwpb-widget-container-wrap.is-full-width:not(.alignfull > *) {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

/* Quando il blocco genitore è già .alignfull dal tema o da Gutenberg, NO doppio breakout */
.alignfull > .xwpb-widget-container-wrap,
.wp-block-xwpb-slider.alignfull > .xwpb-widget-container-wrap,
.wp-block-xwpb-showcase.alignfull > .xwpb-widget-container-wrap,
.wp-block-xwpb-feature-row.alignfull > .xwpb-widget-container-wrap,
.wp-block-xwpb-divider.alignfull > .xwpb-widget-container-wrap,
.alignfull .xwpb-widget-container-wrap,
.alignfull .xwpb-slider-container,
.alignfull .xwpb-showcase-grid,
.alignfull .xwpb-shape-divider,
.alignfull .xwpb-feature-row {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative !important;
}

body.wp-admin .xwpb-widget-container-wrap.is-full-width,
body.block-editor-page .xwpb-widget-container-wrap.is-full-width,
.editor-styles-wrapper .xwpb-widget-container-wrap.is-full-width {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Se il divisore o il suo contenitore è a tutto schermo nell'editor e non è dentro .alignfull, estendilo a 100vw */
body.wp-admin .xwpb-divider-container-wrap.is-full-width:not(.alignfull *),
body.block-editor-page .xwpb-divider-container-wrap.is-full-width:not(.alignfull *),
.editor-styles-wrapper .xwpb-divider-container-wrap.is-full-width:not(.alignfull *) {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw !important;
}

/* ==========================================================================
   SLIDER TOUCH-FRIENDLY & RESPONSIVE
   ========================================================================== */
.xwpb-slider-container {
    position: relative;
    width: 100%;
    height: var(--slider-height, 500px);
    overflow: hidden;
    border-radius: var(--xwpb-radius, 12px);
    margin: 0 auto;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
    user-select: none;
}

/* Full Width / Schermo intero (Breakout 100vw su qualsiasi tema e contenitore) */
.xwpb-slider-container.is-full-width:not(.xwpb-widget-container-wrap > *):not(.alignfull *),
body .entry .xwpb-slider-container.is-full-width:not(.xwpb-widget-container-wrap > *):not(.alignfull *),
body.content-full-screen .entry .xwpb-slider-container.is-full-width:not(.xwpb-widget-container-wrap > *):not(.alignfull *),
body.content-full-screen .entry-content .xwpb-slider-container.is-full-width:not(.xwpb-widget-container-wrap > *):not(.alignfull *) {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

.xwpb-showcase-grid.is-full-width:not(.xwpb-widget-container-wrap > *):not(.alignfull *),
body .entry .xwpb-showcase-grid.is-full-width:not(.xwpb-widget-container-wrap > *):not(.alignfull *),
body.content-full-screen .entry .xwpb-showcase-grid.is-full-width:not(.xwpb-widget-container-wrap > *):not(.alignfull *),
body.content-full-screen .entry-content .xwpb-showcase-grid.is-full-width:not(.xwpb-widget-container-wrap > *):not(.alignfull *) {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}

.wp-block-xwpb-slider.alignfull,
.wp-block-xwpb-showcase.alignfull,
.wp-block-xwpb-feature-row.alignfull {
    overflow: visible !important;
}

/* Feature Row Full Width */
body:not(.wp-admin) .xwpb-feature-row.is-full-width,
body:not(.wp-admin) .entry .xwpb-feature-row.is-full-width,
body:not(.wp-admin).content-full-screen .entry .xwpb-feature-row.is-full-width,
body:not(.wp-admin).content-full-screen .entry-content .xwpb-feature-row.is-full-width {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}

/* Salvaguardia Editor Gutenberg: disattiva breakout 100vw e margini negativi nel pannello di modifica */
body.wp-admin .xwpb-slider-container.is-full-width,
body.block-editor-page .xwpb-slider-container.is-full-width,
.editor-styles-wrapper .xwpb-slider-container.is-full-width,
div[data-type="xwpb/slider"] .xwpb-slider-container,
.wp-block-xwpb-slider .xwpb-slider-container {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.wp-admin .xwpb-showcase-grid.is-full-width,
body.block-editor-page .xwpb-showcase-grid.is-full-width,
.editor-styles-wrapper .xwpb-showcase-grid.is-full-width,
div[data-type="xwpb/showcase"] .xwpb-showcase-grid,
.wp-block-xwpb-showcase .xwpb-showcase-grid {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.wp-admin .xwpb-feature-row.is-full-width,
body.block-editor-page .xwpb-feature-row.is-full-width,
.editor-styles-wrapper .xwpb-feature-row.is-full-width,
.editor-styles-wrapper .xwpb-feature-row.alignfull,
.editor-styles-wrapper .xwpb-feature-row.alignwide,
div[data-type="xwpb/feature-row"] .xwpb-feature-row,
.wp-block-xwpb-feature-row .xwpb-feature-row {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.xwpb-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Effetti di Transizione Slider */
.xwpb-slider-container.effect-fade .xwpb-slider-track,
.xwpb-slider-container.effect-zoom-fade .xwpb-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform: none !important;
}

.xwpb-slider-container.effect-fade .xwpb-slide,
.xwpb-slider-container.effect-zoom-fade .xwpb-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.7s ease;
    z-index: 1;
    pointer-events: none;
}

.xwpb-slider-container.effect-fade .xwpb-slide.is-active,
.xwpb-slider-container.effect-zoom-fade .xwpb-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: auto;
}

.xwpb-slider-container.effect-zoom-fade .xwpb-slide {
    transform: scale(1.06);
    transition: opacity 0.85s cubic-bezier(0.25, 1, 0.5, 1), transform 0.85s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.85s ease;
}

.xwpb-slider-container.effect-zoom-fade .xwpb-slide.is-active {
    transform: scale(1);
}

.xwpb-slider-container.effect-slide-vertical .xwpb-slider-track {
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.xwpb-slider-container.effect-slide-vertical .xwpb-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-height: 100%;
    min-width: 100%;
    box-sizing: border-box;
}

.xwpb-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    color: var(--slide-text-color, #ffffff);
    text-align: center;
}

.xwpb-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.xwpb-slide-content {
    max-width: 680px;
    z-index: 2;
    position: relative;
    width: 100%;
}

.xwpb-slide.is-align-left {
    justify-content: flex-start;
    text-align: left;
}
.xwpb-slide.is-align-left .xwpb-slide-content {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.xwpb-slide.is-align-right {
    justify-content: flex-end;
    text-align: right;
}
.xwpb-slide.is-align-right .xwpb-slide-content {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.xwpb-slide.is-align-center {
    justify-content: center;
    text-align: center;
}
.xwpb-slide.is-align-center .xwpb-slide-content {
    margin: 0 auto;
    text-align: center;
}

.xwpb-slide-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.xwpb-slide-title {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    color: var(--slide-text-color, #ffffff) !important;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.xwpb-slide-desc {
    font-size: clamp(14px, 1.5vw, 18px);
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.xwpb-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--xwpb-radius, 8px);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.xwpb-btn-primary {
    background: var(--xwpb-primary, #2563eb);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.xwpb-btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.xwpb-btn-secondary {
    background: #ffffff;
    color: #0f172a !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.xwpb-btn-secondary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

/* Frecce Slider */
.xwpb-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.45);
    color: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.xwpb-slider-arrow:hover {
    background: rgba(15, 23, 42, 0.85);
    transform: translateY(-50%) scale(1.08);
}

.xwpb-prev { left: 16px; }
.xwpb-next { right: 16px; }

/* Dots Slider */
.xwpb-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.xwpb-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.xwpb-dot.active {
    width: 26px;
    border-radius: 10px;
    background: #ffffff;
}

/* ==========================================================================
   ICON BOX & CARD
   ========================================================================== */
.xwpb-icon-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--xwpb-radius, 12px);
    padding: 28px;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.xwpb-icon-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.xwpb-icon-badge {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--xwpb-primary, #2563eb);
    border-radius: 50%;
}

.xwpb-icon-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--xwpb-secondary, #0f172a);
}

.xwpb-icon-text {
    font-size: 14px;
    color: var(--xwpb-text, #475569);
    line-height: 1.6;
    margin: 0;
}

.xwpb-icon-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--xwpb-primary, #2563eb);
    text-decoration: none !important;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.xwpb-faq-accordion {
    border: 1px solid #e2e8f0;
    border-radius: var(--xwpb-radius, 8px);
    margin-bottom: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.xwpb-faq-accordion.is-open {
    border-color: var(--xwpb-primary, #2563eb);
}

.xwpb-faq-toggle {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    transition: background 0.2s;
}

.xwpb-faq-toggle:hover {
    background: #f8fafc;
}

.xwpb-faq-icon {
    font-size: 20px;
    color: #64748b;
    transition: transform 0.25s ease;
}

.xwpb-faq-accordion.is-open .xwpb-faq-icon {
    transform: rotate(45deg);
    color: var(--xwpb-primary, #2563eb);
}

.xwpb-faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.xwpb-faq-content {
    padding: 0 20px 18px 20px;
    color: #475569;
    font-size: 14.5px;
    line-height: 1.6;
}

/* ==========================================================================
   BANNER CALL TO ACTION (CTA)
   ========================================================================== */
.xwpb-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--xwpb-secondary, #0f172a) 0%, #1e293b 100%);
    color: #ffffff;
    padding: 32px 36px;
    border-radius: var(--xwpb-radius, 12px);
    margin: 28px 0;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
}

.xwpb-cta-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 6px 0;
}

.xwpb-cta-desc {
    color: #cbd5e1;
    font-size: 15px;
    margin: 0;
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.xwpb-announcement-bar {
    width: 100%;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 99999;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.xwpb-announcement-content a {
    text-decoration: underline !important;
    font-weight: 700;
}

.xwpb-announcement-content a:hover {
    opacity: 0.9;
}

.xwpb-announcement-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 4px 8px;
}

.xwpb-announcement-close:hover {
    opacity: 1;
}

/* ==========================================================================
   PULSANTE WHATSAPP FLUTTUANTE
   ========================================================================== */
.xwpb-floating-whatsapp {
    position: fixed !important;
    bottom: 24px !important;
    z-index: 999999 !important;
    width: 58px !important;
    height: 58px !important;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45) !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    text-decoration: none !important;
}

.xwpb-floating-whatsapp:hover {
    transform: scale(1.1) translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55) !important;
    color: #ffffff !important;
}

.xwpb-floating-whatsapp.xwpb-pos-right {
    right: 24px !important;
}

.xwpb-floating-whatsapp.xwpb-pos-left {
    left: 24px !important;
}

.xwpb-wa-icon {
    width: 32px !important;
    height: 32px !important;
    fill: #ffffff !important;
    display: block !important;
}

.xwpb-wa-tooltip {
    position: absolute !important;
    bottom: 70px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.25s ease !important;
    pointer-events: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.xwpb-floating-whatsapp:hover .xwpb-wa-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-4px) !important;
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */
.xwpb-scroll-top-btn {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    width: 48px !important;
    height: 48px !important;
    background: var(--xwpb-secondary, #0f172a) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(14px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease !important;
    z-index: 999999 !important;
}

.xwpb-scroll-top-btn.xwpb-pos-right {
    right: 24px !important;
    left: auto !important;
}

.xwpb-scroll-top-btn.xwpb-pos-right.xwpb-offset-wa {
    right: 90px !important;
    left: auto !important;
}

.xwpb-scroll-top-btn.xwpb-pos-left {
    left: 24px !important;
    right: auto !important;
}

.xwpb-scroll-top-btn.xwpb-pos-left.xwpb-offset-wa {
    left: 90px !important;
    right: auto !important;
}

.xwpb-scroll-top-btn.xwpb-shape-square {
    border-radius: var(--xwpb-radius, 10px) !important;
}

.xwpb-scroll-top-btn.xwpb-shape-round {
    border-radius: 50% !important;
}

.xwpb-scroll-top-btn.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.xwpb-scroll-top-btn:hover {
    background: var(--xwpb-primary, #2563eb) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.xwpb-scroll-top-btn svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    stroke: #ffffff !important;
    fill: none !important;
}

/* ==========================================================================
   SHOWCASE GRID (BOX VETRINE PROMOZIONALI)
   ========================================================================== */
.xwpb-showcase-grid {
    display: grid;
    grid-template-columns: repeat(var(--showcase-cols, 3), minmax(0, 1fr));
    gap: var(--showcase-gap, 24px);
    margin: 32px 0;
    width: 100%;
}

@media (max-width: 991px) {
    .xwpb-showcase-grid {
        grid-template-columns: repeat(min(var(--showcase-cols, 3), 2), minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .xwpb-showcase-grid {
        grid-template-columns: 1fr !important;
    }
}

.xwpb-showcase-box {
    position: relative;
    border-radius: var(--showcase-radius, 14px);
    overflow: hidden;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    min-height: var(--showcase-height, 360px);
}

.xwpb-showcase-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
}

.xwpb-showcase-box.justify-center,
.xwpb-showcase-box.justify-center .xwpb-showcase-content,
.xwpb-showcase-content.justify-center {
    justify-content: center !important;
}

.xwpb-showcase-box.justify-top,
.xwpb-showcase-box.justify-top .xwpb-showcase-content,
.xwpb-showcase-content.justify-top {
    justify-content: flex-start !important;
}

.xwpb-showcase-box.justify-bottom,
.xwpb-showcase-box.justify-bottom .xwpb-showcase-content,
.xwpb-showcase-content.justify-bottom {
    justify-content: flex-end !important;
}

.xwpb-showcase-box.is-height-auto .xwpb-showcase-content,
.xwpb-showcase-box.is-button-box .xwpb-showcase-content {
    padding: 14px 20px !important;
}

.xwpb-showcase-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.xwpb-showcase-box.anim-none:hover {
    transform: none !important;
}

.xwpb-showcase-box.anim-lift:hover {
    transform: translateY(-5px) !important;
}

.xwpb-showcase-box.anim-zoom:hover {
    transform: scale(1.025) !important;
}

.xwpb-showcase-box.shadow-none,
.xwpb-showcase-box.shadow-none:hover {
    box-shadow: none !important;
}

.xwpb-showcase-box.shadow-soft {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
}

.xwpb-showcase-box.shadow-strong {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
}

/* Layout Overlay (Banner a tutto campo con testo sovrapposto) */
.xwpb-showcase-grid.layout-overlay .xwpb-showcase-box {
    min-height: var(--showcase-height, 360px);
    justify-content: flex-end;
    color: var(--showcase-text-color, #ffffff);
}

.xwpb-showcase-grid.layout-overlay .xwpb-showcase-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.xwpb-showcase-grid.has-hover-zoom .xwpb-showcase-box:hover .xwpb-showcase-img {
    transform: scale(1.06);
}

.xwpb-showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.xwpb-showcase-grid.layout-overlay .xwpb-showcase-content {
    position: relative;
    z-index: 3;
    padding: 28px 24px;
}

/* Layout Card (Immagine sopra, card testo sotto) */
.xwpb-showcase-grid.layout-card .xwpb-showcase-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.xwpb-showcase-card-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.xwpb-showcase-grid.layout-card .xwpb-showcase-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.xwpb-showcase-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.xwpb-showcase-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
}

.xwpb-showcase-card-img-wrap .xwpb-showcase-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
}

.xwpb-showcase-grid.layout-card .xwpb-showcase-content {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Tipografia e Badge */
.xwpb-showcase-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    color: #ffffff;
    align-self: flex-start;
}

.xwpb-showcase-grid.layout-card .xwpb-showcase-badge {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.xwpb-showcase-title {
    font-weight: 800;
    margin: 0 0 10px 0 !important;
    line-height: 1.25;
}

.xwpb-showcase-desc {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 18px 0;
}

.xwpb-showcase-desc p {
    margin: 0 0 10px 0 !important;
    line-height: 1.6 !important;
    color: inherit !important;
}

.xwpb-showcase-desc p:last-child {
    margin-bottom: 0 !important;
}

.xwpb-showcase-desc ul {
    list-style: disc outside !important;
    margin: 10px 0 12px 22px !important;
    padding: 0 !important;
}

.xwpb-showcase-desc ol {
    list-style: decimal outside !important;
    margin: 10px 0 12px 22px !important;
    padding: 0 !important;
}

.xwpb-showcase-desc li {
    display: list-item !important;
    margin-bottom: 6px !important;
    line-height: 1.5 !important;
}

.xwpb-showcase-desc li:last-child {
    margin-bottom: 0 !important;
}

.xwpb-showcase-desc a {
    color: inherit !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.xwpb-showcase-desc strong {
    font-weight: 700 !important;
}

.xwpb-showcase-box.is-height-auto,
.xwpb-showcase-grid.layout-overlay .xwpb-showcase-box.is-height-auto,
.xwpb-showcase-grid.layout-card .xwpb-showcase-box.is-height-auto {
    min-height: auto !important;
    height: auto !important;
}

.xwpb-showcase-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    text-align: center;
    text-decoration: none !important;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(0) scale(1);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.25s ease, box-shadow 0.25s ease !important;
    cursor: pointer;
}

.xwpb-showcase-btn.align-center {
    align-self: center !important;
    margin-left: auto;
    margin-right: auto;
}

.xwpb-showcase-btn.align-right {
    align-self: flex-end !important;
    margin-left: auto;
}

.xwpb-showcase-btn.align-full {
    align-self: stretch !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.xwpb-showcase-btn.shadow-none {
    box-shadow: none !important;
}

.xwpb-showcase-btn.shadow-soft {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.xwpb-showcase-btn.shadow-strong {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Fallback hover se non specificato anim */
.xwpb-showcase-box:hover .xwpb-showcase-btn,
.xwpb-showcase-btn:hover {
    transform: translateY(-4px);
    filter: brightness(1.1);
}

/* Animazione Pulsante: Nessuna */
.xwpb-showcase-btn.anim-none,
.xwpb-showcase-box:hover .xwpb-showcase-btn.anim-none,
.xwpb-showcase-btn.anim-none:hover {
    transform: none !important;
    filter: none !important;
}

/* Animazione Pulsante: Ingrandimento (Zoom) */
.xwpb-showcase-box:hover .xwpb-showcase-btn.anim-zoom,
.xwpb-showcase-btn.anim-zoom:hover {
    transform: scale(1.06) !important;
    filter: brightness(1.08) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22) !important;
}

/* Animazione Pulsante: Luminosità (Brightness) */
.xwpb-showcase-box:hover .xwpb-showcase-btn.anim-brightness,
.xwpb-showcase-btn.anim-brightness:hover {
    transform: none !important;
    filter: brightness(1.22) !important;
}

/* Animazione Pulsante: Sollevamento (Lift) */
.xwpb-showcase-box:hover .xwpb-showcase-btn.anim-lift,
.xwpb-showcase-btn.anim-lift:hover {
    transform: translateY(-4px) !important;
    filter: brightness(1.12) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22) !important;
}

/* Se l'ombra del pulsante è disattivata (none), non forzare ombra su hover */
.xwpb-showcase-btn.shadow-none:hover,
.xwpb-showcase-box:hover .xwpb-showcase-btn.shadow-none {
    box-shadow: none !important;
}

/* ==========================================================================
   SHAPE DIVIDERS (SEPARATORI DI FORMA SVG)
   ========================================================================== */
.xwpb-shape-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
    z-index: 2;
    display: block;
    box-sizing: border-box;
}

.xwpb-shape-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    left: 0;
    transform-origin: center center;
}

.xwpb-shape-divider.is-top {
    transform: rotate(180deg);
}

.xwpb-shape-divider.is-flipped svg {
    transform: scaleX(-1);
}

.xwpb-shape-divider.is-top.is-flipped svg {
    transform: scaleX(-1);
}

.xwpb-shape-divider.has-overlap {
    margin-top: -1px;
    margin-bottom: -1px;
}

/* Full Width 100vw Bleed (bordo a bordo indipendentemente dal container tema) */
.xwpb-shape-divider.is-full-width:not(.xwpb-widget-container-wrap > *):not(.alignfull *) {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

/* Gestione Livelli Z-Index */
.xwpb-shape-divider.is-front {
    z-index: 10 !important;
}

.xwpb-shape-divider.is-back {
    z-index: 1 !important;
}

/* Effetto Ombra Sagomata SVG (Drop Shadow reale sul profilo sagomato) */
.xwpb-shape-divider.has-shadow {
    overflow: visible !important;
}

.xwpb-shape-divider.has-shadow svg {
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
    transition: filter 0.3s ease;
}

.xwpb-shape-divider.has-shadow.shadow-soft svg {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}

.xwpb-shape-divider.has-shadow.shadow-strong svg {
    filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.38));
}

/* Ombra invertita se la forma è ancorata in alto */
.xwpb-shape-divider.has-shadow.is-top svg {
    filter: drop-shadow(0 -10px 18px rgba(0, 0, 0, 0.22));
}

.xwpb-shape-divider.has-shadow.is-top.shadow-soft svg {
    filter: drop-shadow(0 -6px 12px rgba(0, 0, 0, 0.12));
}

.xwpb-shape-divider.has-shadow.is-top.shadow-strong svg {
    filter: drop-shadow(0 -16px 30px rgba(0, 0, 0, 0.38));
}

/* ==========================================================================
   FEATURE ROW (RIGA ICONA & SCHEDA)
   ========================================================================== */
.xwpb-feature-row {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: var(--xwpb-row-gap, 32px);
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease;
}

.xwpb-feature-row.align-top {
    align-items: flex-start !important;
}

.xwpb-feature-row.is-reverse {
    flex-direction: row-reverse !important;
}

.xwpb-feature-icon-col {
    flex: 0 0 var(--xwpb-icon-col-w, 140px) !important;
    max-width: var(--xwpb-icon-col-w, 140px) !important;
    width: var(--xwpb-icon-col-w, 140px);
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.xwpb-feature-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.xwpb-feature-row:hover .xwpb-feature-icon-wrap {
    transform: scale(1.08) translateY(-3px);
}

.xwpb-feature-icon-wrap.shape-circle {
    border-radius: 50%;
}

.xwpb-feature-icon-wrap.shape-rounded {
    border-radius: 16px;
}

.xwpb-feature-icon-wrap svg {
    display: block;
    transition: transform 0.3s ease;
}

.xwpb-feature-card {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.xwpb-feature-card.is-link-card {
    text-decoration: none !important;
    cursor: pointer;
}

.xwpb-feature-card.shadow-none {
    box-shadow: none;
}

.xwpb-feature-card.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.xwpb-feature-card.shadow-medium {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.11);
}

.xwpb-feature-card.shadow-strong {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.xwpb-feature-row:hover .xwpb-feature-card.shadow-soft,
.xwpb-feature-row:hover .xwpb-feature-card.shadow-medium,
.xwpb-feature-row:hover .xwpb-feature-card.shadow-strong {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.xwpb-feature-title {
    margin: 0 0 12px 0;
    font-weight: 700;
    line-height: 1.3;
}

.xwpb-feature-desc {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 18px 0;
}

.xwpb-feature-desc p:last-child {
    margin-bottom: 0;
}

.xwpb-feature-action {
    margin-top: 18px;
}

.xwpb-feature-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.xwpb-feature-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* Stile responsive per smartphone (schermi piccoli < 576px) */
@media (max-width: 576px) {
    .xwpb-feature-row {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 18px;
    }

    .xwpb-feature-icon-col {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .xwpb-feature-card {
        width: 100% !important;
    }
}

/* ==========================================================================
   VIDEO EMBED RESPONSIVE IN FEATURE ROW / WIDGETS
   ========================================================================== */
.xwpb-feature-desc iframe,
.xwpb-feature-desc video {
    max-width: 100%;
    display: block;
}

.xwpb-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    margin: 14px 0;
    background-color: #000000;
}

.xwpb-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block;
}

/* ==========================================================================
   CAROSELLO & SLIDER PRODOTTI WOOCOMMERCE
   ========================================================================== */
.xwpb-product-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 6px 18px 22px 18px;
}

.xwpb-prod-slider-viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 8px 4px 14px 4px;
}

.xwpb-prod-slider-track {
    display: flex;
    gap: 18px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.xwpb-prod-slide {
    flex: 0 0 calc((100% - (18px * (var(--xwpb-ps-cols-desktop, 4) - 1))) / var(--xwpb-ps-cols-desktop, 4));
    max-width: calc((100% - (18px * (var(--xwpb-ps-cols-desktop, 4) - 1))) / var(--xwpb-ps-cols-desktop, 4));
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .xwpb-prod-slide {
        flex: 0 0 calc((100% - (18px * (var(--xwpb-ps-cols-tablet, 2) - 1))) / var(--xwpb-ps-cols-tablet, 2));
        max-width: calc((100% - (18px * (var(--xwpb-ps-cols-tablet, 2) - 1))) / var(--xwpb-ps-cols-tablet, 2));
    }
}

@media (max-width: 600px) {
    .xwpb-prod-slide {
        flex: 0 0 calc((100% - (18px * (var(--xwpb-ps-cols-mobile, 1) - 1))) / var(--xwpb-ps-cols-mobile, 1));
        max-width: calc((100% - (18px * (var(--xwpb-ps-cols-mobile, 1) - 1))) / var(--xwpb-ps-cols-mobile, 1));
    }
}

.xwpb-prod-card {
    background: var(--xwpb-ps-card-bg, #ffffff);
    border: 1px solid #e2e8f0;
    border-radius: var(--xwpb-ps-card-radius, 12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-sizing: border-box;
}

.xwpb-product-slider.has-card-shadow .xwpb-prod-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.xwpb-product-slider.has-card-shadow .xwpb-prod-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.xwpb-prod-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8fafc;
}

.xwpb-prod-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.xwpb-prod-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.xwpb-prod-card:hover .xwpb-prod-img {
    transform: scale(1.05);
}

.xwpb-prod-badge,
.xwpb-product-slider .xwpb-prod-badge,
.editor-styles-wrapper .xwpb-product-slider .xwpb-prod-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--xwpb-ps-badge-bg, #ef4444);
    color: var(--xwpb-ps-badge-color, #ffffff);
    font-size: var(--xwpb-ps-badge-size, 11.5px) !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
    text-transform: uppercase;
}

.xwpb-prod-info {
    padding: 14px 14px 16px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.xwpb-prod-title,
.xwpb-product-slider .xwpb-prod-title,
.xwpb-product-slider h3.xwpb-prod-title,
.editor-styles-wrapper .xwpb-product-slider .xwpb-prod-title,
.editor-styles-wrapper .xwpb-product-slider h3.xwpb-prod-title {
    font-size: var(--xwpb-ps-title-size, 14.5px) !important;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 8px 0;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.xwpb-prod-title a,
.xwpb-product-slider .xwpb-prod-title a,
.xwpb-product-slider h3.xwpb-prod-title a,
.editor-styles-wrapper .xwpb-product-slider .xwpb-prod-title a,
.editor-styles-wrapper .xwpb-product-slider h3.xwpb-prod-title a {
    color: inherit;
    font-size: var(--xwpb-ps-title-size, 14.5px) !important;
    text-decoration: none !important;
}

.xwpb-prod-title a:hover {
    color: #2563eb;
}

.xwpb-prod-rating {
    margin: 0 0 6px 0;
    font-size: 12px;
    line-height: 1;
    display: flex;
    justify-content: center;
}

.xwpb-prod-rating .star-rating {
    margin: 0 auto;
    font-size: 12px;
}

.xwpb-prod-price,
.xwpb-product-slider .xwpb-prod-price,
.editor-styles-wrapper .xwpb-product-slider .xwpb-prod-price {
    font-size: var(--xwpb-ps-price-size, 15.5px) !important;
    font-weight: 700;
    color: #0f172a;
    margin: 4px 0 12px 0;
}

.xwpb-prod-price .woocommerce-Price-amount,
.xwpb-prod-price bdi,
.xwpb-prod-price ins {
    font-size: inherit !important;
}

.xwpb-prod-price del {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 400;
    margin-right: 6px;
}

.xwpb-prod-price del .woocommerce-Price-amount {
    font-size: 13px !important;
}

.xwpb-prod-price ins {
    color: #ef4444;
    text-decoration: none;
}

.xwpb-prod-actions {
    margin-top: auto;
}

.xwpb-prod-cart-btn,
.xwpb-product-slider .xwpb-prod-cart-btn,
.editor-styles-wrapper .xwpb-product-slider .xwpb-prod-cart-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 12px !important;
    font-size: var(--xwpb-ps-btn-font-size, 14px) !important;
    font-weight: 600 !important;
    color: var(--xwpb-ps-btn-color, #ffffff) !important;
    background-color: var(--xwpb-ps-btn-bg, #2563eb) !important;
    border: none !important;
    border-radius: var(--xwpb-ps-btn-radius, 8px) !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease, filter 0.2s ease !important;
    cursor: pointer;
    box-sizing: border-box;
}

.xwpb-prod-cart-btn:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
}

.xwpb-prod-cart-btn.added {
    background-color: #10b981 !important;
}

.xwpb-prod-cart-btn.loading {
    opacity: 0.6;
}

.xwpb-prod-cart-btn.is-out-of-stock {
    background-color: #94a3b8 !important;
    cursor: not-allowed;
}

.xwpb-prod-nav-btn {
    position: absolute;
    top: calc(50% - 15px);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    padding: 0;
}

.xwpb-prod-nav-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: scale(1.08);
}

.xwpb-prod-prev {
    left: 0;
}

.xwpb-prod-next {
    right: 0;
}

@media (max-width: 768px) {
    .xwpb-product-slider {
        padding: 4px 8px 18px 8px;
    }
    .xwpb-prod-prev { left: 0; }
    .xwpb-prod-next { right: 0; }
}

.xwpb-prod-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 2px;
}

.xwpb-prod-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.25s ease;
}

.xwpb-prod-dot.active {
    width: 22px;
    border-radius: 8px;
    background: #2563eb;
}

/* ==========================================================================
   TIMER CONTO ALLA ROVESCIA (COUNTDOWN) OFFERTE PRODOTTI
   ========================================================================== */
.xwpb-prod-timer,
.xwpb-product-slider .xwpb-prod-timer,
.editor-styles-wrapper .xwpb-product-slider .xwpb-prod-timer {
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.2;
    transition: opacity 0.3s ease;
    font-size: var(--xwpb-ps-timer-size, 12px) !important;
}

/* Stile 1: Pill / Badge sovrapposto in basso sulla foto */
.xwpb-prod-timer.timer-style-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: var(--xwpb-ps-timer-bg, #0f172a);
    color: var(--xwpb-ps-timer-color, #ffffff);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: var(--xwpb-ps-timer-size, 11.5px) !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    z-index: 3;
    pointer-events: none;
    letter-spacing: 0.3px;
    font-variant-numeric: tabular-nums;
}

.xwpb-prod-timer.timer-style-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 2px;
}

/* Stile 2: Scatole numeriche separate (GG / ORE / MIN / SEC) */
.xwpb-prod-timer.timer-style-boxes {
    position: absolute;
    bottom: 8px;
    left: 6px;
    right: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 3;
    pointer-events: none;
}

.xwpb-prod-timer.timer-style-boxes .xwpb-t-box {
    background: var(--xwpb-ps-timer-bg, #0f172a);
    color: var(--xwpb-ps-timer-color, #ffffff);
    border-radius: 6px;
    padding: 3px 5px;
    min-width: 34px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
}

.xwpb-prod-timer.timer-style-boxes .xwpb-t-num {
    font-size: var(--xwpb-ps-timer-size, 12px) !important;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.xwpb-prod-timer.timer-style-boxes .xwpb-t-lbl {
    font-size: 7.5px;
    font-weight: 700;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1px;
}

/* Stile 3: Striscia urgenza orizzontale a piena larghezza sotto la foto */
.xwpb-prod-timer.timer-style-bar {
    width: 100%;
    background: var(--xwpb-ps-timer-bg, #0f172a);
    color: var(--xwpb-ps-timer-color, #ffffff);
    padding: 6px 12px;
    font-size: var(--xwpb-ps-timer-size, 11.5px) !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.xwpb-prod-timer.timer-style-bar .xwpb-t-bar-title {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.95;
}

.xwpb-prod-timer.timer-style-bar .xwpb-t-bar-title .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.xwpb-prod-timer.timer-style-bar .xwpb-t-bar-countdown {
    font-size: var(--xwpb-ps-timer-size, 12px) !important;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.4px;
}

/* =========================================================================
   6. BANNER CONTO ALLA ROVESCIA & MARKETING (xwpb-countdown-banner)
   ========================================================================= */
.xwpb-countdown-banner {
    box-sizing: border-box;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.xwpb-countdown-banner * {
    box-sizing: border-box;
}

/* Ombre Scheda */
.xwpb-countdown-banner.shadow-none {
    box-shadow: none !important;
}
.xwpb-countdown-banner.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.xwpb-countdown-banner.shadow-soft:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
}
.xwpb-countdown-banner.shadow-medium {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.xwpb-countdown-banner.shadow-medium:hover {
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.16);
}
.xwpb-countdown-banner.shadow-strong {
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
}
.xwpb-countdown-banner.shadow-strong:hover {
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
}

/* Messaggio di scadenza */
.xwpb-cb-expired-msg {
    padding: 24px 20px;
    text-align: center;
    background: #fef2f2;
    color: #991b1b;
    font-weight: 700;
    font-size: 16px;
    border-radius: inherit;
}
.xwpb-cb-expired-msg p {
    margin: 0;
}

/* Badge */
.xwpb-cb-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Titolo & Sottotitolo */
.xwpb-cb-title {
    margin: 0 0 8px 0;
    line-height: 1.25;
    font-weight: 800;
}
.xwpb-cb-subtitle {
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* =========================================================================
   ANIMAZIONI BADGE & TESTI (Micro-interazioni Banner)
   ========================================================================= */

/* Badge Pulse (Pulsazione Continua) */
.xwpb-cb-badge.anim-badge-pulse {
    animation: xwpbBadgePulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;
    transform-origin: center center !important;
    display: inline-block !important;
}
@keyframes xwpbBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--xwpb-badge-pulse-color, rgba(239, 68, 68, 0.7));
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 8px var(--xwpb-badge-pulse-fade, rgba(239, 68, 68, 0));
    }
}

/* Badge Bounce (Rimbalzo Attenzione) */
.xwpb-cb-badge.anim-badge-bounce {
    animation: xwpbBadgeBounce 2.2s ease infinite !important;
    transform-origin: center bottom !important;
    display: inline-block !important;
}
@keyframes xwpbBadgeBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Badge Glow (Bagliore / Riflesso di Luce) */
.xwpb-cb-badge.anim-badge-glow {
    position: relative !important;
    overflow: hidden !important;
    display: inline-block !important;
}
.xwpb-cb-badge.anim-badge-glow::after {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -80% !important;
    width: 50% !important;
    height: 200% !important;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.8), transparent) !important;
    transform: rotate(25deg) !important;
    animation: xwpbBadgeGlow 2.8s ease-in-out infinite !important;
    pointer-events: none !important;
}
@keyframes xwpbBadgeGlow {
    0% {
        left: -80%;
    }
    35%, 100% {
        left: 180%;
    }
}

/* Badge Pop (Pop-in con Zoom all'Ingresso) */
.xwpb-cb-badge.anim-badge-pop {
    animation: xwpbBadgePop 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) both !important;
    display: inline-block !important;
}
@keyframes xwpbBadgePop {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animazioni Testi: Fade Up (Dissolvenza dal Basso) */
.anim-text-fade_up {
    animation: xwpbTextFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both !important;
    display: inline-block !important;
}
@keyframes xwpbTextFadeUp {
    0% {
        transform: translateY(16px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animazioni Testi: Shimmer (Bagliore Cromato Titolo) */
.anim-text-shimmer {
    background: linear-gradient(90deg, currentColor 0%, #ffffff 50%, currentColor 100%) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: xwpbTextShimmer 3.5s linear infinite !important;
    display: inline-block !important;
}
@keyframes xwpbTextShimmer {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

/* Timer */
/* Timer Wrap & Stili Timer Conto alla Rovescia */
.xwpb-cb-timer-wrap {
    display: inline-flex;
    align-items: center;
}

/* Stile 1: Boxes (Scatole numeriche separate GG/ORE/MIN/SEC) */
.xwpb-cb-timer.timer-style-boxes {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.timer-style-boxes .xwpb-cb-timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 5px 7px;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.timer-style-boxes .xwpb-cb-timer-box .xwpb-cb-num {
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.timer-style-boxes .xwpb-cb-timer-box .xwpb-cb-lbl {
    font-weight: 700;
    opacity: 0.8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
}
.timer-style-boxes .xwpb-cb-timer-sep {
    font-size: 18px;
    font-weight: 900;
    color: #94a3b8;
    line-height: 1;
    margin-top: -4px;
}

/* Stile 2: Badge / Pillola Compatta con Icona Orologio (come Carosello Prodotti) */
.xwpb-cb-timer.timer-style-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 9999px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.timer-style-badge .xwpb-cb-clock-icon {
    font-size: 17px;
    width: 17px;
    height: 17px;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
}
.timer-style-badge .xwpb-cb-timer-pill-text {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.timer-style-badge .xwpb-cb-unit {
    font-size: 0.75em;
    font-weight: 700;
    opacity: 0.8;
    margin-right: 4px;
}

/* Stile 3: Bar / Minimal Urgenza Lineare (come Carosello Prodotti) */
.xwpb-cb-timer.timer-style-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.timer-style-bar .xwpb-cb-clock-icon {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
}
.timer-style-bar .xwpb-cb-bar-lbl {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
    white-space: nowrap;
}
.timer-style-bar .xwpb-cb-bar-countdown {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.timer-style-bar .xwpb-cb-unit {
    font-size: 0.8em;
    font-weight: 700;
    opacity: 0.8;
    margin-right: 4px;
}

/* Coupon Button (Click to Copy) */
.xwpb-cb-coupon-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.xwpb-cb-coupon-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}
.xwpb-coupon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1.5px dashed #3b82f6;
    color: #1e3a8a;
    padding: 6px 14px;
    border-radius: 9999px;
    font-weight: 800;
    letter-spacing: 0.8px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.xwpb-coupon-btn:hover {
    background: #eff6ff;
    border-color: #2563eb;
    transform: scale(1.02);
}
.xwpb-coupon-btn .xwpb-coupon-icon {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #3b82f6;
}
.xwpb-coupon-feedback {
    display: none;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: xwpbFadePop 0.25s ease forwards;
}
.xwpb-coupon-feedback::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #10b981;
}
.xwpb-coupon-btn.is-copied .xwpb-coupon-feedback {
    display: block;
}

@keyframes xwpbFadePop {
    from { opacity: 0; transform: translate(-50%, 5px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Header Row: Badge + Titolo Fissi */
.xwpb-cb-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.xwpb-countdown-banner.is-layout-card .xwpb-cb-header-row {
    justify-content: center;
}

/* Sottotitolo Scorrevole (Marquee Ticker su Riga 2) */
.xwpb-countdown-banner .xwpb-cb-marquee-wrap {
    display: block !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%) !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%) !important;
}
.xwpb-countdown-banner .xwpb-cb-marquee-track {
    display: inline-flex !important;
    align-items: center !important;
    width: max-content !important;
    white-space: nowrap !important;
    will-change: transform !important;
    animation: xwpbMarqueeScroll var(--xwpb-marquee-speed, 25s) linear infinite !important;
}
.xwpb-countdown-banner .xwpb-cb-marquee-wrap:hover .xwpb-cb-marquee-track {
    animation-play-state: paused !important;
}
.xwpb-countdown-banner .xwpb-cb-marquee-content {
    display: inline-flex !important;
    align-items: center !important;
    padding-right: 50px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.xwpb-countdown-banner .xwpb-cb-marquee-content .xwpb-cb-subtitle {
    margin: 0 !important;
    font-size: 13.5px !important;
    white-space: nowrap !important;
    opacity: 0.85 !important;
    flex-shrink: 0 !important;
    line-height: 1.35 !important;
    display: inline-block !important;
}

@keyframes xwpbMarqueeScroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* CTA Button */
.xwpb-cb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.xwpb-cb-btn:hover {
    opacity: 0.92;
    transform: translateY(-2px);
}

/* Layout 1: CARD (Scheda Promozionale Completa) */
.xwpb-countdown-banner.is-layout-card {
    padding: 36px 32px;
    text-align: center;
}
.xwpb-countdown-banner.is-layout-card .xwpb-cb-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.xwpb-countdown-banner.is-layout-card .xwpb-cb-action-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* Layout 2: BAR (Barra d'Urgenza Adattiva Fluida 1 o 2 Righe) */
.xwpb-countdown-banner.is-layout-bar {
    padding: 14px 24px;
}
.xwpb-countdown-banner.is-layout-bar .xwpb-cb-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    width: 100%;
}
.xwpb-countdown-banner.is-layout-bar .xwpb-cb-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    flex: 1 1 360px;
    min-width: 0;
    text-align: left;
}
.xwpb-countdown-banner.is-layout-bar .xwpb-cb-badge {
    margin: 0;
    padding: 4px 12px;
    font-size: 11.5px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.25;
    font-weight: 800;
    border-radius: 9999px;
}
.xwpb-countdown-banner.is-layout-bar .xwpb-cb-title {
    margin: 0;
    font-size: 17px !important;
    font-weight: 700;
    white-space: normal;
    line-height: 1.3;
}
.xwpb-countdown-banner.is-layout-bar .xwpb-cb-subtitle {
    margin: 0;
    font-size: 13.5px !important;
    opacity: 0.85;
    line-height: 1.35;
}
.xwpb-countdown-banner.is-layout-bar .xwpb-cb-action-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    flex-shrink: 0;
}
.xwpb-countdown-banner.is-layout-bar .timer-style-boxes .xwpb-cb-timer-box {
    min-width: 38px;
    padding: 3px 6px;
    border-radius: 6px;
}
.xwpb-countdown-banner.is-layout-bar .timer-style-boxes .xwpb-cb-timer-box .xwpb-cb-num {
    font-size: 15px !important;
}
.xwpb-countdown-banner.is-layout-bar .timer-style-boxes .xwpb-cb-timer-box .xwpb-cb-lbl {
    font-size: 9px !important;
    margin-top: 1px;
}
.xwpb-countdown-banner.is-layout-bar .timer-style-boxes .xwpb-cb-timer-sep {
    font-size: 15px;
    margin-top: -3px;
}
.xwpb-countdown-banner.is-layout-bar .timer-style-badge {
    padding: 5px 12px;
}
.xwpb-countdown-banner.is-layout-bar .timer-style-bar {
    padding: 5px 12px;
}
.xwpb-countdown-banner.is-layout-bar .xwpb-cb-btn {
    padding: 7px 18px;
    font-size: 13.5px !important;
}

/* Responsività Tablet e Schermi Medi: disposizione ordinata a 2 righe */
@media (max-width: 900px) {
    .xwpb-countdown-banner.is-layout-bar .xwpb-cb-inner {
        gap: 12px;
    }
    .xwpb-countdown-banner.is-layout-bar .xwpb-cb-info {
        flex: 1 1 100%;
        width: 100%;
    }
    .xwpb-countdown-banner.is-layout-bar .xwpb-cb-action-area {
        flex: 1 1 100%;
        width: 100%;
        justify-content: flex-start;
    }
}

/* Responsività Mobile (smartphone e schermi stretti < 640px) */
@media (max-width: 640px) {
    .xwpb-countdown-banner.is-layout-card {
        padding: 24px 16px;
    }
    .xwpb-countdown-banner.is-layout-bar {
        padding: 16px 14px;
    }
    .xwpb-countdown-banner.is-layout-bar .xwpb-cb-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }
    .xwpb-countdown-banner.is-layout-bar .xwpb-cb-info {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        width: 100%;
        gap: 8px;
    }
    .xwpb-countdown-banner.is-layout-bar .xwpb-cb-title {
        font-size: 18px !important;
    }
    .xwpb-countdown-banner.is-layout-bar .xwpb-cb-action-area {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 12px;
    }
    .xwpb-countdown-banner.is-layout-bar .xwpb-cb-btn,
    .xwpb-countdown-banner.is-layout-bar .xwpb-cb-coupon-wrap,
    .xwpb-countdown-banner.is-layout-bar .xwpb-coupon-btn {
        width: 100%;
        justify-content: center;
    }
    .xwpb-cb-timer.timer-style-badge,
    .xwpb-cb-timer.timer-style-bar {
        width: 100%;
        justify-content: center;
    }
    .timer-style-boxes .xwpb-cb-timer-box {
        min-width: 42px;
        padding: 4px 6px;
    }
}




