.withdrawal-page,
.withdrawal-component {
    --wd-primary: #425A8B;
    --wd-primary-hover: #0BA9ED;
    --wd-primary-soft: #F0F3F8;
    --wd-text: #303030;
    --wd-heading: #425A8B;
    --wd-muted: #8C9EC5;
    --wd-border: #CAD6EC;
    --wd-border-soft: #D5DFE4;
    --wd-card: #fff;
    --wd-success: #22b14c;
    --wd-danger: #dc4c64;
    color: var(--wd-text);
    font-family: "DM Sans", Arial, sans-serif;
}

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

.withdrawal-page {
    background: #fff;
    padding: 56px 16px 64px;
}

.withdrawal-shell {
    max-width: 1048px;
    margin: 0 auto;
}

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

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

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

.withdrawal-heading h1,
.withdrawal-heading h2,
.withdrawal-card h1 {
    margin: 8px 0 12px;
    color: var(--wd-heading);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.18;
}

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

.withdrawal-kicker {
    display: inline-flex;
    align-items: center;
    color: var(--wd-primary-hover);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.withdrawal-kicker:before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 2px;
    margin-right: 8px;
    background: var(--wd-primary-hover);
}

.withdrawal-form {
    margin: 0;
}

.withdrawal-alert {
    max-width: 920px;
    margin: 0 auto 20px;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

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

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

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

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

.withdrawal-field input,
.withdrawal-quantity input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--wd-border);
    border-radius: 4px;
    background: #fff;
    color: var(--wd-text);
    padding: 11px 13px;
    font-size: 15px;
    line-height: 1.3;
    transition: border-color .2s ease, background-color .2s ease;
}

.withdrawal-field input:focus,
.withdrawal-quantity input:focus {
    border-color: var(--wd-primary);
    background: #fff;
}

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

.withdrawal-products legend {
    margin: 0 0 14px;
    color: var(--wd-primary);
    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;
    border: 1px solid var(--wd-border);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 10px;
    background: #fff;
    transition: border-color .2s ease, background-color .2s ease;
}

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

.withdrawal-product.is-selected {
    border-color: var(--wd-primary);
    background: var(--wd-primary-soft);
}

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

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

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

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

.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: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

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

.withdrawal-product__info strong {
    color: var(--wd-primary);
    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-primary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.withdrawal-quantity__control {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.withdrawal-quantity input:disabled {
    background: #F7F9FC;
    color: var(--wd-muted);
}

.withdrawal-declaration {
    margin: 0 0 22px;
    padding: 14px 16px;
    border-left: 3px solid var(--wd-primary-hover);
    background: var(--wd-primary-soft);
    color: var(--wd-primary);
    font-size: 15px;
    line-height: 1.5;
}

.withdrawal-button {
    border: 1px solid var(--wd-primary) !important;
    border-radius: 4px !important;
    background: var(--wd-primary) !important;
    color: #fff !important;
    min-height: 48px !important;
    padding: 12px 22px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center;
    text-decoration: none !important;
    white-space: normal;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease !important;
}

.withdrawal-button:hover,
.withdrawal-button:focus {
    border-color: var(--wd-primary-hover) !important;
    background: var(--wd-primary-hover) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.withdrawal-service-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.withdrawal-service-button__icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: currentColor;
}

.withdrawal-service-button .withdrawal-service-button__label,
.withdrawal-service-button:hover .withdrawal-service-button__label,
.withdrawal-service-button:focus .withdrawal-service-button__label {
    color: currentColor !important;
}

.cart-withdrawal-action {
    margin-bottom: 14px;
}

.cart-withdrawal-action .withdrawal-trigger {
    display: block;
    padding: 0;
    border-bottom: 0;
}

.cart-withdrawal-action .withdrawal-service-button {
    width: 100%;
}

.footer .menu-footer li a.withdrawal-service-button--footer {
    --wd-primary: #425A8B;
    --wd-primary-hover: #0BA9ED;
    width: 100% !important;
    min-height: 42px !important;
    margin-bottom: 12px !important;
    padding: 10px 14px !important;
    border: 1px solid var(--wd-primary) !important;
    border-radius: 4px !important;
    background: var(--wd-primary) !important;
    background-image: none !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease !important;
}

.footer .menu-footer li a.withdrawal-service-button--footer:hover,
.footer .menu-footer li a.withdrawal-service-button--footer:focus {
    padding: 10px 14px !important;
    border-color: var(--wd-primary-hover) !important;
    background: var(--wd-primary-hover) !important;
    background-image: none !important;
    color: #fff !important;
    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: 16px;
    border-radius: 50%;
    background: #eafcf2;
    color: var(--wd-success);
    font-size: 30px;
    font-weight: 700;
}

.withdrawal-instructions {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--wd-border);
}

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

.withdrawal-instructions p {
    color: var(--wd-text);
    font-size: 15px;
    line-height: 1.55;
}

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

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

    .withdrawal-heading h1,
    .withdrawal-heading h2,
    .withdrawal-card h1 {
        font-size: 26px;
    }

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

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

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

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