/**
 * Estilos para botones de descarga y créditos de membresía
 */

/* Download Boxes */
.yith-wcmbs-product-download-box--needs-credits {
    background: #dedfff61 !important;
    z-index: 999999;
}

.yith-wcmbs-product-download-box--can-download {
    background: white;
    border-radius: 10px;
    padding-bottom: 0px !important;
    padding-top: 0px;
}

.yith-wcmbs-product-download-box--can-download .yith-wcmbs-download-button {
    margin-left: -25px;
}

.yith-wcmbs-product-download-box--can-download .yith-wcmbs-product-download-box__heading {
    display: none;
}

/* ✅ Contenedor de botones en una sola línea */
.wd-after-add-to-cart {
    display: flex;
    gap: 15px;               /* espacio entre botones */
    justify-content: center; /* centrado horizontal */
    align-items: center;
    flex-wrap: nowrap;       /* NO permite salto de línea */
    margin-top:-1px;
}

/* Download Buttons */
.yith-wcmbs-product-download-button,
.yith-wcmbs-download-links,
.yith-wcmbs-download-button {
    line-height: 1.5;
    cursor: pointer;
    text-decoration: none;
    color: white !important;
    background-color: black !important;

    /* ✅ clave para que NO se apilen */
    width: auto;
    max-width: none;

    /* tamaño consistente */
    min-width: 110px;

    border-radius: 10px !important;
    margin: 0 !important;               /* evita salto por margen */
    font-style: normal;
    text-align: center;
    font-family: 'Poppins';
    font-weight: 500;
    text-transform: unset;
    padding: 15px 28px !important;
    font-size: 18px !important;
    letter-spacing: -0.1px;

    /* ✅ mejor alineación */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hover */
.yith-wcmbs-product-download-button:hover,
.yith-wcmbs-download-links:hover,
.yith-wcmbs-download-button:hover {
    text-decoration: none;
    background-color: rgb(21, 6, 101) !important;
}

/* Ocultar créditos */
.yith-wcmbs-product-download-box__credits-after {
    display: none !important;
}

.Vip-Director-locked {
    width: 100%;
}

/* ✅ Responsive (opcional): en móvil que bajen a 1 por línea */
@media (max-width: 768px) {
    .wd-after-add-to-cart {
        flex-wrap: wrap;
    }

    .yith-wcmbs-download-button {
        width: 100%;
        min-width: 0;
    }
}


/* Membership Plans */
.yith-wcmbs-my-account-membership-container {
    background: transparent;
}

.yith-wcmbs-my-account-accordion h3.ui-corner-top {
    background: transparent !important;

}

.yith-wcmbs-membership-detail {
    padding: 20px;
    background: #0e0723;
}

.yith-wcmbs-membership-detail:nth-child(3n + 2) {
    background: #0e0723;
}

.yith-wcmbs-membership-detail.yith-wcmbs-membership-detail--status--active, .yith-wcmbs-membership-detail.yith-wcmbs-membership-detail--status--resumed {
    background: #0e0723;
}


.yith-wcmbs-my-account-accordion h3 {
    color: white !important;
}

/* Quitar la línea blanca debajo del título del acordeón */
.woocommerce-MyAccount-content .yith-wcmbs-my-account-accordion .ui-accordion-header{
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* Quitar la línea blanca arriba del contenido (donde empieza el bloque morado) */
.woocommerce-MyAccount-content .yith-wcmbs-my-account-membership-container,
.woocommerce-MyAccount-content .yith-wcmbs-my-account-accordion .ui-accordion-content{
  border-top: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* Por si la línea la genera un pseudo-elemento */
.woocommerce-MyAccount-content .yith-wcmbs-my-account-membership-container::before,
.woocommerce-MyAccount-content .yith-wcmbs-my-account-membership-container::after{
  content: none !important;
}
