body.woocommerce-checkout #shipping_to_field #shipping_to_boxnow + label.radio {
    order: 0;
    grid-column: 1 / -1;
    min-height: 100px;
    border-color: #b9d7aa;
    background: #fbfef8;
}

body.woocommerce-checkout #shipping_to_field #shipping_to_boxnow + label.radio::before {
    content: 'BOX NOW';
    min-width: 76px;
    height: 34px;
    border: 1px solid #c7deae;
    border-radius: 8px;
    background: #d7efb7;
    color: #294e21;
    font-size: 12px;
    letter-spacing: -.25px;
}

body.woocommerce-checkout #shipping_to_field input#shipping_to_boxnow:checked + label.radio {
    border-color: #70a641;
    background: #f5fbed;
    box-shadow: 0 0 0 3px rgba(112, 166, 65, .12);
}

body.woocommerce-checkout #shipping_to_field input#shipping_to_boxnow:checked + label.radio::after {
    border-color: #477a2c;
    background: #477a2c;
}

body.woocommerce-checkout #shipping_to_field input#shipping_to_boxnow:focus-visible + label.radio {
    outline-color: #477a2c;
}

.gg-boxnow-card-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.gg-boxnow-card-copy > strong {
    color: #243522;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.gg-boxnow-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 10px;
    color: #4d5c48;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.gg-boxnow-free {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 5px;
    background: #e0efd3;
    color: #335b22;
    font-size: 12px;
    font-weight: 800;
}

.gg-boxnow-cart-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0 0 22px;
    padding: 17px 20px;
    border: 1px solid #cbdcbd;
    border-radius: 12px;
    background: #f5fbed;
    color: #335b22;
    line-height: 1.5;
}

.gg-boxnow-cart-notice strong {
    font-size: 16px;
    font-weight: 800;
}

.gg-boxnow-cart-notice span {
    color: #4d5c48;
    font-size: 13px;
}

.woocommerce-checkout-review-order-table .gg-boxnow-free-total td strong {
    color: #477a2c;
}

body.woocommerce-checkout #gg-boxnow-panel {
    clear: both;
    box-sizing: border-box;
    width: 100%;
    margin: -9px 0 24px;
    padding: 18px;
    border: 1px solid #dbe6d2;
    border-radius: 13px;
    background: #fcfef9;
}

#gg-boxnow-panel .gg-boxnow-hint {
    margin: 0 0 14px;
    color: #4d5c48;
    font-size: 14px;
    line-height: 1.6;
}

#gg-boxnow-panel .gg-boxnow-locker-slot:empty {
    display: none;
}

body.woocommerce-checkout #gg-boxnow-panel #box_now_delivery_button {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 13px 20px;
    border: 1px solid #9b1237;
    border-radius: 9px;
    background: #9b1237;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    cursor: pointer;
}

body.woocommerce-checkout #gg-boxnow-panel #box_now_delivery_button:hover {
    border-color: #7e0e2d;
    background: #7e0e2d;
}

body.woocommerce-checkout #gg-boxnow-panel #box_now_delivery_button:focus-visible {
    outline: 3px solid rgba(155, 18, 55, .3);
    outline-offset: 3px;
}

#gg-boxnow-panel #box_now_selected_locker_details {
    margin-top: 14px;
    color: #2c3928;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

#gg-boxnow-panel #box_now_delivery_embedded_map {
    max-width: 100%;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 9px;
}

#gg-boxnow-panel #box_now_delivery_embedded_map iframe {
    max-width: 100%;
}

#gg-boxnow-availability-notice {
    clear: both;
    box-sizing: border-box;
    width: 100%;
    margin: -10px 0 22px;
    padding: 10px 12px;
    border: 1px solid #eadbb2;
    border-radius: 9px;
    background: #fffbef;
    color: #715d2b;
    font-size: 13px;
    line-height: 1.5;
}

body.woocommerce-checkout #gg-boxnow-panel[hidden],
body.woocommerce-checkout #gg-boxnow-availability-notice[hidden],
body.woocommerce-checkout #gg-boxnow-state,
body.woocommerce-checkout #shipping_to_field #shipping_to_boxnow + label.radio[hidden],
body.woocommerce-checkout #_boxnow_locker_id_field,
body.gg-boxnow-active #speedy_region_sel_field,
body.gg-boxnow-active #speedy_city_sel_field,
body.gg-boxnow-active #speedy_office_sel_field,
body.gg-boxnow-active #econt_region_sel_field,
body.gg-boxnow-active #econt_city_sel_field,
body.gg-boxnow-active #econt_office_sel_field,
body.gg-boxnow-active #billing_state_field,
body.gg-boxnow-active #billing_city_field,
body.gg-boxnow-active #billing_address_1_field,
body.gg-boxnow-active #custom_price,
body.gg-boxnow-active .free-shipping-box,
body.gg-boxnow-active #deliv_msg {
    display: none !important;
}

@media (max-width: 480px) {
    body.woocommerce-checkout #shipping_to_field #shipping_to_boxnow + label.radio {
        grid-template-columns: minmax(0, 1fr) 24px;
        gap: 10px;
        padding: 14px;
    }

    body.woocommerce-checkout #shipping_to_field #shipping_to_boxnow + label.radio::before {
        justify-self: start;
        grid-column: 1;
        grid-row: 1;
    }

    body.woocommerce-checkout #shipping_to_field #shipping_to_boxnow + label.radio::after {
        grid-column: 2;
        grid-row: 1;
    }

    .gg-boxnow-card-copy {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    body.woocommerce-checkout #gg-boxnow-panel {
        padding: 15px;
    }

    body.woocommerce-checkout #gg-boxnow-panel #box_now_delivery_button {
        width: 100%;
    }
}
