/* =========================================================
   AajBazar Silver Rate Calculator
   silver-calculator.css
   Lightweight + Mobile First + Responsive
========================================================= */


/* =========================================================
   Base
========================================================= */

.ab-silver-calc,
.ab-silver-calc * {
    box-sizing: border-box;
}

.ab-silver-calc {
    max-width: 850px;
    margin: 28px auto;
    padding: 0 15px;
    color: #222;
    font-family: inherit;
}


/* =========================================================
   Header
========================================================= */

.ab-silver-calc-header {
    margin-bottom: 20px;
    text-align: center;
}

.ab-silver-calc-header h1 {
    margin: 0 0 9px;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
}

.ab-silver-calc-header p {
    max-width: 680px;
    margin: 0 auto;
    color: #555;
    font-size: 15px;
    line-height: 1.65;
}


/* =========================================================
   Calculator Card
========================================================= */

.ab-silver-calc-card {
    width: 100%;
    max-width: 470px;
    margin: 0 auto 30px;
    padding: 19px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 11px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.045);
}

.ab-silver-calc-card h2 {
    margin: 0 0 16px;
    text-align: center;
    font-size: 20px;
    line-height: 1.3;
}


/* =========================================================
   Live Silver Rate
========================================================= */

.ab-silver-live-rate {
    margin-bottom: 16px;
    padding: 10px 13px;
    border-radius: 7px;
    background: #f7f7f7;
    text-align: center;
}

.ab-silver-live-rate span {
    display: block;
    margin-bottom: 3px;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.ab-silver-live-rate strong {
    display: block;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
}

.ab-silver-live-rate small {
    font-size: 11px;
    font-weight: 400;
}


/* =========================================================
   Input Fields
========================================================= */

.ab-silver-field {
    margin-bottom: 13px;
}

.ab-silver-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.ab-silver-field input {
    width: 100%;
    height: 42px;
    padding: 8px 11px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background: #fafafa;
    color: #222;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    outline: none;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.ab-silver-field input:hover {
    border-color: #c5c5c5;
}

.ab-silver-field input:focus {
    border-color: #777;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}

.ab-silver-field small {
    display: block;
    margin-top: 4px;
    color: #777;
    font-size: 10.5px;
    line-height: 1.45;
}


/* =========================================================
   Remove Number Spinner
========================================================= */

.ab-silver-field input[type="number"]::-webkit-inner-spin-button,
.ab-silver-field input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.ab-silver-field input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}


/* =========================================================
   Buttons
========================================================= */

.ab-silver-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.ab-silver-calc-btn,
.ab-silver-reset-btn {
    min-height: 42px;
    padding: 9px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
    transition:
        opacity 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}

.ab-silver-calc-btn {
    flex: 1;
    border: 0;
    background: #111;
    color: #fff;
    font-weight: 600;
}

.ab-silver-calc-btn:hover {
    opacity: 0.92;
}

.ab-silver-reset-btn {
    min-width: 72px;
    border: 1px solid #d5d5d5;
    background: #fff;
    color: #333;
}

.ab-silver-reset-btn:hover {
    background: #f6f6f6;
    border-color: #c8c8c8;
}


/* =========================================================
   Keyboard Focus
========================================================= */

.ab-silver-calc-btn:focus-visible,
.ab-silver-reset-btn:focus-visible,
.ab-silver-faq-question:focus-visible,
.ab-silver-field input:focus-visible {
    outline: 2px solid #555;
    outline-offset: 2px;
}


/* =========================================================
   Main Result
========================================================= */

.ab-silver-result {
    margin-top: 16px;
    padding: 14px 12px;
    border-radius: 7px;
    background: #111;
    color: #fff;
    text-align: center;
}

.ab-silver-result-label {
    display: block;
    margin-bottom: 3px;
    opacity: 0.78;
    font-size: 11px;
    line-height: 1.4;
}

.ab-silver-result strong {
    display: block;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}


/* =========================================================
   Price Breakdown
========================================================= */

.ab-silver-breakdown {
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 7px;
}

.ab-silver-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 8px 11px;
    border-bottom: 1px solid #ededed;
    font-size: 12.5px;
    line-height: 1.4;
}

.ab-silver-breakdown-row:last-child {
    border-bottom: 0;
}

.ab-silver-breakdown-row:nth-child(even) {
    background: #fafafa;
}

.ab-silver-breakdown-row strong {
    white-space: nowrap;
    font-weight: 600;
}


/* =========================================================
   Last Updated
========================================================= */

.ab-silver-updated {
    margin-top: 9px;
    color: #777;
    font-size: 10.5px;
    line-height: 1.45;
    text-align: center;
}


/* =========================================================
   SEO Content
========================================================= */

.ab-silver-content {
    max-width: 850px;
    margin: 0 auto;
}

.ab-silver-content h2 {
    margin: 30px 0 10px;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
}

.ab-silver-content p {
    margin: 0 0 12px;
    color: #333;
    font-size: 15px;
    line-height: 1.72;
}

.ab-silver-content ol,
.ab-silver-content ul {
    margin: 10px 0 18px;
    padding-left: 22px;
}

.ab-silver-content li {
    margin-bottom: 7px;
    color: #333;
    font-size: 15px;
    line-height: 1.65;
}

.ab-silver-weight-list {
    list-style-type: disc;
}


/* =========================================================
   Formula Box
========================================================= */

.ab-silver-formula {
    margin: 17px 0 24px;
    padding: 14px;
    border: 1px solid #e3e3e3;
    border-radius: 7px;
    background: #fafafa;
}

.ab-silver-formula div {
    padding: 7px 0;
    border-bottom: 1px solid #e8e8e8;
}

.ab-silver-formula div:last-child {
    border-bottom: 0;
}

.ab-silver-formula strong {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    line-height: 1.4;
}

.ab-silver-formula span {
    display: block;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   Disclaimer
========================================================= */

.ab-silver-disclaimer {
    padding: 13px 14px !important;
    border-left: 3px solid #999;
    background: #f8f8f8;
    color: #555 !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
}


/* =========================================================
   FAQ
========================================================= */

.ab-silver-faq {
    margin-top: 30px;
}

.ab-silver-faq h2 {
    margin-bottom: 13px;
}

.ab-silver-faq-item {
    margin-bottom: 7px;
    overflow: hidden;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    background: #fff;
}

.ab-silver-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 45px;
    padding: 10px 12px;
    border: 0;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
}

.ab-silver-faq-question:hover {
    background: #fafafa;
}

.ab-silver-faq-question span {
    padding-right: 8px;
}

.ab-silver-faq-question b {
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
}

.ab-silver-faq-answer {
    padding: 0 12px 11px;
}

.ab-silver-faq-answer p {
    margin: 0;
    color: #555;
    font-size: 13.5px;
    line-height: 1.65;
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 600px) {

    .ab-silver-calc {
        margin: 20px auto;
        padding: 0 12px;
    }

    .ab-silver-calc-header h1 {
        font-size: 22px;
    }

    .ab-silver-calc-header p {
        font-size: 13px;
        line-height: 1.6;
    }

    .ab-silver-calc-card {
        padding: 16px;
        border-radius: 9px;
    }

    .ab-silver-calc-card h2 {
        font-size: 18px;
    }

    .ab-silver-live-rate strong {
        font-size: 18px;
    }

    .ab-silver-result strong {
        font-size: 22px;
    }

    .ab-silver-content h2 {
        font-size: 19px;
    }

    .ab-silver-content p,
    .ab-silver-content li {
        font-size: 14px;
    }

    .ab-silver-formula {
        padding: 12px;
    }

    .ab-silver-faq-question {
        font-size: 13px;
    }
}


/* =========================================================
   Small Phones
========================================================= */

@media (max-width: 380px) {

    .ab-silver-calc-card {
        padding: 14px;
    }

    .ab-silver-actions {
        flex-direction: column;
    }

    .ab-silver-calc-btn,
    .ab-silver-reset-btn {
        width: 100%;
    }

    .ab-silver-breakdown-row {
        font-size: 12px;
    }
}


/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .ab-silver-field input,
    .ab-silver-calc-btn,
    .ab-silver-reset-btn {
        transition: none;
    }
}