/*
 Theme Name:   City of Leeds Swimming Club
 Theme URI:    https://bricksbuilder.io/
 Description:  A custom child theme to extend Bricks.
 Author:       Hel
 Author URI:   https://www.thisishel.com
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

body {
    text-wrap: pretty;
}

.registration-notice span {
    padding: 8px 16px;
    border-radius: 4px;
    text-align: left;
    margin-top: 4px;
    display: inline-block;
}

    .registration-notice.open span {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }
        .registration-notice.open span a:hover {
            text-decoration: underline;
        }
    .registration-notice.future span {
        background-color: #fff3cd;
        color: #856404;
        border: 1px solid #ffeeba;
    }
    .registration-notice.past span {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }
    .registration-notice.tbc span {
        background-color: #fff3cd;
        color: #856404;
        border: 1px solid #ffeeba;
    }

.table-responsive {
    width: 100%;;
}

/* Make tables horizontally scrollable on small screens */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Prevent table cells from wrapping so horizontal scroll is usable */
    .table-responsive table {
        white-space: nowrap;
    }
    .table-responsive table td,
    .table-responsive table th {
        white-space: nowrap;
    }
}

.table-responsive table {
	border-collapse: collapse;
    border-radius: 12px;
    width: 100%;
}
    .table-responsive table th {
        font-size: 15px;
        font-weight: 700;
    }
    .table-responsive table thead th {
        padding: 15px 20px;
        background: #ffe200;
    }
    .table-responsive td,
    .table-responsive th {
        border: 1px solid var(--bricks-border-color);
        padding: 10px 20px;
    }
    .table-responsive table td {  
        background: #f1f1f1;
        font-size: 14px;
        color: #323232;
        word-wrap: break-word;
    }
    .table-responsive table thead th:hover {
        background-color: #1845a0 !important;
        color: white;
    }
    .table-responsive table tbody tr:hover td,
    .table-responsive table tbody tr:hover td strong,
    .table-responsive table tbody tr:hover td a {
        background-color: #1845a0 !important;
        color: white;
    }

.splide__slide {
    overflow: hidden;
}

.event-downloads {
    margin-top: 1rem;
}

    .event-downloads h2 {
        font-size: 1.5rem;
        text-transform: uppercase;
        font-weight: 700;
        margin-bottom: 0.8rem;
    }

    .event-downloads-list {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .event-downloads-list a {
        display: inline-block;
        padding: 0.5rem 1.4rem;
        background-color: #1845a0;
        color: white;
        text-decoration: none;
        border-radius: 4px;
        font-size: 1.5rem;
    }


/*
 Gravity Forms Overrides
*/

.gform_wrapper input, .gform_wrapper select, .gform_wrapper textarea {
    border-radius: 12px !important;
    background-color: var(--karlson-neutral-0) !important;
    padding: 2rem 1rem !important;
}

.gform_wrapper .gform_button {
    border-radius: 12px !important;
    background-color: var(--leeds-city-blue) !important;
    color: #ffffff;
    padding: 2rem 3rem !important;
    font-size: 2rem;
}