/**
 * CU Rocket Core - Speedbump ("You are leaving our site") styles
 */

.cu-rocket-speedbump-cover {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    padding: 1.5rem;
    background: var(--cu-rocket-speedbump-overlay, rgba(0, 0, 0, 0.8));
    box-sizing: border-box;
}

.cu-rocket-speedbump {
    position: relative;
    max-width: 800px;
    max-height: 90vh;
    padding: 2.5rem 1.25rem;
    overflow-y: auto;
    background: var(--cu-rocket-speedbump-modal-bg, #fff);
    border-radius: var(--cu-rocket-speedbump-radius, 0.5rem);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .cu-rocket-speedbump {
        padding: 2rem 2rem;
    }
}

@media (min-width: 940px) {
    .cu-rocket-speedbump {
        padding: 4rem 5rem;
    }
}

.cu-rocket-speedbump__close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    padding: 0.25rem;
    border: none;
    background: transparent;
    color: var(--cu-rocket-speedbump-title, #2c3e50);
    cursor: pointer;
    transition: color 0.2s;
}

.cu-rocket-speedbump__close:hover {
    color: #1a365d;
}

@media (max-width: 639px) {
    .cu-rocket-speedbump__close {
        display: none;
    }
}

.cu-rocket-speedbump__title {
    margin: 0 0 1.25rem;
    padding-bottom: 1.25rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--cu-rocket-speedbump-title, #2c3e50);
    text-align: center;
}

@media (min-width: 640px) {
    .cu-rocket-speedbump__title {
        font-size: 2rem;
    }
}

.cu-rocket-speedbump__content {
    margin-bottom: 2rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--cu-rocket-speedbump-content, #4a5568);
}

.cu-rocket-speedbump__content p {
    margin: 0 0 1rem;
}

.cu-rocket-speedbump__content p:last-child {
    margin-bottom: 0;
}

.cu-rocket-speedbump__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 375px) {
    .cu-rocket-speedbump__actions {
        flex-direction: row;
    }
}

.cu-rocket-speedbump__btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--cu-rocket-speedbump-radius, 0.5rem);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

@media (min-width: 940px) {
    .cu-rocket-speedbump__btn {
        padding: 0.9rem 2.25rem;
    }
}

.cu-rocket-speedbump__btn--continue {
    background: var(--cu-rocket-speedbump-continue-bg, #f3f6f1);
    color: var(--cu-rocket-speedbump-continue-text, #2c3e50);
}

.cu-rocket-speedbump__btn--continue:hover {
    filter: brightness(0.95);
}

.cu-rocket-speedbump__btn--return {
    background: var(--cu-rocket-speedbump-return-bg, #074643);
    color: var(--cu-rocket-speedbump-return-text, #fff);
}

.cu-rocket-speedbump__btn--return:hover {
    filter: brightness(1.1);
}
