/* ==========================================
   Ratio Calculator
   SmartMyTools
   ========================================== */


/* ------------------------------------------
   Ratio Equation
   ------------------------------------------ */

.ratio-equation {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;

    width: 100%;
    margin: 24px 0 10px;
}

.ratio-field {
    flex: 1;
    min-width: 0;
}

.ratio-field label {
    display: block;

    margin-bottom: 6px;

    color: #111827;

    font-size: 12px;
    font-weight: 600;
}

.ratio-symbol {
    flex: 0 0 auto;

    padding-bottom: 8px;

    color: #082f57;

    font-size: 18px;
    font-weight: 600;
}


/* ------------------------------------------
   Ratio Result
   ------------------------------------------ */

.calculator-result {
    margin-top: 24px;
}


/* ------------------------------------------
   Responsive
   ------------------------------------------ */

@media (max-width: 600px) {

    .ratio-equation {
        gap: 6px;
    }

    .ratio-symbol {
        font-size: 16px;
    }

}

/* ------------------------------------------
   Calculator Card Title
   ------------------------------------------ */

.calculator-card-title {
    margin: 0 0 20px;

    color: #082f57;

    font-size: 20px;
    line-height: 1.35;
    text-align: left;
}

/* ------------------------------------------
   Ratio Scaling Heading
   ------------------------------------------ */

.ratio-scaling-title {
    margin: 0 0 2px;

    color: #082f57;

    font-size: 27px;
    line-height: 1.25;
}

/* ==========================================
   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;
    }

}
/* ==========================================
   Result Action Buttons
   SmartMyTools
   ========================================== */

.result-actions {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    gap: 8px;
    margin-top: 14px;
}

.result-action-btn {
    border: none;
    border-radius: 6px;
    padding: 9px 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #e8eef7;
    color: #123b63;
}

.result-action-btn:hover {
    background: #dbe6f4;
    transform: translateY(-1px);
}

.result-action-btn:active {
    transform: translateY(0);
}


/* ------------------------------------------
   Mobile
   ------------------------------------------ */

@media (max-width: 600px) {

    .result-actions {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .result-action-btn {
        width: 100%;
        padding: 10px 8px;
        font-size: 13px;
    }

}