/*preorder package popup start*/
.woocommerce #order_review table.shop_table tfoot td ul#shipping_method li {
    position: relative;
    display: inline-block;
}

.woocommerce-checkout .woocommerce #order_review table.shop_table ul#shipping_method.woocommerce-shipping-methods li label {
    padding-right: 0;
    padding-left: 30px;
    display: block;
}

.woocommerce #order_review table.shop_table tfoot td ul#shipping_method li .preorder-package-btn {
    position: absolute;
    top: 2px;
    left: 0;
    width: 22px;
    height: 22px;
    padding: 2px 0 0;
    border-radius: 100%;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    font-family: serif !important;
    line-height: 1;
}

.woocommerce #order_review table.shop_table tfoot td ul#shipping_method {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.woocommerce #order_review table.shop_table tfoot td ul#shipping_method li .preorder-package-btn span {
    font-family: inherit;
}

.preorder-package-popupcontent {
    padding: 15px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.preorder-package-popupcontent .modal-dialog {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.preorder-package-popupcontent .modal-content {
    max-width: 640px;
    margin: 0 auto;
    padding: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.preorder-package-popupcontent .modal-header {
    position: relative;
    margin-bottom: 0;
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
}

.preorder-package-popupcontent .modal-header .modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    flex: 1;
    padding-left: 10px;
}

.preorder-package-popupcontent  .close {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 100%;
    background: #fff;
    font-size: 21px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: sans-serif !important;
    font-weight: 400;
    color: rgba(0,0,0,0.5);
}

.preorder-package-popupcontent  .close:hover {
    border-color: #f00;
    color: #f00;
}

.preorder-package-popupcontent .close span {
    font-family: inherit !important;
    font-size: inherit;
    display: block;
    line-height: inherit;
}

.preorder-package-popupcontent .modal-body {
    padding: 30px;
    font-size: 16px;
    line-height: 1.5;
}

.preorder-package-popupcontent .modal-body ul li,
.woocommerce #order_review table.shop_table tfoot td ul#shipping_method .preorder-package-popupcontent li {
    text-align: inherit;
    position: relative;
    padding-right: 15px;
}

.preorder-package-popupcontent .modal-body ul li::before {
    content: "";
    background: rgba(0,0,0,0.5);
    width: 7px;
    height: 7px;
    border-radius: 100%;
    position: absolute;
    top: 9px;
    right: 0;
}

.preorder-package-popupcontent .modal-body > *:last-child {
    margin-bottom: 0;
}
/*preorder package popup end*/
@media (max-width: 540px) {
    /*preorder package popup start*/
    .preorder-package-popupcontent .modal-header {
        padding-inline: 15px;
    }

    .preorder-package-popupcontent .modal-header .modal-title {
        font-size: 16px;
    }

    .preorder-package-popupcontent .close {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }

    .preorder-package-popupcontent .modal-body {
        padding-inline: 15px;
        font-size: 14px;
    }
    /*preorder package popup end*/
}
