.psx-wew-form-wrapper {
    margin: 1.5em 0;
}

.psx-wew-form p {
    margin-bottom: 1em;
}

.psx-wew-form label {
    display: block;
    margin-bottom: .35em;
    font-weight: 600;
}

.psx-wew-form input[type="text"],
.psx-wew-form input[type="email"],
.psx-wew-form input[type="number"],
.psx-wew-form select,
.psx-wew-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.psx-wew-fieldset {
    border: 1px solid rgba(0,0,0,.12);
    padding: 1em;
    margin: 1.25em 0;
}

.psx-wew-fieldset legend {
    padding: 0 .5em;
    font-weight: 700;
}

.psx-wew-fieldset label {
    display: block;
    font-weight: 400;
    margin: .5em 0;
}

.psx-wew-order-summary,
.psx-wew-review-box,
.psx-wew-order-detail-button {
    border: 1px solid rgba(0,0,0,.12);
    padding: 1em;
    margin: 1.25em 0;
    background: rgba(0,0,0,.025);
}

.psx-wew-items input[type="number"] {
    max-width: 90px;
}

.psx-withdrawal-button {
    text-decoration: none;
}

.psx-wew-confirm-button {
    font-weight: 700;
}

@media (max-width: 768px) {
    .psx-wew-items td,
    .psx-wew-list td {
        display: block;
        width: 100%;
    }

    .psx-wew-items td:before,
    .psx-wew-list td:before {
        content: attr(data-title) ": ";
        font-weight: 700;
    }
}

/* Mobile layout for withdrawal item tables: turn WooCommerce tables into clean full-width cards. */
@media (max-width: 768px) {
    .psx-wew-form table.psx-wew-items,
    .psx-wew-form table.psx-wew-items tbody,
    .psx-wew-form table.psx-wew-items tr,
    .psx-wew-form table.psx-wew-items td {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .psx-wew-form table.psx-wew-items {
        border: 0 !important;
        table-layout: auto !important;
        margin: 1rem 0 1.25rem !important;
    }

    .psx-wew-form table.psx-wew-items thead {
        display: none !important;
    }

    .psx-wew-form table.psx-wew-items tbody {
        border: 0 !important;
    }

    .psx-wew-form table.psx-wew-items tr {
        border: 1px solid rgba(0,0,0,.16) !important;
        margin: 0 0 1rem !important;
        padding: .85rem !important;
        background: #fff;
    }

    .psx-wew-form table.psx-wew-items td {
        border: 0 !important;
        border-bottom: 1px solid rgba(0,0,0,.10) !important;
        padding: .65rem 0 !important;
        text-align: left !important;
        vertical-align: top !important;
    }

    .psx-wew-form table.psx-wew-items td:last-child {
        border-bottom: 0 !important;
    }

    .psx-wew-form table.psx-wew-items td:before {
        content: attr(data-title) !important;
        display: block !important;
        float: none !important;
        width: auto !important;
        margin: 0 0 .35rem !important;
        padding: 0 !important;
        font-weight: 700 !important;
        text-align: left !important;
    }

    .psx-wew-form table.psx-wew-items td[data-title="Vybrat"] {
        display: flex !important;
        align-items: center !important;
        gap: .5rem !important;
    }

    .psx-wew-form table.psx-wew-items td[data-title="Vybrat"]:before {
        margin: 0 !important;
    }

    .psx-wew-form table.psx-wew-items input[type="checkbox"] {
        margin: 0 !important;
    }

    .psx-wew-form table.psx-wew-items input[type="number"] {
        width: 110px !important;
        max-width: 110px !important;
    }

    .psx-wew-form table.psx-wew-items textarea,
    .psx-wew-form table.psx-wew-items input[type="text"],
    .psx-wew-form table.psx-wew-items select {
        width: 100% !important;
        max-width: 100% !important;
    }
}
