.zwrot-withdrawal-wrapper {
    margin: 2rem 0;
    font-family: inherit;
    max-width: 600px;
}

.zwrot-withdrawal-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 1.5rem;
    background-color: #2c3e50;
    color: #ffffff;
    border: 2px solid #2c3e50;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.zwrot-withdrawal-toggle:hover {
    background-color: #1a252f;
    border-color: #1a252f;
}

.zwrot-withdrawal-toggle:focus-visible {
    outline: 3px solid #f39c12;
    outline-offset: 2px;
}

.zwrot-withdrawal-form {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.zwrot-withdrawal-form fieldset {
    border: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
}

.zwrot-withdrawal-form legend {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.zwrot-withdrawal-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.zwrot-withdrawal-item:hover {
    border-color: #2c3e50;
}

.zwrot-withdrawal-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.zwrot-withdrawal-item span {
    flex-grow: 1;
    font-size: 0.95rem;
}

.zwrot-withdrawal-item .qty {
    width: 60px;
    padding: 0.4rem;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.zwrot-withdrawal-item .price {
    font-weight: 600;
    color: #2c3e50;
    min-width: 80px;
    text-align: right;
}

.zwrot-withdrawal-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.zwrot-withdrawal-fields label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    gap: 0.4rem;
}

.zwrot-withdrawal-fields input[type="email"],
.zwrot-withdrawal-fields input[type="text"],
.zwrot-withdrawal-fields textarea {
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.zwrot-withdrawal-fields input:focus,
.zwrot-withdrawal-fields textarea:focus {
    border-color: #2c3e50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.15);
}

.zwrot-withdrawal-summary {
    padding: 1rem;
    background-color: #e8f4f8;
    border-left: 4px solid #2c3e50;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.zwrot-withdrawal-summary #zwrot-withdrawal-amount {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-left: 0.5rem;
}

.zwrot-withdrawal-form button[type="submit"] {
    width: 100%;
    min-height: 48px;
    padding: 0 1.5rem;
    background-color: #27ae60;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.zwrot-withdrawal-form button[type="submit"]:hover {
    background-color: #219150;
}

.zwrot-withdrawal-form button[type="submit"]:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.zwrot-withdrawal-form button[type="submit"]:focus-visible {
    outline: 3px solid #f39c12;
    outline-offset: 2px;
}

.zwrot-withdrawal-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.zwrot-withdrawal-message:not(:empty) {
    display: block;
}

.zwrot-withdrawal-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.zwrot-withdrawal-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 480px) {
    .zwrot-withdrawal-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .zwrot-withdrawal-item .price {
        width: 100%;
        text-align: left;
        margin-top: 0.25rem;
        font-size: 0.9rem;
    }
    .zwrot-withdrawal-form {
        padding: 1rem;
    }
}
