.withdrawal-page {
    width: 100%;
    padding: 30px 18px 44px;
    box-sizing: border-box;
}

.withdrawal-card {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 0 30px 30px;
    box-sizing: border-box;
    color: var(--text2-color);
    border: 2px solid var(--tertiary-color);
    border-radius: 26px;
    background: var(--secondaryGlass2-color);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 36px rgba(49, 42, 0, 0.25);
    overflow: hidden;
    animation: fadeIn 0.6s ease-in-out forwards;
}

.withdrawal-card > h1 {
    margin: 0 -30px 24px;
    padding: 18px 30px 16px;
    font-size: clamp(25px, 4vw, 32px);
    line-height: 1.2;
    border-bottom: 3px solid var(--secondary-color);
    background: linear-gradient(100deg, rgba(255, 251, 0, 0.65), rgba(255, 251, 0, 0.12));
}

.withdrawal-order-meta,
.withdrawal-summary,
.withdrawal-success {
    padding: 18px 20px;
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 14px 14px 0;
    background: rgba(255, 255, 255, 0.3);
}

.withdrawal-order-meta dl,
.withdrawal-success dl {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) 1.3fr;
    gap: 8px 18px;
    margin: 0;
}

.withdrawal-order-meta dt,
.withdrawal-success dt {
    font-weight: 700;
}

.withdrawal-order-meta dd,
.withdrawal-success dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.withdrawal-intro {
    margin: 22px 0 16px;
    line-height: 1.55;
}

.withdrawal-alert {
    margin: 18px 0;
    padding: 13px 16px;
    border: 1px solid #aa8700;
    border-radius: 12px;
    background: rgba(255, 248, 169, 0.88);
}

.withdrawal-alert--error,
.withdrawal-mail-warning {
    color: #741313;
    border-color: #b94343;
    background: rgba(255, 229, 229, 0.92);
}

.withdrawal-legal-notice {
    margin: 0 0 22px;
    padding: 16px 18px;
    line-height: 1.5;
    border: 1px solid rgba(167, 137, 0, 0.62);
    border-radius: 14px;
    background: rgba(255, 252, 211, 0.72);
    box-shadow: 0 4px 14px rgba(49, 42, 0, 0.1);
}

.withdrawal-legal-notice h2 {
    margin: 0 0 10px;
    color: var(--text2-color);
    font-size: clamp(19px, 2.5vw, 23px);
}

.withdrawal-legal-notice p {
    margin: 9px 0;
}

.withdrawal-legal-details {
    margin-top: 12px;
    padding-top: 10px;
    font-size: 0.92em;
    border-top: 1px solid rgba(167, 137, 0, 0.42);
}

.withdrawal-legal-details summary {
    width: fit-content;
    color: var(--link-color);
    font-weight: 700;
    cursor: pointer;
}

.withdrawal-legal-details a {
    color: var(--link-color);
    font-weight: 700;
}

.withdrawal-type {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0 0 18px;
    padding: 15px 18px;
    border: 1px solid var(--secondary-color);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.24);
}

.withdrawal-type legend {
    padding: 0 8px;
    font-weight: 700;
}

.withdrawal-type label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.withdrawal-type small {
    flex-basis: 100%;
}

.withdrawal-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(49, 42, 0, 0.14);
}

.withdrawal-items {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.72);
}

.withdrawal-items th,
.withdrawal-items td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(167, 137, 0, 0.36);
}

.withdrawal-items th {
    background: var(--input-background);
}

.withdrawal-items td:first-child small {
    display: block;
    margin-top: 3px;
}

.withdrawal-items tr.is-exempt {
    opacity: 0.72;
}

.withdrawal-exempt-label {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    background: #6c5a00;
}

.withdrawal-items input[type="number"] {
    width: 74px;
    padding: 8px;
    box-sizing: border-box;
    font-size: 16px;
    text-align: center;
    border: 1px solid var(--secondary-color);
    border-radius: 9px;
    background: var(--input-background);
}

.withdrawal-items input[type="number"]:disabled {
    color: var(--text2-color);
    opacity: 0.72;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.55);
}

.withdrawal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 22px auto 0;
    padding: 12px 20px;
    color: var(--text2-color);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--secondary-color);
    border-radius: 12px;
    background: var(--background-yellow);
    cursor: pointer;
}

.withdrawal-form,
.withdrawal-confirm-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.withdrawal-button:hover,
.withdrawal-button:focus-visible {
    animation: shadow 1s alternate infinite;
}

.withdrawal-back-link {
    display: block;
    width: fit-content;
    margin: 18px auto 0;
    color: var(--link-color);
    font-weight: 700;
}

.withdrawal-summary h2,
.withdrawal-success h2 {
    margin-top: 0;
}

.withdrawal-summary ul {
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.withdrawal-summary li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(167, 137, 0, 0.36);
}

.withdrawal-confirm-note {
    font-weight: 600;
}

.withdrawal-mail-warning {
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
}

.withdrawal-public-intro {
    max-width: 650px;
    margin: 0 auto 22px;
    text-align: center;
    line-height: 1.55;
}

.withdrawal-public-intro h2 {
    margin: 0 0 10px;
    font-size: clamp(21px, 3vw, 26px);
}

.withdrawal-public-intro p {
    margin: 0;
}

.withdrawal-public-form {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1.3fr);
    gap: 13px 18px;
    width: min(620px, 100%);
    margin: 0 auto;
    padding: 22px;
    box-sizing: border-box;
    border: 1px solid rgba(167, 137, 0, 0.52);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.28);
}

.withdrawal-public-form label {
    align-self: center;
    font-weight: 700;
}

.withdrawal-public-form input {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    box-sizing: border-box;
    color: var(--text2-color);
    font: inherit;
    border: 1px solid var(--secondary-color);
    border-radius: 10px;
    background: var(--input-background);
}

.withdrawal-public-form input:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.withdrawal-public-form .withdrawal-button {
    grid-column: 1 / -1;
}

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

@media (max-width: 600px) {
    .withdrawal-page {
        padding: 18px 10px 28px;
    }
    .withdrawal-card {
        padding: 0 16px 22px;
        border-radius: 20px;
    }
    .withdrawal-card > h1 {
        margin: 0 -16px 18px;
        padding: 14px 16px 12px;
        font-size: 24px;
    }
    .withdrawal-order-meta,
    .withdrawal-summary,
    .withdrawal-success {
        padding: 13px 14px;
    }
    .withdrawal-legal-notice {
        margin-bottom: 18px;
        padding: 13px 14px;
    }
    .withdrawal-order-meta dl,
    .withdrawal-success dl {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .withdrawal-order-meta dd,
    .withdrawal-success dd {
        margin-bottom: 8px;
    }
    .withdrawal-type {
        flex-direction: column;
        gap: 10px;
    }
    .withdrawal-button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    .withdrawal-public-form {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 16px;
    }
    .withdrawal-public-form input {
        margin-bottom: 7px;
    }
}
