/* ── Product Landing Page ───────────────────────────────────────────── */

.cf-lp-wrap {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    width: 100% !important;
    max-width: 1200px;
    margin: 40px auto;
    box-sizing: border-box;
}

/* ── Left column ──────────────────────────────────────────────────── */
.cf-lp-content {
    flex: 1 1 0;
    min-width: 0;
}

/* ── Product summary card ─────────────────────────────────────────── */
.cf-lp-product-card {
    background: #fff !important;
    border-radius: 24px !important;
    box-shadow: 0 4px 40px rgba(0,0,0,.08) !important;
    padding: 28px 32px 36px !important;
    margin-bottom: 28px !important;
    border: none !important;
}

.cf-lp-product-card-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 20px !important;
    line-height: 1.2 !important;
}

.cf-lp-product-card-row {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.cf-lp-product-card-img {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.cf-lp-product-card-price-light {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

/* Зачеркнута (стара) ціна — сіра */
.cf-lp-product-card-price-light del,
.cf-lp-product-card-price-light del * {
    color: #b8b8b8 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
}
.cf-lp-product-card-price-light del {
}
/* Актуальна ціна — велика, темна */
.cf-lp-product-card-price-light ins {
    text-decoration: none !important;
}
.cf-lp-product-card-price-light ins,
.cf-lp-product-card-price-light ins * {
    color: #1a1a1a !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

/* Якщо тільки одна ціна (без акції) */
.cf-lp-product-card-price-light > .woocommerce-Price-amount,
.cf-lp-product-card-price-light > .woocommerce-Price-amount * {
    color: #1a1a1a !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}
.cf-lp-content{
    width: 100% !important;
}
.cf-lp-thumb {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.cf-lp-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.cf-lp-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    line-height: 1.3;
}

.cf-lp-short-desc {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
}

.cf-lp-price-mobile {
    display: none;
    font-size: 24px;
    font-weight: 700;
    color: #FE152D;
    margin-bottom: 20px;
}

.cf-lp-full-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

.cf-lp-full-desc p {
    margin: 0 0 14px;
}

/* ── Right column ─────────────────────────────────────────────────── */
.cf-lp-checkout-col {
    width: 420px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
}
#order_review_heading{
    display: none;
}
.cf-lp-checkout-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 28px 11px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    overflow-y: auto;
    max-height: calc(100vh - 48px);

    /* Styled scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #FE152D #f5f5f5;
}

.cf-lp-checkout-card::-webkit-scrollbar       { width: 5px; }
.cf-lp-checkout-card::-webkit-scrollbar-track  { background: #f5f5f5; border-radius: 3px; }
.cf-lp-checkout-card::-webkit-scrollbar-thumb  { background: #FE152D; border-radius: 3px; }

/* Price in card */
.cf-lp-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Зачеркнута — сіра */
.cf-lp-price del,
.cf-lp-price del * {
    color: #b8b8b8 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
}

/* Актуальна — червона */
.cf-lp-price ins {
    text-decoration: none !important;
}
.cf-lp-price ins,
.cf-lp-price ins * {
    color: #FE152D !important;
    font-size: 26px !important;
    font-weight: 800 !important;
}

/* Якщо одна ціна без акції */
.cf-lp-price > .woocommerce-Price-amount,
.cf-lp-price > .woocommerce-Price-amount * {
    color: #FE152D !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

/* Already purchased */
.cf-lp-owned-msg {
    font-size: 16px;
    color: #333;
    text-align: center;
    margin-bottom: 16px;
}

.cf-lp-course-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #FE152D;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    box-sizing: border-box;
    transition: background .2s;
}

.cf-lp-course-btn:hover { background: #d4001e; color: #fff; }

/* ── 2-step indicator ─────────────────────────────────────────────── */
.cf-lp-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
}

.cf-lp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cf-lp-step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s, color .25s;
}

.cf-lp-step-lbl {
    font-size: 11px;
    color: #aaa;
    font-weight: 500;
    transition: color .25s;
}

.cf-lp-step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 8px;
    margin-bottom: 16px;
    transition: background .3s;
}

.cf-lp-step.cf-lp-step-active .cf-lp-step-dot  { background: #FE152D; color: #fff; }
.cf-lp-step.cf-lp-step-active .cf-lp-step-lbl  { color: #FE152D; }
.cf-lp-step.cf-lp-step-done   .cf-lp-step-dot  { background: #28a745; color: #fff; }
.cf-lp-step.cf-lp-step-done   .cf-lp-step-lbl  { color: #28a745; }
.cf-lp-line-done { background: #28a745 !important; }

/* ── Continue / Back buttons ──────────────────────────────────────── */
.cf-lp-continue-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    background: #FE152D;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s;
}

.cf-lp-continue-btn:hover { background: #d4001e; }

.cf-lp-back-btn {
    display: block;
    margin-bottom: 20px;
    background: none;
    border: none;
    color: #FE152D;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.cf-lp-back-btn:hover { text-decoration: underline; }

/* ── Error state ──────────────────────────────────────────────────── */
.cf-lp-err {
    display: none;
    background: #fff0f0;
    border: 1px solid #FE152D;
    color: #c0001e;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 6px;
    margin-top: 12px;
}

.cf-lp-err.cf-lp-err-visible { display: block; }

.cf-lp-field-err input,
.cf-lp-field-err select {
    border-color: #FE152D !important;
}

/* ── WC checkout: скидаємо 2-колонковий layout ───────────────────── */
/*
 * WooCommerce за замовчуванням: #customer_details float:left 49%,
 * #order_review float:right 48%. Скидаємо щоб кожен крок займав 100%.
 */
.cf-lp-checkout-card .woocommerce-checkout,
.cf-lp-checkout-card .woocommerce-checkout::after {
    display: block !important;
    clear: both !important;
}

.cf-lp-checkout-card #customer_details,
.cf-lp-checkout-card .col2-set {
    float: none !important;
    width: 100% !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

.cf-lp-checkout-card .col2-set .col-1,
.cf-lp-checkout-card .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    margin-right: 0 !important;
    padding: 0 !important;
}

.cf-lp-checkout-card #order_review_heading,
.cf-lp-checkout-card #order_review {
    float: none !important;
    width: 100% !important;
    clear: both !important;
    box-sizing: border-box !important;
}

/* ── WC: billing form fields ──────────────────────────────────────── */
.cf-lp-checkout-card .woocommerce-checkout h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
}
.cf-lp-checkout-card .form-row {
    margin-bottom: 12px;
}
.cf-lp-checkout-card label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #666 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    margin-bottom: 4px !important;
    display: block !important;
}
.cf-lp-checkout-card label .required { color: #FE152D !important; }
.cf-lp-checkout-card .input-text,
.cf-lp-checkout-card select {
    width: 100% !important;
    height: 44px !important;
    padding: 0 12px !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #1a1a1a !important;
    background: #fafafa !important;
    box-sizing: border-box !important;
    transition: border-color .2s !important;
    outline: none !important;
}
.cf-lp-checkout-card .input-text:focus,
.cf-lp-checkout-card select:focus {
    border-color: #FE152D !important;
    background: #fff !important;
}

/* ── WC: order review table ───────────────────────────────────────── */
.cf-lp-checkout-card .woocommerce-checkout-review-order-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 16px !important;
    border: none !important;
}
.cf-lp-checkout-card .woocommerce-checkout-review-order-table thead {
    display: none !important;
}
.cf-lp-checkout-card .woocommerce-checkout-review-order-table tbody tr {
    border-bottom: 1px solid #f0f0f0 !important;
}
.cf-lp-checkout-card .woocommerce-checkout-review-order-table td {
    padding: 10px 0 !important;
    font-size: 14px !important;
    color: #333 !important;
    border: none !important;
    background: none !important;
    vertical-align: middle !important;
}
.cf-lp-checkout-card .woocommerce-checkout-review-order-table .product-name {
    font-weight: 500 !important;
    line-height: 1.4 !important;
}
.cf-lp-checkout-card .woocommerce-checkout-review-order-table .product-quantity {
    color: #999 !important;
    font-weight: 400 !important;
}
.cf-lp-checkout-card .woocommerce-checkout-review-order-table .product-total {
    text-align: right !important;
    white-space: nowrap !important;
    font-weight: 600 !important;
}

/* Subtotal row — hide */
.cf-lp-checkout-card .woocommerce-checkout-review-order-table .cart-subtotal {
    display: none !important;
}

/* Total row */
.cf-lp-checkout-card .woocommerce-checkout-review-order-table .order-total {
    border-top: 2px solid #1a1a1a !important;
}
.cf-lp-checkout-card .woocommerce-checkout-review-order-table .order-total th,
.cf-lp-checkout-card .woocommerce-checkout-review-order-table .order-total td {
    padding-top: 14px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
}
.cf-lp-checkout-card .woocommerce-checkout-review-order-table .order-total td {
    text-align: right !important;
}
.cf-lp-checkout-card .order-total .woocommerce-Price-amount { color: #FE152D !important; }
#payment{
    box-shadow: none !important;
    padding: 0 !important;
}
/* ── WC: payment section ──────────────────────────────────────────── */
.cf-lp-checkout-card #payment {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Payment methods list */
.cf-lp-checkout-card .wc_payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 16px !important;
}
.cf-lp-checkout-card .wc_payment_method {
    display: block !important;
    background: #f7f7f7 !important;
    border: 1.5px solid #e8e8e8 !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    margin-bottom: 8px !important;
    overflow: hidden !important;
}
.cf-lp-checkout-card .wc_payment_method label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    cursor: pointer !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    float: none !important;
    margin: 0 !important;
}
.cf-lp-checkout-card .wc_payment_method label img {
    height: 28px !important;
    width: auto !important;
    margin-left: auto !important;
    vertical-align: middle !important;
    display: inline-block !important;
    float: none !important;
}
.cf-lp-checkout-card .payment_box {
    display: block !important;
    clear: both !important;
    float: none !important;
    width: 100% !important;
    font-size: 12px !important;
    color: #888 !important;
    margin: 6px 0 0 0 !important;
    padding: 0 !important;
    background: none !important;
    position: static !important;
}
.cf-lp-checkout-card .payment_box p { margin: 0 !important; }
.cf-lp-checkout-card .payment_box::before,
.cf-lp-checkout-card .payment_box::after { display: none !important; }

/* Privacy policy text */
.cf-lp-checkout-card .woocommerce-privacy-policy-text {
    font-size: 11px !important;
    color: #aaa !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
    text-align: center !important;
}
.cf-lp-checkout-card .woocommerce-privacy-policy-text a {
    color: #888 !important;
    text-decoration: underline !important;
}
.cf-lp-checkout-card .woocommerce-terms-and-conditions-wrapper { margin-bottom: 4px !important; }

/* Place order button */
.cf-lp-checkout-card #place_order {
    display: block !important;
    width: 100% !important;
    padding: 15px !important;
    background: #FE152D !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background .2s !important;
    letter-spacing: .02em !important;
    box-sizing: border-box !important;
}
.cf-lp-checkout-card #place_order:hover { background: #d4001e !important; }

/* noscript update button — hide */
.cf-lp-checkout-card .woocommerce_checkout_update_totals { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════
   IP Landing Page  /ip/{token}/
   ═══════════════════════════════════════════════════════════════════ */

/* Заголовок IP сторінки (над картками курсів) */
.cf-lp-page-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 24px;
    line-height: 1.2;
}

/* ── IP Landing grid (unused legacy, kept for reference) ── */
.cf-ip-wrap {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.cf-ip-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 32px;
    line-height: 1.2;
    text-align: center;
}

.cf-ip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.cf-ip-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(0,0,0,.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}

.cf-ip-card:hover {
    box-shadow: 0 8px 40px rgba(0,0,0,.13);
    transform: translateY(-2px);
}

.cf-ip-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.cf-ip-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
}

.cf-ip-card-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cf-ip-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 12px;
    flex: 1;
}

.cf-ip-card-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.cf-ip-card-price del,
.cf-ip-card-price del * {
    color: #b8b8b8 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
}

.cf-ip-card-price ins {
    text-decoration: none !important;
}

.cf-ip-card-price ins,
.cf-ip-card-price ins * {
    color: #FE152D !important;
    font-size: 22px !important;
    font-weight: 800 !important;
}

.cf-ip-card-price > .woocommerce-Price-amount,
.cf-ip-card-price > .woocommerce-Price-amount * {
    color: #FE152D !important;
    font-size: 22px !important;
    font-weight: 800 !important;
}

.cf-ip-btn {
    display: block;
    text-align: center;
    background: #FE152D;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background .2s;
    box-sizing: border-box;
}

.cf-ip-btn:hover { background: #d4001e; }

.cf-ip-btn-owned {
    background: #28a745;
}

.cf-ip-btn-owned:hover { background: #1e7e34; }

@media (max-width: 640px) {
    .cf-ip-page-title { font-size: 22px; margin-bottom: 22px; }
    .cf-ip-grid { grid-template-columns: 1fr; gap: 18px; }
    .cf-ip-wrap { margin: 24px auto; padding: 0 14px; }
}

/* ── Mobile ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .cf-lp-wrap {
        flex-direction: column;
        gap: 24px;
        margin: 24px auto;
        width: 100% !important;
    }

    .cf-lp-checkout-col {
        width: 100%;
        position: static;
    }

    .cf-lp-checkout-card {
        max-height: none;
    }

    .cf-lp-price-mobile { display: block; }
    .cf-lp-price        { display: none; }
}
