/* Estilos limitados a los botones de cotización. */
body .kpwa-actions {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    position: relative !important;
    inset: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-sizing: border-box;
    clear: both;
}

body .kpwa-actions > a.kpwa-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    min-height: 48px;
    height: auto !important;
    max-width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: normal !important;
    text-indent: 0 !important;
    overflow: visible !important;
    position: relative !important;
    inset: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background-image: none !important;
    cursor: pointer;
    transition: background-color .18s ease !important;
}

body .kpwa-actions > a.kpwa-button::before,
body .kpwa-actions > a.kpwa-button::after {
    content: none !important;
    display: none !important;
}

body .kpwa-actions > a.kpwa-button--view {
    flex: 1 1 130px;
    background-color: #e51635 !important;
    color: #fff !important;
}
body .kpwa-actions > a.kpwa-button--view:hover {
    background-color: #c8112d !important;
}
body .kpwa-actions > a.kpwa-button--whatsapp {
    flex: 1.35 1 184px;
    background-color: #1cd263 !important;
    color: #06150c !important;
}
body .kpwa-actions > a.kpwa-button--whatsapp:hover {
    background-color: #17bd57 !important;
}
body .kpwa-actions > a.kpwa-button:focus-visible {
    outline: 3px solid #182c47 !important;
    outline-offset: 3px !important;
}

body .kpwa-actions .kpwa-label {
    display: block !important;
    min-width: 0;
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}
body .kpwa-actions svg.kpwa-icon {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex: 0 0 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
    color: inherit !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Favicon como imagen cuadrada: conservar sus proporciones en WoodMart. */
body .kpwa-actions img.kpwa-icon--whatsapp {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    flex: 0 0 18px !important;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
    object-position: center !important;
    align-self: center;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
}

body .kpwa-actions--single {
    justify-content: flex-start;
    margin: 20px 0 !important;
}
body .kpwa-actions--single > a.kpwa-button {
    flex: 0 1 auto;
    min-height: 52px;
    min-width: min(245px, 100%);
    padding: 14px 22px !important;
    font-size: 14px !important;
}

/* Cubrir formularios renderizados directamente por widgets del tema. */
body.kpwa-enabled .summary form.cart,
body.kpwa-enabled .wd-single-add-cart form.cart,
body.kpwa-enabled .elementor-widget-woocommerce-product-add-to-cart form.cart,
body.kpwa-enabled .wd-sticky-btn,
body.kpwa-enabled .woodmart-sticky-btn,
body .kpwa-card-ready .add_to_cart_button,
body .kpwa-card-ready .product_type_external,
body .kpwa-card-ready .product_type_grouped,
body .kpwa-card-ready .added_to_cart {
    display: none !important;
}

@media (max-width: 600px) {
    body .kpwa-actions--loop {
        flex-direction: column;
        gap: 8px;
        margin-top: 12px !important;
    }
    body .kpwa-actions--loop > a.kpwa-button {
        flex: 0 1 auto;
        width: 100%;
        padding: 11px 8px !important;
        font-size: 12px !important;
        gap: 6px !important;
    }
    body .kpwa-actions--single > a.kpwa-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .kpwa-actions > a.kpwa-button { transition: none !important; }
}
