/* My Account: nav orizzontale sopra il contenuto, full-width.
   `flex: 0 0 100%` neutralizza eventuali parent flex-row del tema. */
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 100%;
    float: none !important;
    flex: 0 0 100%;
}

.woocommerce-MyAccount-navigation {
    text-align: center;
    background: #f8f9fb;
    border-radius: 24px;
    padding: 16px 24px;
    margin-bottom: 32px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.woocommerce-MyAccount-navigation ul li {
    list-style: none !important;
}

/* Override Divi/theme bullets injected via ::before */
.woocommerce-MyAccount-navigation ul li::before,
.woocommerce-MyAccount-navigation ul li::marker {
    content: none !important;
    display: none !important;
}

.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link {
    margin: 0;
}

.woocommerce-MyAccount-navigation-link a {
    display: inline-block;
    width: 230px;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    border-radius: 16px;
    background: rgb(13,110,253);
    color: rgb(255,255,255);
    padding: 8px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.woocommerce-MyAccount-navigation-link a:hover {
    color: rgb(255,255,255);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,110,253,0.3);
}

.woocommerce-MyAccount-navigation-link.is-active a {
    background: rgb(10,86,196);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.2);
}

.woocommerce-MyAccount-navigation-link--edw-login a {
    background: rgb(228,137,46);
}

.woocommerce-MyAccount-navigation-link--edw-login a:hover {
    box-shadow: 0 4px 12px rgba(228,137,46,0.35);
}

.woocommerce-MyAccount-navigation-link--edw-login.is-active a {
    background: rgb(199,114,30);
}

/* Dashboard greeting (sostituisce inline style in edp_custom.php) */
.edp-account-greeting {
    width: 100%;
    text-align: center;
}

.edp-account-greeting__title {
    margin-bottom: 40px;
}

.edp-account-greeting__image {
    max-width: 100%;
    height: auto;
}

/*nascondo bottone annulla abbonamento in area abbonamenti cliente*/
.subscription_details a.button.cancel {
	display:none;
}

/* Spaziatura fra pulsanti azione nelle tabelle My Account (ordini/abbonamenti).
   Forziamo display:block così si impilano sempre verticalmente e restano allineati a sinistra. */
.woocommerce-orders-table__cell-order-actions .woocommerce-button,
.woocommerce-orders-table__cell-subscription-actions .woocommerce-button {
    display: block;
    width: fit-content;
}

.woocommerce-orders-table__cell-order-actions .woocommerce-button + .woocommerce-button,
.woocommerce-orders-table__cell-subscription-actions .woocommerce-button + .woocommerce-button {
    margin-top: 4px;
}

/* Centro le colonne data nella tabella abbonamenti */
.woocommerce-orders-table__header-subscription-start-date,
.woocommerce-orders-table__cell-subscription-start-date,
.woocommerce-orders-table__header-subscription-end-date,
.woocommerce-orders-table__cell-subscription-end-date,
.woocommerce-orders-table__header-subscription-next-payment,
.woocommerce-orders-table__cell-subscription-next-payment {
    text-align: center;
}

/* Rendo immagini prodotti con class no_link_descrizione non cliccabili*/
.no_link_descrizione .wc-block-grid__product-link {
    pointer-events: none;
}

#ps-nvm-frame {
    display: none;
}

/* Bottoni*/
.bottone-arancione a.wp-block-button__link.wp-element-button {
    background: rgb(228,137,46);
    color: rgb(255,255,255);
    border-radius: 40px;
    font-size: 18px;
    font-weight: 400;
    border: 3px solid rgb(228,137,46);
    width: 250px;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
}

.bottone-arancione-deselezionato a.wp-block-button__link.wp-element-button {
    color: rgb(228,137,46);
    background: rgb(255,255,255);
    border-radius: 40px;
    font-size: 18px;
    font-weight: 400;
    border: 3px solid rgb(228,137,46);
    width: 250px;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
}

/* CHECKOUT - campi azienda nascosti di default, mostrati via JS quando selezionato "Azienda" */
#billing_company_field,
#billing_informative_label_field {
    display: none;
}

/* NASCONDO ORDINI AUTOGENERATI DA TABELLA ORDINI FRONTEND MYACCOUNT */
.edp_order_created_via_EDW {
    display: none;
}

/* ============================================================
   VIDEOTUTORIAL CPT
   ============================================================ */

/* Search bar */
.edp-vt-search-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.edp-vt-search-input-wrap {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.edp-vt-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    opacity: 0.5;
    pointer-events: none;
}

.edp-vt-search-input {
    width: 100%;
    padding: 9px 36px 9px 36px;
    border-radius: 24px;
    border: 1px solid #ccc;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.edp-vt-search-input:focus {
    border-color: currentColor;
}

/* Rimuove la X nativa del browser sull'input[type=search] */
.edp-vt-search-input::-webkit-search-cancel-button { display: none; }

.edp-vt-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.5;
    padding: 0 4px;
}

.edp-vt-search-clear:hover { opacity: 1; }

.edp-vt-search-count {
    font-size: 13px;
    opacity: 0.6;
    white-space: nowrap;
    text-align: center;
}

/* Stato loading griglia */
.edp-vt-grid.edp-vt-loading {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.15s;
}

/* Messaggio nessun risultato */
.edp-vt-no-results {
    grid-column: 1 / -1;
    text-align: center;
    opacity: 0.6;
    padding: 40px 0;
}

/* Tab filtro categorie */
.edp-vt-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
}

.edp-vt-tab {
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    padding: 7px 20px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}

.edp-vt-tab:hover {
    background: #e0e0e0;
    color: #222;
}

.edp-vt-tab.active {
    background: #222;
    color: #fff;
}

/* Griglia card */
.edp-vt-grid {
    display: grid;
    gap: 32px;
}

.edp-vt-wrapper[data-columns="2"] .edp-vt-grid { grid-template-columns: repeat(2, 1fr); }
.edp-vt-wrapper[data-columns="3"] .edp-vt-grid { grid-template-columns: repeat(3, 1fr); }
.edp-vt-wrapper[data-columns="4"] .edp-vt-grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .edp-vt-wrapper[data-columns="3"] .edp-vt-grid,
    .edp-vt-wrapper[data-columns="4"] .edp-vt-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .edp-vt-grid { grid-template-columns: 1fr !important; }
}

/* Card */
.edp-vt-card {
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.edp-vt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.14);
}

/* Thumbnail */
.edp-vt-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
    border-radius: 20px 20px 0 0;
}

.edp-vt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.edp-vt-card:hover .edp-vt-thumb img {
    transform: scale(1.04);
}

.edp-vt-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #222;
}

/* Pulsante play sovrapposto */
.edp-vt-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
    background: rgba(0,0,0,0.35);
    pointer-events: none;
}

.edp-vt-card:hover .edp-vt-play-btn {
    opacity: 1;
}

/* Badge durata */
.edp-vt-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Info sotto thumbnail */
.edp-vt-info {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.edp-vt-cat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
    opacity: 0.55;
}

.edp-vt-title {
    font-size: 18px !important;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.35;
}

.edp-vt-desc {
    font-size: 15px;
    line-height: 1.5;
    color: #4a5565;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.edp-vt-watch {
    font-size: 14px;
    color: #4a5565;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

/* ============================================================
   MODALE VIDEOTUTORIAL
   ============================================================ */

.edp-vt-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.edp-vt-modal.is-open {
    display: flex;
}

.edp-vt-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.edp-vt-modal-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

/* Chiudi */
.edp-vt-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 2;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Area video */
.edp-vt-modal-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    background: #000;
}

.edp-vt-modal-video iframe,
.edp-vt-modal-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Meta sotto il video */
.edp-vt-modal-meta {
    padding: 14px 20px 18px;
    background: #fff;
}

.edp-vt-modal-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0.7;
    display: block;
    margin-bottom: 4px;
}

.edp-vt-modal-title {
    font-size: 18px !important;
    font-weight: 700;
    margin: 0 0 6px;
    color: #111;
}

.edp-vt-modal-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #4a5565;
    margin: 0;
}

/* Blocca scroll body quando modale aperto */
body.edp-vt-modal-open {
    overflow: hidden;
}