
:root{
  --arx-brand:#EE2624;
  --arx-ink:#111827;
  --arx-muted:#6b7280;
  --arx-radius:14px;
  --arx-shadow:0 8px 24px rgba(15,23,42,.08);
}

/* Contenedor general */
.wepb-plans-wrapper {
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    max-width: 1000px;
    margin: auto;
}
/* Plan activo */
.wepb-user-plan {
    background: #f4f6f8;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.wepb-user-plan h3 {
    margin-top: 0;
    font-size: 18px;
    color: #ee2624;
    padding: 15px 0;
}
/* Planes disponibles */
.wepb-available-plans h3 {
    margin-bottom: 20px;
    font-size: 1.3em;
    color: #444;
}
.wepb-plan-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
/* Caja de plan */
.plan-box {
    flex: 1 1 300px;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}
.plan-box:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.plan-box h4 {
    margin-top: 0;
    color: #222;
}
/* Botón plano */
.wepb-btn {
    display: inline-block;
    background: #ee2624;
    color: #fff;
    padding: 10px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease;
}
.wepb-btn span {
    color: #fff;
}
.wepb-btn:hover {
    background: var(--arx-brand);
    color: #fff;
}
.wepb-btn:visited {
    background: var(--arx-brand);
    color: #fff;
}
.wepb-btn:active {
    background: var(--arx-brand);
    color: #fff;
}
.wepb-user-invoice table {
    background-color: #f9f9f9;
}
.wepb-user-invoice th {
    background-color: #eee;
    font-weight: bold;
    font-size: 15px;
}
.wepb-user-invoice tr {
    font-size: 12px;
}
.bold {
    font-weight: bold;
}


/* styles woocommerce */

.wc-block-checkout__form input{
    border-radius: 10px !important;
}

.wp-block-woocommerce-checkout-order-summary-block{
    border-radius: 10px !important;
    box-shadow: #d7d7d7 0 11px 13px 0px;
}

.wc-block-components-button{
    background-color: var(--arx-brand) !important;
    border-radius: 10px;
}

.wc-block-components-checkout-place-order-button__text{
    color: #fff !important;
}

.wc-block-components-button__text{
    color: #fff !important;
}

.wc-block-components-radio-control-accordion-option--checked-option-highlighted{
    box-shadow: var(--arx-brand) 0 1px 0px 2px !important;
    border-radius: 20px !important;
}

.wc-block-components-title.wc-block-components-title{
    font-weight: 700;
}

.wc-block-cart__submit-button--loading .wc-block-components-button__text{
    visibility: visible !important;
}


/* Overlay */
.highlight-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.25s ease-out;
}

/* Modal box */
.highlight-modal {
    background: #fff;
    width: 100%;
    max-width: 421px;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    text-align: center;
    animation: scaleIn 0.25s ease-out;
}

/* Title */
.highlight-modal h2 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #222;
}

/* Text */
.highlight-modal p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

/* Close (X) button */
.highlight-close {
    position: absolute;
    top: -8px;
    right: -6px;
    background: transparent;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.highlight-close:hover {
    color: #000;
}

/* OK button */
.highlight-ok {
    background: var(--arx-brand);
    color: #fff;
    border: none;
    padding: 10px 26px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.highlight-better{
    background: #169f72;
    color: #fff;
    border: none;
    padding: 10px 26px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.highlight-better svg{
    width: 15px;
    margin-right: 3px;
    float: left;
}

.highlight-ok:hover {
    background: #990b09;
    transform: translateY(-1px);
}

.highlight-ok:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .highlight-modal {
        margin: 0 15px;
        padding: 25px 20px;
    }
}



/* Loader overlay */
.highlight-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

/* Spinner */
.highlight-loader {
    width: 48px;
    height: 48px;
    border: 4px solid #ddd;
    border-top-color: var(--arx-brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Contenedor del switch */
.es-table .es-column--featured .featured-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

/* Ocultar el checkbox real */
.es-table .es-column--featured .featured-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute; /* aseguramos que no interfiera */
}

/* Fondo del switch */
.es-table .es-column--featured .featured-switch .slider-featured {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--arx-brand);
    border-radius: 24px;
    transition: background-color 0.3s;
    display: block; /* imprescindible para que ::before funcione */
}

.es-table .es-column--featured .featured-switch .slider-featured .on {
    color: #fff;
    text-align: left;
    width: 100%;
    position: absolute;
    font-size: 11px;
    top: 0.30rem;
    left: 5px;
}

.es-table .es-column--featured .featured-switch .slider-featured .off {
    color: #fff;
    text-align: right;
    width: 100%;
    position: absolute;
    font-size: 11px;
    top: 0.30rem;
    right: 3px;
}

/* El botón deslizante */
.es-table .es-column--featured .featured-switch .slider-featured::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    display: inline-block;
}

/* Estado checked */
.es-table .es-column--featured .featured-switch input:checked + .slider-featured {
    background-color: #169f72;
}

.es-table .es-column--featured .featured-switch input:checked + .slider-featured::before {
    transform: translateX(22px);
}

/* Estado disabled */
.es-table .es-column--featured .featured-switch input:disabled + .slider-featured {
    opacity: 0.4;
    cursor: not-allowed;
}



