/* ================================================================
   Lend-In Account Layout — 5-region shell
   Top / [Left | Center | Right] / Bottom
================================================================ */
.lal-shell {
    --lal-navy:   #161a4e;
    --lal-navy-2: #1f2566;
    --lal-mint:   #00d18f;
    --lal-mint-d: #00b87d;
    --lal-text:   #1e2235;
    --lal-muted:  #6b7280;
    --lal-border: #e6e8f0;
    --lal-bg:     #f6f7fb;
    --lal-radius: 16px;
    --lal-shadow: 0 1px 2px rgba(16,24,64,.05), 0 8px 24px rgba(16,24,64,.06);

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--lal-text);
    font-size: 14px;
    line-height: 1.5;
    width: 100%;
}
.lal-shell *, .lal-shell *::before, .lal-shell *::after { box-sizing: border-box; }
.lal-shell h2, .lal-shell h3, .lal-shell h4 { margin: 0; }
.lal-shell p { margin: 0; }
.lal-shell ul { margin: 0; padding: 0; list-style: none; }

/* ===== TOP ===== */
.lal-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.lal-top-text h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.lal-top-text p { color: var(--lal-muted); margin-top: 4px; }
.lal-top-secure {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--lal-border);
    border-radius: 999px; padding: 8px 16px; box-shadow: var(--lal-shadow);
}
.lal-secure-icon {
    width: 30px; height: 30px; border-radius: 50%;
    background: #e7fbf2; color: var(--lal-mint-d);
    display: grid; place-items: center; font-size: 14px;
}
.lal-top-secure strong { display: block; font-size: 12.5px; }
.lal-top-secure span { display: block; font-size: 11px; color: var(--lal-muted); }

/* ===== BODY GRID ===== */
.lal-shell .lal-body {
    display: grid !important;
    grid-template-columns: 230px minmax(0, 1fr) 290px;
    grid-template-areas: "sidebar center right";
    gap: 22px;
    align-items: start;
    float: none;
    width: 100%;
}
.lal-shell .lal-sidebar { grid-area: sidebar; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lal-shell .lal-nav    { min-width: 0; }
.lal-shell .lal-left   { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lal-shell .lal-center { grid-area: center; min-width: 0; }
.lal-shell .lal-right  { grid-area: right;  display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Neutralise WooCommerce/theme float+width on the nav and content so the
   5-region grid controls the layout. */
.lal-shell .lal-nav .woocommerce-MyAccount-navigation,
.lal-shell .lal-center.woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* WooCommerce nav restyle inside the nav region */
.lal-shell .lal-nav .woocommerce-MyAccount-navigation {
    background: #fff; border: 1px solid var(--lal-border);
    border-radius: var(--lal-radius); padding: 8px; box-shadow: var(--lal-shadow);
}
.lal-shell .lal-nav .woocommerce-MyAccount-navigation ul {
    margin: 0; padding: 0; list-style: none; display: block; width: 100%;
}
.lal-shell .lal-nav .woocommerce-MyAccount-navigation li {
    list-style: none; margin: 0; padding: 0; border: 0; width: 100%; float: none;
}
.lal-shell .lal-nav .woocommerce-MyAccount-navigation li a {
    display: block; padding: 10px 14px; border-radius: 10px;
    color: var(--lal-text); text-decoration: none; font-weight: 600; font-size: 13.5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: auto;
}
.lal-shell .lal-nav .woocommerce-MyAccount-navigation li a:hover { background: var(--lal-bg); }
.lal-shell .lal-nav .woocommerce-MyAccount-navigation li.is-active > a {
    background: var(--lal-navy); color: #fff;
}

/* ===== Cards (shared) ===== */
.lal-card {
    background: #fff; border: 1px solid var(--lal-border);
    border-radius: var(--lal-radius); padding: 16px; box-shadow: var(--lal-shadow);
}
.lal-card h4 { font-size: 14px; margin-bottom: 12px; }
.lal-phone { display: block; font-size: 19px; font-weight: 800; color: var(--lal-mint); text-decoration: none; margin-top: 6px; }
/* Keep the phone visible on hover/focus — the theme's global a:hover otherwise
   recolours it to the navy/purple card background, making it disappear. */
.lal-phone:hover, .lal-phone:focus, .lal-phone:active { color: var(--lal-mint) !important; text-decoration: underline; opacity: 1; }
.lal-hours { display: block; font-size: 11px; color: var(--lal-muted); margin-top: 2px; }

/* trust */
.lal-trust { text-align: center; }
.lal-trust-label { font-weight: 800; }
.lal-trust-stars { color: #00b67a; font-size: 22px; letter-spacing: 2px; margin: 4px 0; }
.lal-trust-score { display: block; font-weight: 700; font-size: 12.5px; }
.lal-trust-reviews { display: block; font-size: 11px; color: var(--lal-muted); }

/* help / fund (dark) */
.lal-help, .lal-fund { background: var(--lal-navy); color: #fff; border-color: var(--lal-navy); }
.lal-help strong, .lal-fund strong { font-size: 15px; }
.lal-help p, .lal-fund p { font-size: 12px; color: rgba(255,255,255,.75); margin: 6px 0 4px; }

/* why */
.lal-why ul li { font-size: 12.5px; padding-left: 22px; position: relative; line-height: 2; }
.lal-why ul li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--lal-mint-d); font-weight: 800; }

/* calculator */
.lal-calc label { display: block; font-size: 12px; color: var(--lal-muted); margin-top: 12px; }
.lal-calc-value { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.lal-calc input[type=range] {
    width: 100%; -webkit-appearance: none; appearance: none;
    height: 6px; border-radius: 3px; background: #e6e8f0; outline: none; margin: 0;
}
.lal-calc input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px; border-radius: 50%; background: var(--lal-mint);
    cursor: pointer; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.lal-calc input[type=range]::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%; background: var(--lal-mint); cursor: pointer; border: 3px solid #fff;
}
.lal-calc-range { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--lal-muted); margin-top: 4px; }
.lal-calc-result { margin-top: 16px; padding: 14px; border-radius: 12px; background: #eef0fb; text-align: center; }
.lal-calc-result span { display: block; font-size: 11.5px; color: var(--lal-muted); }
.lal-calc-result strong { display: block; font-size: 24px; font-weight: 800; color: var(--lal-navy); margin: 4px 0; }
.lal-calc-result small { font-size: 10.5px; color: var(--lal-muted); }

/* ===== BOTTOM ===== */
.lal-bottom {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--lal-border);
}
.lal-bottom-item strong { display: block; font-size: 13px; }
.lal-bottom-item span { display: block; font-size: 11.5px; color: var(--lal-muted); margin-top: 2px; }

/* ================================================================
   CENTER RE-SKIN — harmonise plugin content to the navy + mint palette
   (scoped to .lal-center so it never affects other pages)
================================================================ */
.lal-shell .lal-center {
    --c-navy:   var(--lal-navy);
    --c-navy-2: var(--lal-navy-2);
    --c-mint:   var(--lal-mint);
    --c-mint-d: var(--lal-mint-d);
}

/* ---- Loan offers / applications (llo-frontend): orange accent -> mint ---- */
.lal-shell .lal-center .llo-fe-wrap { --llo-accent: var(--lal-mint-d); }

/* ---- Loan + repayment calculator (llo-calculator): purple -> navy/mint ---- */
.lal-shell .lal-center .llo-calculator-container { --llo-accent: var(--lal-mint); }

.lal-shell .lal-center .llo-calc-header {
    background: var(--c-navy) !important;
    animation: none !important;
}
.lal-shell .lal-center .llo-calc-btn,
.lal-shell .lal-center .llo-rep-export-btn {
    background: var(--c-navy) !important;
    background-size: auto !important;
    animation: none !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.20) !important;
}
.lal-shell .lal-center .llo-calc-btn:hover,
.lal-shell .lal-center .llo-rep-export-btn:hover {
    background: var(--c-mint-d) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.25) !important;
}
.lal-shell .lal-center .llo-calc-btn::after { display: none !important; } /* purple glow */
.lal-shell .lal-center .llo-result-card.highlight {
    background: var(--c-navy) !important;
}
.lal-shell .lal-center .llo-rate-combo .llo-rate-type { color: var(--c-mint-d) !important; }
.lal-shell .lal-center .llo-rep-schedule-section::before {
    background: var(--c-navy) !important;
    animation: none !important;
}
.lal-shell .lal-center .llo-rep-toggle:focus-visible { outline-color: var(--c-mint) !important; }
.lal-shell .lal-center .llo-rep-table tbody tr:hover td:first-child,
.lal-shell .lal-center .llo-rep-table tfoot .llo-rep-total-row td:nth-child(3),
.lal-shell .lal-center .llo-rep-table tfoot .llo-rep-total-row td:nth-child(5) {
    color: var(--c-navy) !important;
}
.lal-shell .lal-center .llo-product-option input:checked + .llo-product-label {
    background: rgba(0,0,0,.04) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.10) !important;
}

/* ---- Applications dashboard (aroham_loanapi) ---- */
.lal-shell .lal-center .aroham-app-amount { color: var(--c-navy) !important; }
.lal-shell .lal-center .aroham-progress-fill {
    background: linear-gradient(90deg, var(--c-navy), var(--c-mint)) !important;
}

/* ---- WooCommerce buttons in the center (View Details, Save changes, etc.) ---- */
.lal-shell .lal-center .button,
.lal-shell .lal-center a.button,
.lal-shell .lal-center button.button,
.lal-shell .lal-center input.button,
.lal-shell .lal-center .woocommerce-Button,
.lal-shell .lal-center button[type="submit"],
.lal-shell .lal-center input[type="submit"] {
    background: var(--c-navy) !important;
    border-color: var(--c-navy) !important;
    color: #fff !important;
    border-radius: 10px !important;
    text-shadow: none !important;
}
.lal-shell .lal-center .button:hover,
.lal-shell .lal-center a.button:hover,
.lal-shell .lal-center button.button:hover,
.lal-shell .lal-center input.button:hover,
.lal-shell .lal-center .woocommerce-Button:hover,
.lal-shell .lal-center button[type="submit"]:hover,
.lal-shell .lal-center input[type="submit"]:hover {
    background: var(--c-mint-d) !important;
    border-color: var(--c-mint-d) !important;
    color: #04331f !important;
}

/* ===== Responsive ===== */
/* Collapse the right sidebar below the content from 1200px down so the centre
   column keeps enough room on tablets/laptops (e.g. iPad Pro 11" landscape =
   1194px), instead of cramming three columns into a narrow space. */
@media (max-width: 1200px) {
    .lal-shell .lal-body {
        grid-template-columns: 210px minmax(0, 1fr);
        grid-template-areas:
            "sidebar center"
            "right   right";
    }
    .lal-shell .lal-right { flex-direction: row; flex-wrap: wrap; }
    .lal-shell .lal-right .lal-card { flex: 1 1 240px; }
}
@media (max-width: 768px) {
    .lal-shell .lal-body {
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }
    .lal-shell .lal-sidebar { grid-area: auto; order: 1; }
    .lal-shell .lal-center  { grid-area: auto; order: 2; }
    .lal-shell .lal-right   { grid-area: auto; order: 3; }
    .lal-bottom { grid-template-columns: 1fr 1fr; }
    .lal-top-text h2 { font-size: 22px; }
    .lal-shell .lal-center.woocommerce-MyAccount-content{border-radius:0; padding:0;}
    .llo-calculator-container{margin:0 !important}
}
@media (max-width: 480px) {
    .lal-bottom { grid-template-columns: 1fr; }
}
