.withdrawal-page,
.withdrawal-component,
.withdrawal-modal {
    --wd-primary: #a30062;
    --wd-primary-hover: #850050;
    --wd-primary-soft: #faf2f7;
    --wd-text: #303030;
    --wd-heading: #111;
    --wd-muted: #595959;
    --wd-border: #e8e8e8;
    --wd-border-strong: #d3d3d3;
    --wd-bg: #f8f8f8;
    --wd-bg-strong: #f1f0ee;
    --wd-card: #fff;
    --wd-success: #14a44d;
    --wd-danger: #dc4c64;
    --wd-radius: 8px;
    color: var(--wd-text);
    font-family: inherit;
}

.withdrawal-page *,
.withdrawal-component * {
    box-sizing: border-box;
}

.withdrawal-page {
    background: #fff;
    padding: 48px 16px 72px;
}

.withdrawal-shell {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.withdrawal-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px;
    background: var(--wd-card);
    border: 1px solid var(--wd-border);
    border-radius: var(--wd-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.withdrawal-card--wide {
    max-width: 960px;
}

.withdrawal-heading {
    max-width: 700px;
    margin-bottom: 28px;
}

.withdrawal-heading h1,
.withdrawal-heading h2,
.withdrawal-card h1,
.withdrawal-modal__dialog > h2 {
    margin: 6px 0 12px;
    color: var(--wd-heading);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.14;
    letter-spacing: 0;
}

.withdrawal-heading p,
.withdrawal-card p,
.withdrawal-modal__dialog > p {
    max-width: 640px;
    margin: 0;
    color: var(--wd-muted);
    font-size: 16px;
    line-height: 1.55;
}

.withdrawal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--wd-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.withdrawal-alert {
    max-width: 960px;
    margin: 0 auto 20px;
    padding: 14px 16px;
    border-radius: var(--wd-radius);
    font-weight: 700;
    line-height: 1.45;
}

.withdrawal-alert--error {
    background: #fcf2f4;
    color: #8d1c2f;
    border: 1px solid #f5ccd3;
}

.withdrawal-alert--success {
    background: #eafcf2;
    color: #0c5d2c;
    border: 1px solid #acf5c9;
}

.withdrawal-form {
    margin: 0;
}

.withdrawal-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.withdrawal-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    color: var(--wd-heading);
    font-size: 14px;
    font-weight: 700;
}

.withdrawal-field input,
.withdrawal-quantity input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--wd-text);
    background: #fff;
    border: 1px solid var(--wd-border-strong);
    border-radius: var(--wd-radius);
    font: inherit;
    font-size: 16px;
    outline: 0;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.withdrawal-field input:focus,
.withdrawal-quantity input:focus {
    border-color: var(--wd-primary);
    box-shadow: 0 0 0 3px rgba(163, 0, 98, .12);
}

.withdrawal-products {
    padding: 0;
    margin: 8px 0 24px;
    border: 0;
}

.withdrawal-products legend {
    padding: 0;
    margin: 0 0 14px;
    color: var(--wd-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.withdrawal-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 18px;
    align-items: center;
    padding: 16px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid var(--wd-border);
    border-radius: var(--wd-radius);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.withdrawal-product:hover {
    border-color: var(--wd-border-strong);
}

.withdrawal-product.is-selected {
    background: var(--wd-primary-soft);
    border-color: var(--wd-primary);
    box-shadow: 0 0 0 1px rgba(163, 0, 98, .04);
}

.withdrawal-product__select {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    cursor: pointer;
}

.withdrawal-product__select > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.withdrawal-checkbox {
    position: relative;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-top: 1px;
    background: #fff;
    border: 2px solid var(--wd-border-strong);
    border-radius: 5px;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.withdrawal-product__select input:focus + .withdrawal-checkbox {
    box-shadow: 0 0 0 3px rgba(163, 0, 98, .12);
}

.withdrawal-product__select input:checked + .withdrawal-checkbox {
    background: var(--wd-primary);
    border-color: var(--wd-primary);
}

.withdrawal-product__select input:checked + .withdrawal-checkbox:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.withdrawal-product__info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.withdrawal-product__info strong {
    color: var(--wd-heading);
    font-size: 16px;
    line-height: 1.35;
}

.withdrawal-product__info small,
.withdrawal-quantity small {
    color: var(--wd-muted);
    font-size: 13px;
    line-height: 1.35;
}

.withdrawal-quantity {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    color: var(--wd-heading);
    font-size: 13px;
    font-weight: 700;
}

.withdrawal-quantity__control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.withdrawal-quantity__control em {
    min-width: 28px;
    color: var(--wd-muted);
    font-style: normal;
    font-weight: 700;
}

.withdrawal-quantity input:disabled {
    background: var(--wd-bg);
    color: #a9a9a9;
    cursor: not-allowed;
}

.withdrawal-declaration {
    position: relative;
    padding: 14px 16px 14px 18px;
    margin: 0 0 22px;
    color: var(--wd-text);
    background: var(--wd-bg);
    border-left: 4px solid var(--wd-primary);
    border-radius: 0 var(--wd-radius) var(--wd-radius) 0;
    line-height: 1.5;
}

.withdrawal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    color: #fff !important;
    background: var(--wd-primary);
    border: 1px solid var(--wd-primary);
    border-radius: var(--wd-radius);
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.withdrawal-button .icon {
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
}

.withdrawal-button:hover,
.withdrawal-button:focus {
    color: #fff !important;
    background: var(--wd-primary-hover);
    border-color: var(--wd-primary-hover);
    text-decoration: none;
}

.withdrawal-button:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(163, 0, 98, .18);
}

.withdrawal-button:active {
    transform: translateY(1px);
}

.withdrawal-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.withdrawal-success-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    color: var(--wd-success);
    background: #eafcf2;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 700;
}

.withdrawal-success-mark .icon {
    font-size: 32px;
    line-height: 1;
}

.withdrawal-instructions {
    margin-top: 26px;
    padding: 20px;
    background: var(--wd-bg);
    border: 1px solid var(--wd-border);
    border-radius: var(--wd-radius);
}

.withdrawal-instructions h2,
.withdrawal-instructions h3 {
    margin: 0 0 10px;
    color: var(--wd-heading);
    font-size: 20px;
    line-height: 1.25;
}

.withdrawal-instructions p {
    margin: 0;
    color: var(--wd-text);
    line-height: 1.55;
}

@media(max-width: 680px) {
    .withdrawal-page {
        padding: 28px 12px 48px;
    }

    .withdrawal-card {
        padding: 24px 18px;
    }

    .withdrawal-fields,
    .withdrawal-product {
        grid-template-columns: 1fr;
    }

    .withdrawal-quantity {
        padding-left: 34px;
    }

    .withdrawal-button {
        width: 100%;
    }
}
