﻿.tooltip {
  padding-block: 25px;
  text-align: center;
  border-bottom: none;
  display: block;
}

  .tooltip.withdraw-request-deadline {
    border: 1px solid #ddd;
    max-width: 500px;
    margin: 0 auto 25px;
    padding-inline: 20px;
  }

.withdraw-request-page .buttons{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
}

  .withdraw-request-page .buttons .find-order-button{
      text-decoration: underline;
  }

/* LAYOUT - the content is kept to a readable width, with room above and below */
.find-withdraw-request-page .page-body,
.withdraw-request-page .page-body {
    max-width: 960px;
    margin: 0 auto;
    padding: 50px 15px 60px;
}

.find-withdraw-request-page .page-body {
    max-width: 600px;
}

.find-withdraw-request-page .tooltip,
.withdraw-request-page .tooltip {
    padding-top: 0;
    padding-bottom: 30px;
    line-height: 1.6;
}

    .withdraw-request-page .tooltip.withdraw-request-deadline {
        padding: 15px 20px;
        margin-bottom: 30px;
    }

.find-withdraw-request-page .buttons {
    margin-top: 30px;
}

/* FORM FIELDS - label above the field, both centered (the theme floats them, or hides them, on .return-request-page) */
.find-withdraw-request-page .inputs,
.withdraw-request-page .fieldset .inputs {
    text-align: center;
    margin-bottom: 20px;
}

.find-withdraw-request-page .inputs label,
.withdraw-request-page .fieldset .inputs label {
    display: block;
    float: none;
    width: 100%;
    margin: 0 0 10px;
    text-align: center;
    white-space: normal;
}

.find-withdraw-request-page .inputs input[type="text"],
.withdraw-request-page .fieldset .inputs select,
.withdraw-request-page .fieldset .inputs textarea {
    display: inline-block;
    margin: 0 auto;
}

/* PRODUCTS TABLE */
.withdraw-request-page .data-table td.picture {
    width: 1px;
    padding: 10px;
}

    .withdraw-request-page .data-table td.picture img {
        display: block;
        width: 80px;
        max-width: none;
        height: auto;
        margin: 0 auto;
    }

/* the labels of the cells are only needed once the table is stacked */
.withdraw-request-page .data-table td label {
    display: none;
}

@media all and (max-width: 768px) {
    .withdraw-request-page .table-wrapper {
        overflow-x: visible;
    }

    .withdraw-request-page .data-table,
    .withdraw-request-page .data-table tbody {
        display: block;
        width: 100%;
    }

    .withdraw-request-page .data-table tr {
        display: block;
        width: 100%;
    }

    /* the theme hides the first cell of the row (a counter in its own view), here it is the picture */
    .withdraw-request-page .data-table td,
    .withdraw-request-page .data-table td:first-of-type {
        display: block;
        width: 100%;
        min-width: 0;
        text-align: center;
        white-space: normal;
        word-wrap: break-word;
    }

    .withdraw-request-page .data-table td.picture {
        padding-top: 15px;
        padding-bottom: 0;
    }

        .withdraw-request-page .data-table td.picture img {
            width: 120px;
        }

    .withdraw-request-page .data-table td label {
        display: block;
        margin: 0 0 5px;
    }
}
