.cmt-split-blocks {
    width: 100%;
    overflow: hidden;
}

.cmt-split-blocks,
.cmt-split-blocks * {
    box-sizing: border-box;
}

/*
 * Keep the plugin typography as a fallback only. Any Avada/Fusion Builder
 * typography applied inside the editor uses direct element styling/classes and
 * will take precedence over these inherited shortcode defaults.
 */

.cmt-split-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: var(--cmt-split-min, 490px);
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    opacity: 0;
    transform: translateY(38px) scale(0.985);
    filter: saturate(0.9);
    transition: opacity 850ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 900ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(min(var(--cmt-split-index, 0), 5) * 90ms);
}

.cmt-split-block.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
}

.cmt-split-block__text,
.cmt-split-block__media {
    min-width: 0;
    min-height: var(--cmt-split-min, 490px);
}

.cmt-split-block__text {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cmt-split-bg, #073f78);
    color: var(--cmt-split-text, #ffffff);
    padding: var(--cmt-split-pad-desktop, 72px);
}

.cmt-split-block__inner {
    width: 100%;
    max-width: 610px;
    text-align: left;
}

.cmt-split-block__content {
    color: var(--cmt-split-text, #ffffff);
    font-family: var(--cmt-split-font, 'Barlow Condensed', Arial, sans-serif);
    font-weight: var(--cmt-split-weight, 700);
    font-size: var(--cmt-split-font-desktop, 30px);
    line-height: var(--cmt-split-line, 1.15);
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
    text-align: left;
}

.cmt-split-block__content :where(*) {
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
}

.cmt-split-block__content :where(h1, h2, h3, h4) {
    margin: 0 0 0.35em;
    font-size: clamp(calc(var(--cmt-split-font-desktop, 30px) + 2px), 3vw, calc(var(--cmt-split-font-desktop, 30px) + 10px));
    line-height: 1.02;
    letter-spacing: -0.015em;
}

.cmt-split-block__content :where(p, ul, ol) {
    margin: 0 0 0.8em;
}

.cmt-split-block__content :where(p, ul, ol):last-child {
    margin-bottom: 0;
}

.cmt-split-block__content :where(ul, ol) {
    padding-left: 1.1em;
}

.cmt-split-block__content :where(li) {
    margin-bottom: 0.35em;
}

.cmt-split-block__media {
    position: relative;
    overflow: hidden;
    background: #d8e7ef;
}

.cmt-split-block__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: var(--cmt-split-min, 490px);
    object-fit: cover;
    object-position: center center;
    transform: scale(1.025);
    transition: transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cmt-split-block.is-visible .cmt-split-block__image {
    transform: scale(1);
}

.cmt-split-block__placeholder {
    display: flex;
    min-height: inherit;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #24465f;
    background: linear-gradient(135deg, #d8e7ef, #edf5f8);
    font-family: var(--cmt-split-font, 'Barlow Condensed', Arial, sans-serif);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cmt-split-block__button-wrap {
    margin: var(--cmt-split-button-top, 24px) 0 0 !important;
    text-align: left !important;
}

.cmt-split-block__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.55em 1.45em 0.58em;
    border-radius: 5px;
    background: var(--cmt-split-button-bg, #ed1c16);
    color: var(--cmt-split-button-text, #ffffff) !important;
    font-family: var(--cmt-split-font, 'Barlow Condensed', Arial, sans-serif);
    font-size: clamp(13px, calc(var(--cmt-split-font-desktop, 30px) - 14px), 17px);
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.cmt-split-block__button:hover,
.cmt-split-block__button:focus {
    color: var(--cmt-split-button-text, #ffffff) !important;
    text-decoration: none !important;
}

.cmt-split-notice {
    padding: 14px 16px;
    border-left: 4px solid #073f78;
    background: #f1f6fb;
    color: #073f78;
}

@media (max-width: 1100px) {
    .cmt-split-block__text {
        padding: clamp(42px, 6vw, var(--cmt-split-pad-desktop, 72px));
    }

    .cmt-split-block__content {
        font-size: var(--cmt-split-font-tablet, 26px);
    }

    .cmt-split-block__content :where(h1, h2, h3, h4) {
        font-size: clamp(calc(var(--cmt-split-font-tablet, 26px) + 2px), 4vw, calc(var(--cmt-split-font-tablet, 26px) + 8px));
    }
}

@media (max-width: 767px) {
    .cmt-split-block {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .cmt-split-block__text,
    .cmt-split-block__media {
        min-height: 0;
    }

    .cmt-split-block__text {
        padding: var(--cmt-split-pad-mobile, 34px);
    }

    .cmt-split-block__content {
        font-size: var(--cmt-split-font-mobile, 22px);
    }

    .cmt-split-block__content :where(h1, h2, h3, h4) {
        font-size: clamp(calc(var(--cmt-split-font-mobile, 22px) + 2px), 8vw, calc(var(--cmt-split-font-mobile, 22px) + 7px));
    }

    .cmt-split-block__image,
    .cmt-split-block__placeholder {
        min-height: clamp(260px, 64vw, 430px);
        height: clamp(260px, 64vw, 430px);
    }

    .cmt-split-block__button {
        font-size: clamp(12px, calc(var(--cmt-split-font-mobile, 22px) - 8px), 16px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cmt-split-block,
    .cmt-split-block__image {
        opacity: 1;
        transform: none;
        transition: none;
        filter: none;
    }
}

.cmt-split-internal-section,
.cmt-split-internal-image {
    width: 100%;
    box-sizing: border-box;
}

.cmt-split-internal-section *,
.cmt-split-internal-image * {
    box-sizing: border-box;
}

.cmt-split-internal-section > :first-child {
    margin-top: 0;
}

.cmt-split-internal-section > :last-child {
    margin-bottom: 0;
}

.cmt-split-internal-image__img {
    display: block;
    width: 100%;
    height: auto;
}

.cmt-split-internal-image--header .cmt-split-internal-image__img {
    display: block;
    width: 100%;
    height: auto;
}


.cmt-split-internal-button-wrap {
    margin: var(--cmt-split-button-top, 24px) 0 0 !important;
    text-align: left !important;
}

.cmt-split-internal-button {
    background: var(--cmt-split-button-bg, #ed1c16);
    color: var(--cmt-split-button-text, #ffffff) !important;
    font-family: var(--cmt-split-font, 'Barlow Condensed', Arial, sans-serif);
    font-size: clamp(13px, calc(var(--cmt-split-font-desktop, 30px) - 14px), 17px);
}

.cmt-split-internal-button:hover,
.cmt-split-internal-button:focus {
    color: var(--cmt-split-button-text, #ffffff) !important;
    text-decoration: none !important;
}

@media (max-width: 767px) {
    .cmt-split-internal-button {
        font-size: clamp(12px, calc(var(--cmt-split-font-mobile, 22px) - 8px), 16px);
    }
}

/* Routes to Sea shortcode text styling.
 * Editors can use ordinary bullet lists and Bold/text colour controls; the
 * frontend turns those into the CMT route layout automatically.
 */
.cmt-split-route-section {
    color: #003768;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: clamp(22px, 2.05vw, 28px);
    font-weight: 500;
    line-height: 1.48;
}

.cmt-split-route-section :where(p, ul, ol) {
    margin-top: 0;
    margin-bottom: 1em;
}

.cmt-split-route-section :where(p, ul, ol):last-child {
    margin-bottom: 0;
}

.cmt-split-route-section :where(ul) {
    list-style: none;
    padding-left: 0;
}

.cmt-split-route-section :where(ul li) {
    position: relative;
    margin: 0 0 1.05em;
    padding-left: 1.15em;
}

.cmt-split-route-section :where(ul li:last-child) {
    margin-bottom: 0;
}

.cmt-split-route-section :where(ul li)::before {
    content: '\2022';
    position: absolute;
    top: 0;
    left: 0;
    color: #00a3e2;
    font-weight: 700;
}

.cmt-split-route-section :where(strong, b, .cmt-split-cmt-blue) {
    color: #00a3e2;
    font-weight: 700;
}

.cmt-split-route-section :where(.cmt-split-cmt-navy) {
    color: #003768;
}

.cmt-split-route-section :where(.cmt-split-cmt-white) {
    color: #ffffff;
}

.cmt-split-route-section :where(a) {
    color: #00a3e2;
}

@media (max-width: 767px) {
    .cmt-split-route-section {
        font-size: clamp(20px, 6vw, 24px);
        line-height: 1.4;
    }
}



.cmt-split-quick-snap--title {
    color: #003768;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.05;
}

.cmt-split-quick-snap--text {
    color: #003768;
}

.cmt-split-quick-snap-image .cmt-split-internal-image__img {
    display: block;
    width: 100%;
    height: auto;
}


/* Quick Snap shortcode layout overrides.
 * These make colour/font/size shortcode attributes win over theme defaults
 * and over the plugin's default Quick Snap styling. CMT highlight spans still
 * keep their own colours unless the user clears that formatting in the editor.
 */
.cmt-split-quick-snap.cmt-split-quick-snap--has-colour-override,
.cmt-split-quick-snap.cmt-split-quick-snap--has-colour-override :where(p, ul, ol, li, h1, h2, h3, h4, h5, h6) {
    color: var(--cmt-quick-snap-colour) !important;
}

.cmt-split-quick-snap.cmt-split-quick-snap--has-font-override,
.cmt-split-quick-snap.cmt-split-quick-snap--has-font-override :where(p, ul, ol, li, h1, h2, h3, h4, h5, h6, span, strong, b, a) {
    font-family: var(--cmt-quick-snap-font-family) !important;
}

.cmt-split-quick-snap.cmt-split-quick-snap--has-size-override,
.cmt-split-quick-snap.cmt-split-quick-snap--has-size-override :where(p, ul, ol, li, h1, h2, h3, h4, h5, h6, span, strong, b, a) {
    font-size: var(--cmt-quick-snap-font-size) !important;
}

.cmt-split-quick-snap.cmt-split-quick-snap--has-weight-override,
.cmt-split-quick-snap.cmt-split-quick-snap--has-weight-override :where(p, ul, ol, li, h1, h2, h3, h4, h5, h6, span, strong, b, a) {
    font-weight: var(--cmt-quick-snap-font-weight) !important;
}

.cmt-split-quick-snap.cmt-split-quick-snap--has-line-height-override,
.cmt-split-quick-snap.cmt-split-quick-snap--has-line-height-override :where(p, ul, ol, li, h1, h2, h3, h4, h5, h6, span, strong, b, a) {
    line-height: var(--cmt-quick-snap-line-height) !important;
}
