/* Magodoo_Widerruf: status color for the rejected-withdrawal label added in our
   order/history/withdrawal_button.phtml override (vendor CSS only styles
   .withdrawn and .expired). */
.col.withdrawal .withdrawal-status.rejected {
    color: #c0392b;
    font-weight: 600;
}

/* Responsive fix for the withdrawal view page's item table. The markup already
   carries data-th attributes (Magento's standard responsive-table hook) but the
   vendor module never ships the breakpoint CSS to use them. */
@media only screen and (max-width: 639px) {
    .withdrawal-view-container .table-order-items {
        width: 100%;
    }

    .withdrawal-view-container .table-order-items thead {
        display: none;
    }

    .withdrawal-view-container .table-order-items tr {
        display: block;
        margin-bottom: 15px;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 10px;
    }

    .withdrawal-view-container .table-order-items td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 6px 0;
        border: none;
        text-align: right;
        white-space: normal;
    }

    .withdrawal-view-container .table-order-items td[data-th]::before {
        content: attr(data-th);
        font-weight: 600;
        text-align: left;
        white-space: nowrap;
    }

    .withdrawal-view-container .table-order-items td.col-withdrawal-select {
        justify-content: flex-end;
    }

    .withdrawal-view-container .withdrawal-qty-input {
        width: 50px;
    }
}
