:root {
    --nova-primary: var(--e-global-color-primary, #f39000);
    --nova-bg: #f4f7fb;
    --nova-card-bg: rgba(255, 255, 255, 0.85);
    --nova-card-blur: 16px;
    --nova-card-shadow: 0 4px 32px 0 rgba(67, 94, 151, 0.07), 0 2px 8px rgba(0, 0, 0, 0.06);
    --nova-radius: 10px;
    --nova-trans: all .17s cubic-bezier(.4, 0, .2, 1);
}

.form-check-input:checked {
    background-color: var(--e-global-color-primary, #0d6efd) !important;
    border-color: var(--e-global-color-primary, #0d6efd) !important;
}

.form-check-input:checked[type=checkbox] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
}

.form-check-input:checked[type=radio] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3ccircle cx='10' cy='10' r='4' fill='%23fff'/%3e%3c/svg%3e") !important;
}

.lwd-dashboard-nova {
    background: var(--nova-bg);
    min-height: 70vh;
    border: 0;
    border-radius: var(--nova-radius);
    box-shadow: var(--nova-card-shadow);
    backdrop-filter: blur(var(--nova-card-blur));
    padding: 1.7rem 1.4rem 1.1rem 1.4rem;
    margin-bottom: 0;
    transition: var(--nova-trans), box-shadow .23s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer;
    /* overflow: hidden; */ /* removed because it cuttet dropdown choises js  */
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(.98);
    animation: novaFadeIn .6s cubic-bezier(.45, 0, .45, 1) .13s forwards;
}

.lwd-dashboard-welcome {
    background: linear-gradient(90deg, #f3f8ff 60%, #fff 100%);
    border-left: 6px solid var(--nova-primary);
    box-shadow: var(--nova-card-shadow);
    border-radius: var(--nova-radius);
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.lwd-dashboard-welcome .wave {
    animation: wavehand 1.6s infinite alternate;
    display: inline-block;
}

.lwd-dashboard-welcome .wave {
    display: none;
}

/* hide waving hand icon :-( */
@keyframes wavehand {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(24deg);
    }

    100% {
        transform: rotate(-6deg);
    }
}

.nova-hl {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1d2437;
    letter-spacing: -.02em;
}

.nova-section-hl {
    font-size: 1.55rem;
    font-weight: 600;
    color: #2b3856;
}

.dashboard-hints {
    color: #4e5779;
    font-size: 1.08rem;
    margin: 1.5rem 0 0 0;
    padding-left: 1.6rem;
}

.dashboard-hints li {
    margin-bottom: .5rem;
}

.nova-btn {
    font-weight: 600;
    padding: .67em 2.1em;
    border-radius: 999px;
    box-shadow: 0 3px 18px rgba(59, 130, 246, 0.07);
}

.nova-btn:active,
.nova-btn:focus,
.nova-btn:hover {
    filter: brightness(1.09) drop-shadow(0 2px 8px rgba(59, 130, 246, 0.16));
}

.btn-group .btn {
    min-width: 150px;
    font-weight: 500;
    letter-spacing: .02em;
    border-radius: var(--nova-radius);
}

.nova-grid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 2rem;
    margin-top: .5rem;
    width: 100%;
}

#lwd-sessions-dashboard .choices {
    width: 100%;
    margin-bottom: 0;
    font-size: .875em;
}

#lwd-sessions-dashboard .form-text {
    font-size: 16px;
}

#lwd-sessions-dashboard .choices[data-type*=select-multiple] .choices__inner,
#lwd-sessions-dashboard .choices[data-type*=text] .choices__inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
}

#lwd-sessions-dashboard .choices .choices__list--multiple:not(:empty)+.choices__input::placeholder {
    opacity: 0;
}

#lwd-sessions-dashboard .choices .choices__list--multiple {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

#lwd-sessions-dashboard .choices .choices__list--multiple .choices__item[data-deletable] {
    font-size: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    align-content: center;
    flex-wrap: wrap;
    width: fit-content;
    gap: 5px;
    padding-right: 15px;
}

#lwd-sessions-dashboard .choices[data-type*=select-multiple] .choices__button,
#lwd-sessions-dashboard .choices[data-type*=text] .choices__button {
    padding: 5px;
    width: 20px;
    height: 20px;
}

#lwd-sessions-dashboard .choices .choices__item--choice.is-selected {
    background: #ffe86f !important;
    color: #222 !important;
    pointer-events: none;
    opacity: 0.7;
}

#lwd-sessions-dashboard input.choices__input {
    min-width: 150px !important;
    width: fit-content !important;
}

#lwd-sessions-dashboard #session-users-wrapper {
    border-right: 5px solid #fff;
    padding: 15px;
    background: #fff;
    transition: all .3s ease-in-out;
}

#lwd-sessions-dashboard #session-users-wrapper .lwd-add-user-swal {
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
    text-align: right;
    margin-right: 0;
    margin-left: auto;
}

#lwd-sessions-dashboard .btn,
#lwd-sessions-dashboard .btn.btn-primary {
    padding: 10px 15px 10px 15px;
    color: #fff;
    background-color: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
}

#lwd-sessions-dashboard .btn:hover,
#lwd-sessions-dashboard .btn.btn-primary:hover {
    background-color: var(--e-global-color-secondary);
    border-color: var(--e-global-color-secondary);
}

#lwd-sessions-dashboard .btn.btn-secondary {
    color: var(--e-global-color-secondary);
    background-color: transparent;
    border-width: 2px;
    border-color: var(--e-global-color-primary);
}

#lwd-sessions-dashboard .btn.btn-secondary:hover {
    color: #fff;
    background-color: var(--e-global-color-primary);
}

#lwd-sessions-dashboard .btn.btn-success {
    color: #fff;
    background-color: #198754;
    border-color: #198754;
}

#lwd-sessions-dashboard .btn.btn-success:hover {
    background-color: #157347;
}

#lwd-sessions-dashboard .btn.btn-danger {
    color: #fff;
    background-color: #dc3545;
}

#lwd-sessions-dashboard .btn.btn-danger:hover {
    background-color: #bb2d3b;
}

#lwd-sessions-dashboard .btn-group .btn.lwd-session-filter:not(:last-child)::after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 1px;
    height: 70%;
    background: #ccc;
    margin: auto 0;
    position: absolute;
    right: 0;
    top: 15%;
    z-index: 1;
}

#lwd-sessions-dashboard .btn-group {
    position: relative;
}

#lwd-sessions-dashboard .btn-group .btn.lwd-session-filter {
    position: relative;
}

#lwd-sessions-dashboard .lwd-session-filters input:not(input[type=checkbox]),
#lwd-sessions-dashboard .lwd-session-filters select,
#lwd-products-dashboard .lwd-product-filters input:not(input[type=checkbox]),
#lwd-products-dashboard .lwd-product-filters select {
    border-radius: 10px 10px 10px 10px !important;
    background: #fff !important;
    border: 1px solid #0000002d !important;
    height: 42px;
}

#lwd-sessions-dashboard input[type=checkbox],
#lwd-products-dashboard input[type=checkbox] {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.75%29'/%3e%3c/svg%3e") !important;
    border: 1px solid #0000002d !important;
}

#lwd-sessions-dashboard .form-check.form-switch,
#lwd-products-dashboard .form-check.form-switch {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: calc(var(--bs-gutter-x) * .5);
}

.card,
.lwd-session-card {
    background: var(--nova-card-bg);
    border: 0;
    border-radius: var(--nova-radius);
    box-shadow: var(--nova-card-shadow);
    backdrop-filter: blur(var(--nova-card-blur));
    padding: 1.7rem 1.4rem 1.1rem 1.4rem;
    margin-bottom: 0;
    transition: var(--nova-trans), box-shadow .23s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(.98);
    animation: novaFadeIn .6s cubic-bezier(.45, 0, .45, 1) .13s forwards;
}

@keyframes novaFadeIn {
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lwd-session-card:hover,
.lwd-session-card.active,
.lwd-product-card:hover,
.lwd-product-card.active {
    box-shadow: 0 12px 38px -6px #c6dbfa, 0 2px 24px var(--e-global-color-primary)33;
    border-color: var(--nova-primary);
    background: rgba(255, 255, 255, 1);
    transform: scale(1.013) translateY(-2px);
}

.lwd-session-card .card-title,
.lwd-product-card .card-title {
    font-size: 1.18rem;
    font-weight: 600;
    color: #f39000;
    margin: 0;
}

.lwd-session-card .card-title {
    margin-bottom: 10px;
}

.lwd-session-detail-panel .lwd-session-back {
    display: flex;
    align-items: center;
}

.lwd-session-card .card-meta .lwd-user-detail {
    display: flex;
    align-items: center;
}

.lwd-session-card .card-subtitle,
.lwd-product-card .card-subtitle,
.small,
small {
    font-size: .9rem;
}

.lwd-session-card .card-footer,
.lwd-session-card .card-meta,
.lwd-product-card .card-footer,
.lwd-product-card .card-meta {
    font-size: .97rem;
    color: #4e5779;
    margin-top: .5em;
    opacity: .92;
}

.lwd-session-card .card-footer button.lwd-session-detail-btn,
.lwd-product-card .card-footer button.lwd-product-edit-btn {
    font-size: 0.9rem;
    border-radius: 12px !important;
}

@media (max-width: 1200px) {

    .lwd-session-card .card-footer button.lwd-session-detail-btn span.material-symbols-outlined,
    .lwd-product-card .card-footer button.lwd-product-edit-btn span.material-symbols-outlined {
        display: none;
    }
}

.lwd-product-card .card-footer button.lwd-product-edit-btn {
    width: 100%;
}

.lwd-product-card .card-footer button.lwd-product-edit-btn:hover {
    background-color: var(--e-global-color-secondary) !important;
    color: var(--e-global-color-7fcaea0b) !important;
}


.lwd-product-missing-info {
    font-family: inherit;
}

.lwd-product-missing-info .badge {
    transition: transform 0.2s;
}

.lwd-product-missing-info .badge:hover {
    transform: translateY(-1px);
    border-color: #ffc107 !important;
}

/* Premium Product Card Layout */
.lwd-product-card {
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 12px !important;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.lwd-product-card:hover {
    box-shadow: 0 10px 30px -10px rgba(32, 67, 120, 0.15) !important;
    transform: translateY(-2px) scale(1.005) !important;
    border-color: rgba(32, 67, 120, 0.2) !important;
}

.lwd-product-card .card-header {
    background: rgba(248, 250, 252, 0.5) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.lwd-product-img-container {
    flex: 0 0 60px;
    height: 60px;
    margin-right: 1.15rem;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.lwd-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.lwd-product-img-placeholder {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

.lwd-product-info {
    flex: 1 1 auto;
    min-width: 0;
}

.lwd-product-meta {
    margin-top: 0;
}

.lwd-product-sku {
    font-size: 0.9rem;
    color: #475569;
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.lwd-product-excerpt-text {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lwd-product-edit-btn {
    transition: all 0.2s ease;
    border-width: 1.5px;
}

.lwd-product-edit-btn:hover {
    background-color: var(--nova-primary) !important;
    color: #fff !important;
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.lwd-session-detail {
    animation: novaSlideFade .34s cubic-bezier(.65, .1, .1, 1) .07s both;
}

@keyframes novaSlideFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spinner-border {
    width: 2.4rem;
    height: 2.4rem;
}

.btn-group .btn.active,
.btn-group .btn:focus {
    box-shadow: 0 2px 9px #a6caf9a8;
}

#lwd-sessions-dashboard #lwd-session-new-btn i {
    margin-right: 5px;
}

#lwd-sessions-dashboard #lwd-session-new-btn:hover i {
    animation: refresh 1s cubic-bezier(.36, .07, .57, .99) 1;
}

#lwd-sessions-list .lwd-session-detail-panel .sidebar {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

#lwd-sessions-list .lwd-session-detail-panel .sidebar img {
    object-fit: contain;
    margin: 0 0 0 auto;
}

#lwd-sessions-list .lwd-session-detail-panel .list-unstyled {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    gap: 5px;
}

#lwd-sessions-list .lwd-session-detail-panel .list-unstyled li {
    transition: all .3s ease-in-out;
    height: 35px;
    color: #fff;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    justify-content: center;
}

#lwd-sessions-list .lwd-session-detail-panel .list-unstyled li:hover {
    border-bottom: 2px solid var(--nova-primary);
    box-shadow: var(--nova-card-shadow);
    height: 33px;
}

.lwd-session-statistics h3,
.lwd-session-statistics h4 {
    font-size: 1.2rem;
    margin-top: 1.5em;
    font-weight: 700;
    color: #1c2647;
}

.lwd-session-statistics ul:not(ul ul) {
    width: fit-content;
    margin-top: 2rem;
    background: #f9fbfe;
    border: 1px solid #e2e7f3;
    border-radius: var(--nova-radius);
    padding: 1.2rem;
    padding-left: 40px;
}

.lwd-session-statistics table {
    width: 100%;
    margin: 0.7em 0 1.1em 0;
    border-radius: var(--nova-radius);
    background: #f8fafc;
}

.lwd-session-statistics th,
.lwd-session-statistics td {
    padding: 0.44em 0.9em;
    font-size: 0.97em;
}

.lwd-session-statistics #stats_products ul>li>ul>li {
    font-size: smaller;
    color: #666;
}

.modal-backdrop.show {
    z-index: 1050 !important;
    display: block !important;
    opacity: 0.6 !important;
}

.modal.show,
.modal.fade.show {
    z-index: 1055 !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.modal .modal-dialog {
    width: 95%;
    max-width: 850px;
    margin: 1.75rem auto;
    max-height: 80vh;
}

.lwd-picker-modal .modal-content {
    min-height: 710px;
}

@media (max-width: 767px) {

    .modal.show,
    .modal.fade.show {
        padding: 0;
        align-items: flex-start;
    }

    .modal .modal-dialog {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
    }

    .modal-content {
        border-radius: 0 !important;
        height: 100%;
        min-height: 100vh;
    }
}

.modal .modal-dialog .modal-footer {
    display: flex;
    justify-content: space-between;
}

.modal .modal-dialog #editProductsForm .product-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.modal .modal-dialog #editProductsForm .product-row .product-sku {
    display: none;
}

.modal .modal-dialog #editProductsForm #posters-wrapper .poster-row {
    border-bottom: 1px solid #e2e7f3;
    padding-bottom: 15px;
    background: var(--nova-bg);
    padding: 10px 20px 20px 20px;
    border-radius: var(--nova-radius);
}

.modal .modal-dialog #editProductsForm #posters-wrapper .poster-row img {
    border: 0px solid #000;
}

body.modal-open {
    overflow: unset !important;
    padding-right: unset !important;
}

body:not(.modal-open) {
    overflow: auto !important;
}

.swal2-container .swal2-popup {
    padding: 15px;
    width: 750px !important;
}

@media (max-width: 800px) {
    .swal2-container .swal2-popup {
        width: 650px !important;
    }
}

.swal2-container .swal2-popup div:where(.swal2-container) .swal2-input,
div:where(.swal2-container) .swal2-input {
    width: auto !important;
}

.nova-grid-grid {
    gap: 20px;
}

.lwd-session-card {
    margin: 0 !important;
}

#lwd-products-dashboard {
    min-height: fit-content;
    transition: all .3s ease-in-out;
}

#lwd-products-dashboard .scale-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    max-width: 300px;
    margin: 2em 0;

    border: 1px solid #e2e7f3;
    border-radius: var(--nova-radius);
    overflow: hidden;
    background: #fff;
    padding: .5rem;
}

#lwd-products-dashboard .scale-control .scale-preview {
    transition: transform 0.3s ease;
    font-size: 64px;
    /* base size */
    z-index: 0;
    pointer-events: none;
}

#lwd-products-dashboard .scale-control input[type="range"] {
    width: 100%;
    z-index: 1;
}

#lwd-products-list {
    margin-top: 40px;
    opacity: 1 !important;
}

@media (max-width: 800px) {
    .nova-grid-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .lwd-dashboard-nova {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .lwd-dashboard-welcome {
        padding: 1.3rem .7rem 1rem .9rem;
    }

    #lwd-sessions-dashboard .btn-group {
        display: flex;
        vertical-align: middle;
        flex-direction: column;
        align-content: stretch;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 15px;
    }

    #lwd-sessions-dashboard .btn-group button.btn {
        border-radius: var(--nova-radius) !important;
    }
}

.animate-fadein {
    animation: novaFadeIn 0.7s cubic-bezier(.45, 0, .45, 1) .05s both;
}

.lwd-product-edit-container {
    background: var(--nova-card-bg);
    border-radius: var(--nova-radius);
    box-shadow: var(--nova-card-shadow);
    backdrop-filter: blur(var(--nova-card-blur));
    padding: 2rem 1.8rem;
    margin-top: 1.2rem;
    animation: novaFadeIn .5s ease both;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lwd-product-edit-form {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    margin-top: 0;
}

.lwd-product-edit-form label {
    font-weight: 600;
    color: #1c2647;
    margin-bottom: .35rem;
    display: block;
}

.lwd-product-edit-form input[type="text"],
.lwd-product-edit-form input[type="url"],
.lwd-product-edit-form input[type="file"],
.lwd-product-edit-form select,
.lwd-product-edit-form textarea,
.lwd-product-edit-form .wp-editor-area {
    border: 1px solid #d9e1ef;
    border-radius: var(--nova-radius);
    padding: .55rem .75rem;
    font-size: .96rem;
    color: #2b3856;
    width: 100%;
    transition: var(--nova-trans);
    background: #fff;
}

.lwd-product-edit-form input:focus,
.lwd-product-edit-form select:focus,
.lwd-product-edit-form textarea:focus {
    border-color: var(--nova-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

.lwd-product-edit-form .mb-2 {
    margin-bottom: 1.3rem !important;
}

.lwd-product-edit-form .gallery-image-row {
    background: #f9fbfe;
    border: 1px solid #e2e7f3;
    border-radius: var(--nova-radius);
    padding: .5rem;
    margin-bottom: .6rem;
    transition: var(--nova-trans);
}

.lwd-product-edit-form .gallery-image-row:hover {
    background: #f1f6ff;
    border-color: var(--nova-primary);
}

.lwd-product-edit-form .glb-info {
    display: flex;
}

.lwd-product-edit-form .model-3d {
    border: 1px solid #e2e7f3;
    border-radius: var(--nova-radius);
    overflow: hidden;
    margin-right: 1.2rem;
    background: #fff;
    padding: .5rem;
}

.lwd-product-edit-form .model-3d model-viewer {
    height: 100% !important;
}

.lwd-product-edit-form .model-facts {
    font-size: .9rem;
    color: #4e5779;
}

.lwd-product-edit-form .model-facts .badge.bg-danger {
    font-size: 16px;
}

.lwd-product-edit-form #video-preview {
    aspect-ratio: 16/9;
    height: 380px;
}

.lwd-product-edit-form .btn {
    min-width: 140px;
    font-weight: 600;
    border-radius: var(--nova-radius);
    padding: .65rem 1.2rem;
}

.lwd-product-edit-form .lwd-gallery-delete-btn {
    font-size: 16px;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: block;
    max-width: 45px;
    min-width: 45px;
    border-radius: var(--nova-radius);
}


.lwd-session-edit-form {
    background: var(--nova-card-bg);
    border-radius: var(--nova-radius);
    box-shadow: var(--nova-card-shadow);
    backdrop-filter: blur(var(--nova-card-blur));
    padding: 2rem 1.8rem;
    margin-top: 1.2rem;
    animation: novaFadeIn .5s ease both;
}

.lwd-session-edit-form label.form-label {
    font-weight: 600;
    color: #1c2647;
    margin-bottom: .35rem;
    display: block;
}

.lwd-session-edit-form input[type="text"],
.lwd-session-edit-form input[type="file"],
.lwd-session-edit-form input[type="datetime-local"],
.lwd-session-edit-form select,
.lwd-session-edit-form textarea {
    border: 1px solid #d9e1ef;
    border-radius: var(--nova-radius);
    padding: .55rem .75rem;
    font-size: .96rem;
    color: #2b3856;
    width: 100%;
    transition: var(--nova-trans);
    background: #fff;
}

.lwd-session-edit-form input:focus,
.lwd-session-edit-form select:focus,
.lwd-session-edit-form textarea:focus {
    border-color: var(--nova-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

.lwd-session-edit-form .mb-3 {
    margin-bottom: 1.3rem !important;
}

.lwd-session-edit-form .form-text {
    font-size: .83rem;
    color: #4e5779;
    margin-top: .35rem;
}

.lwd-session-edit-form #session-users-wrapper {
    border: 1px solid #e2e7f3;
    border-radius: var(--nova-radius);
    padding: 1rem;
    background: #fff;
    transition: var(--nova-trans);
}

.lwd-session-edit-form #session-users-wrapper:hover {
    border-color: var(--nova-primary);
    background: #f8faff;
}

.lwd-session-edit-form #session-users-wrapper .lwd-add-user-swal {
    margin-top: .5rem;
    font-weight: 500;
    border-radius: var(--nova-radius);
}

.lwd-session-edit-form .input-group input[type="datetime-local"] {
    width: calc(100% - 50px);
}

.lwd-session-edit-form .input-group-text {
    border-radius: var(--nova-radius) 0 0 var(--nova-radius);
    background: #f3f6fb;
    border: 1px solid #d9e1ef;
    color: #2b3856;
}

.lwd-session-edit-form .btn {
    min-width: 140px;
    font-weight: 600;
    border-radius: var(--nova-radius);
    padding: .65rem 1.2rem;
}

.lwd-session-edit-form .lwd-step-buttons {
    width: 100%;
}

.lwd-session-edit-form .lwd-step-hidden {
    display: none !important;
}


.lwd-session-detail-panel {
    background: var(--nova-card-bg);
    border-radius: var(--nova-radius);
    box-shadow: var(--nova-card-shadow);
    backdrop-filter: blur(var(--nova-card-blur));
    padding: 2rem 2rem 2.2rem;
    margin-top: 1.5rem;
}

.lwd-session-detail-panel .detail-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1c2647;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.lwd-session-detail-panel .company {
    font-weight: 600;
    font-size: 1.1rem;
    color: #f39000;
}

.lwd-session-detail-panel dl {
    margin: 1.2rem 0;
}

.lwd-session-detail-panel dt {
    font-weight: 600;
    color: #2b3856;
    margin-bottom: .3rem;
}

.lwd-session-detail-panel dd {
    margin-bottom: .6rem;
    color: #4e5779;
}

.lwd-session-detail-panel dl.access dt {
    padding-left: 0;
}

.lwd-session-detail-panel .users ul {
    margin: 0;
    padding: 0;
}

.lwd-session-detail-panel .users li {
    background: #f1f6ff;
    border: 1px solid #e2e7f3;
    border-radius: 999px;
    padding: .35rem .9rem;
    font-size: .9rem;
    color: #f39000;
    transition: var(--nova-trans);
}

.lwd-session-detail-panel .users li:hover {
    background: var(--nova-primary);
    color: #fff;
    border-color: var(--nova-primary);
}

.lwd-session-detail-panel .sidebar {
    text-align: center;
}

.lwd-session-detail-panel .sidebar img {
    border-radius: var(--nova-radius);
    border: 1px solid #e2e7f3;
    margin-bottom: 1rem;
    max-width: 100%;
    height: auto;
}

.lwd-session-detail-panel .button-line {
    display: flex;
    gap: .7rem;
}

.lwd-session-detail-panel .button-line .btn {
    border-radius: var(--nova-radius);
    font-weight: 600;
    padding: .55rem 1rem;
}

.lwd-session-detail-panel .lwd-session-statistics {
    margin-top: 2rem;
}

.lwd-session-detail-panel .lwd-session-statistics h2 {
    margin-bottom: 1rem;
}

.lwd-session-detail-panel .lwd-room-customizer-content {
    margin-top: 2rem;
    background: #f9fbfe;
    border: 1px solid #e2e7f3;
    border-radius: var(--nova-radius);
    padding: 1.2rem;
}

.lwd-session-detail-panel .lwd-room-customizer-content h2 {
    font-size: 1.6rem;
    margin-bottom: .8rem;
}



/* Modal Container */
.modal-content {
    background: var(--nova-card-bg);
    border-radius: var(--nova-radius);
    box-shadow: var(--nova-card-shadow);
    backdrop-filter: blur(var(--nova-card-blur));
    border: 0;
    overflow: hidden;
}

/* Header */
.modal-header {
    border-bottom: 1px solid #e2e7f3;
    padding: 1rem 1.4rem;
    background: linear-gradient(90deg, #f3f8ff 60%, #fff 100%);
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1c2647;
}

.modal-header .btn-close {
    border: 0;
    opacity: 0.6;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

/* Body */
.modal-body {
    padding: 1.6rem;
}

.modal-body label.form-label {
    font-weight: 600;
    color: #1c2647;
    margin-bottom: .35rem;
}

/* Footer */
.modal-footer {
    border-top: 1px solid #e2e7f3;
    padding: 1rem 1.4rem;
    background: #f9fbfe;
}

/* Accordion */
.accordion-item .accordion-header {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.accordion-item {
    border: 1px solid #e2e7f3;
    border-radius: var(--nova-radius);
    /*overflow: hidden;*/
    margin-bottom: .7rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.accordion-button {
    font-weight: 600;
    background: #f9fbfe;
    color: #2b3856;
    transition: var(--nova-trans);
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: var(--e-global-color-secondary);
    color: #fff;
}

.accordion-button:hover {
    z-index: unset;
}

.accordion-body {
    background: #fff;
    padding: 1.2rem;
}

select.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'><path fill='%23333' d='M310.6 246.6l-127.1 128c-12.5 12.5-32.8 12.5-45.3 0l-127.1-128c-9.2-9.2-9.2-24.6 0-33.9s24.6-9.2 33.9 0L160 321.9l115.6-109.2c9.2-9.2 24.6-9.2 33.9 0s9.3 24.6 1.1 33.9z'/></svg>") no-repeat right 10px center #ffffff;
    background-size: 12px;
    padding-right: 30px;
}

.choices[data-type*=select-one]::after {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'><path fill='%23333' d='M310.6 246.6l-127.1 128c-12.5 12.5-32.8 12.5-45.3 0l-127.1-128c-9.2-9.2-9.2-24.6 0-33.9s24.6-9.2 33.9 0L160 321.9l115.6-109.2c9.2-9.2 24.6-9.2 33.9 0s9.3 24.6 1.1 33.9z'/></svg>") !important;
    background-repeat: no-repeat;
    border-width: 0;
    width: 12px;
    height: 15px;
    background-size: 12px;
    margin-top: -10px;
    margin-right: -4px;
}

/* Form Controls */
.modal-body input.form-control,
.modal-body select.form-select {
    border: 1px solid #d9e1ef;
    border-radius: var(--nova-radius);
    padding: .55rem .75rem;
    font-size: .95rem;
    transition: var(--nova-trans);
}

.modal-body input:focus,
.modal-body select:focus {
    border-color: var(--nova-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

/* Room Grid Buttons */
.room-type-btn {
    background: #fff;
    border-radius: var(--nova-radius);
    padding: .8rem;
    transition: var(--nova-trans);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.room-type-btn img {
    max-height: 120px;
    object-fit: contain;
    border-radius: var(--nova-radius);
    border: 1px solid #e2e7f3;
    margin-bottom: .6rem;
    background: #f9fbfe;
}

.room-type-btn:hover {
    border-color: var(--nova-primary);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.12);
    transform: scale(1.02);
}

/* Placement Spots */
.placement-spot {
    position: absolute;
    background: var(--nova-primary);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: .85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Session detail actions: hover/focus dropdown with transition */
#session-detail-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

#session-detail-menu li.lwd-session-burger:hover i.menu-trigger {
    animation: refresh 1s cubic-bezier(.36, .07, .57, .99) 1;
}

#session-detail-menu>.menu-item {
    position: relative;
    display: inline-block;
}

#session-detail-menu>.menu-item>.menu-trigger,
#session-detail-menu>.menu-item>.fa-bars {
    cursor: pointer;
    padding: 6px 8px;
    line-height: 1;
}

/* Panel */
#session-detail-menu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 6px 0 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #d0d0d0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    z-index: 1000;

    opacity: 0;
    transform: translateY(8px);
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility 0s linear .18s;
    will-change: opacity, transform;

    border: 0;
    border-radius: var(--nova-radius);

    left: -133px;
    top: 33px;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
}

/* Items */
#session-detail-menu .submenu li {
    margin: 0;
}

#session-detail-menu .menu-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border: 0;
    background: none;
    color: #222;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
    text-transform: none;
}

#session-detail-menu .menu-link .material-symbols-outlined {
    font-size: 20px;
    vertical-align: middle;
    margin-right: 8px;
}

#session-detail-menu .menu-link:hover,
#session-detail-menu .menu-link:focus {
    background: #f2f2f2;
    outline: none;
}

/* Show on hover or keyboard focus */
#session-detail-menu>.menu-item:hover .submenu,
#session-detail-menu>.menu-item:focus-within .submenu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility 0s;
}

/* Optional: compact when placed next to buttons */
#session-detail-menu {
    margin-left: 8px;
}

#session-detail-menu>.menu-item>.fa-bars {
    font-size: 18px;
}

.lwd-moe-editor-elementor-widget .form-check-input {
    margin-top: 0.1em;
}

.swal2-html-container .swal2-input,
.swal2-html-container .swal2-textarea {
    border: 1px solid #d9e1ef !important;
    border-radius: var(--nova-radius) !important;
    padding: .55rem .75rem !important;
    font-size: .96rem !important;
    color: #2b3856 !important;
    width: 100%;
    transition: var(--nova-trans) !important;
    background: #fff !important;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    #session-detail-menu .submenu {
        background: #1c1c1c;
        border-color: #333;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
    }

    #session-detail-menu .menu-link {
        color: #eee;
        border-radius: 0;
    }

    #session-detail-menu .menu-link:hover,
    #session-detail-menu .menu-link:focus {
        background-color: var(--e-global-color-secondary) !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    #session-detail-menu .submenu {
        transition: none;
    }
}


.media-modal.wp-core-ui .media-modal-close {
    padding: 5px !important;
    display: flex;
    height: 35px;
    width: 35px;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    margin: 10px 10px 0 0;
}

.media-modal.wp-core-ui h1,
.media-modal.wp-core-ui .media-modal-content #media-frame-title h1 {
    font-size: 22px;
}

.media-modal.wp-core-ui h2 {
    font-size: 13px;
    line-height: 1;
}

.media-modal.wp-core-ui .media-attachments-filter-heading,
.media-modal.wp-core-ui .media-frame-menu-heading {
    left: 20px;
    top: 10px;
    margin: 0;
}

.media-modal.wp-core-ui #media-attachment-date-filters {
    width: 100%;
    max-width: fit-content;
}

.media-modal.wp-core-ui .media-sidebar {
    display: none !important;
}

.media-modal.wp-core-ui .media-router .media-menu-item {
    color: #000;
}

/* ============================================================
   LWD Custom Image Picker – Nova Style
   ============================================================ */

/* Modal shell */
#lwd-image-picker-modal.modal.fade.show {
    z-index: 9999 !important;
}

#lwd-image-picker-modal .modal-dialog {
    max-width: 900px;
}

#lwd-image-picker-modal .modal-content {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 25px 70px rgba(30, 42, 80, .22), 0 4px 18px rgba(0, 0, 0, .10);
    overflow: hidden;
}


#lwd-image-picker-modal .modal-content input.form-control,
#lwd-image-picker-modal .modal-content select.form-select {
    padding: .25rem .5rem;
}

/* Header – Nova dark indigo */
#lwd-image-picker-modal .lwd-picker-header {
    background: linear-gradient(135deg, #283d43 0%, #283d43 100%);
    border-bottom: 0;
    padding: 1rem 1.4rem;
}

#lwd-image-picker-modal .lwd-picker-header .modal-title {
    font-weight: 700;
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: .01em;
}

#lwd-image-picker-modal .lwd-picker-header .btn-close {
    /*filter: invert(1) brightness(2);
    opacity: .7;*/
    opacity: 1;
}

#lwd-image-picker-modal .lwd-picker-header .btn-close:hover {
    opacity: 1;
}

/* Tab navigation */
#lwd-image-picker-modal .lwd-picker-tabs {
    background: #f7f8fc;
    border-bottom: 1px solid #e3e8f0;
    padding: 0 1rem;
    gap: .25rem;
    display: flex;
    flex-wrap: nowrap;
}

#lwd-image-picker-modal .lwd-picker-tabs .nav-link {
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: .65rem .9rem;
    letter-spacing: .01em;
    transition: color .15s, border-color .15s;
    display: flex;
    align-items: center;
    gap: .35rem;
}

#lwd-image-picker-modal .lwd-picker-tabs .nav-link:hover {
    color: #fff;
    border-bottom-color: #93c5fd;
}

#lwd-image-picker-modal .lwd-picker-tabs .nav-link.active {
    color: var(--e-global-color-primary);
    border-bottom-color: var(--e-global-color-primary);
    background: transparent;
}

/* Tab content area */
#lwd-image-picker-modal .lwd-picker-tab-content {
    background: #fff;
    min-height: 500px;
    /*380px*/
    max-height: 58vh;
    overflow-y: auto;
}

/* Toolbar (search + sort) */
.lwd-picker-toolbar {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .9rem;
    flex-wrap: wrap;
}

.lwd-picker-toolbar .lwd-picker-search {
    flex: 1 1 200px;
    min-width: 140px;
}

.lwd-picker-toolbar input[type="search"],
.lwd-picker-toolbar select {
    height: 36px;
    font-size: .84rem;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    transition: border-color .15s, box-shadow .15s;
    background: #f9fafb;
    color: #1e293b;
}

.lwd-picker-toolbar input[type="search"]:focus,
.lwd-picker-toolbar select:focus {
    border-color: var(--e-global-color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
    outline: none;
    background: #fff;
}

.lwd-picker-sort-select {
    flex: 0 0 auto;
    width: auto;
    min-width: 150px;
}

/* Image grid */
.lwd-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: .55rem;
}

/* Individual thumbnail card */
.lwd-picker-thumb-wrap {
    position: relative;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    background: #f1f5f9;
    overflow: hidden;
    transition: border-color .14s, box-shadow .14s, transform .14s;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
}

.lwd-picker-thumb-wrap:hover {
    border-color: #93c5fd;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, .15);
    transform: scale(1.04);
}

.lwd-picker-thumb-wrap.selected {
    border-color: var(--e-global-color-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .28);
}

.lwd-picker-thumb-wrap.is-fitting {
    border-color: #10b981 !important;
    background-color: #ecfdf5 !important;
    border-width: 3px;
}

.lwd-picker-thumb-wrap.is-fitting:hover {
    border-color: #059669 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25) !important;
}

/* Checkmark badge on selected */
.lwd-picker-thumb-wrap.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    background: var(--e-global-color-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 6px rgba(59, 130, 246, .35);
}

.lwd-picker-thumb {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    object-fit: cover;
    display: block;
}

.lwd-picker-thumb-label {
    font-size: .68rem;
    color: #64748b;
    text-align: center;
    padding: 3px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(255, 255, 255, .92);
    flex: 0 0 auto;
    border-top: 1px solid #e3e8f0;
}

/* Star toggle / badge */
.lwd-picker-star-toggle,
.lwd-picker-shared-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    transition: all .2s;
    z-index: 10;
}

.lwd-picker-star-toggle {
    border: 1px solid #e2e8f0;
    border-radius: 0px 0px 10px 0px !important;
    color: #000 !important;
    background: #fff !important;
    padding: 10px !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    transition: all .3s ease-in-out;
    transform-origin: top left;
    font-size: 15px !important;
}

.lwd-picker-star-toggle:hover {
    transform: scale(1.2);
    color: #000 !important;
    background: #fff !important;
    border-color: #fcd34d;
}

.lwd-picker-thumb-wrap.is-shared .lwd-picker-star-toggle,
.lwd-picker-shared-badge {
    color: #000;
    background: var(--e-global-color-primary) !important;
    border-color: #fcd34d;
    box-shadow: 0 2px 5px rgba(245, 158, 11, .25);
}

.lwd-picker-shared-badge {
    pointer-events: none;
    background: rgba(255, 255, 255, .8);
    font-size: 11px;
    width: 22px;
    height: 22px;
}

.lwd-picker-thumb-wrap.is-shared {
    background: #fffbeb;
}

.lwd-picker-thumb-wrap.is-shared .lwd-picker-thumb-label {
    background: #fffbeb;
    color: #92400e;
}

/* Upload drop zone */
.lwd-picker-upload-area {
    border: 2px dashed #c7d2e8;
    border-radius: 10px;
    background: #f8faff;
    padding: 3rem 1.5rem;
    cursor: pointer;
    text-align: center;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.lwd-picker-upload-area:hover,
.lwd-picker-upload-area.lwd-picker-drag-over {
    border-color: var(--e-global-color-primary);
    background: #eff6ff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .08);
}

.lwd-picker-upload-icon {
    font-size: 2.8rem;
    color: var(--e-global-color-primary);
    margin-bottom: .6rem;
    opacity: .85;
}

.lwd-picker-upload-text {
    color: #64748b;
    font-size: .95rem;
    font-weight: 500;
}

.lwd-picker-file-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* URL tab */
.lwd-picker-url-preview-img {
    max-width: 100%;
    max-height: 210px;
    border-radius: 8px;
    border: 1px solid #e3e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
    display: block;
    margin-top: .5rem;
}

/* Footer – Nova dark */
#lwd-image-picker-modal .lwd-picker-footer {
    background: linear-gradient(135deg, #283d43 0%, #283d43 100%);
    border-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .8rem 1.4rem;
}

#lwd-image-picker-modal .lwd-picker-footer-btns {
    display: flex;
    gap: .55rem;
}

#lwd-image-picker-modal .lwd-picker-footer .btn-secondary {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
    font-size: .875rem;
}

#lwd-image-picker-modal .lwd-picker-footer .btn-secondary:hover {
    background: rgba(255, 255, 255, .22);
}

#lwd-image-picker-modal .lwd-picker-footer .btn-primary {
    background: var(--e-global-color-primary);
    border-color: #2563eb;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .01em;
}

#lwd-image-picker-modal .lwd-picker-footer .btn-primary:disabled {
    background: rgba(255, 255, 255, .15);
    border-color: transparent;
    color: rgba(255, 255, 255, .45);
}

#lwd-image-picker-modal .lwd-picker-selection-info {
    font-size: .8rem;
    color: rgba(255, 255, 255, .7);
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Empty / loading states */
.lwd-picker-empty,
.lwd-picker-loading {
    grid-column: 1 / -1;
    color: #94a3b8;
}

/* Load more button */
.lwd-picker-load-more .btn {
    font-size: .82rem;
    border-radius: 7px;
    padding: .35rem .9rem;
}

/* ==========================================================================
   GUIDED TOURS EDITOR STYLES
   ========================================================================== */
#guided-tours-section {
    --surface-container: var(--nova-card-bg, rgba(255, 255, 255, 0.85));
    --primary: var(--nova-primary, #f39000);
    --outline-variant: rgba(0, 0, 0, 0.12);
    --error: #dc3545;

    margin-top: 2rem;
    background: #f9fbfe;
    border: 1px solid #e2e7f3;
    border-radius: var(--nova-radius);
    padding: 1.2rem;
    margin-bottom: 0;

    backdrop-filter: blur(var(--nova-card-blur, 16px));
    animation: novaFadeIn 0.5s ease both;
}

#guided-tour-steps-container {
    display: flex;
    flex-flow: row nowrap;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0.75rem 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

#guided-tour-steps-container::-webkit-scrollbar {
    height: 8px;
}

#guided-tour-steps-container::-webkit-scrollbar-track {
    background: transparent;
}

#guided-tour-steps-container::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 99px;
    opacity: 0.5;
}

#guided-tour-steps-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--e-global-color-secondary, #3c74be);
}

/* Room Group Block Styles */
.room-group {
    flex: 0 0 auto;
    width: auto;
    min-height: 470px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--outline-variant, rgba(0, 0, 0, 0.12));
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-self: flex-start;
    transition: var(--nova-trans, all 0.2s ease);
    backdrop-filter: blur(8px);
}

.room-group:hover {
    box-shadow: 0 8px 32px rgba(67, 94, 151, 0.05);
    border-color: rgba(32, 67, 120, 0.18);
}

.room-group-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.room-group-header .material-symbols-outlined {
    color: var(--primary);
    font-size: 20px;
}

.room-group-title {
    font-weight: 700;
    color: #1d2437;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.room-group-body {
    display: flex;
    flex-flow: row nowrap;
    gap: 0.75rem;
    align-items: stretch;
}

.room-group-steps {
    display: flex;
    flex-flow: row nowrap;
    gap: 0.75rem;
    min-height: 100px;
    padding: 2px;
}

.room-group-exit {
    padding-left: 0.75rem;
    display: flex;
    flex-flow: row nowrap;
    gap: 0.5rem;
    align-items: stretch;
}

.room-group-footer {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin-top: auto;
    border-top: 1px solid var(--outline-variant);
    padding-top: 0.75rem;
}

.room-group-footer .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 8px;
}

.room-group-footer .btn .material-symbols-outlined {
    font-size: 16px;
}

.step-card {
    flex: 0 0 320px;
    width: 320px;
    background: #ffffff;
    border: 1px solid var(--outline-variant);
    border-radius: 12px;
    padding: 1.15rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: transform 0.23s cubic-bezier(.4, 0, .2, 1), box-shadow 0.23s ease, border-color 0.23s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    cursor: grab;
    user-select: none;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(32, 67, 120, 0.08);
    border-color: rgba(32, 67, 120, 0.25);
}

.step-card:active {
    cursor: grabbing;
}

/* Error style */
.step-card.has-error {
    border: 2px solid var(--error) !important;
    background: #fffcfc;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.1) !important;
}

.step-card.has-error .step-error-msg {
    display: block;
    color: var(--error);
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.step-error-msg {
    display: none;
}

.step-card .card-header-drag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--outline-variant);
    padding-bottom: 0.75rem;
    margin-bottom: 0.85rem;
}

.step-card .step-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--outline-variant);
}

.step-card .step-drag-handle {
    cursor: grab;
    color: #94a3b8;
    display: flex;
    align-items: center;
    transition: color 0.15s ease;
}

.step-card .step-drag-handle:hover {
    color: var(--primary);
}

.step-card .btn-delete-step {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
}

.step-card .btn-delete-step:hover {
    color: var(--error);
    transform: scale(1.1);
}

.step-card .step-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.step-card label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.15rem;
    display: block;
}

.step-card select,
.step-card input,
.step-card textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 0.35rem 0.6rem;
    font-size: 0.88rem;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.step-card select:focus,
.step-card input:focus,
.step-card textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(32, 67, 120, 0.12);
    outline: none;
}

.step-card .step-footer {
    border-top: 1px solid var(--outline-variant);
    padding-top: 0.75rem;
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-card .current-room-badge {
    background: rgba(32, 67, 120, 0.08);
    color: var(--primary);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Drag placeholder */
.ui-sortable-placeholder {
    border: 2px dashed var(--primary) !important;
    background: rgba(32, 67, 120, 0.02) !important;
    visibility: visible !important;
    border-radius: 12px;
    flex: 0 0 320px;
    width: 320px;
    height: 100%;
}

.ui-sortable-helper {
    transition: none !important;
    transform: none !important;
    box-shadow: 0 12px 36px rgba(32, 67, 120, 0.16) !important;
    border-color: var(--primary) !important;
    cursor: grabbing !important;
}

/* Default Session Badge in overview and detail panels */
.lwd-default-session-badge {
    background: rgba(32, 67, 120, 0.08) !important;
    color: #f39000 !important;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.22rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(32, 67, 120, 0.22);
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Guided Tour Switcher Controls */
#guided-tour-switcher-controls {
    align-items: center !important;
}

#guided-tour-switcher-controls select,
#guided-tour-switcher-controls button,
#guided-tour-switcher-controls input {
    height: 44px !important;
    font-size: 16px !important;
    /* Unified small size (16px) */
    font-weight: 600 !important;
    /* Unified font weight (matching other dashboard buttons) */
    font-family: inherit !important;
    /* Unified font family */
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    margin: 0 !important;
}

/* Adjust paddings for perfect layout inside 44px height */
#guided-tour-switcher-controls select {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0.75rem !important;
    padding-right: 2.25rem !important;
    /* Space for bootstrap select arrow */
}

#guided-tour-switcher-controls button {
    padding: 0 1rem !important;
    transition: all 0.15s ease-in-out !important;
}

/* For icon-only or small-icon buttons, keep them square or with small padding */
#guided-tour-switcher-controls button#rename-tour-btn,
#guided-tour-switcher-controls button#delete-current-tour-btn {
    width: 44px !important;
    padding: 0 !important;
}

/* Ensure Google Material Icons are centered */
#guided-tour-switcher-controls button .material-symbols-outlined {
    font-size: 18px !important;
    /* Slightly larger icon fits perfectly in 44px button */
    font-weight: 400 !important;
    margin: 0 !important;
}

/* Unified Button Styles: All dashboard and tour section buttons 16px font-size and font-weight 600 */
#lwd-sessions-dashboard .btn:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
#lwd-sessions-dashboard .btn-lg:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
#lwd-sessions-dashboard .btn-sm:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
#lwd-sessions-dashboard .nova-btn:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
#lwd-sessions-dashboard input[type="button"]:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
#lwd-sessions-dashboard input[type="submit"]:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
#lwd-sessions-dashboard input[type="reset"]:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
.modal .modal-content .modal-footer .btn,
.modal .modal-content form:not(#addRoomForm) .btn,
#lwd-sessions-dashboard #room-customizer-root #resetBtn,
#guided-tours-section .btn:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
#guided-tours-section .btn-lg:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
#guided-tours-section .btn-sm:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
#guided-tours-section .nova-btn:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
#guided-tours-section input[type="button"]:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
#guided-tours-section input[type="submit"]:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
#guided-tours-section input[type="reset"]:not(#room-customizer-root *):not(#designer-area *):not(.modal *) {
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* Standard buttons with text */
#lwd-sessions-dashboard .btn:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
#lwd-sessions-dashboard .btn-lg:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
#lwd-sessions-dashboard .nova-btn:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
.modal .modal-content .modal-footer .btn,
.modal .modal-content form:not(#addRoomForm) .btn,
#guided-tours-section .btn:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
#guided-tours-section .btn-lg:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
#guided-tours-section .nova-btn:not(#room-customizer-root *):not(#designer-area *):not(.modal *) {
    padding: 10px 20px !important;
    /* Unified padding for standard buttons with text */
    height: 44px !important;
    /* Standard height 44px for a consistent layout */
    width: auto !important;
    /* Ensure it is not square */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}

/* Small buttons with text */
#lwd-sessions-dashboard .btn-sm:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
#guided-tours-section .btn-sm:not(#room-customizer-root *):not(#designer-area *):not(.modal *),
#lwd-sessions-dashboard #room-customizer-root #resetBtn {
    padding: 8px 16px !important;
    /* Unified padding for small buttons with text */
    height: 36px !important;
    /* Small button standard height */
    width: auto !important;
    /* Ensure it is not square */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
}

/* product-info-btn specific style with !important flags */
.product-info-btn {
    width: 35px !important;
    height: 35px !important;
    border-radius: 100% !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    background-color: #f3901d !important;
    border: none !important;
    color: #ffffff !important;
    transition: background-color 0.15s ease-in-out !important;
}

.product-info-btn:hover {
    background-color: #e07f12 !important;
    color: #ffffff !important;
}

#swal-product-edit-form-container .form-control[type=file],
#swal-product-edit-form-container .form-text,
#swal-product-edit-form-container .lwd-gallery-delete-btn,
#swal-product-edit-form-container .mt-3>button.btn {
    display: none !important;
}

#swal-product-edit-form-container .form-check-input[type=checkbox],
#swal-product-edit-form-container input.form-control,
#swal-product-edit-form-container select.form-select {
    pointer-events: none;
}

#swal2-title:not(:empty),
#swal2-html-container:not(:empty) {
	display: block !important;
}
