.purchase-section {
    background: #f5f0e8;
    border-top: 1px solid #e8e0d4;
}

.purchase-section-inner {
    align-items: center;
    display: flex;
    gap: 48px;
    justify-content: space-between;
    margin: auto;
    max-width: 1200px;
}

.purchase-section-eyebrow,
.purchase-dialog-eyebrow {
    color: #8a653a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.purchase-section h2 {
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 760px;
}

.purchase-section-inner > div > p:last-child {
    color: #566276;
    font-size: 17px;
    max-width: 700px;
}

.purchase-section .btn {
    flex: none;
    font-family: inherit;
    margin: 0;
    text-align: center;
}

body.purchase-dialog-open {
    overflow: hidden;
}

.purchase-dialog {
    background: #fff;
    border: 1px solid #e8e3da;
    border-radius: 16px;
    box-shadow: 0 24px 90px rgba(5, 16, 36, .28);
    color: #0a1f44;
    font-family: 'Inter', sans-serif;
    margin: auto;
    max-height: calc(100dvh - 32px);
    overscroll-behavior: contain;
    padding: 0;
    width: min(620px, calc(100% - 32px));
}

.purchase-dialog::backdrop {
    background: rgba(5, 16, 36, .72);
    backdrop-filter: blur(5px);
}

.purchase-dialog [hidden] {
    display: none !important;
}

.purchase-dialog-shell {
    padding: 36px;
    position: relative;
}

.purchase-dialog-close {
    align-items: center;
    background: #f5f0e8;
    border: 0;
    border-radius: 50%;
    color: #0a1f44;
    cursor: pointer;
    display: flex;
    font-size: 26px;
    height: 44px;
    justify-content: center;
    position: absolute;
    right: 24px;
    top: 24px;
    width: 44px;
}

.purchase-dialog-close:hover {
    background: #e8e0d4;
}

.purchase-dialog-eyebrow {
    margin-right: 54px;
}

.purchase-dialog h2 {
    font-size: clamp(28px, 5vw, 36px);
    line-height: 1.2;
    margin: 0 44px 12px 0;
}

.purchase-dialog-intro {
    color: #647083;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.purchase-field-grid {
    display: grid;
    gap: 18px 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.purchase-field {
    display: block;
    font-size: 13px;
    font-weight: 600;
    min-width: 0;
}

.purchase-field-wide {
    grid-column: 1 / -1;
}

.purchase-field input,
.purchase-field select,
.purchase-field textarea {
    background: #fff;
    border: 1px solid #ced3db;
    border-radius: 6px;
    color: #0a1f44;
    display: block;
    font: 400 16px/1.4 'Inter', sans-serif;
    margin-top: 7px;
    min-height: 48px;
    padding: 12px;
    width: 100%;
}

.purchase-field textarea {
    resize: vertical;
}

.purchase-dialog :is(input, select, textarea, button, a):focus-visible,
.purchase-section button:focus-visible {
    outline: 3px solid #c19a6b;
    outline-offset: 3px;
}

.purchase-privacy {
    color: #647083;
    font-size: 12px;
    line-height: 1.6;
    margin: 20px 0 8px;
}

.purchase-privacy a {
    color: #0a1f44;
    text-underline-offset: 2px;
}

.purchase-honeypot {
    height: 0;
    overflow: hidden;
    position: absolute;
    width: 0;
}

.purchase-status {
    color: #2c684c;
    font-size: 13px;
    margin: 10px 0;
    min-height: 1em;
}

.purchase-status.is-error {
    color: #a52a2a;
}

.purchase-dialog .btn {
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 1px;
    margin: 8px 0 0;
    text-align: center;
}

.purchase-submit {
    width: 100%;
}

.purchase-confirmation {
    padding: 14px 0 4px;
    text-align: center;
}

.purchase-confirmation h2 {
    margin: 14px auto;
}

.purchase-confirmation > p {
    color: #647083;
    line-height: 1.7;
}

.purchase-confirmation-icon {
    align-items: center;
    background: #ebf4ee;
    border-radius: 50%;
    color: #2c684c;
    display: flex;
    font-size: 34px;
    height: 68px;
    justify-content: center;
    margin: auto;
    width: 68px;
}

.purchase-confirmation .purchase-reference {
    background: #f5f0e8;
    border-radius: 6px;
    font-size: 12px;
    margin: 20px 0;
    overflow-wrap: anywhere;
    padding: 12px;
}

@media (max-width: 768px) {
    .purchase-section-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
    }

    .purchase-section .btn {
        width: 100%;
    }

    .purchase-dialog-shell {
        padding: 28px 22px;
    }

    .purchase-field-grid {
        grid-template-columns: 1fr;
    }
}
