﻿
.modEventsFilterBar {
    margin: 20px 0px 15px;
    padding: 0px 15px;
    background: #F1F1F1;
}

    .modEventsFilterBar .btn-group {
        margin-right: 10px;
    }

    .modEventsFilterBar button {
        white-space: nowrap;
    }

    .modEventsFilterBar .dropdown-menu {
        max-height: 205px;
        overflow: auto;
    }

        .modEventsFilterBar .dropdown-menu li.active a {
            color: #FFFFFF;
            background: #777777;
        }

/*--------------------------------------------*/

.events_view_filters {
    background: #F1F1F1;
}

    .events_view_filters > p {
        float: left;
        margin: 15px;
    }

    .events_view_filters > .pagination {
        margin: 8px 0px;
    }

/*--------------------------------------------*/

.events_view_title {
    font-size: 1.3em;
}

    .events_view_title h2 {
        margin-bottom: 10px;
    }

.events_previous_date a,
.events_next_date a {
    display: inline-block;
    height: 42px;
    color: #666666;
    text-decoration: none;
    vertical-align: middle;
}

.events_previous_date span,
.events_next_date span {
    vertical-align: middle;
    line-height: 38px;
}

.events_previous_date .glyphicon,
.events_next_date .glyphicon {
    font-size: 3em;
    color: #666;
    margin-top: -5px;
    vertical-align: middle;
    line-height: 42px;
}

.events_previous_date .glyphicon {
    float: left;
}

.events_next_date .glyphicon {
    float: right;
}

/*--------------------------------------------*/

.events_heading_row {
    margin-top: 15px;
    padding: 5px 15px;
    color: #FFFFFF;
    background: #444444;
}

.events_range {
    color: #666666;
    font-size: 0.7em;
}


.date_row {
    padding-bottom: 10px;
    padding-top: 10px;
    transition: background 0.3s;
}

    .date_row.col-xs-12 {
        float: none;
    }

    .date_row:hover {
        background: #ebf0f8;
    }

    .date_row.featured_event {
        color: #fff;
        background: #3d4f59;
    }

        .date_row.featured_event:hover {
            background: #2c3e48;
        }

        .date_row.featured_event a {
            color: #fff;
        }

    /*--------------------------------------------*/

    .date_row .comment,
    .day_view .comment {
        position: absolute;
        box-sizing: content-box;
        top: -9999px;
        left: 0px;
        right: 0px;
        padding: 0px 15px;
        overflow: hidden;
        visibility: hidden;
        background-color: #3A4967;
    }

        .date_row .comment.ready,
        .day_view .comment.ready {
            position: static;
            visibility: visible;
            height: 0px;
            transition: height 0.1s ease-in 0.1s;
        }

        .date_row .comment.ready {
            margin: 10px -15px -10px -15px;
        }

        .date_row .comment.visible,
        .day_view .comment.visible {
            border-bottom: 1px solid #FFFFFF;
            transition: height 0.1s ease-out;
        }

        .date_row .comment p,
        .day_view .comment p {
            margin: 0px;
            color: transparent;
            transition: color 0.1s ease-in;
        }

            .date_row .comment p:first-child,
            .day_view .comment p:first-child {
                padding-top: 15px;
            }

            .date_row .comment p:last-child,
            .day_view .comment p:last-child {
                padding-bottom: 15px;
            }

            .date_row .comment p + p,
            .day_view .comment p + p {
                margin-top: 6px;
            }

        .date_row .comment.visible p,
        .day_view .comment.visible p {
            transition: color 0.1s ease-out 0.1s;
        }

/*--------------------------------------------*/

a.calendar_event {
    background: #78e009;
    border-radius: 10px;
    color: #373737;
    display: block;
    font-size: 0.85em;
    line-height: 1.4em;
    margin-right: 20px;
    margin-bottom: 2px;
    padding: 7px 10px;
    text-decoration: none;
    text-transform: uppercase;
    -moz-transition: background-color 0.2s ease;
    -webkit-transition: background-color 0.2s ease;
    -ms-transition: background-color 0.2s ease;
    -o-transition: background-color 0.2s ease;
    transition: background-color 0.2s ease;
}

    a.calendar_event:hover {
        background: #89f11a;
    }

    a.calendar_event.featured_event {
        background: #3d4f59;
        color: #fff;
    }

        a.calendar_event.featured_event:hover {
            background: #1b2d37;
        }

.date_passed {
    opacity: 0.7;
}

.calendar_day_number a {
    color: #666666;
}

/*--------------------------------------------*/

#events_order_nav {
    position: relative;
    padding: 16px 0px;
    background-color: #F4F4F480;
}


    #events_order_nav ul {
        margin: 0px;
        padding: 0px;
        list-style-type: none;
    }

        #events_order_nav ul li {
            margin: 0px;
            padding: 0px;
        }

    #events_order_nav .basket {
        display: block;
        float: right;
        padding: 5px 10px;
        color: #fff;
        text-decoration: none;
        background-color: var(--mauve-3);
        border-radius: 5px;
    }

        #events_order_nav .basket:hover {
            background-color: var(--grape-3);
        }

        #events_order_nav .basket i,
        #events_order_nav .basket .count {
            padding-right: 5px;
            color: #FFFFFF;
            font-size: 1.2em;
            line-height: 1.3em;
        }

/*--------------------------------------------*/

.discountcodeswrapper .input-group-btn {
    font-size: 16px;
}
/*--------------------------------------------*/
/* ============================================================
   Event basket page
   Replaces the previous <table class="event_basket"> layout.
   ============================================================ */

.event-basket {
    margin-bottom: 8px;
}

.event-group-title {
    font-size: 1.25em;
    line-height: 1.4em;
    font-weight: 700;
    margin: 24px 0 8px;
}

.event-card {
    background: #ffffff8c;
    padding: 20px;
    margin-bottom: 16px;
}

.event-card-title {
    font-size: 1.4em;
    font-weight: 500;
    margin-bottom: 14px;
    font-family: var(--heading-font);
}

/* Delegate block */

.delegate-block {
    border-left: 3px solid #D8D6EC;
    padding-left: 16px;
    margin-bottom: 14px;
}

    .delegate-block:last-of-type {
        margin-bottom: 0;
    }

.delegate-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.delegate-name {
    font-weight: 700;
}

.delegate-remove {
    color: #A32D2D;
    font-size: 1.1em;
    padding: 4px 8px;
    line-height: 1;
}

    .delegate-remove:hover {
        color: #791F1F;
    }

/* Ticket rows */

.ticket-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F7F7F5;
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.ticket-figures {
    display: flex;
    gap: 20px;
    color: #5F5E5A;
}

.ticket-lineprice {
    color: #2C2C2A;
    font-weight: 700;
    min-width: 70px;
    text-align: right;
}

.ticket-unitprice,
.ticket-taxrate {
    min-width: 60px;
    text-align: right;
}

/* Child (additional) events */

.child-events-header {
    font-size: 0.9em;
    margin: 10px 0 8px;
}

.child-events-panel {
    background: #F7F7F5;
    padding: 10px 12px;
}

    .child-events-panel .panel {
        border-radius: 0;
    }


.child-event-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
}

.child-event-title {
    font-size: 0.9em;
}

.child-event-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-link {
    color: #185FA5;
    text-decoration: none;
    font-size: 0.85em;
}

    .btn-link:hover {
        text-decoration: underline;
    }

.add-delegate-row {
    margin-top: 8px;
    font-size: 0.9em;
}

/* ============================================================
   Basket summary (discount + totals) - kept together so the
   discount field sits next to the numbers it changes.
   ============================================================ */

.basket-summary {
    background: #F1EFE866;
    padding: 16px 20px;
    margin-bottom: 8px;
}

.discount-entry {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

    .discount-entry .form-control {
        flex: 1;
    }

.discount-message {
    margin: 0 0 10px;
    font-size: 0.85em;
}

.discount-success {
    color: #3B6D11;
}

.discount-error {
    color: #A32D2D;
}

.applied-discount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #D3D1C7;
}

.discount-description {
    font-size: 0.8em;
    color: #5F5E5A;
}

.summary-totals {
    border-top: 1px solid #D3D1C7;
    padding-top: 10px;
    margin-top: 4px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    padding: 3px 0;
    color: #5F5E5A;
}

.summary-row-grand {
    font-size: 1.1em;
    color: #2C2C2A;
    border-top: 1px solid #D3D1C7;
    margin-top: 6px;
    padding-top: 8px;
}

/* ============================================================
   Donation section
   The control markup itself (dropdown + conditional "other"
   textbox) comes from SelectOrOther.ascx and its own
   .select-or-other / .other-option classes - only the section
   wrapper is styled here.
   ============================================================ */

.donation-section {
    max-width: 360px;
}

    .donation-section h3 {
        margin-bottom: 4px;
    }

/* ============================================================
   Billing address
   The address fields themselves render inside the
   lightmedia:addressmanager user control, which wasn't part of
   this pass - apply this grid class to its field wrapper if/when
   that control's markup is updated, to cut the vertical scroll
   length of the form.
   ============================================================ */

.address-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 12px;
}

    .address-grid .form-group,
    .address-grid .form-control {
        width: 100%;
    }

@media (max-width: 600px) {
    .address-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Payment options
   ============================================================ */

.field-hint {
    font-size: 0.8em;
    color: #5F5E5A;
    margin-top: 4px;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 700px;
    margin: 16px 0;
}

.payment-option {
    background: #F7F7F5;
    padding: 16px;
}

.payment-option-note {
    font-size: 0.85em;
    color: #5F5E5A;
    margin: 10px 0 0;
}

@media (max-width: 700px) {
    .payment-options {
        grid-template-columns: 1fr;
    }
}
