

/* =====================================================
   FLOATING BUTTON
   ===================================================== */

.gold-calculator-button {

    position: fixed;

    left: 50%;

    bottom: 14px;

    transform: translateX(-50%);

    z-index: 2000;

    border: none;

    border-radius: 30px;

    padding: 11px 22px;

    background: linear-gradient(
        90deg,
        #b8860b,
        #d4af37,
        #b8860b
    );

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    box-shadow:
        0 4px 14px rgba(0,0,0,0.25);

    cursor: pointer;

    white-space: nowrap;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.gold-calculator-button:hover {

    transform:
        translateX(-50%)
        translateY(-1px);

    box-shadow:
        0 6px 18px rgba(0,0,0,0.28);
}



/* =================================================
   FLOATING GOLD CALCULATOR
   ================================================= */

.gold-calculator-float {
    position: fixed;
    

    display: flex;
    flex-direction: column;
    align-items: center;

    left: 50%;

    bottom: 14px;

    transform: translateX(-50%);

    z-index: 2000;
}




/* Text below button */

.gold-calculator-credit {
    margin-top: 5px;

    font-size: 11px;
    line-height: 1;

    color: #6b5525;

    white-space: nowrap;
}

/* =====================================================
   OVERLAY
   ===================================================== */

.gold-calculator-overlay {

    position: fixed;

    inset: 0;

    z-index: 3000;

    background:
        rgba(0,0,0,0.35);

    display: flex;

    align-items: flex-end;

    justify-content: center;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}


.gold-calculator-overlay.show {

    opacity: 1;

    visibility: visible;
}


/* =====================================================
   CALCULATOR
   ===================================================== */

.gold-calculator {

    width: 100%;

    max-width: 520px;

    background: #fffdf5;

    border-radius:
        16px 16px 0 0;

    box-shadow:
        0 -6px 25px rgba(0,0,0,0.20);

    transform:
        translateY(100%);

    transition:
        transform 0.25s ease;

    overflow: hidden;
}


.gold-calculator-overlay.show
.gold-calculator {

    transform:
        translateY(0);
}


/* =====================================================
   HEADER
   ===================================================== */

.gold-calculator-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 15px 18px;

    background: linear-gradient(
        90deg,
        #c89b3c,
        #f5d27a
    );

    border-bottom:
        1px solid #d4af37;
}


.gold-calculator-header h5 {

    margin: 0;

    color: #3b2a00;

    font-size: 18px;

    font-weight: 700;
}


.gold-calculator-close {

    width: 36px;

    height: 36px;

    border: none;

    border-radius: 50%;

    background:
        rgba(255,255,255,0.65);

    color: #3b2a00;

    font-size: 25px;

    line-height: 1;

    cursor: pointer;
}


/* =====================================================
   BODY
   ===================================================== */

.gold-calculator-body {

    padding: 20px;
}


.calculator-group {

    margin-bottom: 15px;
}


.calculator-group label {

    display: block;

    margin-bottom: 6px;

    font-size: 13px;

    font-weight: 600;

    color: #3b2a00;
}


.calculator-group input,
.calculator-group select {

    width: 100%;

    height: 44px;

    padding: 0 12px;

    border: 1px solid #ccc;

    border-radius: 7px;

    background: #ffffff;

    color: #222;

    font-size: 16px;

    box-sizing: border-box;
}


.calculator-group input:focus,
.calculator-group select:focus {

    outline: none;

    border-color: #c89b3c;

    box-shadow:
        0 0 0 2px
        rgba(200,155,60,0.15);
}


/* =====================================================
   CALCULATE BUTTON
   ===================================================== */

.calculate-gold-button {

    width: 100%;

    height: 44px;

    border: none;

    border-radius: 7px;

    background: #222;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;
}


.calculate-gold-button:hover {

    background: #333;
}


/* =====================================================
   RESULT
   ===================================================== */

.calculator-result {

    margin-top: 18px;

    padding-top: 15px;

    border-top:
        1px solid #ddd;
}


.calculator-result-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    padding: 8px 0;

    font-size: 13px;
}


.calculator-result-row span {

    color: #777;
}


.calculator-result-row strong {

    color: #222;

    font-size: 13px;

    text-align: right;
}


/* =====================================================
   TOTAL
   ===================================================== */

.calculator-total {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    margin-top: 8px;

    padding-top: 14px;

    border-top:
        1px solid #ddd;
}


.calculator-total span {

    color: #222;

    font-size: 14px;

    font-weight: 700;
}


.calculator-total strong {

    color: #222;

    font-size: 17px;

    font-weight: 800;

    text-align: right;
}


.calculator-note {

    margin-top: 10px;

    text-align: center;

    color: #777;

    font-size: 11px;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 576px) {

    .gold-calculator-button {

        bottom: 12px;

        padding:
            11px 20px;

        font-size: 13px;
    }


    .gold-calculator-body {

        padding: 18px;
    }

}

