/* custom css start */
.net4gym-orders-order-cancel-confirm .form-actions .dialog-cancel {
    margin-bottom: 0 !important;
    margin-top: 20px !important;
}

.net4gym-orders-order-cancel-confirm .form-actions {
    gap: 10px !important;
}

/* custom css end */
.routine-exercises-table-wrapper {
    max-width: 1180px !important;
    margin: 20px 0 !important;
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.routine-session-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 20px 0 12px !important;
}

.routine-exercises-table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    background: #fff !important;
}

.routine-exercises-table thead th {
    background: #f6f6f6 !important;
    color: #222 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 12px !important;
    border: 1px solid #ddd !important;
    text-align: left !important;
}

.routine-exercises-table tbody td {
    padding: 12px !important;
    border: 1px solid #ddd !important;
    vertical-align: middle !important;
    font-size: 14px !important;
    color: #222 !important;
}

.routine-col-thumb {
    width: 90px !important;
}

.routine-col-thumb img {
    width: 58px !important;
    height: 58px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    display: block !important;
}

.routine-col-exercise {
    width: 280px !important;
    font-weight: 600 !important;
}

.routine-col-series,
.routine-col-reps,
.routine-col-load,
.routine-col-rpe {
    width: 90px !important;
}

.routine-col-rest {
    width: 180px !important;
}

.exercise-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.exercise-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.exercise-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.exercise-modal-content img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 10px;
}

/* Exercise detail carousel */
.exercise-gallery {
    margin-top: 20px;
    padding: 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    max-width: 520px;
}

.exercise-main-image {
    text-align: center;
    margin-bottom: 12px;
}

.exercise-main-image img {
    width: 100%;
    max-width: 420px;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

.exercise-carousel-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.exercise-thumb-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid #ddd;
}

.exercise-thumb-img:hover {
    border-color: #d71920;
}



/* REMOVE GAP */
.exercise-main-image {
    width: 100%;
    height: 320px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
}

/* MAKE IMAGE FULL WIDTH OF DARK BOX */
.exercise-main-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    display: block;
    margin: 0 !important;
    border-radius: 10px;
}



/* ============================= */
/* Create Routine Button UI FIX */
/* ============================= */

.view-id-staff_routines .view-header a,
.view .view-header a[href*="/node/add"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #d71920 !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    margin: 15px 0 !important;
    border: none !important;
}

/* Hover effect */
.view-id-staff_routines .view-header a:hover,
.view .view-header a[href*="/node/add"]:hover {
    background: #b9151b !important;
}

.views-exposed-form .js-form-item-field-coach-target-id {
    display: none !important;
}


/* My Routines: do not hide sidebar exposed search (region facets). Only target a duplicate form inside main column if present. */
.path-my-routines .container_center .views-exposed-form,
.path-my-routines .container_center .views-exposed-form .form-actions {
    display: none !important;
}

/* Convert action icon to button */
.path-my-routines td.views-field-view-node a,
.path-my-routines td.views-field-operations a,
.path-my-routines .views-field-nothing a {
    background: #e31b23 !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-size: 0 !important;
}

/* Show "View" text */
.path-my-routines td.views-field-view-node a::after,
.path-my-routines td.views-field-operations a::after,
.path-my-routines .views-field-nothing a::after {
    content: "View";
    font-size: 14px !important;
}

/* Explicitly hide edit and archive operations on client routines view */
.path-my-routines .na-routines-edit-inline,
.path-my-routines .na-routines-archive-inline,
.path-my-routines a[href*="/edit"],
.path-my-routines a[href*="/archive"],
.member-my-routines-page .na-routines-edit-inline,
.member-my-routines-page .na-routines-archive-inline {
    display: none !important;
}

.path-my-routines .messages--warning,
.path-my-routines .alert-warning {
    display: none !important;
}



.path-my-routines .messages--warning,
.path-my-routines .alert-warning,
.path-my-routines [class*="messages--warning"] {
    display: none !important;
}


















label {
    display: flex;
    justify-content: left;
}

/* button#edit-field-routine-sessions-0-actions-delete {
    position: relative;
    left: -300px;
    top: -58px;
} */






.routine-inline-actions {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
}

.routine-inline-actions button {
    margin: 0 !important;
}

/* hide drag/order column only */
#field-routine-sessions-values td.field-multiple-drag,
#field-routine-sessions-values td.delta-order,
#field-routine-sessions-values .tabledrag-handle,
#field-routine-sessions-values .tabledrag-toggle-weight-wrapper {
    display: none !important;
}

/* main content full width */
#field-routine-sessions-values td {
    width: 100% !important;
}

/* buttons alignment */
.routine-inline-actions {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    margin-bottom: 15px !important;
}

/* remove drag + order columns */
#field-routine-sessions-values td.field-multiple-drag,
#field-routine-sessions-values td.delta-order,
#field-routine-sessions-values .tabledrag-handle,
#field-routine-sessions-values .tabledrag-toggle-weight-wrapper {
    display: none !important;
}


/* Common badge style */
.status-btn {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* Active → light green (professional) */
.status-Active {
    background: rgba(40, 167, 69, 0.15);
    /* light green */
    color: #28a745;
}

/* Draft → orange */
.status-Draft {
    background: rgba(255, 193, 7, 0.2);
    color: #d39e00;
}

/* Archived → grey */
.status-Archived {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}


/* 🔵 Table header blue */
table thead th {
    background: black !important;
    /* Bootstrap blue */
    color: #ffffff !important;
    font-weight: 600;
    border: none;
}

/* Table header rounded look (optional professional) */
table thead th:first-child {
    border-top-left-radius: 8px;
}

table thead th:last-child {
    border-top-right-radius: 8px;
}

/* 🖤 Table body text black */
table tbody td {
    color: #000000 !important;
    font-weight: 500;
}

/* Links (like test, admin) */
table tbody td a {
    color: #000000 !important;
    text-decoration: none;
}

/* Hover effect (clean UI) */
table tbody tr:hover {
    background: #f5f7fa;
}

/* View button blue */
.views-field-operations .button,
.views-field-operations .btn,
.views-field-operations a {
    background: #d41616 !important;
    border-color: #d41616 !important;
    color: #fff !important;
}

/* Hover effect */
.views-field-operations .button:hover,
.views-field-operations .btn:hover,
.views-field-operations a:hover {
    background: #d41616 !important;
    border-color: #d41616 !important;
}






.path-my-routines .views-field-view-node-2 a {
    background: #d41616 !important;
    color: #ffffff !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0 !important;
    text-decoration: none !important;
    display: inline-block !important;
    min-width: 70px;
    text-align: center;
}

.path-my-routines .views-field-view-node-2 a::after {
    content: "View";
    font-size: 14px !important;
}


.path-my-routines .views-field-view-node-2 a:hover {
    background: #d41616 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(227, 27, 35, 0.25);
    transform: translateY(-1px);
}



.status-btn {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.status-Active {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.status-Draft {
    background: rgba(255, 193, 7, 0.22);
    color: #d39e00;
}

.status-Archived {
    background: rgba(108, 117, 125, 0.22);
    color: #6c757d;
}




/* Fix Actions column alignment */
.path-my-routines th.views-field-view-node-2,
.path-my-routines td.views-field-view-node-2,
.path-my-routines th.views-field-operations,
.path-my-routines td.views-field-operations {
    text-align: center !important;
    vertical-align: middle !important;
    width: 220px !important;
}

/* Center View button inside Actions cell */
.path-my-routines td.views-field-view-node-2 a,
.path-my-routines td.views-field-operations a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 78px !important;
    height: 42px !important;
    margin: 0 auto !important;
    padding: 0 18px !important;
}



/* Common base for all status buttons */
.status-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    /* sab same width */
    height: 36px;
    /* same height */
    padding: 0 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}


.status-btn.status-draft {
    background: #e8d3a3 !important;
    color: #b88700 !important;
}


.status-btn.status-active {
    background: #c8e6c9 !important;
    color: #2e7d32 !important;
}


.status-btn.status-archived {
    background: #d6d8db !important;
    color: #6c757d !important;
}

/* FIX extra space in header area */
.counters-view-header {
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove unnecessary height */
.counters-view-header:empty {
    display: none !important;
}

/* If flex is causing space */
.counters-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Reduce spacing below */
.counters-view-header+.view-content {
    margin-top: 10px !important;
}


/* FORCE button look — follow Gestión → Interfaz primary (not fixed red). */
a.btn.btn-primary {
    display: inline-block !important;
    background-color: var(--bs-primary) !important;
    border: 1px solid var(--bs-primary) !important;
    color: #fff !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 500;
}

/* hover */
a.btn.btn-primary:hover {
    background-color: color-mix(in srgb, var(--bs-primary) 88%, #000) !important;
    border-color: color-mix(in srgb, var(--bs-primary) 88%, #000) !important;
    color: #fff !important;
}




/* Paragraph session full width fix */
.field--name-field-routine-sessions table td {
    width: 100%;
}

/* Inner wrapper full width */
.field--name-field-routine-sessions .form-wrapper,
.field--name-field-routine-sessions .js-form-wrapper {
    width: 100%;
}

/* Input & textarea full stretch */
.field--name-field-routine-sessions .form-control,
.field--name-field-routine-sessions input,
.field--name-field-routine-sessions textarea {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
}






.formsubmit {
    padding: 6px;
}

/* Remove Eliminate button (exercise/session delete) */
button[id*="actions-delete"] {
    display: none !important;
}

div#edit-actions {
    display: flex;
}




/* All action buttons equal */
#edit-actions input,
#edit-actions .button {
    height: 42px;
    position: relative;
    min-width: 140px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    top: 7px;
}

/* Preview controls equal UI */
.node-preview-container {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 22px 28px !important;
}

/* Back + Change same size */
.node-preview-container .node-preview-backlink,
.node-preview-container input[type="submit"],
.node-preview-container button {
    height: 52px !important;
    min-width: 220px !important;
    padding: 0 22px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* Back button outline */
.node-preview-container .node-preview-backlink {
    background: #fff !important;
    color: #d71920 !important;
    border: 1px solid #d71920 !important;
    text-decoration: none !important;
}

/* Change button red */
.node-preview-container input[type="submit"],
.node-preview-container button {
    background: #d71920 !important;
    color: #fff !important;
    border: 1px solid #d71920 !important;
}

/* Select same height */
.node-preview-container select {
    height: 52px !important;
    min-width: 150px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
}


/* Hide last empty column */
/* #field-routine-sessions-values td:last-child {
    display: none !important;
} */

/* Hide only "to Exercises" text */
/* [id*="field-exercises-add-more-wrapper"] em {
    display: none !important;
} */


/* Hide remaining "to" text */
[id*="field-exercises-add-more-wrapper"] .clearfix {
    font-size: 0 !important;
}

/* Keep "Agregar Exercise in Session" visible */
[id*="field-exercises-add-more-wrapper"] .clearfix::before {
    content: "Agregar Exercise in Session";
    font-size: 16px !important;
    color: #d71920 !important;
}




table tbody tr:hover {
    background: inherit !important;
}

#field-routine-sessions-values td:nth-child(3),
#field-routine-sessions-values th:nth-child(3) {
    display: none !important;
}

form .field-multiple-table {
    margin: 0;
    width: 1344px !important;
    margin-left: -14px;
}


/* Staff routine action columns */
table.views-table th.views-field-view-node,
table.views-table th.views-field-edit-node,
table.views-table th.views-field-delete-node,
table.views-table td.views-field-view-node,
table.views-table td.views-field-edit-node,
table.views-table td.views-field-delete-node {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    padding: 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
}

/* Icon/link exact center */
table.views-table td.views-field-view-node a,
table.views-table td.views-field-edit-node a,
table.views-table td.views-field-delete-node a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    height: 64px !important;
    margin: 0 auto !important;
    line-height: 1 !important;
}

/* If Drupal wraps icon inside .field-content */
table.views-table td.views-field-view-node .field-content,
table.views-table td.views-field-edit-node .field-content,
table.views-table td.views-field-delete-node .field-content {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.views-table th.views-field-view-node {
    display: flex;
    justify-content: end;
    position: absolute;
    right: 265px;
    top: 180px;
}


/* Fix Training Tables text -> Button */
a[href^="/training-tables"] {
    display: inline-block !important;
    background: #ff5733 !important;
    color: #fff !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    margin: 50px 0 10px 20px !important;
}

/* Remove font tag effect */
a[href^="/training-tables"] font {
    color: inherit !important;
    font-family: inherit !important;
}

/* Hover */
a[href^="/training-tables"]:hover {
    background: #e64a2e !important;
    color: #fff !important;
}



a[href^="/training-tables"] {
    position: absolute !important;
    top: 90px !important;
    /* adjust karo */
    left: 80px !important;
    /* sidebar ton thoda right */
    z-index: 9999;
}

/* Net4Gym staff: scroll micro-motion (theme js/staff-scroll-parallax.js sets --n4g-scroll-y on html). */
:root {
    --n4g-scroll-y: 0;
}

/* ==========================================================================
   Routine Member Cards (/my-routines & member assigned routines)
   ========================================================================== */
.routine-member-cards-container {
    width: 100%;
}

.routine-member-card {
    background: #f4f5f7;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.routine-member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.routine-member-card__main-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    padding: 16px;
    gap: 14px;
    align-items: flex-start;
}

.routine-member-card__thumb-wrapper {
    width: 82px;
    height: 82px;
    min-width: 82px;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.routine-member-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.routine-member-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #495057 0%, #212529 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8f9fa;
    font-size: 1.8rem;
}

.routine-member-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.routine-member-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.routine-member-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.routine-status-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
}

.routine-status-badge.status-Active {
    background: rgba(40, 167, 69, 0.15);
    color: #1e7e34;
}

.routine-status-badge.status-Draft {
    background: rgba(255, 193, 7, 0.22);
    color: #856404;
}

.routine-status-badge.status-Archived {
    background: rgba(108, 117, 125, 0.2);
    color: #495057;
}

.routine-member-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: #6c757d;
}

.routine-member-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.routine-member-card__progress-wrap {
    margin-top: 4px;
}

.routine-member-card__progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    margin-bottom: 4px;
}

.routine-member-card__progress-label {
    color: #6c757d;
    font-weight: 500;
}

.routine-member-card__progress-pct {
    color: #e31b23;
    font-weight: 700;
}

.routine-member-card__progress-bar {
    height: 7px !important;
    border-radius: 4px !important;
    background-color: #dee2e6 !important;
    overflow: hidden;
    margin-bottom: 0 !important;
}

.routine-member-card__progress-bar .progress-bar {
    background: linear-gradient(90deg, #e31b23 0%, #b9151b 100%) !important;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.routine-member-card__actions {
    padding: 0 16px 16px 16px;
}

.routine-member-card__view-btn {
    background: #e31b23 !important;
    border-color: #e31b23 !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 8px;
    padding: 8px 16px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(227, 27, 35, 0.2);
    transition: all 0.2s ease;
}

.routine-member-card__view-btn:hover {
    background: #b9151b !important;
    border-color: #b9151b !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(227, 27, 35, 0.3);
}

@media (max-width: 575.98px) {
    .routine-member-card__main-link {
        padding: 12px;
        gap: 12px;
    }

    .routine-member-card__thumb-wrapper {
        width: 72px;
        height: 72px;
        min-width: 72px;
    }

    .routine-member-card__actions {
        padding: 0 12px 12px 12px;
    }
}


@media (prefers-reduced-motion: no-preference) {
    body.user-logged-in .container_center {
        transform: translate3d(0, calc(var(--n4g-scroll-y, 0) * 0.006px), 0);
        transition: transform 0.15s linear;
    }
}

/* ==========================================================================
   Mobile Bottom Navigation Bar (< 992px) & Fullscreen Mobile Menu (100%)
   ========================================================================== */
.n4g-bottom-bar {
    display: none;
}

@media (max-width: 991.98px) {
    /* Hide desktop staff left sidebar on mobile to prevent horizontal overflow and displacement */
    .container_left,
    .container_body .container_left:has([data-intranet-sidebar-menu]),
    .region-sidebar-first:has([data-intranet-sidebar-menu]) {
        display: none !important;
    }

    /* Prevent mobile horizontal shift */
    html,
    body {
        overflow-x: hidden !important;
    }

    .n4g-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        min-height: 60px;
        height: calc(60px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-sizing: border-box;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
        display: flex;
        align-items: center;
        justify-content: space-around;
        z-index: 1040;
    }

    .n4g-bottom-bar__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 60px;
        max-height: 60px;
        box-sizing: border-box;
        text-decoration: none !important;
        color: #64748b !important;
        background: none;
        border: none;
        padding: 4px 0;
        transition: color 0.15s ease;
        cursor: pointer;
        min-width: 0;
    }

    .n4g-bottom-bar__item:hover,
    .n4g-bottom-bar__item:focus {
        color: #e31b23 !important;
    }

    .n4g-bottom-bar__item.is-active {
        color: #e31b23 !important;
        font-weight: 700;
    }

    .n4g-bottom-bar__icon {
        font-size: 1.25rem;
        line-height: 1;
        margin-bottom: 3px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .n4g-bottom-bar__label {
        font-size: 0.72rem;
        line-height: 1.1;
        font-weight: 500;
        white-space: nowrap;
    }

    /* Padding for page content so bottom bar does not hide elements */
    body.user-logged-in {
        padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* Header action icons on mobile (< 992px) for Help (?) and PWA (📲) */
    .n4g-mobile-header-actions {
        display: inline-flex !important;
        align-items: center;
        gap: 0.35rem;
        margin-inline-end: 0.35rem;
        vertical-align: middle;
    }

    header .col-right .region-header-right .ni-support-shell,
    .n4g-mobile-header-actions .ni-support-shell {
        display: inline-flex !important;
        align-items: center;
        position: static !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
    }

    header .col-right .region-header-right .ni-support-fab,
    .n4g-mobile-header-actions .ni-support-fab {
        position: static !important;
        bottom: auto !important;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        border: 0 !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #fff !important;
        background-color: var(--net4gym-ni-brand, var(--bs-primary, #ff5733)) !important;
        z-index: auto !important;
        cursor: pointer !important;
    }

    header .col-right .region-header-right .ni-support-fab__icon,
    .n4g-mobile-header-actions .ni-support-fab__icon {
        font-weight: 700 !important;
        font-size: 1.05rem !important;
        line-height: 1 !important;
    }

    header nav .row,
    header .navbar > .container-fluid.row,
    header .navbar > .container.row {
        align-items: center !important;
        min-height: 52px !important;
    }

    header .col-left {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 42% !important;
        padding-right: 0.25rem !important;
        align-self: center !important;
        display: flex !important;
        align-items: center !important;
        margin-top: auto !important;
        margin-bottom: auto !important;
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }

    header .col-right {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: 58% !important;
        margin-left: auto !important;
        display: flex !important;
        flex-flow: row nowrap !important;
        justify-content: flex-end !important;
        align-items: center !important;
        align-self: center !important;
        gap: 0.35rem !important;
        padding-left: 0.25rem !important;
        margin-top: auto !important;
        margin-bottom: auto !important;
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }

    header .col-right > .mobile-hidden {
        display: flex !important;
        flex: 1 1 auto !important;
        justify-content: flex-end !important;
        align-items: center !important;
        align-self: center !important;
        width: auto !important;
        min-width: 0 !important;
        margin-top: auto !important;
        margin-bottom: auto !important;
    }

    header .col-right .region-header-right {
        display: flex !important;
        flex-flow: row nowrap !important;
        justify-content: flex-end !important;
        align-items: center !important;
        align-self: center !important;
        gap: 0.35rem !important;
        margin-top: auto !important;
        margin-bottom: auto !important;
        padding: 0 !important;
        width: auto !important;
        max-width: 100% !important;
    }

    /* Vertical centering for all buttons in header right */
    header .col-right .region-header-right > *,
    header .col-right .region-header-right .cart-block--summary,
    header .col-right .region-header-right .ni-header-notifications__link,
    header .col-right .region-header-right .ni-support-shell,
    header .col-right .region-header-right .ni-support-fab,
    header .col-right .region-header-right .n4g-pwa-install-btn {
        margin-top: auto !important;
        margin-bottom: auto !important;
        align-self: center !important;
    }

    header .col-right .region-header-right .n4g-pwa-install-btn,
    .n4g-mobile-header-actions .n4g-pwa-install-btn {
        position: static !important;
        bottom: auto !important;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        border: 0 !important;
        border-radius: 50% !important;
        background-color: var(--net4gym-ni-brand, var(--bs-primary, #ff5733)) !important;
        background-image: linear-gradient(
            180deg,
            var(--net4gym-ni-brand, var(--bs-primary, #ff5733)),
            color-mix(in srgb, var(--net4gym-ni-brand, var(--bs-primary, #ff5733)) 85%, #000)
        ) !important;
        color: #fff !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 16px !important;
        line-height: 1 !important;
        cursor: pointer !important;
        z-index: auto !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
    }

    /* Hide both buttons when full-screen mobile menu or notifications panel is open */
    body.n4g-mobile-menu-open .ni-support-shell,
    body.n4g-mobile-menu-open .ni-support-fab,
    body.n4g-mobile-menu-open .n4g-pwa-install-btn,
    body.n4g-notifications-open .ni-support-shell,
    body.n4g-notifications-open .ni-support-fab,
    body.n4g-notifications-open .n4g-pwa-install-btn {
        display: none !important;
    }

    /* Lock body scroll when mobile full-screen overlays are open */
    body.n4g-mobile-menu-open,
    body.n4g-notifications-open {
        overflow: hidden !important;
        touch-action: none;
    }

    /* Hide bottom bar when mobile menu overlay is open so it does not cut off or overlap the menu */
    body.n4g-mobile-menu-open .n4g-bottom-bar {
        display: none !important;
    }

    /* 1. Remove redundant hamburger button from top header on mobile (present in bottom bar as 'Más') */
    body.user-logged-in .header-mobile-nav__trigger > .navbar-toggler,
    body.user-logged-in .header-mobile-nav .navbar-toggler {
        display: none !important;
    }

    /* 2. Header logo responsiveness - keep compact on mobile to never overlap actions */
    .col-left .site-logo img,
    .col-left .navbar-brand img,
    #block-auladrupal5-branding img {
        max-height: 32px !important;
        max-width: 120px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
    }

    /* ==========================================================================
       Fullscreen Mobile Menu Overlay (100% of page) - Clean White Theme
       ========================================================================== */
    .header-mobile-nav__trigger > #navbarSupportedContent.show,
    .header-mobile-nav__trigger > #navbarSupportedContent.collapsing,
    nav #navbarSupportedContent.show {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        z-index: 10050 !important;
        background: #ffffff !important;
        padding: 1.25rem 1.25rem calc(6rem + env(safe-area-inset-bottom, 0px)) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
    }

    /* Topbar inside the fullscreen menu: Close Button (Left) + Gym Logo (Right) */
    .n4g-mobile-menu-topbar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-bottom: 1rem !important;
        margin-bottom: 1.25rem !important;
        border-bottom: 1px solid #e5e7eb !important;
        width: 100% !important;
        flex-shrink: 0 !important;
    }

    .n4g-mobile-menu-brand {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin-left: auto !important;
    }

    .n4g-mobile-menu-logo {
        max-height: 42px !important;
        max-width: 160px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
    }

    .n4g-mobile-menu-brand-title {
        color: #111827 !important;
        font-size: 1.35rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px;
    }

    .n4g-mobile-menu-close-btn {
        background: #f3f4f6 !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 50% !important;
        width: 42px !important;
        height: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #374151 !important;
        font-size: 1.25rem !important;
        cursor: pointer !important;
        transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease !important;
    }

    .n4g-mobile-menu-close-btn:hover,
    .n4g-mobile-menu-close-btn:focus {
        background: #e5e7eb !important;
        color: var(--bs-primary, #ff5733) !important;
        transform: scale(1.05);
    }

    /* Fullscreen menu main links */
    #navbarSupportedContent .region-nav-main {
        width: 100% !important;
        margin: 0 !important;
    }

    #navbarSupportedContent .region-nav-main .field__item {
        padding: 0 !important;
        margin-bottom: 10px !important;
        background: none !important;
    }

    #navbarSupportedContent .region-nav-main .menumobile {
        background: #f8f9fa !important;
        color: #1f2937 !important;
        border: 1px solid #e5e7eb !important;
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        padding: 13px 18px !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        text-decoration: none !important;
        transition: background 0.2s ease, border-color 0.2s ease !important;
        min-height: 52px !important;
    }

    /* Use primary brand color for icons */
    #navbarSupportedContent .region-nav-main .menumobile i,
    #navbarSupportedContent .region-nav-main .menumobile svg {
        color: var(--bs-primary, #ff5733) !important;
        font-size: 1.25rem !important;
    }

    #navbarSupportedContent .region-nav-main .menumobile:hover,
    #navbarSupportedContent .region-nav-main .menumobile:focus {
        background: #f1f5f9 !important;
        border-color: var(--bs-primary, #ff5733) !important;
        color: #0f172a !important;
    }

    /* Account menu links inside fullscreen mobile menu */
    #navbarSupportedContent .header-mobile-nav__account {
        width: 100% !important;
        margin-top: 0.5rem !important;
        padding-top: 0 !important;
    }

    #navbarSupportedContent .header-mobile-nav__account-divider {
        border-top: 1px solid #e5e7eb !important;
        margin: 1rem 0 1.25rem !important;
    }

    #navbarSupportedContent .header-mobile-nav__account li {
        padding: 0 !important;
        margin-bottom: 10px !important;
        background: none !important;
    }

    #navbarSupportedContent .header-mobile-nav__account li a {
        background: #f8f9fa !important;
        color: #1f2937 !important;
        border: 1px solid #e5e7eb !important;
        font-size: 1.02rem !important;
        font-weight: 600 !important;
        padding: 13px 18px !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        text-decoration: none !important;
        min-height: 50px !important;
        transition: background 0.2s ease, border-color 0.2s ease !important;
    }

    /* Account icons in primary color */
    #navbarSupportedContent .header-mobile-nav__account li a::after {
        color: var(--bs-primary, #ff5733) !important;
        font-size: 1.2rem !important;
    }

    #navbarSupportedContent .header-mobile-nav__account li a:hover,
    #navbarSupportedContent .header-mobile-nav__account li a:focus {
        background: #f1f5f9 !important;
        border-color: var(--bs-primary, #ff5733) !important;
        color: #0f172a !important;
    }

    /* ==========================================================================
       Fullscreen Mobile Notifications Panel (100% of page)
       ========================================================================== */
    .ni-header-notifications.is-open .ni-header-notifications__panel {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        z-index: 10060 !important;
        background: #ffffff !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
    }

    .ni-header-notifications__panel-title {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 1.25rem 1.25rem !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e5e7eb !important;
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        color: #111827 !important;
        text-transform: none !important;
        flex-shrink: 0 !important;
    }

    .ni-header-notifications__close-btn {
        background: #f3f4f6 !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 50% !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #374151 !important;
        font-size: 1.2rem !important;
        cursor: pointer !important;
        transition: background 0.2s ease, color 0.2s ease !important;
    }

    .ni-header-notifications__close-btn:hover,
    .ni-header-notifications__close-btn:focus {
        background: #e5e7eb !important;
        color: var(--bs-primary, #ff5733) !important;
    }

    .ni-header-notifications__preview-list {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        max-height: none !important;
        padding: 0.5rem 0 !important;
    }

    .ni-header-notifications__preview-item {
        padding: 1rem 1.25rem !important;
        border-bottom: 1px solid #f1f5f9 !important;
        font-size: 1rem !important;
        color: #1f2937 !important;
    }

    .ni-header-notifications__preview-item:hover,
    .ni-header-notifications__preview-item:focus {
        background-color: #f8fafc !important;
        color: #0f172a !important;
    }

    .ni-header-notifications__panel-footer {
        padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
        background: #ffffff !important;
        border-top: 1px solid #e5e7eb !important;
        flex-shrink: 0 !important;
    }

    .ni-header-notifications__panel-footer .btn {
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
    }

    /* ==========================================================================
       Facets / Right Sidebar: Collapsed by default on mobile
       ========================================================================== */
    .container_right_mobile:not(:has(#navbarRight.show)) {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        width: auto !important;
    }

    .container_right_mobile:not(:has(#navbarRight.show)) #navbarRight:not(.show) {
        display: none !important;
    }
}

/* Desktop (>= 992px): keep the facets hamburger so staff can hide/show the right bar.
   Do NOT force #navbarRight always visible — Bootstrap collapse must work. */
@media (min-width: 992px) {
    .container_right_mobile button.menuiconmovil {
        display: block !important;
        visibility: visible !important;
    }

    /* When facets are collapsed, shrink the column but keep the toggle clickable. */
    .container_right_mobile:not(:has(#navbarRight.show)) {
        max-width: 3rem !important;
        padding: 0.75rem 0.35rem !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .n4g-mobile-header-actions {
        display: none !important;
    }

    .n4g-pwa-install-btn {
        position: fixed !important;
        right: 72px !important;
        bottom: 24px !important;
        z-index: 9999 !important;
        border: 0 !important;
        border-radius: 50% !important;
        width: 48px !important;
        height: 48px !important;
        padding: 0 !important;
        background-color: var(--net4gym-ni-brand, var(--bs-primary, #ff5733)) !important;
        background-image: linear-gradient(
            180deg,
            var(--net4gym-ni-brand, var(--bs-primary, #ff5733)),
            color-mix(in srgb, var(--net4gym-ni-brand, var(--bs-primary, #ff5733)) 85%, #000)
        ) !important;
        color: #fff !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2) !important;
        cursor: pointer !important;
        font-size: 22px !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}