/* Scoped, explicit sizes keep the calculator readable with themes that set a 10px root. */
.yaw-metal-weight {
    box-sizing: border-box;
    margin: 26px 0;
    padding: 24px;
    overflow: hidden;
    color: #25303a;
    background: #fff;
    border: 1px solid #e0e4e7;
    border-top: 4px solid #f5b938;
    border-radius: 4px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .12);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.yaw-metal-weight *,
.yaw-metal-weight *::before,
.yaw-metal-weight *::after {
    box-sizing: border-box;
}

.yaw-metal-weight[hidden],
.yaw-metal-weight [hidden] {
    display: none !important;
}

.yaw-metal-weight .yaw-metal-weight-header {
    margin-bottom: 22px;
}

.yaw-metal-weight .yaw-metal-weight-kicker {
    display: block;
    margin-bottom: 5px;
    color: #8c650e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    line-height: 1.3;
    text-transform: uppercase;
}

.yaw-metal-weight h3 {
    margin: 0 0 7px;
    color: #202a32;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
}

.yaw-metal-weight .yaw-metal-weight-header p {
    margin: 0;
    color: #59656e;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.yaw-metal-weight-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.yaw-metal-weight-selection .yaw-metal-weight-item {
    grid-column: 1 / -1;
}

.yaw-metal-weight-fields label {
    display: block;
    min-width: 0;
    margin: 0;
    color: #35414a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

.yaw-metal-weight-fields select,
.yaw-metal-weight-fields input {
    display: block;
    width: 100%;
    height: 46px;
    min-height: 46px;
    margin: 7px 0 0;
    padding: 0 13px;
    border: 1px solid #c8d0d5;
    border-radius: 3px;
    box-shadow: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0;
}

.yaw-metal-weight-fields select {
    padding-right: 34px;
    color: #fff;
    background: #303b43;
    border-color: #303b43;
    cursor: pointer;
    appearance: auto;
}

.yaw-metal-weight-fields input {
    color: #202a32;
    background: #fff;
}

.yaw-metal-weight-fields select:focus,
.yaw-metal-weight-fields input:focus {
    outline: 2px solid #d79408;
    outline-offset: 2px;
    border-color: #d79408;
}

.yaw-metal-weight-specs {
    margin-top: 22px;
}

.yaw-metal-weight-specs h4 {
    margin: 0 0 10px;
    color: #35414a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

.yaw-metal-weight-specs dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin: 0;
}

.yaw-metal-weight-specs dl > div {
    min-width: 0;
    padding: 10px 12px;
    background: #f2f4f5;
    border: 1px solid #e6eaec;
    border-radius: 3px;
}

.yaw-metal-weight-specs dt,
.yaw-metal-weight-specs dd {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.yaw-metal-weight-specs dt {
    color: #65717a;
    font-size: 12px;
    font-weight: 400;
}

.yaw-metal-weight-specs dd {
    margin-top: 3px;
    color: #26323a;
    font-size: 14px;
    font-weight: 700;
}

.yaw-metal-weight-inputs {
    margin-top: 22px;
}

.yaw-metal-weight [data-result] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 22px;
    padding: 14px 16px;
    color: #202a32;
    background: #fff7e5;
    border-left: 4px solid #f5b938;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.35;
}

.yaw-metal-weight [data-result]:empty {
    display: none;
}

.yaw-metal-weight .yaw-metal-weight-result-label {
    font-size: 14px;
    font-weight: 700;
}

.yaw-metal-weight .yaw-metal-weight-result-value {
    color: #202a32;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
}

.yaw-metal-weight [data-result].is-invalid {
    background: #fff2ef;
    border-left-color: #ba4232;
}

.yaw-metal-weight .is-invalid .yaw-metal-weight-result-value {
    font-size: 14px;
    font-weight: 400;
}

@media (max-width: 480px) {
    .yaw-metal-weight {
        padding: 20px 16px;
    }

    .yaw-metal-weight-fields {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .yaw-metal-weight-selection .yaw-metal-weight-item {
        grid-column: auto;
    }

    .yaw-metal-weight-specs dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
