.CodeMirror,
.CodeMirror-scroll {
    min-height: 150px !important;
}

.custom-button:active {
    border-style: none;
    -webkit-tap-highlight-color: transparent;
}

.custom-button:hover {
    transform: none;
}

.custom-button:focus,
.custom-button:active:focus,
.custom-button.active:focus {
    outline: none !important;
    outline-offset: 0 !important;
}

.input-group-btn>.custom-button:hover,
.input-group-btn>.custom-button:focus,
.input-group-btn>.custom-button:active {
    z-index: 0 !important;
}

.rrssb-buttons li.rrssb-twitter a {
    background-color: #000000 !important;
}

.rrssb-buttons li.rrssb-twitter a:hover {
    background-color: #000000 !important;
}

.table-hover tbody tr:hover td,
.table-hover tbody tr:hover th {
    background-color: #f5f5f5;
}

.dtpicker-overlay {
    opacity: 0 !important;
    display: none !important;
}

.radio-label {
    margin-right: 20px;
}

/* .footer-custom-container {
    background: white;
    height: 60px;
} */

.custom-footer {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    margin-top: 1.8rem;
    margin-bottom: 0.5rem;
    justify-content: start;
    display: flex;
    align-items: center;
}

.custom-footer-class {
    position: relative;
    bottom: 0;
    width: 100%;
    background: white;
}


.responsive-table {
    overflow: auto;
}

@media (max-width: 768px) {
    .footer-custom-container {
        margin-top: 25px;
    }
}

.touch .sidebar .content {
    overflow-y: auto;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    -webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 767px) {
    .touch .sidebar .content {
        overflow-y: scroll;
    }

    /* Organiser Dasboard Tables */
    .custom-th {
        width: 10px;
    }

    .organiser-name-font {
        font-size: small;
    }

}

/* Organiser Dasboard Tables */
@media (min-width: 769px) {
    .custom-th {
        padding-left: 0 !important;
    }
}

/* Event Image at customize/general  */
.thumbnail.custom_thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.bth_image_container {
    position: relative;
    display: inline-block;
}


.btn_delete_organiser_logo {
    position: absolute;
    top: 3px;
    right: 3px;
    padding: 4px;
    background: white;
}

/* End */

/*  */
.btn_delete_custom_upload_image {
    position: relative;
    right: 35px;
    bottom: 22px;
    padding: 4px;
    background: white;
}

div#custom_uploaded_images img {
    width: 120px;
    position: relative;
}

.mr-1 {
    margin-right: 1px
}

.mr-2 {
    margin-right: 2px
}

.mr-3 {
    margin-right: 3px
}

.mr-4 {
    margin-right: 4px
}

.visibility_draft_span {
    background: #5c5c5c;
    font-size: smaller;
    padding: 2px;
}

.visibility_live_span {
    background: green;
    font-size: smaller;
    padding: 2px;
}

li.menu-list.active i::before {
    content: "\e755";
    font-family: 'iconfont';
}

/* Dashbord */
@media (max-width: 576px) {
    .sm-dashbord {
        margin-bottom: 15px !important;
    }
}

@media (max-width: 768px) {
    .sm-dashbord {
        margin-bottom: 15px !important;
    }
}

.g-recaptcha {
    justify-content: center;
    display: flex;
}

@media (max-width: 375px) {
    .custom-panel {
        padding: 6px !important;
    }
}

@media (max-width: 320px) {

    .g-recaptcha {
        transform: scale(0.82);
        transform-origin: 0 0;
        justify-content: none;
        display: block;
        margin-bottom: -10px;
    }

}

.events-sidebar {
    justify-content: left;
    display: flex;
    color: white;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    margin-left: 15px;
}

.required-val {
    content: '*';
    color: red;
    font-size: 9px;
}

.disabled_btn {
    pointer-events: none;
    cursor: not-allowed;
    background: #f5f5f5;
}

.sidebar .content>.heading {
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    color: #fff;
    margin: 0px;
    padding: 15px 25px 15px 17px;
}

/* Customize Event - Tab Event Details */
.disabled_form .form-control {
    background-color: #eee !important;
    pointer-events: none;
    cursor: not-allowed;
}

.disabled_form .thumbnail {
    background-color: #eee !important;
    pointer-events: none;
    cursor: not-allowed;
}

.disabled_form .CodeMirror {
    background-color: #eee !important;
    pointer-events: none;
    cursor: not-allowed;
    color: rgba(0, 0, 0, 0.5);
}

.disabled_form .editor-toolbar {
    background-color: #eee !important;
    pointer-events: none;
    cursor: not-allowed;
}

/* End */

/* Customize Event - Tab Tickets */
.disabled_form .panel-success>.panel-heading {
    background-color: rgba(0, 0, 0, 0.5) !important;
    color: #eee;
    pointer-events: none;
    cursor: not-allowed;
}

.disabled_form .panel-body {
    background-color: #eee !important;
    pointer-events: none;
    cursor: not-allowed;
}

.disabled_form .disable-tickets-footer {
    background-color: #eee !important;
    pointer-events: none;
    cursor: not-allowed;
}

.disabled_form .disable-tkt-btn {
    background-color: rgba(0, 0, 0, 0.5) !important;
    pointer-events: none;
    cursor: not-allowed;
    border-color: rgba(0, 0, 0, 0.5) !important;
}

/* End */

/* Customize Event - Tab Social */
.disabled_form .disable-social-btns {
    background-color: #eee !important;
    pointer-events: none;
    cursor: not-allowed;
}

.disabled_form .disable-affliates-table {
    background-color: #eee !important;
    pointer-events: none;
    cursor: not-allowed;
}

.disabled_form .disable-alert-yet {
    background-color: #eee !important;
    pointer-events: none;
    cursor: not-allowed;
}

/* End */

/* Customize Event - Tab Payment */
.disabled_form .disable-offline-checkbox {
    background-color: #eee !important;
    pointer-events: none;
    cursor: not-allowed;
}

.disabled_form .disable-ec-payment {
    background-color: #eee !important;
    pointer-events: none;
    cursor: not-allowed;
}

/* End */

/* Attendees List */
.disabled_form .btn-success {
    background-color: rgba(0, 0, 0, 0.5) !important;
    pointer-events: none;
    cursor: not-allowed;
    border-color: rgba(0, 0, 0, 0.5) !important;
}

/* End */

/* Search Button Disable on All Pages */
.disabled_form .btn-default {
    background-color: rgba(0, 0, 0, 0.5) !important;
    pointer-events: none;
    cursor: not-allowed;
    border-color: rgba(0, 0, 0, 0.5) !important;
}

/* End */

/* Attendees */
.disabled_form .disable-attendees-table {
    background-color: #eee !important;
    pointer-events: none;
    cursor: not-allowed;
}

.disabled_form .attendee_list {
    background-color: #eee !important;
    pointer-events: none;
    cursor: not-allowed;
}

/* End */

/* Checkin */
.disabled_form .btn-rd-danger {
    background-color: rgba(0, 0, 0, 0.5) !important;
    pointer-events: none;
    cursor: not-allowed;
    border-color: rgba(0, 0, 0, 0.5) !important;
}

.disabled_form .btn-gr-success {
    background-color: rgba(0, 0, 0, 0.5) !important;
    pointer-events: none;
    cursor: not-allowed;
    border-color: rgba(0, 0, 0, 0.5) !important;
}

/* End */

/* Survey */
.disabled_form .disable-survey-table {
    background-color: #eee !important;
    pointer-events: none;
    cursor: not-allowed;
}

/* End */

/* Access Codes */
.disabled_form .disable-access-codes-table {
    background-color: #eee !important;
    pointer-events: none;
    cursor: not-allowed;
}

/* End */

.disabled_form .browse-e-img {
    pointer-events: none;
    cursor: not-allowed;
}

/* Navbar Logo */
.navbar-logo {
    max-width: 150px;
}

/* Beta Text */
.logo-container {
    display: flex;
    align-items: center;
    position: relative;
}

.beta-label {
    background-color: #ffc000;
    color: #4f81bd;
    padding: 2px 6px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 3px;
    margin-left: 5px;
    display: none;
}

@media (min-width: 1024px) {
    .custom-logo {
        max-width: 40%;
        /* Limit the width to 40% */
        display: block;
        /* To enable the use of margin auto for centering */
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 1023px) {
    .custom-logo {
        max-width: 55%;
        /* Limit the width to 55% */
        display: block;
        /* To enable the use of margin auto for centering */
        margin-left: auto;
        margin-right: auto;
    }
}

.btn_event_gray.live {
    pointer-events: none;
    cursor: not-allowed;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.sidebar.event_live {
    margin-top: 0px;
}

.sidebar.event_not_live {
    margin-top: 45px;
}

input[name="iban"] {
    text-transform: uppercase;
}

input[name="retype_iban"] {
    text-transform: uppercase;
}

.nav-divider {
    border-top: 1px solid #6c6e81;
    height: 0px;
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid #404675;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}


@keyframes spinner-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Event Form Page Flyer Section CSS Start */
.flyer-section {
    width: 900px;
    height: 450px;
    margin-bottom: 8px;
}

.flyer-section img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.flyer-section .image {
    text-align: center;
    position: relative;
    width: 900px;
    height: 450px;
    background-color: rgb(211 211 211 / 30%);
}

a.btn_delete_event_image {
    position: absolute;
    top: 5px;
    right: 12px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
}

.btn_delete_event_image i {
    font-size: 16px;
    color: #dc3545;
}

/* Event Form Page Flyer Section CSS End */

.btn-disabled{
    background-color: #8f92aa !important; 
    border-color: #8f92aa !important;
}

.btn-instagram{
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    color: white;
}
.organiser-social-section{
    margin-top: 20px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.organiser-social-section a{
    width: 160px;
    margin: 0;
}

/* Fix for iOS Safari showing hidden business details */
#business_details {
    display: none !important;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .password-with-toggle {
    padding-right: 40px;
}

.password-input-wrapper .password-with-toggle::-ms-reveal,
.password-input-wrapper .password-with-toggle::-ms-clear {
    display: none;
}

.password-toggle-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 12px;
    color: #999;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus {
    color: #333;
    outline: none;
}

/* ==========================================================================
   Public event page (/e/{id}/{slug}) - mobile layout
   ========================================================================== */
@media (max-width: 767px) {
    /* Cards: side gutters + spacing between them */
    #event_page_wrap section.container {
        width: auto;
        margin: 0 12px 16px;
        padding: 16px;
    }

    /* Tickets: title on first row, price + qty/status on second row */
    #event_page_wrap #tickets .tickets_table_wrap table,
    #event_page_wrap #tickets .tickets_table_wrap tbody {
        display: block;
        width: 100%;
    }

    #event_page_wrap #tickets .tickets_table_wrap tr {
        display: block;
    }

    #event_page_wrap #tickets .tickets_table_wrap tr.ticket {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 12px;
        padding: 12px 0;
        border-top: 1px solid #ddd;
    }

    #event_page_wrap #tickets .tickets_table_wrap tr.ticket:first-child {
        border-top: none;
    }

    #event_page_wrap #tickets .tickets_table_wrap tr td {
        display: block;
        border-top: none;
        padding: 0;
    }

    #event_page_wrap #tickets .tickets_table_wrap tr.ticket td:nth-child(1) {
        flex: 0 0 100%;
    }

    #event_page_wrap #tickets .tickets_table_wrap tr.ticket td:nth-child(2) {
        flex: 1 1 auto;
        width: auto !important;
        text-align: left !important;
    }

    #event_page_wrap #tickets .tickets_table_wrap tr.ticket td:nth-child(3) {
        flex: 0 0 auto;
        width: auto !important;
        min-width: 85px;
        text-align: right;
    }

    #tickets .ticket-title {
        display: block;
    }

    #tickets .ticket-descripton {
        margin-top: 4px;
        font-size: 13px;
    }

    #tickets .ticket-pricing {
        margin-right: 0 !important;
    }

    #event_page_wrap #tickets .tickets_table_wrap tr:not(.ticket) td {
        padding: 12px 0;
    }

    #event_page_wrap #tickets .tickets_table_wrap tr.checkout td {
        border-top: none;
    }

    #event_page_wrap #tickets .tickets_table_wrap tr.checkout .btn {
        float: none !important;
        width: 100%;
    }

    #tickets .has-access-codes .form-group {
        display: block !important;
        margin: 8px 0 0 !important;
    }
}

@media (max-width: 767px) {
    /* Section headings: less tracking so long titles don't crowd the card */
    #event_page_wrap .section_head {
        font-size: 24px;
        letter-spacing: .08em;
        padding: 4px 0 0;
        margin: 0 0 20px;
        width: 100%;
    }

    /* Share buttons: breathing room between them */
    #share .rrssb-buttons li {
        padding: 0 4px;
    }
}

@media (max-width: 767px) {
    /* Footer: tidy link wrap + bottom space so the fixed TOP button never covers links */
    #event_page_wrap .custom-footer-class,
    .custom-footer-class {
        padding: 8px 16px 72px;
    }

    .custom-footer-class .footer-custom-container {
        margin-top: 0;
        padding: 0;
    }

    .custom-footer-class .custom-footer {
        justify-content: center;
        margin: 16px 0 0;
    }

    .custom-footer-class .list-inline {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 16px;
        margin: 0;
        padding: 0;
    }

    .custom-footer-class .list-inline > li {
        padding: 0;
    }

    .custom-footer-class .list-inline .nav-link {
        padding: 4px 0 !important;
    }

    /* Smaller back-to-top button tucked into the corner */
    .totop {
        right: 12px;
        bottom: 12px;
        width: 64px;
        height: 36px;
        line-height: 36px;
    }
}

@media (max-width: 767px) {
    /* Map card: map fills the card edge to edge */
    #event_page_wrap #location {
        padding: 0;
        overflow: hidden;
    }

    #event_page_wrap #location .row,
    #event_page_wrap #location .col-md-12,
    #event_page_wrap #location .google-maps.content {
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 767px) {
    /* Checkout (/e/{id}/checkout/create): stop padding stacking on nested rows/cols */
    #event_page_wrap #order_form .row {
        margin-left: -15px;
        margin-right: -15px;
    }

    #event_page_wrap #order_form > .row > .section_head {
        padding-left: 15px;
        padding-right: 15px;
    }

    #event_page_wrap #order_form .panel-body {
        padding: 12px;
    }

    #event_page_wrap #order_form .panel-heading .panel-title {
        line-height: 1.35;
    }

    /* Order summary: title wraps, price stays on one line */
    #event_page_wrap #order_form .panel-body .table td {
        vertical-align: top;
    }

    #event_page_wrap #order_form .panel-body .table td:last-child {
        white-space: nowrap;
        padding-left: 10px;
    }

    /* Copy buyer details button: fit within card, wrap text if needed */
    #event_page_wrap #order_form .p20.pl0 {
        padding: 0 0 15px !important;
    }

    #event_page_wrap #order_form #mirror_buyer_info {
        display: block;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    #event_page_wrap #order_form .ticket_holders_details h3 {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    /* Payment page (/e/{id}/checkout/payment): payment methods sit in a row with no cols */
    #event_page_wrap #order_form .col-md-pull-4 > .row {
        margin-left: 0;
        margin-right: 0;
    }

    #event_page_wrap #order_form #payment-error-banner {
        margin-left: 0;
        margin-right: 0;
    }

    #event_page_wrap #order_form #payment-error-banner > div {
        margin-bottom: 15px;
    }

    #event_page_wrap #order_form .payment-method-option__box {
        min-height: 100px;
        padding: 16px 12px;
    }
}

@media (max-width: 767px) {
    /* Intro TICKETS / DETAILS / LOCATION buttons: one row of three */
    #event_page_wrap #intro .event_buttons {
        margin-top: 24px;
    }

    #event_page_wrap #intro .event_buttons .row {
        display: flex;
        gap: 8px;
        margin: 0;
    }

    #event_page_wrap #intro .event_buttons .row > [class*="col-"] {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        padding: 0;
    }

    #event_page_wrap #intro .event_buttons .btn-event-link {
        margin-bottom: 0;
        padding: 0 4px;
        font-size: 13px;
        letter-spacing: 1px;
        line-height: 36px;
    }
}

@media (max-width: 767px) {
    /* Organiser social buttons: keep in one row, equal widths */
    .organiser-social-section {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .organiser-social-section a {
        flex: 1 1 0;
        min-width: 0;
        max-width: 160px;
        width: auto;
        padding-left: 6px;
        padding-right: 6px;
    }
}

@media (max-width: 767px) {
    /* Intro card: use the card's own padding instead of stacking extra padding */
    #event_page_wrap #intro {
        padding: 16px;
    }

    #event_page_wrap #intro > .row > .col-md-12 {
        padding-left: 0;
        padding-right: 0;
    }

    /* Bootstrap clearfix pseudo-elements must not become flex items */
    #event_page_wrap #intro .event_buttons .row::before,
    #event_page_wrap #intro .event_buttons .row::after {
        display: none;
    }
}

/* Intro date line: "to" only used in stacked (mobile, multi-day) layout */
#event_page_wrap #intro .event-date-to {
    display: none;
}

@media (max-width: 767px) {
    /* Multi-day events: start / to / end on separate rows, venue below */
    #event_page_wrap #intro .event-date-range--multi,
    #event_page_wrap #intro .event-date-range--multi > span {
        display: block;
    }

    #event_page_wrap #intro .event-date-range--multi .event-date-sep {
        display: none;
    }

    #event_page_wrap #intro .event-date-range--multi .event-date-to {
        display: block;
        font-size: .8em;
        line-height: 1.6;
        text-transform: lowercase;
    }

    #event_page_wrap #intro .event-date-range--multi + .event-venue-line {
        display: block;
        margin-top: 6px;
    }
}
