.wm-merchants {
    table-layout: fixed;
    width: 100%;
    background-color: transparent!important;
    border-style: none;
}

.wm-merchants tr {
    background-color: transparent;
}
.wm-merchants th {
    text-align: left;
    width: 15%;
    background-color: transparent!important;
    border-style: none;
}
.wm-merchants td {
    text-align: left;
    width: 85%;
    background-color: transparent!important;
    border-style: none;
}

.wm-admin-user-input {
    width: 100%;
}

.wm-new-payout-btn {
    float:right;
}

.wm-dashboard-overview,
.wm-shipping-classes,
.wm-warehouses,
.wm-merchant-orders,
.wm-payouts {
    position:relative;
}

.wm-payouts h3 {
    float:left;
}

.modal {
    display:none;
    justify-content: center;
    align-items: center;
    flex-flow: column nowrap;
    position:   fixed;
    z-index:    10;
    top:        0;
    left:       0;
    height:     100%;
    width:      100%;
    background-color: rgba( 255, 255, 255, .6 );
    font-size: 1.5em;
}


.wm-warehouse-table {
    position: relative;
    border-style: solid!important;
    border-width: 1px;
    border-color: #ddd;
    margin-bottom: 10px;
    border-collapse: separate;
}
.wm-warehouse-table td {
    padding: 2px;
    vertical-align: middle;
    width: 70%;
    text-align: center;
}
.wm-warehouse-table th {
    padding: 2px;
    padding-left: 10px;
    text-align: left;
    width: 30%;
    vertical-align: middle;
}
.wm-warehouse-table td,
.wm-warehouse-table th {
    background-color: white!important;
    border-style: none;
}
.wm-warehouse-table td:hover,
.wm-warehouse-table th:hover {
    background-color: white!important;
}
.wm-warehouse-table th label{
    height: 100%;
    line-height: 100%;
    float: left;
}
.wm-warehouse-table td label{
    float:right;
    font-weight: bold;
    float: right;
    margin-right: 15px;
}
.wm-warehouse-table td input {
    float:right;
    width: 100%;
}
.wm-warehouse-delete {
    cursor: pointer;
    color: red;
}
.wm-warehouse-add-line {
    cursor: pointer;
}

.wm-country-dropdown,
.wm-warehouse-country {
    width: 97%;
    background-color: white;
    height: 40px;
    border: 1px solid #ddd;
    color: #666;
    padding: 0px;
    padding-left: 12px;
}
.wm-warehouse-table tr:first-child {
    margin-bottom: 5px;
}
.wm-warehouse-table tr:first-child input {
    border-style: none!important;
    font-weight: bold;
}

.wm-warehouse-actions label {
    width: auto!important;
    float:right!important;
    margin-right: 10px;
}

.wm-new-warehouse-btn-container {
    min-height: 1px;
    height: 40px;
}

.wm-warehouses-container tr,
.wm-warehouses-container th,
.wm-warehouses-container td,
.wm-warehouses-container ,
.wm-shipping-classes-container tr,
.wm-shipping-classes-container th,
.wm-shipping-classes-container td,
.wm-shipping-classes-container {
    border-style: none;
}

.wm-shipping-class-table {
    position: relative;
    border-style: none;
    margin-bottom: 10px;
}
.wm-shipping-class-table td {
    vertical-align: middle;
    width: 30%;
    text-align: center;
}
.wm-shipping-class-table th {
    text-align: left;
}
.wm-shipping-class-table tr {
    }
.wm-shipping-class-table td,
.wm-shipping-class-table th {
    background-color: white!important;
    border-style: none;
    padding: 5px;
}
.wm-shipping-class-table td:hover,
.wm-shipping-class-table th:hover {
    background-color: white!important;
}
.wm-shipping-class-table th label{
    height: 100%;
    line-height: 100%;
    width: 100%;
    text-align: center;
}
.wm-shipping-class-table td label{
    width: 30%!important;
    vertical-align: middle;
    height: 100%;
    line-height: 100%;
}
.wm-shipping-class-table td input {
    width: 100%!important;
}

.wm-shipping-class-table tr:nth-child(2) th {
    padding-top: 20px;
}
.wm-shipping-class-table tr:first-child input {
    border-style: none!important;
    font-weight: bold;
}

.wm-shipping-class-actions label {
    width: auto!important;
    float:right;
    margin-top: 15px;
    margin-right: 10px;
}

.wm-shipping-delete {
    color: red;
    cursor: pointer;
}

.wm-new-warehouse-btn-container,
.wm-new-shipping-class-btn-container {
    display: flex;
    min-height: 1px;
    height: 40px;
    width: 100%;
    justify-content: space-between;
}
.wm-assign-warehouse-btn,
.wm-assign-shipping-class-btn {
}
.wm-new-shipping-class-btn,
.wm-new-warehouse-btn {
}
.wm-hidden {
    display:none!important;
}
.wm-class-delete {
    cursor: pointer;
    color: red;
}
.wm-class-add-line {
    cursor: pointer;
}

.wm-payouts h3,
.wm-assign-warehouse-container h3,
.wm-no-merchant-popup-content h3,
.wm-assign-shipping-class-container h3 {
    font-weight: bold;
}
.wm-product-list,
.wm-product-list tr,
.wm-product-list td,
.wm-product-list th {
    border-style: none;
    box-shadow: none!important;
    font-size: 13px;
}

.wm-product-list-confirmation,
.wm-product-list-confirmation tr,
.wm-product-list-confirmation td,
.wm-product-list-confirmation th {
    border-style: none;
    box-shadow: none!important;
    font-size: 13px;
    color: black;
}

.wm-payouts-heading {
    overflow: hidden;
}

.wm-filter-container select {
    width: 20%!important;
    float: left;
    background-color: white;
    height: 100%;
}

.wm-filter-container input {
    height: 39px;
}
.wm-merchant-registration .wf-field textarea ,
.wm-merchant-registration .wf-field .wp-core-ui ,
.wm-merchant-registration .wf-field select ,
.wm-merchant-registration .wf-field input {
    width: 97%;
}
.wm-assign-shipping-class-table,
.wm-assign-shipping-class-table tr,
.wm-assign-shipping-class-table td,
.wm-assign-shipping-class-table th,
.wm-assign-warehouse-table,
.wm-assign-warehouse-table tr,
.wm-assign-warehouse-table td,
.wm-assign-warehouse-table th {
    border-style: none;
    vertical-align: middle;
}
.wm-assign-warehouse-table select,
.wm-assign-shipping-class-table select {
    position: relative;
    right: 25px;
}

.wm-delete-warehouse,
.wm-delete-class {
    color: red;
    margin-right: 10px;
}

.wm-edit-warehouse,
.wm-delete-warehouse,
.wm-edit-class,
.wm-delete-class {
    cursor: pointer;
}
.wm-merchant-tutorial-info {
    text-align: center;
    border-radius: 3px;
    margin: 0 10px 0 10px;
    padding: 10px 0 10px 0;
}

.wm-tutorial-video .wp-video{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.wm-merchant-dashboard {
    display: flex;
    flex-flow: column nowrap;
    height: 100%;
    width: 100%;
}
.wm-dashboard-row {
    display: flex;
    height: 100%;
    align-items: flex-start;
}
.wm-dashboard-tile {
    background-color: white;
    padding: 15px;
    margin: 5px;
    border-radius: 3px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    -moz-box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    flex: 1;
}

.wm-dashboard-tile h3 {
    font-weight: bold;
}

.wm-tile-merchant-active {
    padding: 20px;
    background-color: black;
    color: white;
}
.wm-order-list {
    display: flex;
    flex-flow: column nowrap;
    height: 100%;
    width: 100%;
}

.wm-order {
    display: flex;
    justify-content: space-between;
    width:100%;
    margin: 5px;
    padding: 15px;
    border-radius: 3px;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    -moz-box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.wm-order div {
    width: 20%;
}

.wm-order-details-customer {
    display:flex;
    justify-content: flex-end;
}
.wm-order-details-general {
    display:flex;
    justify-content: space-between;
}
.wm-order-btn:hover,
.wm-order-btn:active,
.wm-order-btn:focus,
.wm-order-btn {
    border-style: none!important;
    background-color:none!important;
}
.wm-customer-order-merchant,
.wm-customer-order-merchant tr,
.wm-customer-order-merchant th,
.wm-customer-order-merchant td {
    border-style: none;
}
.wm-customer-order-merchant td {
    vertical-align: middle;
}
.wm-customer-merchant-heading {
    display:flex;
    justify-content: space-between;
}
.wm-overview-container {
    display:flex;
    justify-content: space-around;
}
.wm-overview-container h5 {
    text-align: center;
}
.wm-overview-container div {
    margin-right: 20px;
}

.wm-overview-monthly-sales {
    display:flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: stretch;

}
#wm-monthly-sales-chart {
    height: 100%;
    width: 100%;
}
.wm-edit-merchant-btn {
    margin-left: 10px;
    cursor: pointer;
}
.wm-order-items-completed td,
.wm-order-items-not-completed td,
.wm-order-items-unchecked td {
    border-style: none;
}
/* --- Payment Provider --- */
.wm-payment-provider {
    position: relative;
}
.wm-pp-subtitle {
    margin-bottom: 15px;
    opacity: 0.6;
}
.wm-pp-notice {
    display: none;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.wm-pp-notice-success {
    background: var(--gray-50, #d4edda);
    border: 1px solid var(--success-color, #c3e6cb);
    color: var(--success-color, #155724);
}
.wm-pp-notice-error {
    background: var(--gray-50, #f8d7da);
    border: 1px solid var(--error-color, #f5c6cb);
    color: var(--error-color, #721c24);
}
.wm-pp-section {
    border: 1px solid rgba(128,128,128,0.3);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}
.wm-pp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.wm-pp-header strong {
    font-size: 1.1em;
}
.wm-pp-status {
    margin-left: 8px;
}
.wm-pp-status-active {
    color: #28a745;
}
.wm-pp-status-incomplete {
    color: #e0a800;
}
.wm-pp-status-disabled {
    opacity: 0.5;
}
.wm-pp-toggle-label {
    cursor: pointer;
}
.wm-pp-table {
    width: 100%;
    border-collapse: collapse;
}
.wm-pp-table,
.wm-pp-table tr,
.wm-pp-table td,
.wm-pp-table th {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
.wm-pp-table th {
    padding: 6px 10px;
    font-weight: bold;
    width: 180px;
    text-align: left;
    vertical-align: middle;
}
.wm-pp-table td {
    padding: 6px 10px;
}
.wm-pp-table td input[type="text"],
.wm-pp-table td input[type="password"] {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    border: 1px solid rgba(128,128,128,0.4);
    border-radius: 4px;
    background: transparent;
    color: inherit;
}
.wm-pp-btn {
    color: var(--text-on-accent, #fff);
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius, 4px);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition, all 0.3s ease);
}
.wm-pp-btn-bank {
    background: var(--success-color, #28a745);
    color: var(--text-on-primary, #fff);
}
.wm-pp-btn-bank:hover {
    background: #218838;
    opacity: 0.9;
}
.wm-pp-btn-stripe {
    background: var(--accent-color, #635bff);
    color: var(--text-on-accent, #fff);
}
.wm-pp-btn-stripe:hover {
    background: var(--primary-color, #5248e0);
    color: var(--text-on-primary, #fff);
}
.wm-pp-btn-remove {
    background: transparent;
    color: var(--error-color, #dc3545);
    border: 1px solid var(--error-color, #dc3545) !important;
    margin-left: 8px;
}
.wm-pp-btn-remove:hover {
    background: var(--error-color, #dc3545);
    color: #fff;
}
.wm-pp-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wm-pp-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(128,128,128,0.5);
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
    cursor: pointer;
    opacity: 0.6;
    vertical-align: middle;
}
.wm-pp-help:hover {
    opacity: 1;
}
.wm-pp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wm-pp-popup {
    background: #fff;
    color: #333;
    border-radius: 8px;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.wm-pp-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}
.wm-pp-popup-header strong {
    font-size: 1.15em;
}
.wm-pp-popup-close {
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.5;
}
.wm-pp-popup-close:hover {
    opacity: 1;
}
.wm-pp-popup-body {
    padding: 20px;
    line-height: 1.6;
}
.wm-pp-popup-body ol {
    padding-left: 20px;
    margin: 10px 0 0;
}
.wm-pp-popup-body li {
    margin-bottom: 6px;
}

@media only screen and (max-width: 600px) {
    .wm-dashboard-row:not(.wm-dashboard-merchants) {
        flex-flow: column nowrap;
        align-items: stretch;
    }
    .wm-overview-container {
        flex-flow: column nowrap;
    }
    .wm-overview-container > div {
        width:100%!important;
    }
    .wm-order {
        flex-flow: row wrap;
    }
    .wm-order > div {
        width:50%!important;
        text-align:left!important;
    }
    .wm-order >div:last-child {
        width:100%!important;
        text-align:right!important;
    }
    .wm-delete-class,
    .wm-delete-warehouse {
        margin-right:0;
    }
}

/* Floating cart icon */
.wm-floating-cart {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-color, #635bff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.wm-floating-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    color: #fff;
    text-decoration: none;
}
.wm-floating-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4444;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0 4px;
}
