.ts-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.ts-modal--visible {
    display: flex;
}

.ts-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.ts-modal-container {
    position: relative;
    background: #fff;
    max-width: 720px;
    width: 90%;
    border-radius: 4px;
    overflow: hidden;
    animation: ts-modal-enter 0.25s ease;
    max-height: 90vh;
}

@keyframes ts-modal-enter {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ts-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--global-palette6)
    z-index: 2;
    padding: 0;
}

.ts-modal-close:hover {
    color: #111;
}

/* Two-column layout (exit intent) */
.ts-modal-two-col {
    display: flex;
    min-height: 400px;
}

.ts-modal-two-col .ts-modal-content {
    flex: 1;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ts-modal-image {
    flex: 0 0 50%;
    background-size: cover;
    background-position: 70% 25%;
    min-height: 300px;
}

/* Single-column layout (job listings) */
.ts-modal-single-col {
    display: flex;
    flex-direction: column;
}

.ts-modal-single-col .ts-modal-content {
    padding: 48px 40px 40px;
}

.ts-modal-scrollable {
    overflow-y: auto;
    max-height: 90vh;
}

/* Content typography */
.ts-modal-eyebrow {
    color: var(--global-palette1);
    font-weight: 700;
    font-size: var(--global-kb-font-size-md, 1.25rem);
    letter-spacing: 0.05em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.ts-modal-headline {
    font-size: clamp(36px, 5vw, 36px);
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 16px;
    color: var(--global-palette3);
    text-transform: uppercase;
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.05em;
}

.ts-modal-body {
    font-size: 16px;
    color: #444;
    margin: 0 0 24px;
    line-height: 1.5;
}

.ts-modal-cta {
    display: inline-block;
    background: var(--global-palette3);
    color: #fff;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 2px;
    font-family: 'Anton', sans-serif;
    text-align: center;
}

.ts-modal-cta:hover,
.ts-modal-cta:focus {
    background: var(--global-palette4);
    color: #fff;
    text-decoration: none;
}

.ts-modal-actions {
    margin-top: 24px;
    text-align: center;
}

/* Full-width CTA in the two-col exit intent layout */
.ts-modal-two-col .ts-modal-cta {
    display: block;
    text-align: center;
}

/* Job listing modal headings — match brand orange/brown */
.ts-modal-single-col h2,
.ts-modal-single-col h3 {
    color: var(--global-palette3);
    font-style: italic;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 8px;
}

@media (max-width: 600px) {
    .ts-modal-two-col {
        flex-direction: column-reverse;
    }

    .ts-modal-image {
        min-height: 180px;
        flex: none;
    }

    .ts-modal-two-col .ts-modal-content {
        padding: 28px 20px;
    }

    .ts-modal-single-col .ts-modal-content {
        padding: 36px 20px 28px;
    }
}
