/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */

 /* Integration settings page */

#udwd-integration-connection {
    font-size: 10px;
    color: darkslategray;
    display: block;
    margin: 20px 0 -5px 0;
}

#udwd-integration-connection:before
{
    color: green;
    margin-right: 5px;
 }

 /* General modals */

 #udwd-quote-container, #udwd-delivery-container 
 {
    padding: 0 10px 30px;
 }

 /* Modal shipping preview */

.udwd-shipping-preview-block
{
    margin-bottom: 30px;
}

.udwd-shipping-preview-input-wrapper, .udwd-delivery-data-wrapper {
    margin-bottom: 20px;
}

.udwd-shipping-preview-input-wrapper label {
    display: block;
    margin-bottom: 5px;
}

.udwd-shipping-preview-input-wrapper input {
    width: 100%;
}

.udwd-shipping-preview-input-names-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 0px 20px;
}

.udwd-shipping-preview-input-wrapper.name {
    justify-content: space-between;
}

/* Modal delivery */

.udwd-delivery-block
{
    padding-bottom: 30px;
}

.udwd-delivery-block:not(:last-of-type)
{
    border-bottom: 1px solid #ccc;
}

.udwd-delivery-block .udwd-delivery-data-wrapper small 
{
    font-weight: bold;
}

.udwd-delivery-block .udwd-delivery-data-wrapper p 
{
    margin-top: 5px;
}

.udwd-delivery-block .udwd-delivery-data-wrapper label 
{
    display: block;
    margin-bottom: 10px;
}

.udwd-delivery-block .udwd-delivery-data-wrapper input 
{
    width: 40%;
}

.udwd-delivery-data-wrapper .dashicons-before:before
{
    line-height: 26px;
    font-weight: normal;
}

#udwd-delivery-courier
{
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

#udwd-delivery-courier-photo img
{
    max-width: 300px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

#udwd-button-cancel-delivery
{
    float: left;
}

/* Meta boxes */

#udwd-metabox-container h4
{
    margin-bottom: 0;
}

#udwd-metabox-container input
{
    width: 100%;
}

#udwd-metabox-container .dashicons-before:before
{
    line-height: 25px;
}

#udwd-metabox-action
{
    text-align: right;
}

#udwd-metabox-action button
{
    margin-top: 10px;
}

