.withdrawal-page-form,
.withdrawal-lookup-page,
.withdrawal-cta-block,
.withdrawal-modal-overlay {
    box-sizing: border-box;
}

.withdrawal-page-form *,
.withdrawal-lookup-page *,
.withdrawal-modal-overlay * {
    box-sizing: inherit;
}

.withdrawal-page-form .fieldset,
.withdrawal-lookup-page .fieldset,
.withdrawal-modal-overlay .fieldset {
    border: 0;
    margin: 0 0 20px;
    padding: 0;
}

.withdrawal-page-form .legend,
.withdrawal-lookup-page .legend {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    padding: 0;
}

.withdrawal-page-form .field,
.withdrawal-lookup-page .field,
.withdrawal-modal-overlay .field {
    margin-bottom: 14px;
}

.withdrawal-page-form .field.choice,
.withdrawal-lookup-page .field.choice,
.withdrawal-modal-overlay .field.choice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.withdrawal-page-form .label,
.withdrawal-lookup-page .label,
.withdrawal-modal-overlay .label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.withdrawal-page-form .field.choice .label,
.withdrawal-modal-overlay .field.choice .label {
    font-weight: 400;
    margin-bottom: 0;
}

.withdrawal-page-form .field.required > .label::after,
.withdrawal-lookup-page .field.required > .label::after {
    content: ' *';
    color: #dc2626;
}

.withdrawal-page-form .input-text,
.withdrawal-lookup-page .input-text,
.withdrawal-modal-overlay .input-text {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.withdrawal-page-form .checkbox,
.withdrawal-lookup-page .checkbox,
.withdrawal-modal-overlay .checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.withdrawal-page-form .actions-toolbar,
.withdrawal-modal-overlay .actions-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.withdrawal-page-form .action,
.withdrawal-modal-overlay .action,
.withdrawal-badge ~ .action {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    background: #fff;
    color: #111827;
}

.withdrawal-page-form .action.primary,
.withdrawal-lookup-page .action.primary,
.withdrawal-modal-overlay .action.primary {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.withdrawal-page-form .action.primary:disabled,
.withdrawal-modal-overlay .action.primary:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.withdrawal-page-form .action.secondary,
.withdrawal-modal-overlay .action.secondary {
    background: #fff;
    border-color: #d1d5db;
    color: #111827;
}

.withdrawal-page-form .action.back {
    background: transparent;
    border-color: transparent;
    color: #6b7280;
}

.withdrawal-page-form .message {
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}

.withdrawal-page-form .message.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.withdrawal-page-form .message.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.withdrawal-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .5);
    z-index: 900;
    padding: 16px;
    align-items: center;
    justify-content: center;
}

.withdrawal-modal-overlay.active {
    display: flex;
}

.withdrawal-modal-overlay .withdrawal-modal {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.withdrawal-modal-overlay .withdrawal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
}

.withdrawal-modal-overlay .withdrawal-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.withdrawal-modal-overlay .withdrawal-modal-body {
    padding: 20px;
}

.withdrawal-modal-overlay .withdrawal-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
}

body.withdrawal-modal-open {
    overflow: hidden;
}

.withdrawal-page-form {
    max-width: 700px;
    margin: 0 auto;
}

.withdrawal-item {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.withdrawal-item .label {
    flex: 1;
    margin: 0;
}

.withdrawal-item .item-sku {
    font-size: 12px;
    color: #9ca3af;
    display: block;
}

.withdrawal-item-total {
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.withdrawal-qty-input {
    width: 58px !important;
    padding: 4px 6px !important;
    text-align: center;
    display: inline-block !important;
}

.withdrawal-qty-max {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 400;
}

.withdrawal-status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.withdrawal-status-pending {
    background: #fefce8;
    border-color: #fde68a;
    color: #92400e;
}

.withdrawal-status-completed {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.withdrawal-status-rejected {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.withdrawal-status-info {
    flex: 1;
}

.withdrawal-status-info > strong {
    display: block;
    font-size: 15px;
}

.withdrawal-status-info > span {
    font-size: 13px;
    color: #6b7280;
}

.withdrawal-status-amount {
    text-align: right;
}

.withdrawal-status-amount > span {
    font-size: 12px;
    color: #6b7280;
    display: block;
}

.withdrawal-status-amount > strong {
    font-size: 18px;
}

.withdrawal-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.withdrawal-items-table thead th {
    text-align: left;
    padding: 8px 10px;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
}

.withdrawal-items-table thead th.center,
.withdrawal-items-table td.center {
    text-align: center;
}

.withdrawal-items-table thead th.right,
.withdrawal-items-table td.right {
    text-align: right;
}

.withdrawal-items-table td {
    padding: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.withdrawal-item-sku {
    font-size: 12px;
    color: #9ca3af;
    display: block;
}

.withdrawal-item-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid;
    display: inline-block;
}

.withdrawal-item-badge-completed {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.withdrawal-item-badge-rejected {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.withdrawal-item-badge-pending {
    background: #fefce8;
    color: #92400e;
    border-color: #fde68a;
}

.withdrawal-admin-note {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid #d1d5db;
    font-size: 13px;
}

.withdrawal-cta-block {
    margin-top: 20px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.withdrawal-cta-block p {
    margin: 0 0 12px;
    font-size: 14px;
}

.withdrawal-badge {
    display: block;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    width: fit-content;
}

.withdrawal-badge-pending { background: #d97706; }
.withdrawal-badge-completed { background: #16a34a; }
.withdrawal-badge-rejected { background: #dc2626; }
.withdrawal-badge-default { background: #6b7280; }

.withdrawal-badge-items {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

.withdrawal-action {
    margin-top: 6px;
    display: inline-block;
    white-space: nowrap;
    border: 1px solid #111827;
    border-radius: 4px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    background: #111827;
    color: #fff;
}


#w_replacement_sku {
  width: 100%;
}