/* =============================================
   Withdrawal form
   ============================================= */

.dsow-form-wrapper {
    max-width: 820px;
    margin: 0 auto;
}

.dsow-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-left: 4px solid #61a60e;
    padding: 18px 20px;
    margin-bottom: 24px;
    border-radius: 0 4px 4px 0;
    text-align: center;
}

.dsow-intro p {
    margin: 0;
}

.dsow-intro p + p {
    margin-top: 10px;
}

.dsow-card {
    min-width: 0;
    margin: 0 0 28px;
    padding: 8px 24px 14px;
    border: 1px solid #d9dde2;
    border-radius: 8px;
    background: #fff;
}

/* The legend sits on the border line, as in a native fieldset */
.dsow-form-wrapper .dsow-legend {
    float: none;
    width: auto;
    max-width: 100%;
    margin: 0 0 0 -6px;
    padding: 0 10px;
    border: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #363a41;
}

.dsow-card-body {
    padding-top: 12px;
}

.dsow-form-wrapper .form-group > label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5057;
}

.dsow-form-wrapper .form-control {
    height: 44px;
    padding: 8px 14px;
    border: 1px solid #d5d9de;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: none;
}

.dsow-form-wrapper textarea.form-control {
    height: auto;
}

.dsow-form-wrapper .form-control:focus {
    border-color: #9aa3ad;
    outline: 0;
}

.dsow-form-wrapper .form-text {
    display: block;
    margin-top: 6px;
    font-size: 0.85em;
    color: #6c757d;
}

/* Radio type selection */

.dsow-type-option {
    margin-bottom: 12px;
}

.dsow-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: border-color 0.2s;
}

.dsow-radio-label:hover {
    border-color: #61a60e;
}

.dsow-radio-label input[type="radio"] {
    margin-top: 3px;
    flex-shrink: 0;
}

/* Items section */

.dsow-items-note {
    color: #6c757d;
    font-style: italic;
    margin-bottom: 16px;
}

.dsow-item-row {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.dsow-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
}

.dsow-product-main {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 12px;
    min-width: 0;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.dsow-product-main input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 0;
}

.dsow-product-img {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
}

.dsow-product-info {
    display: block;
    min-width: 0;
}

.dsow-product-name {
    display: block;
    font-weight: 600;
}

.dsow-product-ref {
    color: #6c757d;
}

.dsow-product-qty {
    flex: 0 0 90px;
}

.dsow-product-qty label {
    display: block;
    margin: 0 0 2px;
    font-size: 0.85em;
    color: #6c757d;
}

.dsow-product-qty input {
    width: 100%;
}

@media (max-width: 576px) {
    .dsow-product {
        flex-wrap: wrap;
    }

    .dsow-product-qty {
        flex: 1 1 100%;
    }
}

/* Submit section */

.dsow-submit-section {
    padding: 20px 0;
}

.dsow-submit-btn {
    min-width: 220px;
}

.dsow-privacy-note {
    font-size: 0.85em;
    color: #6c757d;
    margin-bottom: 12px;
}

/* Confirmation */

.dsow-confirmation {
    max-width: 620px;
    margin: 0 auto;
}

/* Footer / account button */

.dsow-footer-btn {
    display: inline-block;
    margin: 8px 0;
}

.dsow-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 0.9em;
    transition: opacity 0.2s;
}

.dsow-btn:hover {
    opacity: 0.85;
}

.dsow-link {
    color: inherit;
    text-decoration: underline;
    font-size: 0.9em;
}

#dsow-form .required {
    color: #dc3545;
}
