.vach-wrap,
.vach-wrap * {
    box-sizing: border-box;
}

.vach-anchor {
    display: block;
    position: relative;
    top: -80px;
    visibility: hidden;
}

.vach-wrap {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    font-size: var(--vach-font-size, 16px);
    color: #102018;
    font-family: inherit;
}

.vach-layout {
    display: grid;
    gap: 18px;
}

.vach-product-top {
    grid-template-columns: 1fr;
}

.vach-product-left {
    grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
}

.vach-product-right {
    grid-template-columns: minmax(320px, 1.15fr) minmax(260px, 0.85fr);
}

.vach-product-right .vach-product-card {
    order: 2;
}

.vach-panel,
.vach-product-card,
.vach-success-box {
    border: 1px solid #dde8e2;
    border-radius: var(--vach-radius, 10px);
    background: linear-gradient(180deg, #ffffff 0%, #fbfffd 100%);
    padding: 18px;
    box-shadow: 0 16px 34px rgba(12, 40, 24, 0.1);
}

.vach-field {
    margin-bottom: 14px;
}

.vach-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.vach-wrap input,
.vach-wrap textarea,
.vach-wrap select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #cbd8d0;
    border-radius: var(--vach-radius, 10px);
    background: #fff;
    color: #102018;
    font: inherit;
    line-height: 1.45;
}

.vach-wrap select {
    min-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    height: auto;
}

.vach-wrap textarea {
    min-height: 92px;
    resize: vertical;
}

.vach-wrap input:focus,
.vach-wrap textarea:focus,
.vach-wrap select:focus {
    outline: 2px solid color-mix(in srgb, var(--vach-primary, #117a4a), transparent 72%);
    border-color: var(--vach-primary, #117a4a);
}

.vach-product-preview {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 14px;
}

.vach-product-image {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: var(--vach-radius, 10px);
    border: 1px solid #e5eee9;
}

.vach-product-title {
    margin: 0 0 5px;
    font-size: 20px;
    line-height: 1.25;
}

.vach-product-description {
    margin: 0 0 8px;
    color: #54645b;
}

.vach-product-price {
    color: var(--vach-primary, #117a4a);
    font-size: 20px;
}

.vach-payment-instructions {
    margin-top: 0;
    color: #425348;
    font-size: 14px;
}

.vach-payment-instructions a {
    color: var(--vach-primary, #117a4a);
    font-weight: 700;
}

.vach-payment-box {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #dce9e1;
    border-radius: var(--vach-radius, 10px);
    background: #f8fffb;
}

.vach-payment-account {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: calc(var(--vach-radius, 10px) - 2px);
    background: #eef9f3;
}

.vach-payment-account[hidden],
.vach-manual-payment-fields[hidden],
.vach-automatic-payment-box[hidden] {
    display: none;
}

.vach-payment-account span,
.vach-automatic-payment-box small {
    color: #586a61;
    font-size: 13px;
}

.vach-payment-account strong {
    color: #102018;
    overflow-wrap: anywhere;
}

.vach-manual-payment-fields {
    display: grid;
    gap: 8px;
}

.vach-pay-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: var(--vach-radius, 10px);
    background: #102018;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.vach-pay-now.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.vach-summary,
.vach-order-info {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    padding: 14px;
    border-radius: var(--vach-radius, 10px);
    background: #f5fbf7;
}

.vach-summary > div,
.vach-order-info > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.vach-total-row {
    padding-top: 9px;
    border-top: 1px solid #dbe8df;
    font-size: 18px;
}

.vach-submit,
.vach-reconfirm-btn,
.vach-contact-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: var(--vach-radius, 10px);
    background: var(--vach-primary, #117a4a);
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.vach-submit {
    width: 100%;
}

.vach-submit.is-loading {
    opacity: 0.72;
    cursor: wait;
}

.vach-alert {
    display: none;
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--vach-radius, 10px);
}

.vach-alert.is-error,
.vach-alert.is-success {
    display: block;
}

.vach-alert.is-error {
    background: #fff1f1;
    color: #9f1c1c;
}

.vach-alert.is-success {
    background: #effaf1;
    color: #126b32;
}

.vach-success-box h2,
.vach-success-box h3 {
    margin: 0 0 10px;
    line-height: 1.3;
}

.vach-reconfirm-box {
    margin-top: 16px;
    padding: 14px;
    border-radius: var(--vach-radius, 10px);
    background: #fffdf4;
    border: 1px solid #eadfba;
}

.vach-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.vach-trust-text {
    margin: 14px 0 0;
    padding: 14px;
    white-space: pre-wrap;
    border-radius: var(--vach-radius, 10px);
    background: #f6f8f7;
    font: inherit;
}

.vach-popup[hidden] {
    display: none;
}

.vach-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.vach-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 20, 13, 0.62);
}

.vach-popup-dialog {
    position: relative;
    width: min(940px, calc(100vw - 24px));
    max-height: calc(100vh - 28px);
    margin: 14px auto;
    overflow: auto;
    border-radius: 14px;
    background: #fff;
    padding: 18px;
}

.vach-popup-close {
    position: sticky;
    top: 0;
    left: 100%;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #102018;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

body.vach-popup-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .vach-product-left,
    .vach-product-right {
        grid-template-columns: 1fr;
    }

    .vach-product-right .vach-product-card {
        order: 0;
    }

    .vach-panel,
    .vach-product-card,
    .vach-success-box {
        padding: 14px;
    }

    .vach-product-preview {
        align-items: flex-start;
    }

    .vach-product-image {
        width: 88px;
        height: 88px;
    }
}
