/* ==========================================
   PAGE TITLE
   DESKTOP
========================================== */

.calculator-page h1 {
    white-space: nowrap;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .calculator-page h1 {
        white-space: normal;
    }

}

/* ==========================================
   BOTTOM STICKY AD
   DESKTOP + MOBILE
========================================== */

.bottom-sticky-ad {
    display: flex;

    position: fixed;

    left: 50%;
    bottom: 0;

    transform: translateX(-50%);

    width: min(970px, calc(100% - 40px));

    min-height: 90px;

    z-index: 9998;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1px solid #d9e0e7;
    border-bottom: none;

    border-radius: 8px 8px 0 0;

    background: #eef1f5;

    color: #94a3b8;

    font-size: 14px;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .bottom-sticky-ad {
        left: 0;
        right: 0;

        bottom: 0;

        transform: none;

        width: 100%;

        min-height: 60px;

        border-radius: 0;

        border-left: none;
        border-right: none;
        border-bottom: none;

        border-top: 1px solid #d9e0e7;

        z-index: 9999;
    }

}

/* ==========================================
   Keep calculator buttons above sticky ad
========================================== */

.result-actions {
    position: relative;
    z-index: 10000;
}

/* ==========================================
   RESULT ACTION BUTTONS
========================================== */

.result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;

    margin-top: 24px;
    margin-bottom: 30px;
}


/* Individual Buttons */

.result-actions .action-btn {
    border: none;
    border-radius: 8px;

    padding: 11px 18px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    background: #2563eb;
    color: #ffffff;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* Hover */

.result-actions .action-btn:hover {
    background: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 4px 10px rgba(37, 99, 235, 0.20);
}


/* Click */

.result-actions .action-btn:active {
    transform: translateY(0);
    box-shadow: none;
}


/* Keyboard Focus */

.result-actions .action-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .result-actions {
        display: grid;

        grid-template-columns: repeat(2, 1fr);

        gap: 10px;

        width: 100%;

        margin-top: 20px;
    }

    .result-actions .action-btn {
        width: 100%;

        padding: 11px 8px;

        font-size: 13px;
    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480px) {

    .result-actions {
        grid-template-columns: 1fr;
    }

    .result-actions .action-btn {
        width: 100%;
    }

}