.shop-page,
.checkout-success-page {
    background: #f8faf9;
    color: #183a52;
}

.shop-hero {
    padding: 4.5rem 0 3.5rem;
    background: linear-gradient(180deg, #eef4f2 0%, #ffffff 100%);
}

.shop-hero-row {
    align-items: center;
}

.shop-kicker,
.success-kicker {
    margin-bottom: .75rem;
    color: #ad163f;
    font-family: "Lato", sans-serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.shop-hero h1,
.shop-section-heading h2,
.success-panel h1 {
    color: #183a52;
    line-height: 1.12;
}

.shop-hero h1 {
    max-width: 640px;
    font-size: clamp(2.15rem, 3.2vw, 3.4rem);
}

.shop-lead,
.success-lead {
    max-width: 620px;
    color: #466172;
    font-size: 1.2rem;
    line-height: 1.7;
}

.shop-action-banner {
    display: flex;
    max-width: 600px;
    flex-wrap: wrap;
    gap: .35rem .75rem;
    margin-top: 1.25rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(173, 22, 63, .2);
    border-radius: .45rem;
    background: rgba(173, 22, 63, .08);
    color: #8b1231;
}

.shop-action-banner strong {
    color: #ad163f;
}

.shop-hero-actions,
.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.75rem;
}

.shop-page .btn.shop-btn-primary,
.shop-page .btn.shop-checkout-btn,
.checkout-success-page .btn.shop-btn-primary,
.checkout-success-page .btn.shop-checkout-btn {
    border: 1px solid #183a52;
    background: #183a52;
    color: #fff;
    border-radius: .35rem;
    font-weight: 700;
    box-shadow: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.shop-page .btn.shop-btn-primary:hover,
.shop-page .btn.shop-checkout-btn:hover,
.checkout-success-page .btn.shop-btn-primary:hover,
.checkout-success-page .btn.shop-checkout-btn:hover {
    background: #24516f;
    border-color: #24516f;
    color: #fff;
    box-shadow: none;
    text-decoration: none;
}

.shop-page .btn.shop-btn-primary:focus,
.shop-page .btn.shop-checkout-btn:focus,
.checkout-success-page .btn.shop-btn-primary:focus,
.checkout-success-page .btn.shop-checkout-btn:focus {
    background: #24516f;
    border-color: #24516f;
    color: #fff;
    box-shadow: 0 0 0 .2rem rgba(24, 58, 82, .22);
}

.shop-page .btn.shop-btn-secondary,
.checkout-success-page .btn.shop-btn-secondary {
    border: 1px solid rgba(24, 58, 82, .25);
    background: #f8faf9;
    color: #183a52;
    border-radius: .35rem;
    font-weight: 700;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.shop-page .btn.shop-btn-secondary:hover,
.checkout-success-page .btn.shop-btn-secondary:hover {
    border-color: #24516f;
    background: #eef4f2;
    color: #183a52;
    text-decoration: none;
}

.shop-page .btn.shop-btn-secondary:focus,
.checkout-success-page .btn.shop-btn-secondary:focus {
    border-color: #24516f;
    background: #eef4f2;
    color: #183a52;
    box-shadow: 0 0 0 .2rem rgba(24, 58, 82, .16);
}

.shop-device {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}

.shop-device img {
    width: min(100%, 520px);
    height: auto;
    filter: drop-shadow(0 24px 38px rgba(24, 58, 82, .18));
}

.shop-order,
.shop-details,
.success-hero {
    padding: 4rem 0;
}

.shop-section-heading {
    max-width: 760px;
    margin-bottom: 2rem;
}

.shop-section-heading p {
    color: #526879;
    font-size: 1.05rem;
}

.shop-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.shop-info-box {
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(24, 58, 82, .14);
    border-left: 4px solid #ad163f;
    border-radius: .5rem;
    background: #fff;
    color: #183a52;
}

.shop-info-box h3 {
    margin-bottom: .45rem;
    color: #183a52;
    font-size: 1.05rem;
    font-weight: 700;
}

.shop-info-box p {
    margin-bottom: .45rem;
    color: #526879;
    line-height: 1.55;
}

.shop-info-box p:last-child {
    margin-bottom: 0;
}

.shop-info-box a {
    color: #ad163f;
    font-weight: 700;
    text-decoration: none;
}

.shop-info-box a:hover,
.shop-info-box a:focus {
    color: #8b1231;
    text-decoration: underline;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 340px;
    gap: 1rem;
    align-items: stretch;
}

.shop-plan-card,
.shop-summary,
.success-panel {
    border: 1px solid rgba(24, 58, 82, .14);
    border-radius: .5rem;
    background: #fff;
    box-shadow: 0 16px 40px rgba(24, 58, 82, .08);
}

.shop-plan-card {
    position: relative;
    display: flex;
    min-height: 286px;
    flex-direction: column;
    padding: 1.25rem;
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.shop-plan-card:hover,
.shop-plan-card.is-selected {
    border-color: #ad163f;
    transform: translateY(-2px);
    box-shadow: 0 18px 46px rgba(173, 22, 63, .13);
}

.shop-plan-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shop-plan-tag {
    align-self: flex-start;
    margin-bottom: 1rem;
    padding: .3rem .55rem;
    border-radius: .35rem;
    background: rgba(173, 22, 63, .1);
    color: #ad163f;
    font-size: .78rem;
    font-weight: 700;
}

.shop-plan-title {
    color: #183a52;
    font-size: 1.3rem;
    font-weight: 700;
}

.shop-plan-price {
    margin-top: .65rem;
    color: #183a52;
    font-size: 2rem;
    font-weight: 700;
}

.shop-plan-price small {
    display: block;
    color: #6b7f8d;
    font-size: .9rem;
    font-weight: 400;
}

.shop-plan-description {
    margin-top: .85rem;
    color: #526879;
    line-height: 1.55;
}

.shop-plan-total {
    margin-top: auto;
    padding-top: 1rem;
    color: #183a52;
    font-weight: 700;
}

.shop-plan-total del {
    margin-left: .25rem;
    color: #81909a;
    font-weight: 400;
}

.shop-plan-total strong {
    margin-left: .35rem;
    color: #ad163f;
    font-size: 1.15rem;
}

.shop-summary {
    grid-row: span 1;
    padding: 1.35rem;
}

.shop-summary h3 {
    margin-bottom: 1rem;
    color: #183a52;
    font-size: 1.25rem;
    font-weight: 700;
}

.shop-summary-row,
.shop-summary-total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid rgba(24, 58, 82, .1);
}

.shop-summary-total {
    margin-bottom: 1rem;
    border-bottom: 0;
    color: #183a52;
    font-size: 1.1rem;
}

.shop-discount-row {
    color: #ad163f;
}

.shop-checkout-btn {
    width: 100%;
}

.shop-terms-check {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    margin: .35rem 0 1rem;
    color: #526879;
    font-size: .92rem;
    line-height: 1.45;
}

.shop-terms-check input {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin-top: .18rem;
}

.shop-terms-check a {
    color: #ad163f;
    font-weight: 700;
    text-decoration: underline;
}

.shop-terms-error {
    min-height: 1.25rem;
    margin: -.35rem 0 .75rem;
    color: #ad163f;
    font-size: .86rem;
    font-weight: 700;
}

.shop-checkout-btn:disabled {
    opacity: .72;
}

.shop-summary-note,
.success-reference {
    margin-top: 1rem;
    color: #667987;
    font-size: .92rem;
    line-height: 1.55;
}

.installation-form {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(24, 58, 82, .12);
    border-radius: .45rem;
    background: #f8faf9;
}

.installation-form label {
    display: block;
    margin-bottom: .65rem;
    color: #183a52;
    font-weight: 700;
}

.installation-form-row {
    display: flex;
    gap: .6rem;
}

.installation-form input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: .7rem .8rem;
    border: 1px solid rgba(24, 58, 82, .22);
    border-radius: .35rem;
    color: #183a52;
}

.installation-form-message {
    min-height: 1.25rem;
    margin: .65rem 0 0;
    color: #526879;
    font-size: .9rem;
    font-weight: 700;
}

.shop-cancelled-alert {
    margin-top: 1rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(173, 22, 63, .22);
    border-radius: .35rem;
    background: rgba(173, 22, 63, .08);
    color: #8b1231;
    font-weight: 700;
}

.shop-details {
    background: #fff;
}

.shop-details h3 {
    color: #183a52;
    font-size: 1.25rem;
    font-weight: 700;
}

.shop-details p {
    color: #526879;
    line-height: 1.65;
}

.success-hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #eef4f2 0%, #ffffff 100%);
}

.success-panel {
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem;
}

.success-order {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.success-order div {
    padding: 1rem;
    border: 1px solid rgba(24, 58, 82, .12);
    border-radius: .4rem;
    background: #f8faf9;
}

.success-order span {
    display: block;
    color: #667987;
    font-size: .85rem;
}

.success-order strong {
    display: block;
    margin-top: .35rem;
    color: #183a52;
}

@media (max-width: 1199px) {
    .shop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .shop-summary {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .shop-hero,
    .shop-order,
    .shop-details,
    .success-hero {
        padding: 2.75rem 0;
    }

    .shop-grid,
    .shop-info-grid,
    .success-order {
        grid-template-columns: 1fr;
    }

    .shop-plan-card {
        min-height: auto;
    }

    .success-panel {
        padding: 1.35rem;
    }

    .installation-form-row {
        flex-direction: column;
    }
}
