/* =========================================================
   CalcAtlas — Shipping & Logistics Category
   /assets/css/shipping-logistics.css
   ========================================================= */

.chargeable-weight-page {
    padding-bottom: 32px;
}

.chargeable-weight-calculator {
    margin: 28px 0 36px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #dbe4e8;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(24, 58, 74, 0.07);
}

.chargeable-weight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.chargeable-weight-field {
    min-width: 0;
}

.chargeable-weight-field label {
    display: block;
    margin-bottom: 8px;
    color: #243746;
    font-weight: 700;
}

.chargeable-weight-field input,
.chargeable-weight-field select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 48px;
    padding: 10px 12px;
    border: 1px solid #bfcdd4;
    border-radius: 8px;
    background: #ffffff;
    color: #1f303a;
    font: inherit;
    box-sizing: border-box;
}

.chargeable-weight-field input:focus,
.chargeable-weight-field select:focus {
    outline: 2px solid rgba(51, 123, 152, 0.22);
    outline-offset: 1px;
    border-color: #337b98;
}

.chargeable-weight-field small {
    display: block;
    margin-top: 7px;
    color: #5f727c;
    line-height: 1.45;
}

.chargeable-weight-custom-divisor {
    grid-column: 1 / -1;
}

.chargeable-weight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.chargeable-weight-actions button {
    min-height: 46px;
    padding: 10px 20px;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.chargeable-weight-actions .calculator-primary-button {
    border: 1px solid #337b98;
    background: #337b98;
    color: #ffffff;
}

.chargeable-weight-actions .calculator-primary-button:hover {
    background: #2b6a84;
}

.chargeable-weight-actions .calculator-secondary-button {
    border: 1px solid #b8c9d1;
    background: #ffffff;
    color: #285f77;
}

.chargeable-weight-actions .calculator-secondary-button:hover {
    background: #f5f8f9;
}

.chargeable-weight-page .calculator-error {
    min-height: 24px;
    margin-top: 14px;
    color: #a32626;
    font-weight: 700;
}

.chargeable-weight-results {
    margin-top: 28px;
}

.chargeable-weight-result-card {
    padding: 24px;
    border: 1px solid #c9dce4;
    border-left: 5px solid #337b98;
    border-radius: 10px;
    background: #f8fbfc;
}

.chargeable-weight-result-label {
    display: block;
    margin-bottom: 6px;
    color: #536873;
    font-size: 0.95rem;
    font-weight: 700;
}

.chargeable-weight-result-value {
    display: block;
    overflow-wrap: anywhere;
    color: #183a4a;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    line-height: 1.2;
}

.chargeable-weight-result-summary {
    display: block;
    margin-top: 10px;
    color: #445b66;
    line-height: 1.6;
}

.chargeable-weight-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.chargeable-weight-result-item {
    min-width: 0;
    padding: 16px;
    border: 1px solid #dbe4e8;
    border-radius: 9px;
    background: #ffffff;
}

.chargeable-weight-result-item span {
    display: block;
    margin-bottom: 6px;
    color: #5a6f79;
    font-size: 0.92rem;
    font-weight: 700;
}

.chargeable-weight-result-item strong {
    display: block;
    color: #203f4d;
    overflow-wrap: anywhere;
}

.chargeable-weight-breakdown {
    margin-top: 28px;
}

.chargeable-weight-breakdown h2 {
    margin-bottom: 14px;
    font-size: 1.25rem;
}

.chargeable-weight-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.chargeable-weight-table,
.chargeable-weight-reference-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background: #ffffff;
}

.chargeable-weight-table th,
.chargeable-weight-table td,
.chargeable-weight-reference-table th,
.chargeable-weight-reference-table td {
    padding: 12px 14px;
    border: 1px solid #dbe4e8;
    text-align: left;
    vertical-align: top;
}

.chargeable-weight-table thead th,
.chargeable-weight-reference-table thead th {
    background: #f2f7f9;
    color: #294a5a;
    font-weight: 700;
}

.chargeable-weight-table tbody th {
    width: 34%;
    color: #304c59;
    font-weight: 700;
}

.chargeable-weight-note {
    margin-top: 14px;
    padding: 14px 16px;
    border-left: 4px solid #87aeba;
    background: #f7fafb;
    color: #445b66;
    line-height: 1.6;
}

.chargeable-weight-page .calculator-formula {
    padding: 14px 16px;
    border: 1px solid #dbe4e8;
    border-radius: 8px;
    background: #f7fafb;
    color: #243746;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.chargeable-weight-page .calculator-faq + .calculator-faq {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .chargeable-weight-calculator {
        padding: 22px;
    }

    .chargeable-weight-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .chargeable-weight-custom-divisor {
        grid-column: auto;
    }

    .chargeable-weight-result-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .chargeable-weight-calculator {
        margin-top: 22px;
        padding: 18px;
        border-radius: 12px;
    }

    .chargeable-weight-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .chargeable-weight-actions button {
        width: 100%;
    }

    .chargeable-weight-result-card {
        padding: 19px;
    }

    .chargeable-weight-table,
    .chargeable-weight-reference-table {
        min-width: 540px;
    }
}
