/* Withdrawal Module Styles */

/* Order History - Withdrawal Button */
.col.withdrawal .action.withdrawal {
    display: inline-block;
    padding: 5px 12px;
    background-color: #e94e1b;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 13px;
    white-space: nowrap;
}

.col.withdrawal .action.withdrawal:hover {
    background-color: #bd001e;
    color: #fff;
    text-decoration: none;
}

.col.withdrawal .withdrawal-status {
    font-size: 13px;
    white-space: nowrap;
}

.col.withdrawal .withdrawal-status.withdrawn {
    color: #e67e22;
    font-weight: 600;
}

.col.withdrawal .withdrawal-status.expired {
    color: #95a5a6;
}

/* Withdrawal View Page */
.withdrawal-view-container .table-order-details th {
    text-align: left;
    padding: 8px 15px 8px 0;
    width: 200px;
    color: #666;
}

.withdrawal-view-container .table-order-details td {
    padding: 8px 0;
}

.withdrawal-view-container .table-order-items {
    width: 100%;
    border-collapse: collapse;
}

.withdrawal-view-container .table-order-items th,
.withdrawal-view-container .table-order-items td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.withdrawal-view-container .table-order-items thead th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.withdrawal-info-box {
    border: 1px solid #e0e0e0;
    margin-top: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 4px;
}

.withdrawal-partial-notice {
    margin-top: 20px;
}

.withdrawal-deadline {
    margin-bottom: 15px;
}

.box.box-order-items {
    margin-bottom: 20px;
}

.box.box-order-items .box-title {
    display: block;
    margin-bottom: 10px;
}

.withdrawal-item-withdrawn {
    opacity: 0.5;
}

.withdrawal-status-badge {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.withdrawal-qty-input {
    width: 60px;
}

.col-withdrawal-select {
    width: 40px;
}

.withdrawal-view-container .action.primary.withdraw {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.withdrawal-view-container .action.primary.withdraw:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

/* Success Page */
.withdrawal-success-container {
    max-width: 600px;
    margin: 0 auto;
}

.withdrawal-success-container .actions-toolbar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Guest Search Form */
.withdrawal-guest-search-container {
    max-width: 500px;
    margin: 0 auto;
}

.withdrawal-guest-search-container .fieldset {
    margin-bottom: 20px;
}

.withdrawal-guest-search-container .field {
    margin-bottom: 15px;
}


/* TM custom */

body #maincontent {
    padding: 10px 10px 50px 10px;
}

.withdrawal-guest-view .block-order-details-view .block-title,
.withdrawal-index-view .block-order-details-view .block-title {
    padding: 0 10px;
    margin-bottom: 20px;
}

.withdrawal-guest-view .block-order-details-view .block-content,
.withdrawal-index-view .block-order-details-view .block-content {
    margin: 0;
}

.withdrawal-guest-view .block-order-details-view .box,
.withdrawal-index-view .block-order-details-view .box {
    float: unset;
}

.withdrawal-guest-view table.table-order-items tr th:first-child,
.withdrawal-index-view table.table-order-items tr th:first-child {
    padding-left: 10px !important;
}

.withdrawal-guest-view .table-order-items tr td:first-child,
.withdrawal-index-view .table-order-items tr td:first-child {
    padding-left: 10px !important;
}

.withdrawal-guest-view .page-main>.page-title-wrapper .page-title,
.withdrawal-index-view .page-main>.page-title-wrapper .page-title {
    margin: 20px 10px 15px 10px;
}

.withdrawal-guest-view input[type=checkbox],
.withdrawal-index-view input[type=checkbox] {
    display: block;
}

.withdrawal-index-success .page-main > .page-title-wrapper .page-title {
    text-align: center;
}

.withdrawal-index-success .actions-toolbar a.action.primary {
    height: auto;
    line-height: normal;
    padding: 10px;
}

.withdrawal-guest-view .modal-popup.confirm .modal-footer,
.withdrawal-index-view .modal-popup.confirm .modal-footer {    
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (min-width: 768px) {

    .withdrawal-guest-view .block-order-details-view .box,
    .withdrawal-index-view .block-order-details-view .box {
        width: auto;
    }

    .withdrawal-guest-view thead input[type=checkbox],
    .withdrawal-index-view thead input[type=checkbox] {
        top: -4px;
    }

}

@media only screen and (max-width: 768px) {
    .withdrawal-guest-view .modal-popup .modal-content,
    .withdrawal-index-view .modal-popup .modal-content {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (max-width: 767px) {

    .withdrawal-guest-view .table-order-items,
    .withdrawal-index-view .table-order-items,
    .withdrawal-guest-view .table-order-items tbody,
    .withdrawal-index-view .table-order-items tbody,
    .withdrawal-guest-view .table-order-items tr,
    .withdrawal-index-view .table-order-items tr,
    .withdrawal-guest-view .table-order-items td,
    .withdrawal-index-view .table-order-items td {
        display: block;
        width: 100%;
    }

    .withdrawal-guest-view .table-order-items thead,
    .withdrawal-index-view .table-order-items thead {
        display: none;
    }

    .withdrawal-guest-view .table-order-items tr,
    .withdrawal-index-view .table-order-items tr {
        border: 1px solid #d7d7d7;
        margin-bottom: 15px;
        padding: 10px;
    }

    .withdrawal-guest-view .table-order-items td,
    .withdrawal-index-view .table-order-items td {
        border-bottom: 1px solid #e5e5e5;
        box-sizing: border-box;
        padding: 9px 0;
        text-align: right;
    }

    .withdrawal-guest-view .table-order-items td:last-child,
    .withdrawal-index-view .table-order-items td:last-child {
        border-bottom: 0;
    }

    .withdrawal-guest-view .table-order-items td:before,
    .withdrawal-index-view .table-order-items td:before {
        content: attr(data-th);
        float: left;
        font-weight: 600;
        padding-right: 15px;
        text-align: left;
    }

    .withdrawal-guest-view .table-order-items .col.name,
    .withdrawal-index-view .table-order-items .col.name {
        text-align: left;
    }

    .withdrawal-guest-view .table-order-items .col.name:before,
    .withdrawal-index-view .table-order-items .col.name:before {
        display: block;
        float: none;
        margin-bottom: 5px;
        padding-right: 0;
    }

    .withdrawal-guest-view .box.box-order-items,
    .withdrawal-index-view .box.box-order-items {
        padding: 0;
    }
}