:root {
    --bsrp-navy: #14233E;
    --bsrp-yellow: #FFE814;
    --bsrp-text: #334155;
    --bsrp-muted: #6B7688;
    --bsrp-line: #DDE3EA;
    --bsrp-soft: #F5F7FA;
    --bsrp-white: #FFFFFF;
}


/* =========================================================
   BASE
   ========================================================= */

.bsrp {
    color: var(--bsrp-navy);
    margin: 0;
}

.bsrp *,
.bsrp *::before,
.bsrp *::after {
    box-sizing: border-box;
}

.bsrp [hidden] {
    display: none !important;
}


/* =========================================================
   EXISTING RUN PLANNER
   ========================================================= */

.bsrp__header {
    margin-bottom: 16px;
}

.bsrp__title {
    margin: 0;
    color: var(--bsrp-navy);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.2;
}

.bsrp__card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.35fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--bsrp-line);
    border-radius: 20px;
    background: var(--bsrp-white);
    box-shadow: 0 12px 34px rgba(20, 35, 62, .06);
}

.bsrp__inputs {
    padding: 32px;
    border-right: 1px solid var(--bsrp-line);
    background: #FCFDFE;
}

.bsrp__results {
    padding: 30px 32px 28px;
}

.bsrp-field {
    display: block;
    margin-bottom: 22px;
}

.bsrp-field__label {
    display: block;
    margin-bottom: 8px;
    color: var(--bsrp-navy);
    font-size: 13px;
    font-weight: 700;
}

.bsrp-field select,
.bsrp-field__control {
    width: 100%;
}

.bsrp-field select,
.bsrp-field__control input {
    min-height: 54px;
    border: 1px solid #C9D3DE;
    background: var(--bsrp-white);
    color: var(--bsrp-navy);
    outline: none;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.bsrp-field select {
    padding: 0 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

.bsrp-field__control {
    display: grid;
    grid-template-columns: 1fr 42px;
}

.bsrp-field__control input {
    width: 100%;
    margin: 0;
    padding: 0 16px;
    border-radius: 10px 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.bsrp-field__control em {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border: 1px solid #C9D3DE;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: var(--bsrp-soft);
    color: var(--bsrp-navy);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.bsrp-field select:focus,
.bsrp-field__control input:focus {
    border-color: var(--bsrp-navy);
    box-shadow: 0 0 0 3px rgba(20, 35, 62, .07);
}


/* =========================================================
   SHIELD
   ========================================================= */

.bsrp-shield-config {
    margin: -2px 0 22px;
}

.bsrp-shield-choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 8px;
    padding: 11px 12px;
    border: 1px solid var(--bsrp-line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.bsrp-shield-choice input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: var(--bsrp-navy);
}

.bsrp-shield-choice strong,
.bsrp-shield-choice small {
    display: block;
}

.bsrp-shield-choice strong {
    margin-bottom: 2px;
    color: var(--bsrp-navy);
    font-size: 12px;
    line-height: 1.35;
}

.bsrp-shield-choice small {
    color: var(--bsrp-muted);
    font-size: 10px;
}


/* =========================================================
   RUN PLANNER RESULTS
   ========================================================= */

.bsrp-run-feedback {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.bsrp-actual {
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--bsrp-navy);
    color: #fff;
}

.bsrp-actual > span,
.bsrp-actual > strong {
    display: block;
}

.bsrp-actual > span {
    margin-bottom: 4px;
    color: rgba(255,255,255,.72);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.bsrp-actual > strong {
    font-size: 22px;
    line-height: 1.1;
}

.bsrp__note {
    position: relative;
    margin: 0;
    padding-left: 20px;
    color: var(--bsrp-muted);
    font-size: 11px;
    line-height: 1.5;
}

.bsrp__note::before {
    content: "i";
    position: absolute;
    left: 0;
    top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bsrp-navy);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}

.bsrp__results-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.bsrp__results-head strong,
.bsrp__results-kicker {
    display: block;
}

.bsrp__results-kicker {
    margin-bottom: 4px;
    color: var(--bsrp-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
}

.bsrp__results-head strong {
    color: var(--bsrp-navy);
    font-size: 13px;
}

.bsrp-result {
    display: grid;
    grid-template-columns: 58px minmax(0,1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 82px;
    padding: 13px 14px;
    border: 1px solid var(--bsrp-line);
    background: var(--bsrp-white);
}

.bsrp-result + .bsrp-result {
    border-top: 0;
}

.bsrp-result__media,
.bsrp-result__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--bsrp-soft);
}

.bsrp-result__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bsrp-result__badge {
    background: rgba(255,232,20,.24);
    font-weight: 800;
}

.bsrp-result__copy strong,
.bsrp-result__copy small,
.bsrp-result__value strong,
.bsrp-result__value span {
    display: block;
}

.bsrp-result__copy strong {
    margin-bottom: 4px;
    font-size: 14px;
}

.bsrp-result__copy small {
    color: var(--bsrp-muted);
    font-size: 11px;
}

.bsrp-result__value {
    min-width: 72px;
    text-align: right;
}

.bsrp-result__value strong {
    font-size: 27px;
    line-height: 1;
}

.bsrp-result__value span {
    margin-top: 4px;
    color: var(--bsrp-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.bsrp-connection {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-top: 12px;
    padding: 13px 14px;
    border-radius: 12px;
    background: var(--bsrp-soft);
}

.bsrp-run-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}

.bsrp-run-footer .bsrp-connection {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    margin-top: 0;
}

.bsrp-connection span {
    color: var(--bsrp-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.bsrp-connection strong {
    font-size: 12px;
    text-align: right;
}

.bsrp-shield-note {
    margin-top: 10px;
    padding: 10px 12px;
    border-left: 3px solid var(--bsrp-yellow);
    background: #FFFDF0;
    color: #5F6877;
    font-size: 11px;
    line-height: 1.45;
}

.bsrp__actions {
    margin-top: 16px;
}

.bsrp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 2px solid var(--bsrp-navy);
    border-radius: 999px;
    background: var(--bsrp-navy);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.bsrp-button:hover {
    border-color: var(--bsrp-yellow);
    background: var(--bsrp-yellow);
    color: var(--bsrp-navy) !important;
}


/* =========================================================
   PACKAGING & LOGISTICS
   ========================================================= */

.bsrp-logistics-wrap {
    margin-top: 30px;
}

.bsrp-logistics-title {
    margin: 0 0 14px;
    color: var(--bsrp-navy);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.015em;
}

.bsrp-logistics-card {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(0, 1.06fr)
        minmax(400px, .94fr);
    overflow: hidden;
    border: 1px solid var(--bsrp-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(20,35,62,.045);
}


/* =========================================================
   LEFT — TRANSPORT PACK
   ========================================================= */

.bsrp-logistics-left {
    padding: 24px 24px 22px;
    border-right: 1px solid var(--bsrp-line);
}

.bsrp-logistics-subtitle {
    margin: 0 0 12px;
    color: var(--bsrp-navy);
    font-size: 14px;
    font-weight: 700;
}

.bsrp-pack-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 284px;
    overflow: hidden;
    background: #fff;
}

.bsrp-pack-image img {
    display: block;
    width: 100%;
    height: 284px;
    object-fit: contain;
    object-position: center;
}

/* =========================================================
   COMPACT THREE-ITEM PACK SPEC STRIP
   ========================================================= */

.bsrp-pack-spec-strip {
    display: grid;
    grid-template-columns:
        minmax(115px, .78fr)
        minmax(230px, 1.4fr)
        minmax(125px, .82fr);
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid var(--bsrp-line);
    border-radius: 11px;
    background: #F7F8FA;
}

.bsrp-pack-spec-item {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0,1fr);
    gap: 9px;
    align-items: center;
    min-width: 0;
    min-height: 82px;
    padding: 11px 13px;
}

.bsrp-pack-spec-item + .bsrp-pack-spec-item::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 0;
    width: 1px;
    background: #D7DEE7;
}

.bsrp-pack-spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--bsrp-navy);
}

.bsrp-pack-spec-icon svg {
    width: 25px;
    height: 25px;
}

.bsrp-pack-spec-copy {
    min-width: 0;
}

.bsrp-pack-spec-copy > span {
    display: block;
    margin-bottom: 3px;
    color: var(--bsrp-muted);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: .025em;
}

.bsrp-pack-spec-copy > strong {
    display: block;
    min-width: 0;
    color: var(--bsrp-navy);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
}

.bsrp-pack-spec-copy > strong small {
    font-size: 9px;
    font-weight: 600;
}

.bsrp-pack-dimensions-value {
    max-width: 100%;
    font-size: 10px !important;
    line-height: 1.35 !important;
    white-space: normal;
}

.bsrp-pack-spec-copy > strong.is-missing {
    color: #68778C;
    font-size: 13px;
    line-height: 1.35;
}

.bsrp-pack-spec-item:first-child .bsrp-pack-spec-copy > strong {
    overflow-wrap: anywhere;
}

@media (min-width: 1101px) {
    .bsrp-pack-spec-strip {
        grid-template-columns:
            minmax(0, .78fr)
            minmax(0, 1.4fr)
            minmax(125px, .82fr);
    }

    .bsrp-pack-spec-item:last-child {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 5px;
        padding-right: 6px;
        padding-left: 7px;
    }

    .bsrp-pack-spec-item:last-child .bsrp-pack-spec-icon {
        width: 28px;
    }
}


/* =========================================================
   RIGHT COLUMN
   ========================================================= */

.bsrp-logistics-right {
    padding: 24px 24px 22px;
    background: #FBFCFD;
}


/* =========================================================
   YOUR PROJECT — DYNAMIC STRIP
   ========================================================= */

.bsrp-project-strip {
    display: grid;
    grid-template-columns:
        minmax(120px, .9fr)
        minmax(135px, 1fr)
        minmax(135px, 1fr);
    align-items: center;
    min-height: 58px;
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #C9DFF8;
    border-radius: 10px;
    background: #EEF6FF;
}

.bsrp-project-label,
.bsrp-project-metric {
    min-width: 0;
    padding: 10px 15px;
}

.bsrp-project-label {
    color: #53627A;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.bsrp-project-metric {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    border-left: 1px solid #C7D5E5;
    white-space: nowrap;
}

.bsrp-project-metric strong {
    color: var(--bsrp-navy);
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
}

.bsrp-project-metric span {
    color: #53627A;
    font-size: 10px;
    font-weight: 600;
}


/* =========================================================
   TRANSPORT PLANNING
   ========================================================= */

.bsrp-transport-heading {
    margin-bottom: 9px;
}

.bsrp-transport-cards {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 11px;
}

.bsrp-transport-card {
    min-width: 0;
    padding: 11px 13px 10px;
    border: 1px solid var(--bsrp-line);
    border-radius: 10px;
    background: #fff;
}

.bsrp-transport-name {
    display: block;
    margin-bottom: 2px;
    color: var(--bsrp-navy);
    font-size: 13px;
    font-weight: 700;
}

.bsrp-transport-image {
    width: 100%;
    height: 70px;
    margin: 0 0 3px;
    overflow: hidden;
}

.bsrp-transport-image img {
    display: block;
    width: 100%;
    height: 70px;
    object-fit: cover;
    object-position: center center;
}

.bsrp-transport-capacity {
    margin-top: 1px;
    text-align: left;
}

.bsrp-transport-capacity > strong {
    display: inline;
    color: var(--bsrp-navy);
    font-size: 18px;
    font-weight: 700;
}

.bsrp-transport-capacity > span {
    display: inline;
    margin-left: 4px;
    color: var(--bsrp-muted);
    font-size: 9px;
    font-weight: 600;
}

.bsrp-transport-run {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #E7EBF0;
    color: var(--bsrp-muted);
    font-size: 9px;
    line-height: 1.3;
    text-align: left;
}

.bsrp-transport-card.is-missing {
    border-color: #DCE2E9;
    background: #F6F7F9;
}

.bsrp-transport-card.is-missing .bsrp-transport-capacity > strong,
.bsrp-project-metric strong.is-missing {
    color: #68778C;
}

.bsrp-transport-pending,
.bsrp-freight-note {
    margin: 10px 0 0;
    padding: 10px 12px;
    border: 1px solid var(--bsrp-line);
    border-radius: 10px;
    background: #fff;
    color: var(--bsrp-text);
    font-size: 11px;
    line-height: 1.5;
}

.bsrp-transport-pending {
    margin-top: 0;
}


/* =========================================================
   COMPACT HORIZONTAL DELIVERY NOTES
   ========================================================= */

.bsrp-delivery-notes {
    margin-top: 11px;
    padding: 10px 11px 11px;
    border-radius: 10px;
    background: #F3F5F7;
}

.bsrp-delivery-notes-title {
    display: block;
    margin-bottom: 7px;
    color: var(--bsrp-navy);
    font-size: 11px;
    font-weight: 700;
}

.bsrp-delivery-notes-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
}

.bsrp-delivery-note {
    position: relative;
    display: grid;
    grid-template-columns: 25px minmax(0,1fr);
    gap: 8px;
    align-items: start;
    min-width: 0;
    padding: 2px 10px;
    color: #53627A;
    font-size: 8.5px;
    line-height: 1.3;
}

.bsrp-delivery-note:first-child {
    padding-left: 0;
}

.bsrp-delivery-note:last-child {
    padding-right: 0;
}

.bsrp-delivery-note + .bsrp-delivery-note::before {
    content: "";
    position: absolute;
    top: 1px;
    bottom: 1px;
    left: 0;
    width: 1px;
    background: #D6DEE8;
}

.bsrp-delivery-note-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #E6EBF2;
    color: var(--bsrp-navy);
    font-size: 10px;
    font-weight: 800;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .bsrp-logistics-card {
        grid-template-columns: 1fr;
    }

    .bsrp-logistics-left {
        border-right: 0;
        border-bottom: 1px solid var(--bsrp-line);
    }

    .bsrp-logistics-right {
        background: #fff;
    }
}


@media (max-width: 900px) {

    .bsrp__card {
        grid-template-columns: 1fr;
    }

    .bsrp__inputs {
        border-right: 0;
        border-bottom: 1px solid var(--bsrp-line);
    }

    .bsrp-pack-spec-strip {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .bsrp-pack-dimensions-value {
        font-size: 9px !important;
    }
}

@media (max-width: 700px) {
    .bsrp-run-footer {
        align-items: stretch;
        flex-direction: column;
    }
}


/* =========================================================
   RESPONSIVE — SMALL TABLET
   ========================================================= */

@media (max-width: 700px) {

    .bsrp-pack-spec-strip {
        grid-template-columns: 1fr;
    }

    .bsrp-pack-spec-item {
        min-height: 64px;
    }

    .bsrp-pack-spec-item + .bsrp-pack-spec-item::before {
        top: 0;
        right: 12px;
        bottom: auto;
        left: 12px;
        width: auto;
        height: 1px;
    }

    .bsrp-project-strip {
        grid-template-columns: 1fr 1fr;
    }

    .bsrp-project-label {
        grid-column: 1 / -1;
        padding-bottom: 4px;
        text-align: center;
    }

    .bsrp-project-metric:first-of-type {
        border-left: 0;
    }

    .bsrp-delivery-notes-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .bsrp-delivery-note {
        padding: 3px 0;
    }

    .bsrp-delivery-note + .bsrp-delivery-note::before {
        display: none;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 575px) {

    .bsrp-run-feedback {
        grid-template-columns: 1fr;
    }

    .bsrp__inputs,
    .bsrp__results {
        padding: 24px 18px;
    }

    .bsrp-result {
        grid-template-columns: 48px minmax(0,1fr) auto;
        gap: 10px;
        padding: 12px;
    }

    .bsrp-result__media,
    .bsrp-result__badge {
        width: 48px;
        height: 48px;
    }

    .bsrp-connection {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .bsrp-button {
        width: 100%;
    }

    .bsrp-logistics-wrap {
        margin-top: 26px;
    }

    .bsrp-logistics-title {
        font-size: 22px;
    }

    .bsrp-logistics-left,
    .bsrp-logistics-right {
        padding: 20px 17px;
    }

    .bsrp-pack-image,
    .bsrp-pack-image img {
        height: 230px;
    }

    .bsrp-transport-cards {
        grid-template-columns: 1fr;
    }

    .bsrp-transport-image,
    .bsrp-transport-image img {
        height: 78px;
    }

    .bsrp-project-metric strong {
        font-size: 20px;
    }

    .bsrp-project-metric span {
        font-size: 9px;
    }
}
