/*
|--------------------------------------------------------------------------
| Delivery Advice Modal
|--------------------------------------------------------------------------
*/

.dpp-delivery-modal{
    position:fixed;
    inset:0;
    display:none;
    z-index:999999;
}

.dpp-delivery-modal.active{
    display:block;
}

.dpp-delivery-modal__overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(2px);
}

.dpp-delivery-modal__dialog{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:95%;
    max-width:760px;
    max-height:90vh;
    overflow-y:auto;
    background: #CECDBB;
    border-radius:10px;
    box-shadow:0 20px 50px rgba(0,0,0,.25);
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.dpp-delivery-modal__header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:20px 25px;
    border-bottom:1px solid #ececec;
}

.dpp-delivery-modal__header h2{
    margin:0;
    font-size:28px;
    font-weight:600;
    color:#222;
}

.dpp-delivery-close{
    border:0;
    background:none;
    font-size:34px;
    cursor:pointer;
    line-height:1;
    color:#666;
}

.dpp-delivery-close:hover{
    color:#000;
}

/*
|--------------------------------------------------------------------------
| Body
|--------------------------------------------------------------------------
*/

.dpp-delivery-modal__body{
    padding:25px;
}

.dpp-delivery-intro{
    margin:0 0 25px;
    line-height:1.7;
    color:#666;
}

/*
|--------------------------------------------------------------------------
| Sections
|--------------------------------------------------------------------------
*/

.dpp-form-section{
    margin-bottom:30px;
}

.dpp-form-section h3{
    margin:0 0 18px;
    font-size:18px;
    font-weight:600;
    color:#222;
    border-bottom:1px solid #eee;
    padding-bottom:8px;
}

/*
|--------------------------------------------------------------------------
| Form Rows
|--------------------------------------------------------------------------
*/

.dpp-form-row{
    margin-bottom:18px;
}

.dpp-form-row label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
    color:#222;
}

.dpp-form-row label span{
    color:#e53935;
}

.dpp-form-row input,
.dpp-form-row textarea,
.dpp-form-section textarea{

    width:100%;
    padding:12px 14px;

    border:1px solid #dcdcdc;
    border-radius:6px;

    font-size:15px;

    transition:.2s;
    box-sizing:border-box;
}

.dpp-form-row input:focus,
.dpp-form-section textarea:focus{

    outline:none;
    border-color:#ef9300;

    box-shadow:0 0 0 3px rgba(239,147,0,.15);
}

/*
|--------------------------------------------------------------------------
| Summary
|--------------------------------------------------------------------------
*/

.dpp-delivery-summary{

    background: #b8b6a0;

    border:1px solid #ececec;

    border-radius:6px;

    padding:18px;
}

.dpp-delivery-summary table{

    width:100%;

    border-collapse:collapse;
}

.dpp-delivery-summary th,
.dpp-delivery-summary td{

    padding:8px 8px;

    text-align:left;

    border-bottom:1px solid #eee;

    vertical-align:top;
}

.dpp-delivery-summary th{

    width:180px;

    font-weight:600;

    color:#222;
}

.dpp-delivery-summary tr:last-child th,
.dpp-delivery-summary tr:last-child td{

    border-bottom:none;
}

.dpp-delivery-footer button{
    background: #E0880B;
    color: #090909;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: .25s;
    border: 0px;
}
.dpp-delivery-footer button:hover{
    color: #090909;
    background: #fff;
}
.dpp-delivery-modal__header button{
    background: #E0880B;
    color: #090909;
    border:0;
}
.dpp-delivery-modal__header button:hover{
    color: #090909;
    background: #E0880B;
}
.dpp-form-section input{
    border: 1px solid #E0880B !important;
}
.dpp-form-section textarea{
    border: 1px solid #E0880B !important;
}
.dpp-form-section input:focus{
    border-color: #E0880B !important;
}
.dpp-form-section textarea:focus{
    border-color: #E0880B !important;
}
/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.dpp-delivery-footer{

    display:flex;

    justify-content:flex-end;

    gap:15px;

    margin-top:35px;
}

.dpp-delivery-cancel,
.dpp-delivery-submit{

    min-width:180px;

    height:48px;

    border-radius:4px;

    cursor:pointer;

    font-size:15px;

    font-weight:600;

    transition:.25s;
}

.dpp-delivery-cancel{

    background:#fff;

    color:#444;

    border:1px solid #ccc;
}

.dpp-delivery-cancel:hover{

    background:#f5f5f5;
}

.dpp-delivery-submit{

    border:none;

    background:#ef9300;

    color:#fff;
}

.dpp-delivery-submit:hover{

    background:#d88400;
}

/*
|--------------------------------------------------------------------------
| Scrollbar
|--------------------------------------------------------------------------
*/

.dpp-delivery-modal__dialog::-webkit-scrollbar{

    width:8px;
}

.dpp-delivery-modal__dialog::-webkit-scrollbar-thumb{

    background:#ccc;

    border-radius:10px;
}

.dpp-delivery-request{
    margin-top:15px;
}

.dpp-delivery-button{
    width:100%;
}

.dpp-status-pending{
    background:#fff3cd;
}

.dpp-status-quoted{
    background:#cfe2ff;
}

.dpp-status-accepted{
    background:#d1e7dd;
}

.dpp-status-expired{
    background:#f8d7da;
}

.dpp-status-pending{
    background:#f0ad4e;
    color:#fff;
}

.dpp-status-quoted{
    background:#0073aa;
    color:#fff;
}

.dpp-status-completed{
    background:#46b450;
    color:#fff;
}

.dpp-status-cancelled{
    background:#d63638;
    color:#fff;
}

.dpp-status{
    display:inline-block;
    padding:4px 10px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
}
.dpp-stats{
    display:flex;
    gap:20px;
    margin:20px 0;
    flex-wrap:wrap;
}

.dpp-card{
    background:#fff;
    border:1px solid #ddd;
    border-left:4px solid #2271b1;
    padding:18px;
    min-width:170px;
    box-sizing:border-box;
}

.dpp-card strong{
    display:block;
    margin-bottom:10px;
    font-size:14px;
}

.dpp-card span{
    font-size:28px;
    font-weight:700;
}

.dpp-status-pending{
    background:#f0ad4e;
    color:#fff;
}

.dpp-status-quoted{
    background:#2271b1;
    color:#fff;
}

.dpp-status-completed{
    background:#46b450;
    color:#fff;
}

.dpp-status-cancelled{
    background:#d63638;
    color:#fff;
}

.dpp-card a{
    color:inherit;
    text-decoration:none;
}

.dpp-card a:hover{
    color:#2271b1;
}

.dpp-card{
    background:#fff;
    border:1px solid #ddd;
    border-left:4px solid #2271b1;
    padding:18px;
    min-width:170px;
    box-sizing:border-box;
    transition:.2s ease;
}

.dpp-card:hover{
    box-shadow:0 3px 12px rgba(0,0,0,.08);
    transform:translateY(-2px);
}

.dpp-stats-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin:20px 0;
}



.dpp-customer-instructions-dialog button{
    padding: 0rem 1rem;
    color: #fff;
    border: 1px solid #f0ad4e;
    background: #f0ad4e;
}
.dpp-customer-instructions-dialog button:hover{
    color: #fff;
}    
/* =========================================================
   CUSTOMER INSTRUCTIONS SIDE PANEL
   ========================================================= */

.dpp-customer-instructions-modal {
    position: fixed;
    inset: 0;

    z-index: 999999;

    display: none;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.dpp-customer-instructions-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);
}


/* =========================================================
   RIGHT SIDE PANEL
   ========================================================= */

.dpp-customer-instructions-dialog {
    position: absolute;

    top: 0;
    right: 0;

    width: 480px;
    max-width: 90vw;

    height: 100vh;

    margin: 0;

    padding: 55px 35px 35px;

    box-sizing: border-box;

    background: #CECDBB;

    overflow-y: auto;

    box-shadow:
        -8px 0 30px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.3s ease;
}


/* =========================================================
   OPEN STATE
   ========================================================= */

.dpp-customer-instructions-modal.is-open
.dpp-customer-instructions-dialog {
    transform: translateX(0);
}


/* =========================================================
   CLOSE
   ========================================================= */

.dpp-customer-instructions-close {
    position: absolute;

    top: 15px;
    right: 18px;

    width: 36px;
    height: 36px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #333;

    font-size: 30px;

    line-height: 36px;

    cursor: pointer;
}

.dpp-customer-instructions-close:hover {
    color: #000;
}


/* =========================================================
   CONTENT
   ========================================================= */

.dpp-customer-instructions-content {
    color: #333;

    font-size: 16px;

    line-height: 1.65;
}

.dpp-customer-instructions-content p {
    margin: 0 0 15px;
}

.dpp-customer-instructions-content h1,
.dpp-customer-instructions-content h2,
.dpp-customer-instructions-content h3,
.dpp-customer-instructions-content h4 {
    margin-top: 0;

    margin-bottom: 15px;
}

.dpp-customer-instructions-content ul,
.dpp-customer-instructions-content ol {
    margin-bottom: 15px;

    padding-left: 22px;
}

.dpp-customer-instructions-content li {
    margin-bottom: 6px;
}

.dpp-customer-instructions-modal.is-open
.dpp-customer-instructions-dialog {
    transform: translateX(0);
}

.swal2-actions button.swal2-confirm.swal2-styled{
    border: 1px solid #E0880B;
    color: #090909;
}

.swal2-popup.swal2-modal.swal2-icon-warning.swal2-show{
    background: #CECDBB;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .dpp-customer-instructions-dialog {
        width: 90vw;

        max-width: none;

        padding:
            55px
            22px
            25px;
    }

    .dpp-customer-instructions-content {
        font-size: 15px;
    }

}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width:768px){

    .dpp-delivery-modal__dialog{

        width:96%;

        max-height:94vh;
    }

    .dpp-delivery-modal__body{

        padding:20px;
    }

    .dpp-delivery-modal__header{

        padding:18px 20px;
    }

    .dpp-delivery-modal__header h2{

        font-size:22px;
    }

    .dpp-delivery-footer{

        flex-direction:column;
    }

    .dpp-delivery-cancel,
    .dpp-delivery-submit{

        width:100%;
    }

    .dpp-delivery-summary th{

        width:130px;
    }

}