/**
 *
 *      OClass checkout styling
 *
 */

.ocw-tab-title input[type=radio] {
    margin-right: 10px;
}

.ocw-option-tab {
    padding: 20px;
    border: 1px solid #e2e2e2;
    margin-bottom: 20px;
    border-radius: 8px;
}

.ocw-tab-title {
    cursor: pointer;
}

.ocw-tab-content {
    margin-top: 20px;
    display: none;
}

.ocw-option-tab.active .ocw-tab-content {
    display: block;
}

.ocw-tab-content p,
.ocw-tab-content li,
.ocw-checkout-table-div table,
.ocw-tab-content {
    font-size: 14px;
    color: black;
}

.ocw-checkout-items tr td:last-child,
.ocw-checkout-items tr th:last-child,
.ocw-checkout-total tr td:last-child,
.ocw-checkout-total tr th:last-child{
    text-align: right;
}

.ocw-checkout-form input{
    font-size: 14px;
    line-height: 19px;
}

.ocw-checkout-form select {
    -webkit-appearance: none;
    appearance: none;
    padding: 10px 15px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 19px;
    background: white;
    color: black;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23555' viewBox='0 0 320 512'><path d='M143 352l-137-136c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L160 286.1l120.1-120.1c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-137 136c-9.4 9.4-24.6 9.4-33.9 0z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.8em center;
    background-size: 0.8em;
}

.ocw-checkout-form label {
    color: black;
}

.ocw-checkout-table-div {
    border: 1px solid #e2e2e2;
    margin-bottom: 20px;
    border-radius: 8px;
    padding: 10px;
}

.ocw-checkout-table-div table {
    margin: 0;
}

.ocw-checkout-table-div th,
.ocw-checkout-table-div td {
    background: none !important;
    padding: 10px;
    border: none;
    text-align: left;
}

.ocw-checkout-btns {
    text-align: right;
    column-gap: 20px;
}

.ocw-checkout-btns button {
    padding: 8px 25px !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    margin: 0 6px !important;
}

.ocw-checkout-cancel-btn,
.ocw-checkout-cancel-btn:hover,
.ocw-checkout-cancel-btn:focus {
    background: #f4f4f4 !important;
    color: black !important;
}

.ocw-checkout-process-btn,
.ocw-checkout-process-btn:hover,
.ocw-checkout-process-btn:focus {
    background: var(--ocw-cta-bg-color) !important;
    color: var(--ocw-cta-color) !important;
}
.ocw-checkout-process-btn:disabled {
    opacity: 0.6;
}
.ocw-checkout-process-btn .ocw-loader div{
    background: var(--ocw-cta-color) !important;
}

.ocw-checkout-form .error {
    color: #fa896b !important;
    font-size: 12px;
    margin-top: 5px;
}

p.error-message {
    color: #fa896b;
}

ol {
    padding-left: 20px;
}

.ocw-save-card-input {
    margin-top: -6px;
    margin-bottom: 20px;
    label {
        margin-bottom: 0px;
    }
}

.save-omise-card-options {
    padding-bottom: 20px;
    label {
        color: #000;
    }
}

.save-omise-card-option {
    border: 1px solid rgba(215, 215, 215, 1);
    border-radius: 8px;
    cursor: pointer;
    padding: 12px 24px;
}

.save-omise-card-active-option {
    background: #e5ecf9;
}

.save-omise-card-option:hover {
    background: #e5ecf9;
}

.ocw-qr-code {
    width: 270px;
    height: 270px;
    background-color: #f7f7f7;
    background-image: url('../../images/pay_now.gif');
    background-size: cover;
    border: 1px solid #e2e2e2;
    background-repeat: no-repeat;
    background-position: center;
    margin: 20px 0px;
    cursor: pointer;
}

.checkout-loading{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
}

.ocw-disabled button:last-child {
    background: #eee !important;
    color: #b7b7b7 !important;
}

.payment-method-details a{
    color: var(--ocw-pri-color) !important;
}

@media(max-width: 767px) {
    .ocw-row.ocw-checkout-container{
        display: flex;
        box-sizing: border-box;
        flex-direction: column-reverse;
    }

    .ocw-row.ocw-checkout-container > .ocw-col{
        width: 100%;
    }

    .ocw-checkout-table-div th,
    .ocw-checkout-table-div td {
        padding: 6px;
    }
}

.cart-expiry-countdown {
    font-size: 13px;
}

.transaction-timeout {
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.transaction-timeout .timeout-text {
    margin-top: 16px;
}

.checkout-browse-schedule-button {
    margin-top: 16px;
    background: var(--ocw-cta-bg-color) !important;
    color: var(--ocw-cta-color) !important;
    border: none;
}

/* Cart Table  */

.ocw-cart-container{
    font-size: 14px;
}

.ocw-cart-title{
    font-weight: 600;
}

.ocw-cart-table-div{
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.ocw-cart-total-main-div{
    display: flex;
    justify-content: right;
    background: #f7f7f7;
    border-radius: 6px;
    margin: 15px 0;
}

.ocw-cart-total-div{
    margin: 10px 0;
    max-width: 400px;
    width: 100%;
    border-radius: 5px;
}

.ocw-cart-total-div > table td{
    text-align: right;
}

.ocw-cart-table{
    margin: 0px;
    font-size: 14px;
}

.ocw-cart-table th,
.ocw-cart-table td{
    background: none !important;
    padding: 15px;
    border: none;
    text-align: left;
}

.ocw-cart-items th{
    background: #f7f7f7 !important;
}

.ocw-cart-items tr th:first-child,
.ocw-cart-items tr td:first-child{
    text-align: left;
}

.ocw-cart-items tr th:not(:first-child),
.ocw-cart-items tr td:not(:first-child){
    text-align: center;
}

.ocw-cart-total td{
    font-weight: 600;
}

.ocw-cart-table tr:last-child{
    border: none;
}

.ocw-cart-table tr td:first-child > div{
    white-space: pre-wrap;
}

.ocw-cart-table tr td:first-child p{
    margin-bottom: 0px !important;
}

.ocw-cart-item-title{
    font-weight: 600;
    font-size: 14px;
}

.ocw-checkout-div{
    text-align: right;
    display: flex;
    justify-content: right;
    column-gap: 20px;
}

@media(max-width: 767px) {
    .transaction-timeout .timeout-text {
        text-align: center !important;
    }
}