/* =========================================================
   BARRIER SYSTEMS RUN PLANNER
   SYSTEM CONFIGURATION JOURNEY
   Version 2.3.19
   ========================================================= */


/* =========================================================
   JOURNEY NAVIGATION
   ========================================================= */

.bsrp-journey {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    width: 100%;
    max-width: 760px;
    margin: 0 auto 20px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.bsrp .bsrp-journey {
    background: transparent !important;
}

.bsrp-journey::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 16.6667%;
    left: 16.6667%;
    height: 2px;
    background: #D2DAE4;
    z-index: 0;
}

.bsrp .bsrp-journey-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 62px !important;
    margin: 0;
    padding: 0 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    appearance: none;
    z-index: 1;
    color: var(--bsrp-muted);
    font: inherit;
    cursor: pointer;
}

.bsrp .bsrp-journey-step:hover {
    background: transparent !important;
    color: var(--bsrp-navy);
}

.bsrp .bsrp-journey-step:focus:not(:focus-visible) {
    outline: none !important;
}

.bsrp .bsrp-journey-step:focus-visible {
    border-radius: 8px;
    outline: 2px solid var(--bsrp-navy) !important;
    outline-offset: 2px;
}

.bsrp-journey-step__number {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid #CDD6E0;
    border-radius: 50%;
    background: #fff;
    color: var(--bsrp-navy);
    font-size: 11px;
    font-weight: 800;
}

.bsrp-journey-step:hover .bsrp-journey-step__number {
    border-color: var(--bsrp-navy);
}

.bsrp-journey-step.is-active {
    color: var(--bsrp-navy);
}

.bsrp-journey-step.is-active
.bsrp-journey-step__number {
    border-color: var(--bsrp-yellow);
    background: var(--bsrp-yellow);
}

.bsrp-journey-step__label {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

/* =========================================================
   JOURNEY PANELS
   ========================================================= */

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

.single-product .bsrp.bsrp--system-active {
    margin-bottom: -42px;
}

.bsrp-journey-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.bsrp-journey-actions--forward {
    justify-content: flex-end;
}

.bsrp-journey-actions__primary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* Align the Run Length action below the card, like the other steps. */
.bsrp .bsrp__actions--journey {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.bsrp .bsrp__actions--journey > .bsrp-journey-button {
    margin-left: auto;
}


/* =========================================================
   JOURNEY NAVIGATION BUTTONS
   ========================================================= */

.bsrp .bsrp-journey-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    padding: 0 24px !important;
    border: 2px solid #FFE814 !important;
    border-radius: 25px !important;
    background: #FFE814 !important;
    color: #14233E !important;
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer;
    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease !important;
}

.bsrp .bsrp-journey-button.bsrp-button--secondary {
    border-color: #FFE814 !important;
    background: #FFE814 !important;
    color: #14233E !important;
}

.bsrp .bsrp-journey-button:hover,
.bsrp .bsrp-journey-button:focus,
.bsrp .bsrp-journey-button.bsrp-button--secondary:hover,
.bsrp .bsrp-journey-button.bsrp-button--secondary:focus {
    border-color: #14233E !important;
    background: #14233E !important;
    color: #FFFFFF !important;
}

.bsrp .bsrp-journey-button:hover *,
.bsrp .bsrp-journey-button:focus * {
    color: #FFFFFF !important;
}


/* =========================================================
   FINAL STEP — BACK BUTTON
   ========================================================= */

.bsrp
[data-bsrp-step-panel="logistics"]
.bsrp-journey-button.bsrp-button--secondary {
    border-color: #14233E !important;
    background: #FFFFFF !important;
    color: #14233E !important;
}

.bsrp
[data-bsrp-step-panel="logistics"]
.bsrp-journey-button.bsrp-button--secondary:hover,
.bsrp
[data-bsrp-step-panel="logistics"]
.bsrp-journey-button.bsrp-button--secondary:focus {
    border-color: #14233E !important;
    background: #14233E !important;
    color: #FFFFFF !important;
}


/* =========================================================
   ADD SYSTEM TO CART
   ========================================================= */

.bsrp .bsrp-system-cart-button {
    border: 2px solid #FFE814 !important;
    border-radius: 25px !important;
    background: #FFE814 !important;
    color: #14233E !important;
}

.bsrp .bsrp-system-cart-button:hover,
.bsrp .bsrp-system-cart-button:focus {
    border-color: #14233E !important;
    background: #14233E !important;
    color: #FFFFFF !important;
}

.bsrp .bsrp-system-cart-button:disabled {
    opacity: .6 !important;
    cursor: wait !important;
}

.bsrp .bsrp-system-cart-button--unavailable:disabled {
    border-color: #DCE2E9 !important;
    background: #F1F3F6 !important;
    color: #68778C !important;
    cursor: not-allowed !important;
}


/* =========================================================
   SYSTEM CONFIGURATION HEADER
   ========================================================= */

.bsrp-system-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-bottom: 14px;
}

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

/* =========================================================
   CURRENT RUN SUMMARY
   ========================================================= */

.bsrp-system-summary {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px 14px;
    min-width: 0;
    margin-left: auto;
}

.bsrp-system-summary__label,
.bsrp-system-summary__metric {
    min-width: 0;
}

.bsrp-system-summary__label {
    color: #53627A;
    font-size: 10px;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.bsrp-system-summary__label strong {
    font-weight: 700;
}

.bsrp-system-summary__metric {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

.bsrp-system-summary__metric strong {
    color: var(--bsrp-navy);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

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

/* =========================================================
   SYSTEM CONFIGURATION CARD
   ========================================================= */

.bsrp-system-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--bsrp-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(20,35,62,.045);
}

.bsrp-system-main-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(300px, 1fr);
    gap: 16px;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--bsrp-line);
}

.bsrp-system-main-row__product strong,
.bsrp-system-main-row__product span {
    display: block;
}

.bsrp-system-main-row__product strong {
    color: var(--bsrp-navy);
    font-size: 14px;
}

.bsrp-system-main-row__product span {
    margin-top: 4px;
    color: var(--bsrp-muted);
    font-size: 11px;
}

.bsrp-system-main-row__fields {
    width: 100%;
    max-width: 470px;
    justify-self: end;
}

.bsrp-system-grid {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 14px;
}

.bsrp-system-grid > :only-child {
    grid-column: 1 / -1;
}


/* =========================================================
   COMPONENT CARDS
   ========================================================= */

.bsrp-system-item {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--bsrp-line);
    border-radius: 12px;
    background: #fff;
    transition:
        opacity .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.bsrp-system-item:not(.is-not-included) {
    border-color: #CBD8E6;
    box-shadow:
        0 5px 16px
        rgba(20,35,62,.035);
}

.bsrp-system-item.is-not-included {
    background: #FBFCFD;
}

.bsrp-system-item.is-unavailable,
.bsrp-system-item.is-unavailable:not(.is-not-included) {
    border-color: #DCE2E9;
    background: #F6F7F9;
    box-shadow: none;
}

.bsrp-system-item.is-unavailable .bsrp-system-product-media {
    filter: grayscale(1);
    opacity: .65;
}

.bsrp-system-item.is-unavailable input {
    cursor: not-allowed;
}

.bsrp-system-item__head {
    display: grid;
    grid-template-columns:
        72px minmax(0,1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 15px;
}

.bsrp-system-product-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--bsrp-soft);
}

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

.bsrp-system-product-fallback {
    color: var(--bsrp-navy);
    font-size: 13px;
    font-weight: 800;
}

.bsrp-system-product-copy {
    min-width: 0;
}

.bsrp-system-product-copy > strong,
.bsrp-system-product-copy > span,
.bsrp-system-product-link {
    display: block;
}

.bsrp-system-product-copy > strong {
    margin-bottom: 4px;
    color: var(--bsrp-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.bsrp-system-product-copy > span {
    color: var(--bsrp-muted);
    font-size: 10px;
    line-height: 1.4;
}

.bsrp-system-product-link {
    margin-top: 6px;
    color: var(--bsrp-navy);
    font-size: 10px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bsrp-system-product-link:hover {
    color: #40516A;
}

.bsrp-system-product-copy > .bsrp-system-status {
    display: block;
    margin-top: 7px;
    color: #53627A;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}


/* =========================================================
   SUGGESTED QUANTITY STRIP
   ========================================================= */

.bsrp-system-item__suggestion {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 11px;
    border-radius: 9px;
    background: #F5F7FA;
}

.bsrp-system-item__suggestion > span {
    color: var(--bsrp-muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.bsrp-system-item__suggestion > strong {
    color: var(--bsrp-navy);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}


/* =========================================================
   INCLUDE CHECKBOX
   ========================================================= */

.bsrp-system-include {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 13px;
    color: var(--bsrp-navy);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.bsrp-system-include input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 0;
    accent-color: var(--bsrp-navy);
}


/* =========================================================
   SYSTEM FORM FIELDS
   ========================================================= */

.bsrp-system-field {
    display: block;
    margin: 0 0 12px;
}

.bsrp-system-fields.has-colour {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bsrp-system-fields > .bsrp-system-field {
    margin-bottom: 0;
}

.bsrp-system-fields.has-colour .bsrp-system-quantity {
    grid-template-columns: minmax(0, 1fr) 48px;
}

.bsrp-system-field:last-child {
    margin-bottom: 0;
}

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

.bsrp-system-quantity {
    display: grid;
    grid-template-columns:
        minmax(0,1fr) 58px;
    width: 100%;
}

.bsrp-system-quantity input,
.bsrp-system-colour {
    width: 100%;
    min-height: 46px;
    margin: 0;
    border: 1px solid #C9D3DE;
    background: #fff;
    color: var(--bsrp-navy);
    outline: none;
}

.bsrp-system-quantity input {
    padding: 0 13px;
    border-radius: 9px 0 0 9px;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
}

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

.bsrp-system-colour {
    padding: 0 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
}

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

.bsrp-system-quantity input:disabled {
    background: #F1F3F6;
    color: #9AA4B1;
    cursor: not-allowed;
}


/* =========================================================
   SYSTEM NOTE
   ========================================================= */

.bsrp-system-note {
    position: relative;
    margin: 18px 0 0;
    padding:
        12px 14px
        12px 34px;
    border-radius: 10px;
    background: #FFFDF0;
    color: #5F6877;
    font-size: 10px;
    line-height: 1.45;
}

.bsrp-system-note::before {
    content: "i";
    position: absolute;
    top: 12px;
    left: 13px;
    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;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

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

    .bsrp-system-item__head {
        grid-template-columns:
            64px minmax(0,1fr);
    }

    .bsrp-system-product-media {
        width: 64px;
        height: 64px;
    }
}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 700px) {

    .bsrp-journey {
        margin-bottom: 18px;
    }

    .bsrp .bsrp-journey-step {
        min-height: 74px !important;
        padding: 0 4px !important;
    }

    .bsrp-journey-step__label {
        font-size: 10px;
    }

    .bsrp-system-summary {
        justify-content: flex-start;
        width: 100%;
        margin-left: 0;
    }

    .bsrp-system-main-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .bsrp-system-main-row__fields {
        max-width: none;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575px) {

    .single-product .bsrp.bsrp--system-active {
        margin-bottom: -20px;
    }

    .bsrp .bsrp__actions--journey {
        align-items: stretch;
        flex-direction: column;
    }

    .bsrp .bsrp__actions--journey > .bsrp-button {
        width: 100% !important;
        margin-left: 0;
    }

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

    .bsrp-system-card {
        padding: 18px;
    }

    .bsrp-system-summary__metric strong {
        font-size: 15px;
    }

    .bsrp-system-summary__metric span {
        font-size: 9px;
    }

    .bsrp-system-item {
        padding: 14px;
    }

    .bsrp-journey-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .bsrp-journey-actions--forward {
        flex-direction: column;
    }

    .bsrp-journey-actions__primary {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .bsrp-journey-actions
    .bsrp-journey-button,
    .bsrp-journey-actions
    .bsrp-system-cart-button,
    .bsrp-journey-actions__primary
    .bsrp-button {
        width: 100% !important;
    }
}
