:root {
    --eshb-primary-color: #ab8965;
    --eshb-success-color: #1ec734;
    --eshb-danger-color: #e41749;
    --eshb-primary-color-rgb: 171, 137, 101;
    --eshb-dark-color: #181818;
    --eshb-white-color: #ffffff;
    --eshb-border-color: #ab8965;
}
.eshb-text-danger {
    color: var(--eshb-danger-color);
}
.eshb-text-success {
    color: var(--eshb-success-color);
}
.eshb_accomodation_page_easy-hotel-settings{
    .notice{
        display: none !important;
    }
    .csf-theme-light .csf-container{
        border:none !important;
        border-radius: 8px;
        -webkit-box-shadow: 0 4px 40px rgba(0, 0, 0, .05);
        box-shadow: 0 4px 40px rgba(0, 0, 0, .05);
        overflow: hidden;        
        .csf-header-left{
            background: url(../img/fav.svg);
            background-repeat: no-repeat;
            padding-left: 40px;
            padding-bottom: 10px;
        }
    }
}
.csf-field.hidden-metabox {
    display: none;
}
.csf-field.hide-add-new {
    .csf-repeater-add {
        display: none;
    }
    .csf-repeater-helper {
        display: none;
    }
}
.csf-field-repeater.has-inline-repeater-fields .csf-repeater-content {
    display: flex;
    gap: 16px;
    >.csf-field {
        display: flex;
        flex-direction: column;
        align-items: center;
        @media only screen and (max-width: 1024px){
            display: block;
        }
        .csf-title {
            width: 25%;
        }
        .csf-fieldset {
            width: 65%;
        }
    }
    @media only screen and (max-width: 1024px){
        display: block;
    }
}
.csf-field-heading-sm {
    font-size: 15px;
}
.eshb-admin-notice {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    margin-right: 20px;
    padding: 10px;
    &.eshb-admin-notice-large {
        font-size: 20px;
        padding: 40px;
    }
}
.inline-group-fields .csf-repeater-wrapper .csf-repeater-item {
    display: flex;
    .csf-repeater-content {
        display: flex;
        .csf-field {
            display: flex;
            flex-direction: column;
        }
    }
    .csf-repeater-content {
        .csf-title {
            width: 100%;
        }
    }
    .csf-repeater-helper {
        width: auto;
        align-content: center;
    }
}
.easy-hotel-plugin-settings.csf-theme-light {
    .csf-container{
        max-width: 1350px;
        margin:0 auto;
    }
    .csf-header-inner,
    .csf-nav-inline {        
        border-color: #f1f1f1;
        h1{
            color: #222;
            font-weight: 600;
        }
    }
    .csf-wrapper {
        overflow: hidden;
    }
    .csf-nav-inline{
        padding: 30px;
        background: #fff;
        ul{
            li{
                border-radius: 3px;
                overflow: hidden;
                margin-right: 10px;
                a{
                    color: #222;
                    background-color: #eaeaea;
                    padding:11px 30px;
                    border:none !important;
                    &:hover{
                        color: #fff;
                        background-color: #4360ef;
                    }
                }
                .csf-active{
                    color: #fff;
                    background-color: #4360ef;
                }
            }
        }
    }
    .csf-buttons .button{
        padding:6px 30px;
        border:none !important;
        &.csf-top-save{
            background:#4360ef ;
        }
    }    
}
.eshb-notice {
    padding: 10px;
    &.notice {
        border-left-color: #576AE3 !important;
        padding: 10px;
    }
    padding: 5px !important;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;    
}
.eshb-notice .notice-logo {
    padding: .8rem;
    max-width: 110px;
    max-height: 110px;
}
.eshb-notice .notice-right-container {
    margin: .7rem .8rem .8rem;
}
.eshb-notice-action-buttons {
    margin-top: 5px;
}
.eshb-notice-button {
    background-color: #576AE3;
    color: #fff;
    display: inline-block;
    text-decoration: none;
    font-size: 13px;
    margin: 0;
    padding: 6px 10px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    -webkit-appearance: none;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
}
.eshb-notice-button:hover {
    color: #fff;
}
.eshb-notice-action-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.eshb-notice-widget-inner .feature-image {
    max-width: 100%;
}
.eshb-notice-widget-inner .eshb-notice-button {
    background-color: transparent;
}

#eshb-notice-emicon_pro_plugin_notice .eshb-notice-action-buttons{
    margin-top: 10px;
}
.easy_hotel_usage_callback {
    border: 1px solid #ededed;
    border-radius: 10px;
    margin-bottom: 50px;
    padding: 30px;
}

.easy_hotel_help_support_callback {
    border: 1px solid #ededed;
    border-radius: 10px;
    margin-bottom: 50px;
    padding: 30px;
    .help-col-container {
        display: flex;
        gap: 30px;
        .help-col {
            width: 25%;
            border: 1px solid #ededed;
            margin-bottom: 50px;
            padding: 30px;
            border-radius: 20px;
            box-shadow: 2px 2px 30px #ededed;
        }
    }
    .eshb-youtube-playlist {
        display: flex;
        max-width: 100%;
        flex-wrap: wrap;
        gap: 20px;
      
        .eshb-video-player {
          flex: 2 1 590px;
          min-width: 500px;
          iframe {
            width: 100%;
            height: 450px;
            border: none;
          }
        }
      
        .eshb-playlist-sidebar {
          flex: 1 1 300px;
          min-width: 250px;
          max-height: 450px;
          overflow-y: auto;
          background: #f9f9f9;
          border: 1px solid #ddd;
      
          h3 {
            margin: 0;
            padding: 10px;
            background: #eee;
            font-size: 16px;
            font-weight: bold;
          }
      
          .eshb-playlist-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 8px;
            border: none;
            background: white;
            cursor: pointer;
            box-shadow: 3px 3px 3px #77777729;
            transition: background 0.2s ease;
      
            &:hover {
              background: #f0f0f0;
            }
      
            img {
              width: 120px !important;
              height: 68px;
              object-fit: cover;
            }
      
            .eshb-video-title {
              flex: 1;
              font-size: 14px;
              font-weight: 500;
            }
          }
        }
    }
      
    
}

.order-status {
    display: inline-flex;
    line-height: 2.5em;
    color: #454545;
    background: #e5e5e5;
    border-radius: 4px;
    border-bottom: 1px solid rgba(0,0,0,.05);
    margin: -.25em 0;
    cursor: inherit!important;
    white-space: nowrap;
    max-width: 100%;
    text-transform: capitalize;
    span {
        margin: 0 1em;
        overflow: hidden;
        text-overflow: ellipsis
    }
    &.status-completed {
        background: #c8d7e1;
        color: #003d66
    }
    
    &.status-on-hold {
        background: #f8dda7;
        color: #573b00
    }
    
    &.status-failed {
        background: #eba3a3;
        color: #570000
    }
    
    &.status-processing {
        background: #c6e1c6;
        color: #2c4700
    }
    
    &.status-trash {
        background: #eba3a3;
        color: #550202
    }
}

.eshb-themes-addons-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px;
    margin-right: 20px;
    @media (max-width: 991px) {
        display: block;
    }
    .eshb-addons-action-button {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        margin-right: 10px;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 500;
        line-height: 40px;
        padding: 0 20px;
        text-decoration: none;
        border: none;
        background: #0039b6;
        color: #fff;
        &.view-all-btn {
            margin: auto;
            display: block;
            width: fit-content;
        }
        &.eshb-action-btn-primary {
            background-color: rgba(62, 98, 245, .1);
            color: #3e62f5;
            &:hover {
                color: #ff408c;
            }
        }
        &.eshb-action-btn-secondary {
            background-color: rgba(255, 64, 140, .1);
            color: #ff408c;
            &:hover {
                color: #0066bf;
            }
        }
    }
    .eshb-pro-addons-card-group {
        display: grid;
        gap: 1em;
        margin-bottom: 30px;
        .eshb-pro-addons-card {
            background-color: #fff;
            margin: 0;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            box-shadow: 0 5px 5px rgba(173, 180, 210, 0.05);
            border-radius: 5px;
            padding: 0;
            position: relative;
            overflow: hidden;
            span.eshb-pro-addons-base {
                background: #f9f9f9;
                display: block;
                font-size: 11px;
                position: absolute;
                left: -20px;
                top: 9px;
                transform: rotate(-45deg);
                width: 78px;
                span {
                    width: auto;
                    display: block;
                    padding: 2px 10px;
                    color: #fff;
                    text-align: center;
                    &.eshb-pro-base {
                        background: #93003f;
                    }
                    &.eshb-free-base {
                        background: #f59e0b;
                    }
                }
            }
            .eshb-pro-addons-body {
                display: flex;
                gap: 15px;
                padding: 1.5em;
                .eshb-pro-addons-thumbnail {
                    overflow: hidden;
                    width: 250px;
                    height: 150px;
                    display: block;
                    text-align: center;
                    border-radius: 4px;
                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
                .eshb-pro-addons-content {
                    width: calc(100% - 245px);
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                }
                .eshb-pro-addons-name {
                    margin: 0;
                }
            }
            .eshb-pro-addons-action {
                display: flex;
                align-items: center;
            }
            
        }
    }
}


#eshb-license-activator {
    .form-group {
        display: inline-flex;
        position: relative;
        align-items: center;
        button,
        input[name="licnese_key"] {
            max-width: 255px;
            width: 255px;
            border: 1px solid #c4c4c4;
            padding: 8px 20px;
        }
        button {
            max-width: unset;
            width: unset;
        }
        .ajax-loader {
            display: none;
            position: absolute;
            right: -45px;
            img {
                height: 50px;
            }
        }
    }
}
body.rtl {
    .csf-content {
        margin-right: 0;
    }
}
.eshb-booking-info-calendar {
    --eshb-calendar-ical-completed-color: #97dfd4b5;
    --eshb-calendar-completed-color: #cef093;
    --eshb-calendar-pending-color: #fed24d;
    --eshb-calendar-blocked-color: #ffd0d0;
    .eshb-calendar-filter {
        padding: 15px;
        margin-bottom: 20px;
        background: #fff;
        gap: 20px;
        display: flex;
        justify-content: space-between;
        margin-right: 15px;
        width: auto;
        position: relative;
        @media (max-width: 767px) {
                flex-direction: column;
        }
        .eshb-calendar-filter-form {
            gap: 20px;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            .eshb-calendar-filter-options {
                display: flex;
                gap: 20px;
                align-items: center;
                flex-wrap: wrap;
                #eshb-calendar-filter-period-wrapper {
                    display: flex;
                    align-items: center;
                    gap: 5px;
                    @media (max-width: 767px) {
                        > span {
                            display: none;
                        }
                    }
                }
            }
            .eshb-calendar-filter-actions {
                .button:nth-child(1) {
                    margin-right: 5px;
                }
            }
            @media (max-width: 767px) {
                
            }
        }
        .eshb-calendar-legends {
            display: flex;
            gap: 10px;
            .legend-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                padding: 0 5px;
                font-size: 12px;
                &::before {
                    position: relative;
                    display: inline-block;
                    width: 15px;
                    height: 15px;
                    margin-right: 2px;
                    top: 3px;
                    content: "";
                    margin-bottom: 5px;
                }
                &.ical-complete {
                    &::before {
                        background-color: var(--eshb-calendar-ical-completed-color);
                    }
                }
                &.complete {
                    &::before {
                        background-color: var(--eshb-calendar-completed-color);
                    }
                }
                &.pending {
                    &::before {
                        background-color: var(--eshb-calendar-pending-color);
                    }
                }
                &.blocked {
                    &::before {
                        background-color: var(--eshb-calendar-blocked-color);
                    }
                }
            }
        }
        
    }
    .eshb-booking-info-calendar-tables {
        display: flex;
        margin-right: 15px;
        width: auto;
        position: relative;
        .eshb-accomodations-dates-table-wrapper {
            overflow-x: auto;
            position: relative;
            max-width: 100%;
            scroll-behavior: smooth;
        }
        table {
            background: #fff;
            border-collapse: collapse;
            width: 100%;
            table-layout: fixed;
            &.eshb-accomodations-rooms-table {
                position: absolute;
                height: calc(100% - 13px);
                width: 160px;
                @media (max-width: 767px) {
                    height: calc(100% + 3px);
                }
            }
            border-collapse: collapse;
            overflow-y: auto;
            >thead tr, >tfoot tr {
                height: 77px;
                max-height: 77px;
                th {
                    min-width: 45px;
                    width: 45px;
                }
            }
            tr {
                height: 100%;
            }
            th, td {
                height: inherit;
                min-width: 40px;
                border-collapse: collapse;
                border: 1px solid #e3e3e3;
            }
            th {
                font-size: 12px;
                
            }
            td {
                height: 45px;
                
                a {
                    text-decoration: none;
                }
                .room-info {
                    padding: 4px 15px;
                }
                &.booking-info-col {
                    vertical-align: baseline;
                }
                &.booking-info-col[colspan="1"] {
                    max-width: 40px;
                    min-width: 40px;
                }
                .booking-info {
                    margin: 1px;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    padding: 3px 5px;
                    font-size: 12px;
                    &.ical-status-completed {
                        background: var(--eshb-calendar-ical-completed-color);
                    }
                    &.status-completed {
                        background: var(--eshb-calendar-completed-color);
                    }
                    &.status-blocked {
                        background: var(--eshb-calendar-blocked-color);
                    }
                    &.status-pending {
                        background: var(--eshb-calendar-pending-color)
                    }
                }
                
            }
            .left-heading {
                position: sticky;
                left: 0;
                z-index: 3;
                box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* optional for visual effect */
                width: 160px;
                background-color: #fff;
                div {
                    display: block;
                    height: 100%;
                    position: absolute;
                    left: 50%;
                    top: 50%;
                    transform: translate(-50%, -50%);
                    width: 100%;
                    align-content: center;
                    border-right: 2px solid #e3e3e3;
                }
            }
            .table-heading {
                font-size: 15px;
            }
        }

          
          
    }
}
#eshb-booking-info-modal {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 99999999 !important; // Increased z-index
    display: none;
    opacity: 1;
    pointer-events: auto !important; // Ensure modal is interactive
    visibility: visible;

    .booking-info-modal-bg-overlay {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 99999998 !important; // Background overlay should be just below modal
    }

    .booking-info-modal-main {
        position: fixed;
        background: #fff;
        z-index: 99999999 !important; // Modal must be on top
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        max-width: 100%;
        width: 750px;
        box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.3); // Add shadow for better visibility
        @media (max-width: 767px) {
            width: 100%;
        }
        .booking-info-modal-header {
            display: block;
            position: relative;
            height: auto;
            background: #fcfcfc;
            padding: 1em 1.5em;
            border-bottom: 1px solid #ddd;
            h2 {
                padding: 0 !important;
                margin: 0 !important;
                font-size: 18px !important;
                font-weight: 700 !important;
                line-height: 1.5em !important;
            }
            .booking-info-modal-close {
                cursor: pointer;
                color: #777;
                height: 54px;
                width: 54px;
                padding: 0;
                position: absolute;
                top: 0;
                right: 0;
                text-align: center;
                border: 0;
                border-left: 1px solid #ddd;
                background-color: transparent;
                transition: color .1s ease-in-out, background .1s ease-in-out;
                border-radius: 0;
                z-index: 99999999 !important; // Ensure close button is above all

                &::before {
                    font: normal 22px/50px dashicons !important;
                    color: #666;
                    display: block;
                    content: "\f335";
                }
            }
        }

        .booking-info-modal-content {
            padding: 0.5em 1.5em 2em;
            overflow: auto;
            max-height: 85vh;
        }
    }
}