* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #111;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.rpco-header {
    border-bottom: 1px solid #dedede;
    background: #fff;
}

.rpco-header__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 20px;
}

.rpco-brand {
    color: #0b0b0b;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.rpco-shell {
    display: grid;
    grid-template-columns: minmax(0, 55%) minmax(320px, 45%);
    min-height: calc(100vh - 69px);
}

.rpco-checkout {
    justify-self: end;
    width: min(100%, 560px);
    padding: 42px 36px 38px 20px;
}

.rpco-summary {
    background: #f5f5f5;
    border-left: 1px solid #e6e6e6;
}

.rpco-summary__inner {
    position: sticky;
    top: 0;
    width: min(100%, 460px);
    padding: 38px 20px 40px 38px;
}

.rpco-express {
    text-align: center;
}

.rpco-express__label,
.rpco-muted {
    margin: 0 0 14px;
    color: #777;
}

.rpco-gpay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 262px;
    height: 48px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: #000;
    font-size: 22px;
    cursor: pointer;
}

.rpco-gpay__g {
    color: #4285f4;
    font-weight: 700;
}

.rpco-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 30px;
    color: #777;
    font-size: 12px;
}

.rpco-divider::before,
.rpco-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

.rpco-section {
    margin: 0 0 28px;
}

.rpco-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.rpco-title {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.2;
}

.rpco-section__head .rpco-title {
    margin: 0;
}

.rpco-subtitle {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.25;
}

.rpco-link {
    color: #075fbd;
    text-decoration: underline;
}

.rpco-grid {
    display: grid;
    gap: 14px;
}

.rpco-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rpco-grid.rpco-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rpco-address,
.rpco-card__body {
    display: grid;
    gap: 14px;
}

.rpco-field {
    position: relative;
    display: block;
    min-width: 0;
}

.rpco-field__label {
    position: absolute;
    left: 14px;
    top: 50%;
    color: #737373;
    transform: translateY(-50%);
    pointer-events: none;
}

.rpco-mini-label {
    position: absolute;
    left: 12px;
    top: 9px;
    z-index: 1;
    color: #6f6f6f;
    font-size: 11px;
    pointer-events: none;
}

.rpco-input {
    width: 100%;
    height: 52px;
    border: 1px solid #dedede;
    border-radius: 8px;
    padding: 15px 14px;
    color: #111;
    background: #fff;
    font: inherit;
    outline: none;
}

.rpco-field--select .rpco-input {
    padding-top: 21px;
}

.rpco-input--icon {
    padding-right: 44px;
}

.rpco-input:focus {
    border-color: #1773d1;
    box-shadow: 0 0 0 1px #1773d1;
}

.rpco-field:focus-within .rpco-field__label,
.rpco-field:has(.rpco-input:not(:placeholder-shown)) .rpco-field__label {
    opacity: 0;
}

.rpco-field__icon {
    position: absolute;
    right: 14px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border: 1px solid #8a8a8a;
    border-radius: 50%;
    color: #737373;
    font-size: 12px;
    transform: translateY(-50%);
}

.rpco-field__icon--lock {
    border: 0;
    border-radius: 0;
}

.rpco-field__icon--lock::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 7px;
    width: 10px;
    height: 8px;
    border: 2px solid #7a7a7a;
    border-radius: 2px;
}

.rpco-field__icon--lock::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 1px;
    width: 6px;
    height: 8px;
    border: 2px solid #7a7a7a;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
}

.rpco-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    color: #111;
    line-height: 1.4;
}

.rpco-check--strong {
    margin-top: 0;
    font-weight: 600;
}

.rpco-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #0b66d8;
}

.rpco-card {
    overflow: hidden;
    border: 1px solid #2d8cff;
    border-radius: 6px;
    background: #f4f4f7;
}

.rpco-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 14px;
    background: #f6f6ff;
}

.rpco-card__body {
    padding: 14px;
    border-top: 1px solid #2d8cff;
}

.rpco-square-card {
    min-height: 90px;
    border-radius: 8px;
}

.rpco-square-message {
    min-height: 18px;
    margin: 8px 0 0;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.rpco-square-message--success {
    color: #147a3b;
}

.rpco-square-message--error {
    color: #b42318;
}

.rpco-badges {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.rpco-badges span {
    display: grid;
    place-items: center;
    min-width: 33px;
    height: 24px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    color: #0d56a6;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
}

.rpco-badges span:nth-child(2)::before,
.rpco-badges span:nth-child(2)::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #eb001b;
}

.rpco-badges span:nth-child(2)::after {
    margin-left: -6px;
    background: #f79e1b;
}

.rpco-badges span:nth-child(2) {
    display: flex;
}

.rpco-pay {
    width: 100%;
    height: 53px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: #1268d8;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.rpco-pay:disabled {
    cursor: not-allowed;
    opacity: .72;
}

.rpco-payment-message {
    min-height: 20px;
    margin: 10px 0 0;
    color: #555;
    font-size: 13px;
    line-height: 1.4;
}

.rpco-payment-message--success {
    color: #147a3b;
}

.rpco-payment-message--error {
    color: #b42318;
}

.rpco-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid #e2e2e2;
    font-size: 13px;
}

.rpco-footer button {
    border: 0;
    padding: 0;
    color: #075fbd;
    background: transparent;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.rpco-body--modal-open {
    overflow: hidden;
}

.rpco-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
}

.rpco-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .58);
    backdrop-filter: blur(5px);
}

.rpco-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    max-height: 82vh;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.rpco-modal__close {
    position: absolute;
    top: 26px;
    right: 28px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    color: #666;
    background: transparent;
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.rpco-modal__scroll {
    max-height: 82vh;
    overflow: auto;
    padding: 24px 64px 34px 32px;
}

.rpco-modal__title {
    margin: 0;
    padding: 0 0 22px;
    color: #050505;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.rpco-modal__body {
    color: #151515;
    font-size: 21px;
    line-height: 1.52;
}

.rpco-modal__body h3 {
    margin: 26px 0 8px;
    color: #111;
    font-size: 16px;
    line-height: 1.3;
}

.rpco-modal__body h3:first-child {
    margin-top: 0;
}

.rpco-modal__body p {
    margin: 0 0 24px;
    font-size: 16px;
}

.rpco-loading {
    color: #737373;
}

.rpco-items {
    max-height: 230px;
    overflow: auto;
    padding-right: 10px;
}

.rpco-item {
    padding: 0;
    border: 1px solid #dfdfdf;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.rpco-item__summary {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 14px;
    list-style: none;
    cursor: pointer;
}

.rpco-item__summary::-webkit-details-marker {
    display: none;
}

.rpco-thumb {
    position: relative;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border: 1px solid #d5d5d5;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

.rpco-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.rpco-thumb__empty {
    width: 16px;
    height: 13px;
    border: 2px solid #d8d8d8;
    border-radius: 3px;
}

.rpco-thumb b {
    position: absolute;
    top: -9px;
    right: -8px;
    min-width: 28px;
    padding: 4px 5px;
    border-radius: 7px;
    color: #fff;
    background: #050505;
    font-size: 12px;
    text-align: center;
}

.rpco-item__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.rpco-item__top h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}

.rpco-item__top strong {
    white-space: nowrap;
    font-size: 14px;
}

.rpco-item__toggle {
    color: #666;
    font-size: 12px;
}

.rpco-item__toggle::after {
    content: " +";
}

.rpco-item[open] .rpco-item__toggle::after {
    content: " -";
}

.rpco-item__details {
    padding: 10px 0 0 80px;
}

.rpco-props {
    display: grid;
    gap: 9px;
    color: #777;
    font-size: 12px;
}

.rpco-price-lines {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding-top: 18px;
    border-top: 1px solid #dedede;
}

.rpco-price-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #555;
    font-size: 14px;
}

.rpco-price-line strong {
    color: #111;
    font-weight: 500;
}

.rpco-summary__line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 12px;
    padding-top: 36px;
    border-top: 1px solid #dedede;
    font-size: 21px;
    font-weight: 700;
}

.rpco-summary__line strong {
    display: inline-flex;
    align-items: baseline;
    gap: 9px;
    font-size: 21px;
}

.rpco-summary__line small {
    color: #6c6c6c;
    font-size: 11px;
    font-weight: 400;
}

.rpco-thanks-body {
    min-height: 100vh;
    background: #fff;
}

.rpco-thanks {
    display: grid;
    grid-template-columns: minmax(0, 55%) minmax(320px, 45%);
    min-height: calc(100vh - 69px);
}

.rpco-thanks__content {
    justify-self: end;
    width: min(100%, 560px);
    padding: 56px 36px 38px 20px;
    background: #fff;
}

.rpco-thanks__container {
    padding: 28px;
    border: 1px solid #dedede;
    border-radius: 8px;
    background:
        linear-gradient(180deg, #ffffff 0%, #ffffff 64%, #f9fbff 100%);
    box-shadow: 0 16px 44px rgba(17, 24, 39, .08);
}

.rpco-thanks__status {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e8e8e8;
}

.rpco-thanks__mark {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0;
    border-radius: 50%;
    background: #e8f7ee;
}

.rpco-thanks__mark span {
    width: 24px;
    height: 13px;
    border-left: 3px solid #147a3b;
    border-bottom: 3px solid #147a3b;
    transform: rotate(-45deg) translate(2px, -2px);
}

.rpco-thanks__eyebrow {
    margin: 0 0 10px;
    color: #147a3b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rpco-thanks h1 {
    margin: 0;
    color: #111827;
    font-size: 26px;
    line-height: 1.2;
}

.rpco-thanks__copy {
    margin: 22px 0 0;
    max-width: 500px;
    color: #5b6472;
    font-size: 15px;
    line-height: 1.65;
}

.rpco-thanks__timeline {
    display: grid;
    gap: 0;
    margin-top: 28px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #fafafa;
}

.rpco-thanks__step {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
}

.rpco-thanks__step + .rpco-thanks__step {
    border-top: 1px solid #e7e7e7;
}

.rpco-thanks__step > span {
    position: relative;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid #b9ddc5;
    border-radius: 50%;
    background: #e8f7ee;
}

.rpco-thanks__step > span::after {
    content: "";
    width: 11px;
    height: 6px;
    border-left: 2px solid #147a3b;
    border-bottom: 2px solid #147a3b;
    transform: rotate(-45deg) translate(1px, -1px);
}

.rpco-thanks__step strong {
    display: block;
    margin-bottom: 4px;
    color: #111;
    font-size: 14px;
}

.rpco-thanks__step p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.45;
}

.rpco-thanks__actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.rpco-thanks__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 7px;
    color: #fff;
    background: #1268d8;
    font-weight: 700;
    text-decoration: none;
}

.rpco-thanks__button:hover {
    background: #0d57b8;
}

.rpco-thanks__link {
    color: #075fbd;
    font-weight: 700;
    text-decoration: underline;
}

.rpco-thanks__summary {
    background: #f5f5f5;
    border-left: 1px solid #e6e6e6;
}

.rpco-thanks__summary-inner {
    position: sticky;
    top: 0;
    display: grid;
    gap: 22px;
    width: min(100%, 460px);
    padding: 56px 20px 40px 38px;
}

.rpco-thanks__logo {
    display: block;
    width: 210px;
    max-width: 100%;
    height: auto;
}

.rpco-thanks__next {
    padding: 22px;
    border: 1px solid #dedede;
    border-radius: 8px;
    background: #fff;
}

.rpco-thanks__next h2 {
    margin: 0 0 12px;
    color: #111;
    font-size: 21px;
    line-height: 1.25;
}

.rpco-thanks__next p {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.65;
}

.rpco-thanks__help {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border: 1px solid #dedede;
    border-radius: 8px;
    background: #fff;
}

.rpco-thanks__help span {
    color: #777;
    font-size: 13px;
}

.rpco-thanks__help a {
    color: #075fbd;
    font-weight: 700;
}

[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .rpco-header__inner {
        max-width: none;
    }

    .rpco-shell {
        display: flex;
        flex-direction: column-reverse;
        min-height: auto;
    }

    .rpco-checkout {
        width: 100%;
        padding: 28px 18px 32px;
    }

    .rpco-summary {
        border-left: 0;
        border-bottom: 1px solid #e1e1e1;
    }

    .rpco-summary__inner {
        position: static;
        width: 100%;
        padding: 24px 18px;
    }

    .rpco-thanks {
        display: flex;
        flex-direction: column-reverse;
        min-height: auto;
    }

    .rpco-thanks__content {
        width: 100%;
        padding: 34px 18px 36px;
    }

    .rpco-thanks__container {
        padding: 24px;
    }

    .rpco-thanks__summary {
        width: 100%;
        border-left: 0;
        border-bottom: 1px solid #e1e1e1;
    }

    .rpco-thanks__summary-inner {
        position: static;
        width: 100%;
        padding: 24px 18px;
    }
}

@media (max-width: 560px) {
    .rpco-header__inner {
        padding: 18px;
    }

    .rpco-grid--two {
        grid-template-columns: 1fr;
    }

      .rpco-grid--three {
        grid-template-columns: 1fr;
    }

    .rpco-card__top,
    .rpco-section__head,
    .rpco-item__top,
    .rpco-summary__line {
        align-items: flex-start;
    }

    .rpco-card__top,
    .rpco-summary__line {
        flex-direction: column;
    }

    .rpco-gpay {
        width: 100%;
    }

    .rpco-items {
        max-height: none;
    }

    .rpco-item {
        padding-bottom: 18px;
    }

    .rpco-item__summary {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .rpco-thumb {
        width: 58px;
        height: 58px;
    }

    .rpco-item__details {
        padding-left: 72px;
    }

    .rpco-modal {
        padding: 12px;
    }

    .rpco-modal__dialog,
    .rpco-modal__scroll {
        max-height: 86vh;
    }

    .rpco-modal__scroll {
        padding: 22px 50px 28px 22px;
    }

    .rpco-modal__close {
        top: 19px;
        right: 18px;
    }

    .rpco-modal__title {
        font-size: 28px;
    }

    .rpco-modal__body {
        font-size: 18px;
    }

    .rpco-thanks h1 {
        font-size: 25px;
    }

    .rpco-thanks__status {
        gap: 14px;
    }

    .rpco-thanks__mark {
        width: 50px;
        height: 50px;
    }

    .rpco-thanks__container {
        padding: 20px 16px;
    }

    .rpco-thanks__button,
    .rpco-thanks__link {
        width: 100%;
    }
}
