/* ==========================================================
   TradesMint LearnPress Manual Checkout
   Version 1.5
   ========================================================== */


/* ==========================================================
   PAYMENT INFORMATION HEADING
   ========================================================== */

.tm-payment-information {
    margin: 26px 0 20px;
}

.tm-payment-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tm-payment-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;
    flex: 0 0 54px;

    border-radius: 12px;

    background: #eef4ff;
    color: #2463eb;
}

.tm-payment-heading-icon svg {
    width: 26px;
    height: 26px;
}

.tm-payment-heading h3 {
    margin: 0 !important;
    padding: 0 !important;

    color: #151515;

    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
}

.tm-payment-subtitle {
    margin: 8px 0 0 68px;

    color: #656565;

    font-size: 15px;
    line-height: 1.5;
}


/* ==========================================================
   PAYMENT CONTAINER
   ========================================================== */

.tm-manual-payment-option {
    overflow: hidden;

    margin-top: 18px !important;
    padding: 0 !important;

    border: 1px solid #2463eb !important;
    border-radius: 12px !important;

    background: #f8fbff !important;

    box-shadow: none !important;
}


/* Hide LearnPress Offline Payment's original presentation */
.tm-manual-payment-option > img,
.tm-manual-payment-option label,
.tm-manual-payment-option > label,
.tm-manual-payment-option .gateway-icon,
.tm-manual-payment-option .payment-method-image,
.tm-manual-payment-option .payment-method-description,
.tm-manual-payment-option .payment_method_description,
.tm-manual-payment-option .description {
    display: none !important;
}


/* ==========================================================
   PAYMENT METHOD ROW
   ========================================================== */

.tm-payment-custom-row {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 22px 24px;

    background: #fff;
}


/* Real LearnPress gateway radio */
.tm-payment-custom-row input[type="radio"] {
    position: relative !important;

    display: block !important;

    appearance: none;
    -webkit-appearance: none;

    width: 21px;
    height: 21px;
    flex: 0 0 21px;

    margin: 0 !important;

    border: 2px solid #2463eb;
    border-radius: 50%;

    background: #fff;

    opacity: 1 !important;
    visibility: visible !important;

    cursor: pointer;
}

.tm-payment-custom-row input[type="radio"]:checked::after {
    content: "";

    position: absolute;

    inset: 4px;

    border-radius: 50%;

    background: #2463eb;
}


/* Payment method name */
.tm-payment-method-name {
    color: #151515;

    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;

    white-space: nowrap;
}


/* ==========================================================
   VISA + MASTERCARD
   ========================================================== */

.tm-payment-brands {
    display: inline-flex;
    align-items: center;

    gap: 7px;
}

.tm-card-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 27px;
    min-width: 43px;

    border: 1px solid #e0e4eb;
    border-radius: 4px;

    background: #fff;
}


/* VISA */
.tm-card-visa {
    padding: 0 7px;

    border-color: #164a9b;

    background: #164a9b;

    color: #fff;

    font-size: 13px;
    font-style: italic;
    font-weight: 800;
}


/* Mastercard */
.tm-card-mastercard {
    position: relative;

    width: 43px;
    min-width: 43px;
}

.tm-card-mastercard::before,
.tm-card-mastercard::after {
    content: "";

    position: absolute;

    top: 5px;

    width: 16px;
    height: 16px;

    border-radius: 50%;
}

.tm-card-mastercard::before {
    left: 8px;

    background: #eb001b;
}

.tm-card-mastercard::after {
    right: 8px;

    background: #f79e1b;
}


/* ==========================================================
   LOWER PAYMENT AREA
   ========================================================== */

.tm-payment-manual-content {
    padding: 0 24px 24px;
}

.tm-payment-divider {
    height: 1px;

    margin-bottom: 20px;

    background: #dce5f3;
}


/* Stripe visual badge */
.tm-stripe-visual {
    display: flex;
    justify-content: center;

    margin-bottom: 14px;
}

.tm-stripe-badge {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 7px 13px;

    border: 1px solid #adb5c3;
    border-radius: 8px;

    background: #fff;

    color: #8e97a8;

    font-size: 13px;
    font-weight: 600;
}

.tm-stripe-word {
    color: #635bff;

    font-size: 21px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: -0.7px;
}


/* Checkout payment explanation */
.tm-manual-payment-note {
    width: 100%;
    max-width: none;

    margin: 0 auto;

    color: #454545;

    font-size: 15px;
    line-height: 1.6;

    text-align: center;

    white-space: nowrap;
}


/* ==========================================================
   ORDER RECEIVED NOTICE
   ========================================================== */

.tm-payment-pending-message {
    padding: 14px 18px;

    margin: 18px 0 22px;

    border: 1px solid #d9e6ff;
    border-radius: 8px;

    background: #f6f9ff;

    color: #333;

    font-size: 15px;
    line-height: 1.6;
}


/* ==========================================================
   SUBMIT PROTECTION
   ========================================================== */

#learn-press-checkout button.tm-order-submitting,
.learn-press-checkout button.tm-order-submitting {
    opacity: 0.65;
    pointer-events: none;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

    .tm-manual-payment-note {
        white-space: normal;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .tm-payment-information {
        margin-top: 20px;
    }

    .tm-payment-heading {
        gap: 11px;
    }

    .tm-payment-heading-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;

        border-radius: 10px;
    }

    .tm-payment-heading-icon svg {
        width: 23px;
        height: 23px;
    }

    .tm-payment-heading h3 {
        font-size: 21px;
    }

    .tm-payment-subtitle {
        margin: 8px 0 0;

        font-size: 14px;
    }

    .tm-payment-custom-row {
        flex-wrap: wrap;

        gap: 10px;

        padding: 18px;
    }

    .tm-payment-method-name {
        font-size: 15px;
    }

    .tm-payment-brands {
        width: 100%;

        margin-left: 31px;
    }

    .tm-payment-manual-content {
        padding: 0 18px 20px;
    }

    .tm-payment-divider {
        margin-bottom: 18px;
    }

    .tm-manual-payment-note {
        font-size: 14px;
        line-height: 1.55;

        white-space: normal;
    }

    .tm-payment-pending-message {
        padding: 12px 14px;

        font-size: 14px;
    }
}