/**
 * Estructura base del botón "Vaciar carrito".
 * Los colores, el radio y el padding se inyectan aparte como CSS dinámico
 * (Ivanivi_Woo_CC_Frontend::dynamic_css) con los valores de los ajustes.
 */
.ivanivi-woo-cc-wrap {
    margin: 14px 0;
    clear: both;
}

.ivanivi-woo-cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    border: none;
    box-shadow: none;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.ivanivi-woo-cc-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

.ivanivi-woo-cc-btn.is-loading {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

/* -----------------------------------------------------------------
 * Modal de confirmación (sustituye al confirm() nativo del navegador)
 * --------------------------------------------------------------- */
.ivanivi-woo-cc-modal-overlay {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.ivanivi-woo-cc-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}
.ivanivi-woo-cc-modal-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 26px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.4);
    transform: translateY(10px) scale(0.97);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: inherit;
}
.ivanivi-woo-cc-modal-overlay.is-visible .ivanivi-woo-cc-modal-box {
    transform: none;
}
.ivanivi-woo-cc-modal-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fef2f2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.ivanivi-woo-cc-modal-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    line-height: 28px;
}
.ivanivi-woo-cc-modal-title {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}
.ivanivi-woo-cc-modal-text {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.5;
    color: #475569;
}
.ivanivi-woo-cc-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.ivanivi-woo-cc-modal-actions button {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    padding: 11px 22px;
    border-radius: 10px;
    box-shadow: none;
    transition: filter 0.15s ease, background 0.15s ease;
}
.ivanivi-woo-cc-modal-cancel {
    background: #eef2f6;
    color: #334155;
}
.ivanivi-woo-cc-modal-cancel:hover {
    background: #e2e8f0;
}
.ivanivi-woo-cc-modal-confirm {
    background: #d62c2c;
    color: #ffffff;
}
.ivanivi-woo-cc-modal-confirm:hover {
    filter: brightness(0.93);
}
