/*
 * Lite Cart & Checkout for WooCommerce — Frontend Styles
 * Version: 1.0.0  |  Lightweight & fully responsive
 */

/* ─── Base ──────────────────────────────────────────────────── */
.lcc-cart-wrap *,
.lcc-checkout-wrap * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.lcc-cart-wrap,
.lcc-checkout-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #1a1a1a;
}

/* ─── Cart Wrapper ──────────────────────────────────────────── */
.lcc-cart-inner {
    max-width: 560px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

/* ─── Cart Item ─────────────────────────────────────────────── */
.lcc-cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f2f2f2;
}
.lcc-cart-item:first-child { padding-top: 0; }

.lcc-item-thumb {
    flex-shrink: 0;
}
.lcc-item-thumb img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: #f5f5f5;
}

.lcc-item-info {
    flex: 1;
    min-width: 0;
}

.lcc-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Prices */
.lcc-item-pricing {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.lcc-price-original {
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
}

.lcc-price-sale {
    font-size: 14px;
    font-weight: 700;
    color: #ff6600;
}

/* Qty control */
.lcc-qty-ctrl {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #fafafa;
}

.lcc-qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #555;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}
.lcc-qty-btn:hover { background: #efefef; }
.lcc-qty-btn:active { background: #e0e0e0; }

.lcc-qty-num {
    min-width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    line-height: 30px;
}

/* Right side of cart item */
.lcc-item-end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.lcc-item-line-total {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.lcc-remove-item {
    background: none;
    border: none;
    color: #c0c0c0;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color .15s, background .15s;
}
.lcc-remove-item:hover {
    color: #e33;
    background: #fff0f0;
}

/* ─── Empty State ───────────────────────────────────────────── */
.lcc-empty-state {
    text-align: center;
    padding: 36px 20px;
    color: #aaa;
}
.lcc-empty-icon {
    display: block;
    font-size: 40px;
    margin-bottom: 10px;
}
.lcc-empty-state p {
    font-size: 15px;
}

/* ─── Coupon Box ────────────────────────────────────────────── */
.lcc-coupon-box {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}
.lcc-coupon-box .lcc-input {
    flex: 1;
}

/* ─── Inputs ────────────────────────────────────────────────── */
.lcc-input {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    color: #111;
    background: #fff;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    -webkit-appearance: none;
}
.lcc-input:focus {
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255,102,0,.10);
}
.lcc-input::placeholder { color: #bbb; }

.lcc-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 34px;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.lcc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .18s, color .18s, box-shadow .18s;
    white-space: nowrap;
    line-height: 1.4;
}

.lcc-btn-primary {
    background: #ff6600;
    color: #fff;
}
.lcc-btn-primary:hover, .lcc-btn-primary:focus {
    background: #e55a00;
    box-shadow: 0 2px 8px rgba(255,102,0,.25);
    color: #fff;
}
.lcc-btn-primary:active { background: #cc5200; }
.lcc-btn-primary:disabled {
    background: #ffb380;
    cursor: not-allowed;
}

.lcc-btn-outline {
    background: #fff;
    color: #ff6600;
    border: 1.5px solid #ff6600;
}
.lcc-btn-outline:hover, .lcc-btn-outline:focus {
    background: #fff5ee;
    color: #ff6600;
}

.lcc-btn-full {
    display: flex;
    width: 100%;
    margin-top: 18px;
    padding: 13px 20px;
    font-size: 15px;
}

/* ─── Totals ────────────────────────────────────────────────── */
.lcc-cart-totals,
.lcc-totals {
    margin-top: 18px;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
}

.lcc-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 14px;
    color: #333;
    gap: 12px;
}
.lcc-totals-row em { font-style: normal; }

.lcc-row-discount {
    color: #ff6600;
    font-weight: 500;
}

.lcc-row-coupon {
    color: #888;
    font-size: 13px;
}

.lcc-row-total {
    border-top: 1px solid #e8e8e8;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

/* Remove coupon inside totals */
.lcc-remove-coupon {
    background: none;
    border: none;
    color: #c0c0c0;
    cursor: pointer;
    font-size: 11px;
    padding: 1px 3px;
    border-radius: 3px;
    margin-left: 4px;
    transition: color .15s;
}
.lcc-remove-coupon:hover { color: #e33; }

/* ─── Messages ──────────────────────────────────────────────── */
.lcc-msg {
    font-size: 13px;
    min-height: 20px;
    margin-top: 6px;
    font-weight: 500;
}
.lcc-msg.lcc-success { color: #ff6600; }
.lcc-msg.lcc-error   { color: #d32f2f; }

/* ─── Spinner ───────────────────────────────────────────────── */
.lcc-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lcc-spin .65s linear infinite;
    flex-shrink: 0;
}

@keyframes lcc-spin {
    to { transform: rotate(360deg); }
}

/* ─── Checkout Layout ───────────────────────────────────────── */
.lcc-checkout-wrap {
    width: 100%;
}

.lcc-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 28px;
    align-items: start;
}

.lcc-billing-section,
.lcc-order-summary {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.lcc-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
}

/* ─── Form ──────────────────────────────────────────────────── */
.lcc-form-group {
    margin-bottom: 16px;
}

.lcc-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.lcc-req { color: #e33; margin-left: 2px; }

.lcc-form-row {
    display: flex;
    gap: 14px;
}
.lcc-two-col > .lcc-form-group {
    flex: 1;
    min-width: 0;
}

/* ─── Order Items (Editable) ────────────────────────────────── */
.lcc-oi-list { margin-bottom: 4px; }

.lcc-oi-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: 14px;
    transition: opacity .2s;
}

/* Left: thumb + meta */
.lcc-oi-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.lcc-oi-thumb {
    flex-shrink: 0;
}
.lcc-oi-thumb img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    background: #f5f5f5;
}

.lcc-oi-meta {
    flex: 1;
    min-width: 0;
}

.lcc-oi-name {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    margin-bottom: 3px;
    line-height: 1.35;
}

.lcc-oi-unit-price {
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

/* Qty controls inside order summary */
.lcc-oi-qty-ctrl {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    background: #fafafa;
}
.lcc-oi-qty-ctrl .lcc-qty-btn {
    width: 26px;
    height: 26px;
    font-size: 15px;
}
.lcc-oi-qty-ctrl .lcc-qty-num {
    min-width: 24px;
    font-size: 13px;
    line-height: 26px;
}

/* Right: total + remove */
.lcc-oi-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.lcc-oi-line-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.lcc-oi-reg-total {
    font-size: 11px;
}

.lcc-oi-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
    transition: color .15s, background .15s;
}
.lcc-oi-remove:hover {
    color: #e33;
    background: #fff0f0;
}

/* ─── Responsive: Tablet ────────────────────────────────────── */
@media (max-width: 860px) {
    .lcc-checkout-grid {
        grid-template-columns: 1fr;
    }

    .lcc-order-summary {
        order: -1; /* Summary on top on small screens */
    }
}

/* ─── Responsive: Mobile ────────────────────────────────────── */
@media (max-width: 540px) {
    .lcc-cart-inner,
    .lcc-billing-section,
    .lcc-order-summary {
        padding: 18px 16px;
        border-radius: 10px;
    }

    .lcc-form-row {
        flex-direction: column;
        gap: 0;
    }

    .lcc-item-thumb img {
        width: 54px;
        height: 54px;
    }

    .lcc-btn-full {
        font-size: 14px;
    }

    .lcc-checkout-grid {
        gap: 18px;
    }
}

@media (max-width: 380px) {
    .lcc-cart-inner,
    .lcc-billing-section,
    .lcc-order-summary {
        padding: 14px 12px;
    }

    .lcc-coupon-box {
        flex-direction: column;
    }

    .lcc-coupon-box .lcc-btn {
        width: 100%;
    }

    .lcc-oi-thumb img {
        width: 42px;
        height: 42px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Payment Methods  — v1.1.0
═══════════════════════════════════════════════════════════════ */

.lcc-payment-section {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 2px solid #f0f0f0;
}

.lcc-payment-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-bottom: 14px;
}

.lcc-payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lcc-payment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 9px;
    cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s;
    background: #fff;
    user-select: none;
}

.lcc-payment-option:hover {
    border-color: #ff6600;
    background: #fff8f3;
}

.lcc-payment-option.lcc-payment-selected {
    border-color: #ff6600;
    background: #fff5ee;
    box-shadow: 0 0 0 3px rgba(255,102,0,.10);
}

.lcc-payment-radio-wrap {
    padding-top: 2px;
    flex-shrink: 0;
}

.lcc-payment-radio {
    width: 18px;
    height: 18px;
    accent-color: #ff6600;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.lcc-payment-info {
    flex: 1;
    min-width: 0;
}

.lcc-payment-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    flex-wrap: wrap;
}

.lcc-payment-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.lcc-payment-icon img {
    max-height: 22px;
    width: auto;
    border-radius: 3px;
    vertical-align: middle;
}

.lcc-payment-desc {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.55;
}
.lcc-payment-desc p {
    margin: 0;
}
.lcc-payment-desc a {
    color: #ff6600;
    text-decoration: underline;
}

.lcc-no-gateway-notice {
    margin-top: 20px;
    padding: 14px 16px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    font-size: 14px;
    color: #7a5200;
}

/* ═══════════════════════════════════════════════════════════════
   Terms & Conditions  — v1.1.0
═══════════════════════════════════════════════════════════════ */

.lcc-terms-row {
    margin-top: 22px;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.lcc-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.lcc-terms-check {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: #ff6600;
    cursor: pointer;
    flex-shrink: 0;
}

.lcc-terms-text {
    flex: 1;
}

.lcc-tc-link {
    color: #ff6600;
    font-weight: 600;
    text-decoration: underline;
}
.lcc-tc-link:hover {
    color: #e55a00;
}

/* ═══════════════════════════════════════════════════════════════
   Order Success / Thank-You compatibility  — v1.1.0
═══════════════════════════════════════════════════════════════ */

/* Pulse animation for success message */
@keyframes lcc-pulse-green {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.03); }
    100% { transform: scale(1); }
}

#lcc-order-msg.lcc-success {
    font-size: 14px;
    padding: 10px 14px;
    background: #fff5ee;
    border: 1px solid #ffcc99;
    border-radius: 7px;
    animation: lcc-pulse-green .5s ease;
}

#lcc-order-msg.lcc-error {
    font-size: 14px;
    padding: 10px 14px;
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 7px;
}

/* ─── Mobile adjustments for new sections ────────────────────── */
@media (max-width: 540px) {
    .lcc-payment-option {
        padding: 12px 13px;
    }
    .lcc-terms-row {
        padding: 12px 13px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   v1.2.0 — Edit Cart button, qty label, summary header
═══════════════════════════════════════════════════════════════ */

/* Summary header: title + edit cart button side by side */
.lcc-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    gap: 10px;
}
.lcc-summary-header .lcc-section-title {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    flex: 1;
}

/* Edit Cart button */
.lcc-btn-edit-cart {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    background: #fff;
    color: #ff6600;
    border: 1.5px solid #ff6600;
    border-radius: 7px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s, color .18s;
    flex-shrink: 0;
}
.lcc-btn-edit-cart:hover,
.lcc-btn-edit-cart:focus {
    background: #fff5ee;
    color: #e55a00;
    text-decoration: none;
}

/* Divider line under summary header */
.lcc-summary-header + #lcc-order-items {
    border-top: 2px solid #f0f0f0;
    padding-top: 4px;
    margin-top: 16px;
}

/* Qty label (replaces +/- controls) */
.lcc-item-qty-label,
.lcc-oi-qty-label {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}
.lcc-item-qty-label strong,
.lcc-oi-qty-label strong {
    color: #111;
}

/* ── v1.5.0 Additions ─────────────────────────────────────────────────── */

/* Locked email field */
.lcc-email-locked {
    background-color: #f3f4f6 !important;
    cursor: not-allowed !important;
    color: #374151 !important;
    border-color: #d1d5db !important;
    user-select: none;
}

.lcc-email-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.02em;
}

.lcc-field-hint {
    font-size: 12px;
    color: #6b7280;
    margin: 4px 0 0;
    line-height: 1.4;
}

/* Processing button state */
.lcc-btn.lcc-processing {
    opacity: 0.85;
    cursor: wait;
}

/* Error / success messages */
#lcc-order-msg.lcc-error {
    padding: 10px 14px;
    border-radius: 6px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 14px;
}
#lcc-order-msg.lcc-success {
    padding: 10px 14px;
    border-radius: 6px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   v1.5.1 — Course Enrollment + Payment Return Page Styles
═══════════════════════════════════════════════════════════════ */

/* ── Enroll Now button ───────────────────────────────────────── */
.lcc-enroll-btn {
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    padding: 14px 20px !important;
}

/* Trust note below enroll button */
.lcc-enroll-trust-note {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    margin-top: 10px;
    padding: 0 4px;
}

/* ── Payment Return Notice (cancel / fail / pending) ─────────── */
.lcc-payment-return-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    border: 1.5px solid transparent;
}

.lcc-notice-warning {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #78350f;
}

.lcc-notice-error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #7f1d1d;
}

.lcc-notice-info {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e3a5f;
}

.lcc-prn-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.lcc-prn-content {
    flex: 1;
}

.lcc-prn-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.lcc-prn-msg {
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
}

/* ── Order-Pay Page Wrapper & Grid ───────────────────────────── */
.lcc-order-pay-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.lcc-order-pay-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 680px) {
    .lcc-order-pay-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Box card used in order-pay columns ──────────────────────── */
.lcc-op-box {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    margin-bottom: 16px;
}
.lcc-op-box:last-child {
    margin-bottom: 0;
}
.lcc-op-box .lcc-section-title {
    margin-bottom: 14px;
}

/* ── Course items in order-pay ───────────────────────────────── */
.lcc-op-items-list {
    margin-bottom: 16px;
}

.lcc-op-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f2f2f2;
}
.lcc-op-item-row:first-child { padding-top: 0; }
.lcc-op-item-row:last-child  { border-bottom: none; }

.lcc-op-thumb {
    flex-shrink: 0;
}
.lcc-op-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 7px;
    display: block;
    background: #f5f5f5;
}

.lcc-op-item-info {
    flex: 1;
    min-width: 0;
}
.lcc-op-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lcc-op-item-qty {
    font-size: 12px;
    color: #666;
}

.lcc-op-item-price {
    font-size: 15px;
    font-weight: 700;
    color: #ff6600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Totals block inside order-pay ───────────────────────────── */
.lcc-op-totals-block {
    border-top: 2px solid #f0f0f0;
    padding-top: 12px;
    margin-top: 4px;
}

/* ── Student details box ─────────────────────────────────────── */
.lcc-op-student-box .lcc-op-box-title {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
}

.lcc-op-detail-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.lcc-op-detail-row {
    display: flex;
    gap: 10px;
    font-size: 13.5px;
}
.lcc-op-detail-label {
    color: #6b7280;
    font-weight: 600;
    min-width: 50px;
    flex-shrink: 0;
}
.lcc-op-detail-val {
    color: #111;
    word-break: break-word;
}

.lcc-op-detail-note {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
}

/* ── WC payment form inside our order-pay box ────────────────── */
.lcc-op-wc-form .woocommerce-checkout,
.lcc-op-wc-form form#order_review {
    max-width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

/* Make WC's order-pay button look like our enroll button */
.lcc-op-wc-form #payment #place_order {
    width: 100%;
    padding: 14px 20px;
    background: #ff6600;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s;
    margin-top: 10px;
}
.lcc-op-wc-form #payment #place_order:hover {
    background: #e55a00;
}

/* ── Section title base (shared, ensure padding/margin) ──────── */
.lcc-op-payment-col .lcc-section-title {
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   v1.5.2 — Icon Contrast Fixes + Phone Country Picker
   Rule: light bg → dark icon  |  dark/orange bg → light icon
═══════════════════════════════════════════════════════════════ */

/* ── Button icons: orange bg → white icons ─────────────────── */
.lcc-btn-primary svg,
.lcc-btn-primary .lcc-icon,
.lcc-btn-primary .dashicons {
    color: #fff !important;
    fill: #fff !important;
}

/* ── Remove (✕) buttons: white bg → visible dark icon ──────── */
.lcc-remove-item,
.lcc-oi-remove {
    color: #aaa;
    font-size: 14px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    transition: color .15s, background .15s, border-color .15s;
}
.lcc-remove-item:hover,
.lcc-oi-remove:hover {
    color: #fff !important;
    background: #e33 !important;
    border-color: #e33 !important;
}

/* ── Coupon remove: light bg → visible icon ─────────────────── */
.lcc-remove-coupon {
    color: #888;
    background: #f0f0f0;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: color .15s, background .15s;
    padding: 0;
}
.lcc-remove-coupon:hover {
    color: #fff;
    background: #e33;
}

/* ── Edit Cart button icon: white bg, orange text ───────────── */
.lcc-btn-edit-cart svg,
.lcc-btn-edit-cart .lcc-icon {
    color: #ff6600;
    fill: #ff6600;
}

/* ── Email lock badge: light green bg → dark icon ───────────── */
.lcc-email-lock-badge {
    color: #166534;
}

/* ── Empty icon: white bg → neutral ─────────────────────────── */
.lcc-empty-icon {
    opacity: 0.7;
}

/* ── Payment selected checkmark / radio on orange ────────────── */
.lcc-payment-option.lcc-payment-selected .lcc-payment-radio {
    accent-color: #ff6600;
}

/* ── Spinner: always white (appears inside orange btn) ──────── */
.lcc-spinner {
    border-color: rgba(255,255,255,.35);
    border-top-color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   Phone Country Code Picker
═══════════════════════════════════════════════════════════════ */

.lcc-phone-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    border: 1px solid #ddd;
    border-radius: 7px;
    overflow: visible;
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
}
.lcc-phone-wrap:focus-within {
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255,102,0,.10);
}

.lcc-phone-flag-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px 0 12px;
    border: none;
    border-right: 1px solid #e8e8e8;
    background: #fafafa;
    cursor: pointer;
    border-radius: 7px 0 0 7px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
    height: 100%;
    min-height: 42px;
    transition: background .15s;
    user-select: none;
}
.lcc-phone-flag-btn:hover {
    background: #f0f0f0;
}
.lcc-phone-flag-btn:focus {
    outline: none;
    background: #ffe8d6;
}

.lcc-phone-flag {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
}
.lcc-phone-dialcode {
    font-size: 13px;
    font-weight: 600;
    color: #ff6600;
    letter-spacing: 0.01em;
}
.lcc-phone-arrow {
    fill: #888;
    transition: transform .2s;
    flex-shrink: 0;
}
.lcc-phone-flag-btn[aria-expanded="true"] .lcc-phone-arrow {
    transform: rotate(180deg);
}

.lcc-phone-input {
    flex: 1;
    border: none !important;
    border-radius: 0 7px 7px 0 !important;
    box-shadow: none !important;
    outline: none;
    min-width: 0;
    padding-left: 12px !important;
}
.lcc-phone-input:focus {
    border: none !important;
    box-shadow: none !important;
}

/* Dropdown */
.lcc-cc-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,.13);
    width: 300px;
    max-height: 340px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.lcc-cc-dropdown[hidden] { display: none; }

.lcc-cc-search-wrap {
    padding: 10px 10px 6px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.lcc-cc-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color .18s;
    background: #fafafa;
    color: #111;
}
.lcc-cc-search:focus {
    border-color: #ff6600;
    background: #fff;
}
.lcc-cc-search::placeholder { color: #bbb; }

.lcc-cc-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    overflow-y: auto;
    flex: 1;
}
.lcc-cc-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 13.5px;
    color: #222;
    transition: background .12s;
}
.lcc-cc-list li:hover,
.lcc-cc-list li[aria-selected="true"] {
    background: #fff5ee;
    color: #ff6600;
}
.lcc-cc-list li[aria-selected="true"] {
    font-weight: 600;
}
.lcc-cc-item-flag {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    width: 26px;
    text-align: center;
}
.lcc-cc-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lcc-cc-item-code {
    color: #888;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.lcc-cc-list li:hover .lcc-cc-item-code,
.lcc-cc-list li[aria-selected="true"] .lcc-cc-item-code {
    color: #ff6600;
}

/* Mobile adjustments */
@media (max-width: 420px) {
    .lcc-cc-dropdown {
        width: calc(100vw - 32px);
        left: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   v1.5.2 — Payment Gateway Layout Fix + Mobile Overflow Fix
   Prevents WC payment gateway forms/iframes from breaking layout
   on mobile. Hides duplicate WC billing/review fields in
   order-pay column (already shown in our custom UI).
═══════════════════════════════════════════════════════════════ */

/* ── Global: prevent horizontal overflow on all wrapper levels ── */
.lcc-checkout-wrap,
.lcc-order-pay-wrap {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Prevent ANY child from stretching the page width
   Exception: absolutely-positioned overlays (dropdowns, modals) are excluded
   so they can render at their natural width (e.g. country-code picker) */
.lcc-checkout-wrap *:not(.lcc-cc-dropdown):not(.lcc-cc-dropdown *),
.lcc-order-pay-wrap *:not(.lcc-cc-dropdown):not(.lcc-cc-dropdown *) {
    max-width: 100%;
}

/* ── Order-pay grid columns: contain their content ───────────── */
.lcc-op-summary-col,
.lcc-op-payment-col {
    min-width: 0;
    overflow: hidden;
}

/* ── WC form container: hard overflow clipping ───────────────── */
.lcc-op-wc-form {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Apply box-sizing to ALL WC-injected content */
.lcc-op-wc-form *,
.lcc-op-wc-form *::before,
.lcc-op-wc-form *::after {
    box-sizing: border-box;
}

/* ── WC checkout/order-pay form: strip WC's own layout ──────── */
.lcc-op-wc-form .woocommerce-checkout,
.lcc-op-wc-form form#order_review {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* ── HIDE: WC billing/shipping/additional fields in order-pay ── */
/* We already display student details in the left column.        */
/* These duplicate fields are what cause mobile overflow.        */
.lcc-op-wc-form .woocommerce-billing-fields,
.lcc-op-wc-form .woocommerce-shipping-fields,
.lcc-op-wc-form .woocommerce-additional-fields,
.lcc-op-wc-form .col-1,
.lcc-op-wc-form .col-2 {
    display: none !important;
}

/* ── HIDE: WC order review table in payment column ───────────── */
/* Already shown in left column. Table overflows on mobile.      */
.lcc-op-wc-form .woocommerce-checkout-review-order,
.lcc-op-wc-form table.woocommerce-checkout-review-order-table,
.lcc-op-wc-form .woocommerce-checkout-review-order-table,
.lcc-op-wc-form h3#order_review_heading,
.lcc-op-wc-form .wc-terms-and-conditions,
.lcc-op-wc-form #order_review_heading {
    display: none !important;
}

/* ── WC payment section: full-width, no border/bg ────────────── */
.lcc-op-wc-form #payment,
.lcc-op-wc-form .woocommerce-checkout-payment {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* ── WC payment methods list ─────────────────────────────────── */
.lcc-op-wc-form ul.payment_methods,
.lcc-op-wc-form .payment_methods {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 0 16px !important;
    list-style: none !important;
}

/* ── WC payment method item ──────────────────────────────────── */
.lcc-op-wc-form .wc_payment_method {
    padding: 12px 14px !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 8px !important;
    margin-bottom: 10px !important;
    background: #fff !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}
.lcc-op-wc-form .wc_payment_method input[type="radio"]:checked + label,
.lcc-op-wc-form .wc_payment_method.payment_method_selected {
    color: #ff6600 !important;
}

/* ── WC payment method description box ──────────────────────── */
.lcc-op-wc-form .payment_box {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    background: #fafafa !important;
    border-radius: 6px !important;
    padding: 10px 12px !important;
    margin-top: 10px !important;
    font-size: 13px !important;
    color: #555 !important;
}

/* ── CRITICAL: Iframes (Stripe, Razorpay embedded, etc.) ──────── */
.lcc-op-wc-form iframe,
.lcc-checkout-wrap iframe {
    max-width: 100% !important;
    width: 100% !important;
    border: none;
}

/* ── All input/select/textarea inside payment gateway forms ───── */
.lcc-op-wc-form input,
.lcc-op-wc-form input[type="text"],
.lcc-op-wc-form input[type="email"],
.lcc-op-wc-form input[type="tel"],
.lcc-op-wc-form input[type="number"],
.lcc-op-wc-form input[type="password"],
.lcc-op-wc-form select,
.lcc-op-wc-form textarea {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ── Gateway-specific containment (Razorpay, PayU, Paytm etc.) ── */
.lcc-op-wc-form [class*="razorpay"],
.lcc-op-wc-form [class*="payu"],
.lcc-op-wc-form [class*="paytm"],
.lcc-op-wc-form [class*="phonepe"],
.lcc-op-wc-form [class*="cashfree"],
.lcc-op-wc-form [class*="ccavenue"],
.lcc-op-wc-form [class*="stripe"],
.lcc-op-wc-form [class*="instamojo"],
.lcc-op-wc-form [id*="razorpay"],
.lcc-op-wc-form [id*="payu"],
.lcc-op-wc-form [id*="stripe"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* ── Order-pay mobile padding ────────────────────────────────── */
@media (max-width: 540px) {
    .lcc-order-pay-wrap {
        padding-left: 12px;
        padding-right: 12px;
    }
    .lcc-op-box {
        padding: 16px 14px;
    }
    /* Prevent iOS Safari from auto-zooming on input focus */
    .lcc-op-wc-form input,
    .lcc-op-wc-form select,
    .lcc-op-wc-form textarea {
        font-size: 16px !important;
    }
    /* payment return notice */
    .lcc-payment-return-notice {
        padding: 14px 14px;
    }
    /* order-pay grid gap */
    .lcc-order-pay-grid {
        gap: 16px;
    }
}

@media (max-width: 380px) {
    .lcc-order-pay-wrap {
        padding-left: 8px;
        padding-right: 8px;
    }
    .lcc-op-box {
        padding: 14px 12px;
    }
}
