/* =============================================
   WDT Button Global Override
   Forces red pill buttons across all .wdt-button
   elements, removing SixPack/WDT theme defaults.
   ============================================= */

/* --- Reset: Kill all theme gradients, overlays, shadows, pseudo-elements --- */
.wdt-button,
.wdt-button.wdt-btn-default,
.wdt-button.wdt-btn-primary,
.wdt-button.wdt-btn-secondary,
.wdt-button.wdt-btn-outline,
.wdt-button[class*="wdt-btn"],
a.wdt-button,
button.wdt-button,
.wdt-button-wrap .wdt-button,
.wdt-button-wrapper .wdt-button,
.wdt-column .wdt-button,
.wdt-row .wdt-button,
.wdt-section .wdt-button {
    background: #e60023 !important;
    background-color: #e60023 !important;
    background-image: none !important;
    background-blend-mode: normal !important;
    border: none !important;
    border-radius: 9999px !important;
    color: #ffffff !important;
    box-shadow: none !important;
    text-shadow: none !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: visible !important;
    transition: background-color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* --- Nuke all pseudo-elements (overlays, animations, olive backgrounds) --- */
.wdt-button::before,
.wdt-button::after,
.wdt-button *::before,
.wdt-button *::after,
.wdt-button[class*="wdt-btn"]::before,
.wdt-button[class*="wdt-btn"]::after {
    display: none !important;
    content: none !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* --- Button text color --- */
.wdt-button,
.wdt-button span,
.wdt-button a,
.wdt-button .wdt-button-text,
.wdt-button .wdt-btn-text {
    color: #ffffff !important;
}

/* --- Icon circle (normal state) --- */
.wdt-button .wdt-btn-icon,
.wdt-button .wdt-button-icon,
.wdt-button .wdt-icon-wrap,
.wdt-button [class*="wdt-icon"],
.wdt-button [class*="btn-icon"] {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 2px solid #000000 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
    transition: background-color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* --- Icon color (normal state) --- */
.wdt-button .wdt-btn-icon i,
.wdt-button .wdt-btn-icon svg,
.wdt-button .wdt-button-icon i,
.wdt-button .wdt-button-icon svg,
.wdt-button .wdt-icon-wrap i,
.wdt-button .wdt-icon-wrap svg,
.wdt-button [class*="wdt-icon"] i,
.wdt-button [class*="wdt-icon"] svg,
.wdt-button [class*="btn-icon"] i,
.wdt-button [class*="btn-icon"] svg {
    color: #000000 !important;
    fill: #000000 !important;
    transition: color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                fill 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* =============================================
   HOVER STATE
   ============================================= */

.wdt-button:hover,
.wdt-button:focus,
.wdt-button.wdt-btn-default:hover,
.wdt-button.wdt-btn-primary:hover,
.wdt-button.wdt-btn-secondary:hover,
.wdt-button.wdt-btn-outline:hover,
.wdt-button[class*="wdt-btn"]:hover,
a.wdt-button:hover,
button.wdt-button:hover,
.wdt-button-wrap .wdt-button:hover,
.wdt-button-wrapper .wdt-button:hover {
    background: #c4001d !important;
    background-color: #c4001d !important;
    background-image: none !important;
    color: #ffffff !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* --- Hover pseudo kill --- */
.wdt-button:hover::before,
.wdt-button:hover::after,
.wdt-button:hover *::before,
.wdt-button:hover *::after {
    display: none !important;
    content: none !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* --- Hover text color --- */
.wdt-button:hover span,
.wdt-button:hover a,
.wdt-button:hover .wdt-button-text,
.wdt-button:hover .wdt-btn-text {
    color: #ffffff !important;
}

/* --- Icon circle (hover state) --- */
.wdt-button:hover .wdt-btn-icon,
.wdt-button:hover .wdt-button-icon,
.wdt-button:hover .wdt-icon-wrap,
.wdt-button:hover [class*="wdt-icon"],
.wdt-button:hover [class*="btn-icon"] {
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    border-color: #000000 !important;
}

/* --- Icon color (hover state) --- */
.wdt-button:hover .wdt-btn-icon i,
.wdt-button:hover .wdt-btn-icon svg,
.wdt-button:hover .wdt-button-icon i,
.wdt-button:hover .wdt-button-icon svg,
.wdt-button:hover .wdt-icon-wrap i,
.wdt-button:hover .wdt-icon-wrap svg,
.wdt-button:hover [class*="wdt-icon"] i,
.wdt-button:hover [class*="wdt-icon"] svg,
.wdt-button:hover [class*="btn-icon"] i,
.wdt-button:hover [class*="btn-icon"] svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* =============================================
   RESPONSIVE — Mobile & Tablet
   ============================================= */

@media (max-width: 1024px) {
    .wdt-button,
    .wdt-button[class*="wdt-btn"],
    a.wdt-button,
    button.wdt-button {
        padding: 11px 24px !important;
        gap: 8px !important;
        font-size: 14px !important;
    }

    .wdt-button .wdt-btn-icon,
    .wdt-button .wdt-button-icon,
    .wdt-button .wdt-icon-wrap,
    .wdt-button [class*="wdt-icon"],
    .wdt-button [class*="btn-icon"] {
        width: 28px !important;
        height: 28px !important;
    }
}

@media (max-width: 767px) {
    .wdt-button,
    .wdt-button[class*="wdt-btn"],
    a.wdt-button,
    button.wdt-button {
        padding: 10px 20px !important;
        gap: 8px !important;
        font-size: 13px !important;
        justify-content: center !important;
    }

    .wdt-button .wdt-btn-icon,
    .wdt-button .wdt-button-icon,
    .wdt-button .wdt-icon-wrap,
    .wdt-button [class*="wdt-icon"],
    .wdt-button [class*="btn-icon"] {
        width: 26px !important;
        height: 26px !important;
    }
}
