body, .wrap, .form-table, .submit, h1, h2, h3, h4, h5, h6, label, input, button {
    font-family: 'Roboto', sans-serif;
}

.shiperman-title {
    background: white;
    display: block;
    margin-left: -20px;
    margin-top: -10px;
    padding: 10px;
    box-shadow: 1px 5px 20px 0px rgba(0, 0, 0, 0.3);
}

.shiperman-title > h1 {
    padding: 0;
}

.shiperman-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 50px);
}

.shiperman-login-wrapper form {
    padding: 35px 46px 27px 46px;
    border-radius: 16px;
    box-shadow: 0px 0px 16px 4px rgba(0, 0, 0, 0.25);
    background-color: rgba(231, 231, 231, 1);
}

.shiperman-logo {
    width: 289px;
    margin: 0 auto;
}

.shiperman-logo img {
    max-width: 100%;
    height: auto;
}

.shiperman-form-field {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.shiperman-form-field > label {
    font-size: 18px;
    font-weight: 400;
}

.shiperman-submit {
    text-align: center;
    margin-top: 26px;
}

.shiperman-form-field input,
.shiperman-btn  {
    width: 525px;
    height: 50px;
    border-radius: 16px;
}

.shiperman-btn {
    background: rgba(253, 241, 0, 1);
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.shiperman-help-btn {
    background: rgba(253, 241, 0, 1);
    border: none;
    font-size: 18px;
    cursor: pointer;
}


.shiperman-link {
    text-decoration: none;
    color: rgba(85, 85, 85, 1);
    line-height: 30px;
    font-size: 18px;
    font-weight: 400;
}

.shiperman-form-table.has-error .shiperman-form-field input {
    background: rgba(255, 207, 207, 1);
}

.shiperman-form-table.has-error .shiperman-btn {
    background: red;
    color: white;
}

.shiperman-form-table.has-error .shiperman-link.forgot-password {
    color: rgba(194, 96, 96, 1);
}

#toplevel_page_shiperman_login a .wp-menu-image:before,
#toplevel_page_shiperman_login a.menu-top {
    color: rgba(253, 241, 0, 1) !important;
}

.shiperman-home-wrapper {
    display: flex;
    gap: 24px;
    padding: 24px 1rem;
}

.shiperman-recent-orders {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.shiperman-wallet-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 258px;
}

.shiperman-wallet-card {
    transition: box-shadow 0.3s ease;
    flex: 1 1 calc(50% - 10px);
    background-color: #f5f5f5;
    max-height: 126px;
    max-width:400px;
    border-radius: 4px;
    padding: 35px 21px;
    box-shadow: 0 0 12px 1px rgba(0,0,0,0.1);
}

.shiperman-wallet-card:hover {
    box-shadow: 0 0 24px 2px rgba(0,0,0,0.22);
}


.wallet-add-more button {
    width: 100% !important;
}

.wallet-add-more {
    margin-top: 26px;
}

.shiperman-wallet-balance span:first-child {
    font-size: 18px;
    line-height: 30px;
}

.shiperman-wallet-balance--display {
    background: white;
    border-radius: 16px;
    min-width: 118px;
    height: 50px;
    font-size: 18px;
    line-height: 50px;
    text-align: center;
}

.shiperman-wallet-section {
    display: flex;
    flex-direction: column;
    max-width:400px;
    gap: 20px;
}

.shiperman-wallet-row {
    display: flex;
    max-width:400px;
    gap: 20px;
    flex-wrap: wrap;
}


.shiperman-help-card {
    transition: box-shadow 0.3s ease;
    flex: 1 1 calc(50% - 10px);
    background-color: #f5f5f5;
    max-height: 126px;
    max-width:400px;
    border-radius: 4px;
    padding: 35px 21px;
    box-shadow: 0 0 12px 1px rgba(0,0,0,0.1);
}

.shiperman-help-card:hover {
    box-shadow: 0 0 24px 2px rgba(0,0,0,0.22);
}

.shiperman-help-text {
    font-size: 18px;
    line-height: 30px;
    text-align: center;
}



.help-btn {
    background-color: #23282d;
}


#shipment-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.shipment-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
}

.view-shipment-btn {
    margin-top: 5px !important;
}

/* Card Styl;es */
.shiperman-card {
    background-color: #f5f5f5; /* grey-lighten-2 equivalent */
    border-radius: 4px;
    box-shadow: 0 0 12px 1px rgba(0,0,0,0.1);
    margin: 0 auto;
    padding: 24px;
    transition: box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%; /* Ensure full width */
    flex: 1; /* Allow the card to grow */
}

.shiperman-card:hover {
    box-shadow: 0 0 24px 2px rgba(0,0,0,0.22);
}

.shiperman-card-header {
    padding-bottom: 16px;
    flex: 0 0 auto; /* Header keeps its size */
}

.shiperman-card-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

.shiperman-card-content {
    flex: 1; /* This area will grow to fill available space */
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* In case content is too much */
    min-height: 200px; /* Minimum height to ensure visibility */
}

.shiperman-orders-list {
    background-color: #f5f5f5;
    flex: 1; /* Allow list to grow */
    display: flex;
    flex-direction: column;
}

.shiperman-order-row {
    padding: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.shiperman-order-row:hover {
    background-color: #d700041f;
}

.shiperman-order-avatar {
    margin-right: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 30px;
}

.shiperman-order-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shiperman-order-details {
    flex: 0 0 33%;
}

.shiperman-order-title {
    font-weight: 500;
    font-size: 14px;
}

.shiperman-order-date {
    font-size: 0.75rem;
    color: rgba(0,0,0,0.6); /* text-medium-emphasis equivalent */
}

.shiperman-order-recipient {
    flex: 0 0 33%;
    font-size: 0.875rem;
}

.shiperman-order-action {
    margin-left: auto;
}

.shiperman-divider {
    height: 1px;
    background-color: rgba(0,0,0,0.12);
    margin: 0;
}

.shiperman-card-actions {
    padding-top: 16px;
    display: flex;
    flex: 0 0 auto; /* Keep actions at fixed height */
}

.shiperman-btn-v2 {
    background: rgba(253, 241, 0, 1);
    border: none;
    font-size: 18px;
    cursor: pointer;

    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.0892857143em;
    transition: background-color 0.2s;
}

.shiperman-btn-primary {
    background-color: #D70002; /* primary color */
    color: white;
}
.shiperman-btn-secondary {
    background-color: #FBD53D; /* primary color */
    color: black;
}

.shiperman-btn-primary:hover {
    background-color: #b40205;
}
.shiperman-btn-secondary:hover {
    background-color: #e1bf37;
}

/* .shiperman-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(25, 118, 210, 0.1);
    color: #1976d2;
    text-decoration: none;
}

.shiperman-btn-icon:hover {
    background-color: rgba(25, 118, 210, 0.2);
} */

.shiperman-no-orders {
    padding: 16px;
    margin: 0 16px 8px 16px;
    background-color: #e1bf37; /* secondary color - adjust as needed */
    border-radius: 4px;
    flex: 1; /* Allow to grow when no orders */
    display: flex;
    justify-content: center;
    align-items: center;
}

.shiperman-no-orders-message {
    text-align: center;
    color: white;
    font-weight: 500;
    font-size: 1rem;
}

.status-green {
    color: #28A745;
}

.status-primary {
    color: red;
}

.status-secondary {
    color: #c7a829;
}

.status-info {
    color: #40678f;
}

/* Add a container for the card if needed in your layout */
.shiperman-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}



/* Depos */

    .shiperman-depo-title {
        margin-bottom: 20px;
    }

    .shiperman-depo-row {
        display: flex;
        flex-wrap: wrap;
        margin-right: -15px;
        margin-left: -15px;
    }

    .shiperman-depo-col {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 15px;
        padding-left: 15px;
        margin-bottom: 20px;
    }

    @media (min-width: 768px) {
        .shiperman-depo-col {
            flex: 0 0 50%;
            max-width: 50%;
        }
    }

    .shiperman-depo-card {
        position: relative;
        display: flex;
        flex-direction: column;
        height: 100%;
        background-color: #f5f5f5;
        border-radius: 4px;
        padding: 16px;
        transition: box-shadow 0.3s, transform 0.3s;
    }

    .shiperman-depo-card:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

    .shiperman-depo-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
    }

    .shiperman-depo-card-title {
        display: flex;
        align-items: center;
        font-size: 18px;
        font-weight: 500;
        margin: 0;
    }

    .shiperman-depo-avatar {
        width: 34px;
        height: 34px;
        margin-right: 16px;
        border-radius: 4px;
        overflow: hidden;
    }

    .shiperman-depo-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .shiperman-depo-copy-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #2271b1;
        background: transparent;
        border: none;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .shiperman-depo-copy-btn:hover {
        background-color: rgba(0, 0, 0, 0.04);
    }

    .shiperman-depo-note {
        background-color: #e7f5ff;
        border-left: 4px solid #0073aa;
        padding: 12px;
        margin-bottom: 16px;
        border-radius: 4px;
    }

    .shiperman-depo-card-content {
        line-height: 1.8;
    }

    .shiperman-depo-icon {
        color: #2271b1;
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }

    .dashicons-small {
        font-size: 16px;
        width: 16px;
        height: 16px;
        vertical-align: text-top;
    }

    .shiperman-shop-highlight {
        border: 2px solid #f90;
        color:white;
        box-shadow: 0 0 12px rgba(255, 165, 0, 0.4);
    }

/* Orders page filte */

/* Filter styling */
.shiperman-orders-list-table-wrapper .alignleft.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 8px;
}

.shiperman-orders-list-table-wrapper .alignleft.actions > * {
    margin-right: 8px;
    margin-bottom: 4px;
}

.shiperman-orders-list-table-wrapper input[type="date"] {
    width: 130px;
}

/* Search box styling */
.shiperman-orders-list-table-wrapper .search-box {
    float: right;
    margin-bottom: 8px;
}

/* Search highlighting */
.search-highlight {
    background-color: #ffff00;
    font-weight: bold;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .shiperman-orders-list-table-wrapper .alignleft.actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .shiperman-orders-list-table-wrapper .alignleft.actions > * {
        margin-bottom: 8px;
        width: 100%;
    }
    
    .shiperman-orders-list-table-wrapper .search-box {
        float: none;
        width: 100%;
    }
    
    .shiperman-orders-list-table-wrapper .search-box input[type="search"] {
        width: calc(100% - 100px);
    }
}
