/* SimpleTools My Account Pro - EU online withdrawal flow */
.stmap-withdrawal-shell,
.stmap-withdrawal-button-wrap,
.stmap-withdrawal-order-cta,
.stmap-withdrawal-modal {
    --stmap-w-accent: var(--stmap-accent, #00884a);
    --stmap-w-accent-dark: var(--stmap-accent-dark, #004c35);
    --stmap-w-text: #20342b;
    --stmap-w-muted: #738079;
    --stmap-w-border: #dce8e2;
    --stmap-w-soft: #f5f9f7;
    --stmap-w-shadow: 0 14px 40px rgba(15, 57, 39, .08);
    box-sizing: border-box;
}

.stmap-withdrawal-shell *,
.stmap-withdrawal-button-wrap *,
.stmap-withdrawal-order-cta *,
.stmap-withdrawal-modal * { box-sizing: border-box; }

.stmap-withdrawal-shell {
    width: min(100%, 980px);
    margin: 24px auto 36px;
    padding: 28px;
    border: 1px solid var(--stmap-w-border);
    border-radius: 18px;
    color: var(--stmap-w-text);
    background: #fff;
    box-shadow: var(--stmap-w-shadow);
}

body.stmap-account-active .stmap-withdrawal-shell--account {
    width: 100%;
    margin: 0;
    box-shadow: 0 10px 32px rgba(15, 57, 39, .06);
}

.stmap-withdrawal-heading { margin-bottom: 20px; }
.stmap-withdrawal-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--stmap-w-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.stmap-withdrawal-heading h2,
.stmap-withdrawal-receipt h2 {
    margin: 0 0 9px !important;
    color: var(--stmap-w-text) !important;
    font-size: clamp(25px, 3vw, 34px) !important;
    line-height: 1.14 !important;
    letter-spacing: -.025em;
}
.stmap-withdrawal-heading p,
.stmap-withdrawal-receipt > p {
    max-width: 820px;
    margin: 0 !important;
    color: var(--stmap-w-muted) !important;
    font-size: 14px;
    line-height: 1.65;
}

.stmap-withdrawal-info {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 22px;
    padding: 13px 15px;
    border: 1px solid #d8e8df;
    border-radius: 12px;
    background: #f5faf7;
}
.stmap-withdrawal-info__icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--stmap-w-accent);
    font-size: 12px;
    font-weight: 800;
}
.stmap-withdrawal-info p {
    margin: 0 !important;
    color: #567064 !important;
    font-size: 12px;
    line-height: 1.55;
}

.stmap-withdrawal-error {
    display: grid;
    gap: 3px;
    margin: 0 0 18px;
    padding: 13px 15px;
    border: 1px solid #efc9c9;
    border-radius: 12px;
    color: #8f2727;
    background: #fff6f6;
}
.stmap-withdrawal-error strong { font-size: 13px; }
.stmap-withdrawal-error span { font-size: 12px; line-height: 1.5; }

.stmap-withdrawal-form {
    margin: 0;
    padding: 0;
}
.stmap-withdrawal-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}
.stmap-withdrawal-field {
    display: grid;
    gap: 7px;
    margin: 0;
}
.stmap-withdrawal-field--wide { grid-column: 1 / -1; }
.stmap-withdrawal-field > span {
    color: #2e4339;
    font-size: 12px;
    font-weight: 750;
}
.stmap-withdrawal-field > span b { color: #b62c2c; }
.stmap-withdrawal-field small {
    margin-top: -1px;
    color: #839087;
    font-size: 10px;
    line-height: 1.45;
}
.stmap-withdrawal-shell input[type="text"],
.stmap-withdrawal-shell input[type="email"] {
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid #d6e3dc !important;
    border-radius: 11px !important;
    outline: 0 !important;
    color: #20342b !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 14px !important;
    transition: border-color .18s ease, box-shadow .18s ease !important;
}
.stmap-withdrawal-shell input[type="text"]:focus,
.stmap-withdrawal-shell input[type="email"]:focus {
    border-color: var(--stmap-w-accent) !important;
    box-shadow: 0 0 0 3px rgba(0, 136, 74, .09) !important;
}

.stmap-withdrawal-form__footer,
.stmap-withdrawal-final-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e5ece8;
}
.stmap-withdrawal-form__footer p {
    max-width: 520px;
    margin: 0 !important;
    color: #89958f !important;
    font-size: 10px;
    line-height: 1.45;
}

.stmap-withdrawal-button-wrap { width: 100%; }
.stmap-withdrawal-align-left { text-align: left; }
.stmap-withdrawal-align-center { text-align: center; }
.stmap-withdrawal-align-right { text-align: right; }

.stmap-withdrawal-button,
body.stmap-account-active .stmap-withdrawal-button,
.woocommerce-account .woocommerce-button.stmap-withdrawal {
    min-height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0;
    padding: 0 17px !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    outline: none;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.stmap-withdrawal-button--primary,
body.stmap-account-active .stmap-withdrawal-button--primary {
    color: #fff !important;
    background: linear-gradient(105deg, var(--stmap-w-accent) 0%, var(--stmap-w-accent-dark) 100%) !important;
    box-shadow: 0 8px 22px rgba(0, 105, 62, .16);
}
.stmap-withdrawal-button--outline,
body.stmap-account-active .stmap-withdrawal-button--outline {
    border-color: #c9ddd2 !important;
    color: var(--stmap-w-accent-dark) !important;
    background: #fff !important;
    box-shadow: none;
}
.stmap-withdrawal-button--link,
body.stmap-account-active .stmap-withdrawal-button--link {
    min-height: auto;
    padding: 2px 0 !important;
    color: var(--stmap-w-accent) !important;
    background: transparent !important;
    box-shadow: none;
}
.stmap-withdrawal-button:hover,
body.stmap-account-active .stmap-withdrawal-button:hover {
    transform: translateY(-1px);
    text-decoration: none !important;
}
.stmap-withdrawal-button--primary:hover { box-shadow: 0 11px 26px rgba(0, 105, 62, .22); }
.stmap-withdrawal-button--outline:hover { border-color: var(--stmap-w-accent) !important; background: #f7fbf9 !important; }
.stmap-withdrawal-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 136, 74, .18) !important;
}
.stmap-withdrawal-button--confirm {
    min-width: 190px;
    min-height: 48px;
}

/* WooCommerce My Account order action generated by the actions filter. */
body.stmap-account-active .woocommerce-orders-table .woocommerce-button.stmap-withdrawal,
body.stmap-account-active .woocommerce-orders-table .button.stmap-withdrawal {
    border-color: #cfe0d7 !important;
    color: #087441 !important;
    background: #f2f8f5 !important;
}
body.stmap-account-active .woocommerce-orders-table .woocommerce-button.stmap-withdrawal:hover,
body.stmap-account-active .woocommerce-orders-table .button.stmap-withdrawal:hover {
    border-color: #99c9ae !important;
    background: #e8f5ee !important;
}

.stmap-withdrawal-confirm {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0 0 18px;
}
.stmap-withdrawal-step {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid #e0e9e4;
    border-radius: 11px;
    color: #7a8780;
    background: #fafcfb;
    font-size: 11px;
}
.stmap-withdrawal-step span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #5d6b64;
    background: #e8efeb;
    font-weight: 800;
}
.stmap-withdrawal-step.is-active {
    border-color: #cbe2d5;
    color: #0b7042;
    background: #f2faf6;
}
.stmap-withdrawal-step.is-active span { color: #fff; background: var(--stmap-w-accent); }

.stmap-withdrawal-summary {
    overflow: hidden;
    border: 1px solid var(--stmap-w-border);
    border-radius: 14px;
    background: #fff;
}
.stmap-withdrawal-summary__top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid var(--stmap-w-border);
    background: #f8fbf9;
}
.stmap-withdrawal-summary__top > div {
    display: grid;
    gap: 4px;
    padding: 15px 17px;
    border-right: 1px solid var(--stmap-w-border);
}
.stmap-withdrawal-summary__top > div:last-child { border-right: 0; }
.stmap-withdrawal-summary__top span,
.stmap-withdrawal-statement > span {
    color: #7b8881;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
}
.stmap-withdrawal-summary__top strong { color: #20372b; font-size: 13px; }
.stmap-withdrawal-statement { padding: 18px; }
.stmap-withdrawal-statement p {
    margin: 7px 0 0 !important;
    color: #284337 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.65;
}
.stmap-withdrawal-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--stmap-w-border);
}
.stmap-withdrawal-details > div { padding: 13px 18px; }
.stmap-withdrawal-details dt { color: #7b8881; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.stmap-withdrawal-details dd { margin: 4px 0 0; color: #253c31; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.stmap-withdrawal-edit { color: #547064 !important; font-size: 12px; font-weight: 650; text-decoration: none !important; }
.stmap-withdrawal-edit:hover { color: var(--stmap-w-accent) !important; }

.stmap-withdrawal-order-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 20px 0 0;
    padding: 15px 17px;
    border: 1px solid var(--stmap-w-border);
    border-radius: 13px;
    background: #f8fbf9;
}
.stmap-withdrawal-order-cta > div { display: grid; gap: 3px; }
.stmap-withdrawal-order-cta strong { color: #223d30; font-size: 13px; }
.stmap-withdrawal-order-cta span { color: #78877f; font-size: 11px; }

.stmap-withdrawal-receipt { text-align: center; }
.stmap-withdrawal-success-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--stmap-w-accent), var(--stmap-w-accent-dark));
    box-shadow: 0 10px 24px rgba(0, 105, 62, .18);
    font-size: 30px;
    font-weight: 800;
}
.stmap-withdrawal-receipt__box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0 16px;
    text-align: left;
}
.stmap-withdrawal-receipt__box > div {
    display: grid;
    gap: 4px;
    padding: 13px 15px;
    border: 1px solid var(--stmap-w-border);
    border-radius: 11px;
    background: #fafcfb;
}
.stmap-withdrawal-receipt__box span { color: #7a8981; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.stmap-withdrawal-receipt__box strong { color: #244033; font-size: 12px; overflow-wrap: anywhere; }
.stmap-withdrawal-receipt__box blockquote {
    grid-column: 1 / -1;
    margin: 0;
    padding: 16px 18px;
    border: 0;
    border-left: 4px solid var(--stmap-w-accent);
    border-radius: 10px;
    color: #2d493b;
    background: #f3f9f6;
    font-size: 13px;
    font-style: normal;
    line-height: 1.6;
}
.stmap-withdrawal-receipt__note {
    margin: 0 !important;
    padding: 11px 13px;
    border-radius: 10px;
    color: #47705c !important;
    background: #eff8f3;
    font-size: 11px !important;
}
.stmap-withdrawal-receipt__note--warning { color: #8a5b18 !important; background: #fff8e9; }

@media (max-width: 768px) {
    .stmap-withdrawal-shell {
        width: min(100% - 22px, 980px);
        margin: 14px auto 26px;
        padding: 18px;
        border-radius: 15px;
    }
    body.stmap-account-active .stmap-withdrawal-shell--account { width: 100%; padding: 16px; }
    .stmap-withdrawal-fields,
    .stmap-withdrawal-summary__top,
    .stmap-withdrawal-details,
    .stmap-withdrawal-receipt__box { grid-template-columns: 1fr; }
    .stmap-withdrawal-field--wide { grid-column: auto; }
    .stmap-withdrawal-summary__top > div { border-right: 0; border-bottom: 1px solid var(--stmap-w-border); }
    .stmap-withdrawal-summary__top > div:last-child { border-bottom: 0; }
    .stmap-withdrawal-form__footer,
    .stmap-withdrawal-final-form,
    .stmap-withdrawal-order-cta { align-items: stretch; flex-direction: column; }
    .stmap-withdrawal-form__footer .stmap-withdrawal-button,
    .stmap-withdrawal-final-form .stmap-withdrawal-button,
    .stmap-withdrawal-order-cta .stmap-withdrawal-button { width: 100%; }
    .stmap-withdrawal-edit { text-align: center; }
    .stmap-withdrawal-receipt__box blockquote { grid-column: auto; }
}


/* v1.2.0 - footer trigger + AJAX withdrawal modal */
.stmap-withdrawal-button--footer,
body.stmap-account-active .stmap-withdrawal-button--footer {
    min-height: 40px;
    padding: 0 14px !important;
    border-color: #00b85a !important;
    border-radius: 6px !important;
    color: #12c869 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}
.stmap-withdrawal-button--footer:hover,
body.stmap-account-active .stmap-withdrawal-button--footer:hover {
    border-color: #19d475 !important;
    color: #081a18 !important;
    background: #19d475 !important;
    box-shadow: 0 8px 22px rgba(0, 184, 90, .16) !important;
}
.stf-footer__withdrawal {
    margin-top: 13px;
}
.stf-footer__withdrawal .stmap-withdrawal-button--footer {
    width: auto;
    max-width: 100%;
}

html.stmap-withdrawal-modal-open,
body.stmap-withdrawal-modal-open {
    overflow: hidden !important;
}
.stmap-withdrawal-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    padding: 24px;
}
.stmap-withdrawal-modal.is-open {
    display: grid;
    place-items: center;
}
.stmap-withdrawal-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(3, 20, 17, .76);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: default;
}
.stmap-withdrawal-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(900px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
}
.stmap-withdrawal-modal__scroll {
    max-height: min(900px, calc(100vh - 48px));
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
.stmap-withdrawal-modal .stmap-withdrawal-modal__dialog > .stmap-withdrawal-modal__close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    inset-inline-end: 12px !important;
    inset-inline-start: auto !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 5;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0 !important;
    border: 1px solid #dce8e2 !important;
    border-radius: 50% !important;
    color: #385248 !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 5px 16px rgba(24, 58, 43, .10) !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    cursor: pointer;
}
.stmap-withdrawal-modal .stmap-withdrawal-modal__dialog > .stmap-withdrawal-modal__close:hover {
    border-color: #b8d4c5 !important;
    color: var(--stmap-w-accent-dark) !important;
    background: #f5faf7 !important;
}
.stmap-withdrawal-modal__content {
    min-height: 280px;
}
.stmap-withdrawal-modal .stmap-withdrawal-shell,
.stmap-withdrawal-shell--modal {
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 30px;
    padding-top: 34px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.stmap-withdrawal-modal .stmap-withdrawal-heading {
    padding-right: 42px;
}
.stmap-withdrawal-modal__loading {
    min-height: 300px;
    display: grid;
    place-items: center;
    padding: 40px;
    text-align: center;
    color: #5f756a;
}
.stmap-withdrawal-modal__loading-inner {
    display: grid;
    justify-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 650;
}
.stmap-withdrawal-modal__spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #dbe9e1;
    border-top-color: var(--stmap-w-accent);
    border-radius: 50%;
    animation: stmap-withdrawal-spin .75s linear infinite;
}
.stmap-withdrawal-modal__fatal {
    min-height: 280px;
    display: grid;
    place-items: center;
    padding: 46px 30px;
    text-align: center;
}
.stmap-withdrawal-modal__fatal > div {
    max-width: 480px;
}
.stmap-withdrawal-modal__fatal strong {
    display: block;
    margin-bottom: 7px;
    color: #20342b;
    font-size: 18px;
}
.stmap-withdrawal-modal__fatal p {
    margin: 0 0 16px !important;
    color: #738079 !important;
    font-size: 13px;
    line-height: 1.55;
}
.stmap-withdrawal-modal.is-busy .stmap-withdrawal-modal__content {
    opacity: .58;
    pointer-events: none;
}
@keyframes stmap-withdrawal-spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .stmap-withdrawal-modal {
        padding: 10px;
        align-items: end;
    }
    .stmap-withdrawal-modal__dialog,
    .stmap-withdrawal-modal__scroll {
        width: 100%;
        max-height: calc(100dvh - 20px);
    }
    .stmap-withdrawal-modal__dialog {
        border-radius: 18px 18px 12px 12px;
    }
    .stmap-withdrawal-modal .stmap-withdrawal-shell,
    .stmap-withdrawal-shell--modal {
        width: 100%;
        margin: 0;
        padding: 22px 16px 18px;
    }
    .stmap-withdrawal-modal .stmap-withdrawal-heading {
        padding-right: 34px;
    }
    .stmap-withdrawal-modal .stmap-withdrawal-heading h2,
    .stmap-withdrawal-modal .stmap-withdrawal-receipt h2 {
        font-size: 24px !important;
    }
    .stf-footer__withdrawal .stmap-withdrawal-button--footer {
        width: 100%;
    }
}
