a.woocommerce-button.button.upgrade_action{
    background-color: #1A3A66!important;
    margin: 5px 10px!important;
}
a.woocommerce-button.button.upgrade_action:hover{
    background-color: #c00e31!important;
}
.woocommerce-order-details a.woocommerce-button.button.upgrade_action, .woocommerce-order-overview a.woocommerce-button.button.upgrade_action{
    margin-top: 10px;
    margin-left: 0px!important;
    padding: 10px 18px!important;
    text-align: center;
    color: #fff;
}
.woocommerce-orders-table__cell-order-actions a {
    margin-right: 8px !important;
}
ul.wc-item-meta{padding-inline-start:0px;}
.upgrade_error{color: #e71010;}

#order_review .product-quantity strong{
    opacity: 0;
}
#course-upgrade-modal {
    display: none;
}
.course-upgrade-overlay {
    position: fixed;
    inset: 0;
    background: #00000080;
    z-index: 9998;
    backdrop-filter: blur(13px);
}
button.upgrade-modal-close {
    border: none;
    padding: 0;
    font-size: 32px;
    color: #000;
    font-weight: 300;
    margin-top: -5px;
}
button.upgrade-modal-close:hover {
    background: transparent;
    color: #000;
}
span.hours {
    display: block;
    margin-bottom: 16px;
}
.course-upgrade-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 604px;
    max-width: 90%;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.upgrade-modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    border: 0;
    background: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.course-upgrade-modal h2 {
    font-weight: 400;
    font-size: 32px !important;
    text-align: center;
}
p.modal-description {
    font-family: Poppins;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #303030;
}
.course-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0;
    align-items: center;
    justify-content: center;
}
.course-option {
    background: #F8F8F8;
    flex: 0 0 calc(25% - 12px);
    font-size: 16px;
    font-weight: 500;
    padding: 15px 10px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
}
.course-option.disabled {
    opacity: 0.5;
    border: 1px solid #ACACAC;
    cursor: not-allowed;
}
.course-option input[type="radio"] {
    display: none;
}
.course-option.active {
    background: #c8102e;
    color: #fff;
}
.course-upgrade-modal .upgrade-btn {
    width: 100%;
    background: #1A3A66;
    color: #fff;
    border: 0;
    padding: 16px;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 10px;
}
button.upgrade-btn:hover {
    background: #C00E31;
}
.course-upgrade-loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.course-upgrade-loader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top-color: #1A3A66;
    border-radius: 50%;
    animation: course-upgrade-spin 0.8s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
}
/* Order Review Table */
.woocommerce-order-pay .woocommerce .shop_table tfoot th {
    color: #000000;
}
.woocommerce-order-pay #payment label {
    color: #000;
    font-size:16px;
    font-weight:700;
}
.woocommerce-order-pay table.shop_table {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,.05);
    margin-bottom:20px !important;
}
.woocommerce-order-pay table.shop_table thead th {
    padding:20px !important;
    background: #19365c !important;
    color: #fff;
    padding: 18px;
    font-size: 16px;
    font-weight: 600;
    border: none;
}
.woocommerce-order-pay table.shop_table tbody td,
.woocommerce-order-pay table.shop_table tfoot th,
.woocommerce-order-pay table.shop_table tfoot td {
    padding: 16px 18px;
    border-top: 1px solid #ececec !important;
    font-size: 15px;
}
.woocommerce-order-pay .shop_table tbody td{
    padding:20px !important;
}
.woocommerce-order-pay .shop_table tfoot th, .woocommerce-order-pay .shop_table tfoot td{
    padding-left:20px !important;
}
.woocommerce-order-pay table.shop_table tfoot tr:last-child th,
.woocommerce-order-pay table.shop_table tfoot tr:last-child td {
    font-size: 18px;
    font-weight: 700;
    color: #19365c;
}
.woocommerce-order-pay #payment {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}

.woocommerce-order-pay .shop_table {
    border-radius: 12px;
    overflow: hidden;
}

.woocommerce-order-pay #payment ul.payment_methods {
    border: none;
    padding: 0;
}

.woocommerce-order-pay #payment .payment_box {
    background: #f8f9fb;
    border-radius: 10px;
}
@keyframes course-upgrade-spin {
    to {
        transform: rotate(360deg);
    }
}
@media (max-width:768px) {
.woocommerce-order-details a.woocommerce-button.button.upgrade_action, .woocommerce-order-overview a.woocommerce-button.button.upgrade_action {
    margin-right: 0px!important;
      font-size: 14px;
}
.woocommerce-order-received #order-received-details tr:first-of-type td {
    padding-top: 15px !important;
}
a.button.woocommerce-button.upgrade_action {
    font-size: 14px !important;
}
form.start_course_form  input.woocommerce-button.button {
    font-size: 14px !important;
}
}
@media (max-width: 576px) {
    .course-option {
        flex: 0 0 calc(33% - 10px);
    }
    .course-upgrade-modal h2 {
        font-size: 26px !important;
        margin-bottom: 5px;
        margin-top: 25px;
    }
    span.hours {
        display: block;
        margin-bottom: 5px;
    }
    .course-option {
        font-size: 14px;
    }
    .course-upgrade-modal {
        padding: 15px;
    }
}
@media (max-width:712px) {
a.woocommerce-button.button.cancel.order-actions-button {
    margin-top: 10px !important;
}
}

@media (max-width:480px) {
    a.woocommerce-button.button.cancel {
    margin: 0 0 10px 0px !important;
}
.woocommerce-order-received #order-received-details {
     table-layout: unset !important; 

}
.woocommerce-order-received #order-received-details tr th {
        padding: 15px 10px 15px 0px !important;
    }
}