#pisol-edd-basic-shipping-days-layout {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;

    > div:nth-child(3) {
        grid-column: 1 / -1;
    }


    // ==================================================
    // CARD
    // ==================================================

    .shipping-block {
        background: #fff;

        border: 1px solid rgba(0, 0, 0, .08);
        border-radius: 12px;

        overflow: hidden;

        box-shadow: 0 4px 14px rgba(0, 0, 0, .05) !important;
    }


    // ==================================================
    // HEADER
    // ==================================================

    .shipping-header {

        display: flex;
        align-items: center;

        gap: 14px;

        padding: 20px 24px;

        background: var(--pisol-black-color);
        color: #fff;


        .shipping-step {

            display: inline-flex;
            align-items: center;
            justify-content: center;

            min-width: 80px;
            height: 30px;

            padding: 0 16px;

            border-radius: 20px;

            background: var(--pisol-primary-color);
            color: #fff;

            font-size: 13px;
            font-weight: 700;

            letter-spacing: .3px;
        }


        .shipping-step-description {

            color: #fff;

            font-size: 15px;
            font-weight: 600;
        }
    }


    // ==================================================
    // CONTENT
    // ==================================================

    .shipping-block-content {
        padding: 20px;

        &.pi-block-condition-row {
            pointer-events: none;
            position: relative;

            &::before {
                content: "";
                position: absolute;
                inset: 0;
                background: rgba(255, 255, 255, 0.7);
                z-index: 10;
            }

            &::after {
                content: "Processing...";
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                z-index: 11;

                padding: 10px 16px;
                background: #fff;
                border-radius: 6px;
                box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);

                font-size: 14px;
                font-weight: 500;
                color: #374151;
            }
        }
    }


    // ==================================================
    // STEP 1 / STEP 2
    // ==================================================


    // ==================================================
    // SHIPPING ZONES
    // ==================================================

    .pisol-shipping-zone {

        display: flex;
        align-items: center;
        min-height: 52px;
        margin-bottom: 10px;
        padding: 0 16px;
        border: 1px solid #e2e2e2;
        border-radius: 6px;
        background: #fff;
        cursor: pointer;
        transition: all .18s ease;
        width: 100%;
        color: var(--pisol-black-color);
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        box-sizing: border-box;

        &:last-child {
            margin-bottom: 0;
        }


        &:hover {

            border-color: var(--pisol-primary-color);

            background: rgba(0, 0, 0, .015);

            transform: translateY(-1px);

            box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
        }
    }


    // ==================================================
    // SELECTED ZONE
    // ==================================================

    
    .pisol-shipping-zone.pisol_active{

        border-color: var(--pisol-primary-color);

        background: rgba(0, 0, 0, .025);

        box-shadow: inset 4px 0 0 var(--pisol-primary-color);
    }


    // ==================================================
    // SHIPPING METHODS
    // ==================================================

    .pisol-shipping-method {

        display: flex;
        align-items: center;
        justify-content: flex-start;

        min-height: 48px;

        margin: 0 8px 8px 0;

        padding: 0 18px;

        border: 2px solid transparent;
        border-radius: 9px;

        background: #f7f7f7;

        cursor: pointer;

        transition: all .18s ease;

        color: var(--pisol-black-color) !important;

        font-size: 14px;
        font-weight: 600;

        text-decoration: none;


        &:hover {

            border-color: var(--pisol-primary-color);

            background: #fff;

            transform: translateY(-1px);

            box-shadow: 0 4px 10px rgba(0, 0, 0, .06);
        }
    }


    // ==================================================
    // SELECTED SHIPPING METHOD
    // ==================================================
    .pisol-shipping-method.pisol_active{

        border-color: var(--pisol-primary-color);

        background: rgba(0, 0, 0, .025);

        box-shadow: inset 4px 0 0 var(--pisol-primary-color);
    }


    // ==================================================
    // STEP 2 MESSAGE
    // ==================================================

    #pisol-shipping-methods-info {

        margin: 0 0 16px !important;

        padding: 12px 14px;

        border: 1px dashed #d8d8d8;
        border-radius: 8px;

        background: #fafafa;


        p {

            margin: 0 !important;

            color: #737373;

            font-size: 13px;

            text-align: center;
        }
    }


    // ==================================================
    // STEP 3 MESSAGE
    // ==================================================

    #pisol-shipping-days-info {

        margin-bottom: 20px;

        padding: 14px 16px;

        border: 1px dashed #d8d8d8;
        border-radius: 8px;

        background: #fafafa;


        .text-center {

            margin-bottom: 8px;

            color: var(--pisol-black-color);

            font-size: 13px;
            font-weight: 600;

            text-align: center;
        }


        p {

            margin: 0;

            color: #737373;

            font-size: 13px;
        }
    }


    // ==================================================
    // STEP 3 FORM
    // ==================================================

    #pisol-min-max-form {

        margin: 0;


        // ----------------------------------------------
        // METHOD TITLE
        // ----------------------------------------------

        #pisol-form-method-title {
            padding: 0 0 15px;
            margin:0;

            border-bottom: 1px solid #e8e8e8;

            color: var(--pisol-black-color);

            font-size: 18px;
            font-weight: 700;
        }


        // ----------------------------------------------
        // FORM ROW
        // ----------------------------------------------

        .form-group {

            display: grid;

            grid-template-columns: 32% max-content 1fr;

            grid-gap:20px;

            align-items: center;

            margin: 0;

            padding: 16px 0;

            border-bottom: 1px solid #eeeeee;

            #holiday_dates{
                max-width:100%;
                width:600px;
            }


            &:last-of-type {
                border-bottom: 0;
            }


            // Remove bootstrap spacing
            > [class*="col-"] {

                width: auto;

                max-width: none;

                padding-left: 0;
                padding-right: 0;
            }


            // ------------------------------------------
            // LABEL
            // ------------------------------------------

            > label {

                display: flex;

                grid-gap:10px;

                align-items: center;

                justify-content: flex-start;

                margin: 0;

                padding-right: 25px;

                color: var(--pisol-black-color);

                font-size: 14px;
                font-weight: 600;

                line-height: 1.4;
            }

        }


        // ==================================================
        // INPUT
        // ==================================================

        .form-control {

            width: 100%;

            height: 42px;

            padding: 8px 12px;

            border: 1px solid #dcdcdc;

            border-radius: 8px;

            background: #fff;

            color: var(--pisol-black-color);

            font-size: 14px;

            box-shadow: none;

            transition:
                border-color .2s ease,
                box-shadow .2s ease;


            &:hover {
                border-color: #bdbdbd;
            }


            &:focus {

                border-color: var(--pisol-primary-color);

                outline: none;

                box-shadow:
                    0 0 0 3px rgba(0, 0, 0, .05);
            }
        }


        // ==================================================
        // CUTOFF
        // ==================================================

        #pisol-form-shipping_cutoff_time {

            background: #fafafa;

            cursor: pointer;
        }


        // ==================================================
        // CLEAR BUTTON
        // ==================================================

        #pisol-form-clear-time {

            display: inline-flex;

            align-items: center;
            justify-content: center;

            width: 38px;
            height: 38px;

            margin-left: 8px;

            padding: 0;

            border: 0;
            border-radius: 7px;

            background: var(--pisol-primary-color);

            color: #fff;

            font-size: 20px;

            text-decoration: none;

            cursor: pointer;

            transition: all .18s ease;


            &:hover {

                opacity: .9;

                transform: translateY(-1px);
            }
        }


        // ==================================================
        // CHECKBOX
        // ==================================================

        input[type="checkbox"] {

            width: 18px;
            height: 18px;

            margin: 0 !important;

            accent-color: var(--pisol-primary-color);

            cursor: pointer;
        }


        // ==================================================
        // SELECT
        // ==================================================

        select {

            min-height: 42px;

            border: 1px solid #dcdcdc;

            border-radius: 8px;

            background: #fff;
        }


        // ==================================================
        // SELECT2
        // ==================================================

        .select2-container {

            width: 100% !important;


            .select2-selection {

                min-height: 42px;

                border: 1px solid #dcdcdc;

                border-radius: 8px;

                box-shadow: none;
            }


            .select2-selection--multiple {

                padding: 3px 6px;


                .select2-selection__choice {

                    margin-top: 4px;

                    padding: 3px 8px;

                    border: 0;

                    border-radius: 5px;

                    background: var(--pisol-primary-color);

                    color: #fff;

                    font-size: 12px;
                }
            }
        }


        // ==================================================
        // SAVE
        // ==================================================

        input[type="submit"] {

            display: inline-flex;

            align-items: center;
            justify-content: center;

            min-height: 42px;

            margin-top: 20px !important;

            margin-left:0 !important;

            padding: 9px 22px;

            border: 0;

            border-radius: 8px;

            background: var(--pisol-primary-color);

            color: #fff;

            font-size: 14px;
            font-weight: 600;

            cursor: pointer;

            transition: all .18s ease;


            &:hover {

                opacity: .9;

                transform: translateY(-1px);
            }
        }

        .free-version{
            position: relative;
            overflow: hidden;
            opacity: 0.65;
            pointer-events: none;
            &:before {
                content: "PRO";
                position: absolute;
                top: 10px;
                right: -30px;

                width: 100px;
                padding: 4px 0;

                background: #dc3232;
                color: #fff;

                font-size: 10px;
                font-weight: 700;
                line-height: 1;
                text-align: center;

                transform: rotate(45deg);
                z-index: 10;
            }
        }
    }


    // ==================================================
    // TOOLTIP / HELP ICON
    // ==================================================

    .pisol-help,
    .pisol-tooltip-trigger {

        display: inline-flex;

        align-items: center;
        justify-content: center;

        width: 18px;
        height: 18px;

        margin-left: 5px;

        border-radius: 50%;

        background: var(--pisol-black-color);

        color: #fff;

        font-size: 11px;
    }


    // ==================================================
    // RESPONSIVE
    // ==================================================

    @media (max-width: 900px) {

        grid-template-columns: 1fr;


        > div:nth-child(3) {
            grid-column: auto;
        }


        #pisol-min-max-form {

            .form-group {

                grid-template-columns: 35% min-content 1fr;
            }

            #holiday_dates{
                width:200px !important;
            }

            .form-control{
                width:200px !important;
            }
        }
    }


    @media (max-width: 600px) {

        padding: 10px;

        gap: 14px;


        .shipping-header {

            padding: 15px 16px;

            .shipping-step {
                min-width: 70px;
            }

            .shipping-step-description {
                font-size: 14px;
            }
        }


        .shipping-block-content {
            padding: 16px;
        }


        #pisol-min-max-form {

            .form-group {

                display: block;

                padding: 14px 0;


                > label {

                    display: block;

                    margin-bottom: 8px;

                    padding-right: 0;
                }
            }


            input[type="submit"] {
                width: 100%;
            }
        }
    }
}

.pisol-error {

    margin: 0 0 18px !important;

    &:empty{
        display:none;
    }

    .alert {

        display: flex;
        align-items: center;

        min-height: 48px;

        margin: 0;
        padding: 12px 16px;

        border: 1px solid rgba(245, 158, 11, .25);
        border-radius: 8px;

        background: #fff8e6;
        color: #92400e;

        font-size: 13px;
        font-weight: 500;

        line-height: 1.5;

        box-shadow: 0 2px 8px rgba(0, 0, 0, .04);


        strong {

            margin: 0 3px;

            color: var(--pisol-black-color);

            font-weight: 700;
        }


        // Optional warning icon
        &::before {

            content: "!";

            display: inline-flex;
            align-items: center;
            justify-content: center;

            flex: 0 0 22px;

            width: 22px;
            height: 22px;

            margin-right: 10px;

            border-radius: 50%;

            background: var(--pisol-primary-color);
            color: #fff;

            font-size: 12px;
            font-weight: 700;
        }
    }
}