/*
Theme Name: Kadence Child
Theme URI: https://staging.cprclassesorlando.com/
Description: Minimal child theme for CPR Certification Orlando.
Author: CPR Certification Orlando
Template: kadence
Version: 1.0.33
Text Domain: kadence-child
*/

.cpr-upcoming-classes {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--global-palette8, #d7dde5);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,248,251,.98));
}

.cpr-upcoming-classes__heading {
    margin: 0 0 0.85rem;
    font-weight: 700;
    color: var(--global-palette3, #0d2b53);
}

.cpr-upcoming-classes__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.cpr-upcoming-classes__item {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(13,43,83,.08);
}

.cpr-upcoming-classes__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--global-palette3, #0d2b53);
}

.cpr-upcoming-classes__datetime {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: baseline;
}

.cpr-upcoming-classes__date {
    font-weight: 700;
    color: var(--global-palette3, #0d2b53);
}

.cpr-upcoming-classes__time {
    color: var(--global-palette4, #2a4365);
}

.cpr-upcoming-classes a {
    color: inherit;
    text-decoration: none;
}

.cpr-upcoming-classes a:hover {
    text-decoration: underline;
}

/*
 * Single-post bottom fade image
 *
 * This attaches the image to the full post content area so it can span the
 * full width behind both the article column and the sidebar, and run directly
 * into the before-footer row without a white gap.
 */
.single-post #primary.content-area {
    --cpr-post-footer-image-height: 720px;
    position: relative;
    isolation: isolate;
    padding-bottom: 0;
    margin-bottom: 64px;
}

.single-post #primary.content-area::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -64px;
    height: var(--cpr-post-footer-image-height);
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.96) 24%,
            rgba(255, 255, 255, 0.78) 58%,
            rgba(255, 255, 255, 0.52) 84%,
            rgba(255, 255, 255, 0.42) 100%
        ),
        url("https://staging.cprclassesorlando.com/wp-content/uploads/blury-cpr-certification-class-scaled.jpg")
            center 12% / cover no-repeat;
}

.single-post #primary.content-area > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .single-post #primary.content-area {
        --cpr-post-footer-image-height: 520px;
        margin-bottom: 48px;
    }

    .single-post #primary.content-area::after {
        bottom: -48px;
    }
}

@media (min-width: 1025px) {
    .site-footer .footer-widget1.content-align-left .wp-block-kadence-image figure {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 767px) {
    .site-footer .footer-widget1.content-mobile-align-center .wp-block-kadence-image {
        display: flex;
        justify-content: center;
    }

    .site-footer .footer-widget1.content-mobile-align-center .wp-block-kadence-image figure {
        margin-left: auto;
        margin-right: auto;
    }
}

.site-middle-footer-inner-wrap .footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.site-middle-footer-inner-wrap .footer-contact-list li {
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.site-middle-footer-inner-wrap .footer-contact-list a {
    color: inherit;
    text-decoration: none;
}

.site-middle-footer-inner-wrap .footer-contact-list a:hover {
    text-decoration: underline;
}

/*
 * Booking scarcity label
 *
 * This is intentionally a presentation-only override. WooCommerce
 * Appointments still controls the real availability; we only standardize the
 * partially booked slot label to match the live site.
 */
.wc-appointments-appointment-form .slot-picker .spaces-left {
    visibility: hidden;
}

.wc-appointments-appointment-form .slot-picker .spaces-left::after {
    content: "2 Left";
    margin-left: -30px;
    visibility: visible;
}

.wc-appointments-appointment-form .slot-picker li.slot[data-locale]:hover::before,
.wc-appointments-appointment-form .slot-picker li.slot[data-locale]:hover::after {
    display: none !important;
}
