.fmwma-wrap{--fm-primary:#1d4ed8;--fm-dark:#101827;--fm-soft:#f5f7fb;--fm-secondary:#0ea5e9;display:grid;grid-template-columns:minmax(280px,42%) 1fr;gap:0;max-width:1120px;margin:40px auto;border-radius:28px;overflow:hidden;background:#fff;box-shadow:0 24px 70px rgba(16,24,39,.14);font-family:inherit}.fmwma-side{position:relative;min-height:680px;padding:42px;color:#fff;background:linear-gradient(145deg,#0b1220,var(--fm-primary) 58%,var(--fm-secondary));overflow:hidden}.fmwma-side-glow{position:absolute;width:340px;height:340px;border-radius:50%;background:rgba(255,255,255,.18);filter:blur(8px);top:-120px;left:-120px}.fmwma-side:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 20%,rgba(255,255,255,.22),transparent 30%),linear-gradient(180deg,transparent,rgba(0,0,0,.2));pointer-events:none}.fmwma-side-img{position:relative;z-index:1;width:100%;max-height:310px;object-fit:contain;margin:10px 0 20px;filter:drop-shadow(0 18px 35px rgba(0,0,0,.18))}.fmwma-side-content{position:relative;z-index:2}.fmwma-badge{display:inline-flex;padding:8px 14px;border:1px solid rgba(255,255,255,.38);border-radius:999px;background:rgba(255,255,255,.14);backdrop-filter:blur(10px);font-weight:700;font-size:13px}.fmwma-side h2{margin:22px 0 14px;color:#fff;font-size:34px;line-height:1.25;font-weight:900}.fmwma-side p{color:rgba(255,255,255,.9);font-size:16px;line-height:1.9;margin:0 0 22px}.fmwma-side ul{list-style:none;padding:0;margin:0;display:grid;gap:12px}.fmwma-side li{position:relative;padding-right:28px;color:#fff;font-weight:700}.fmwma-side li:before{content:"✓";position:absolute;right:0;top:0;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.2);font-size:13px}.fmwma-panel{padding:42px;background:linear-gradient(180deg,#fff,#f8fafc)}.fmwma-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;background:#eef2ff;padding:8px;border-radius:18px;margin-bottom:26px}.fmwma-tab{border:0;border-radius:14px;padding:14px 12px;cursor:pointer;background:transparent;color:#475569;font-weight:900;font-size:15px;transition:.2s}.fmwma-tab.is-active{background:#fff;color:var(--fm-primary);box-shadow:0 10px 24px rgba(29,78,216,.12)}.fmwma-form{display:none;animation:fmwmaFade .25s ease}.fmwma-form.is-active{display:block}.fmwma-form label{display:block;margin-bottom:16px;color:#0f172a;font-weight:800;font-size:14px}.fmwma-form span{color:#ef4444}.fmwma-form small{color:#64748b;font-weight:700;margin-right:6px}.fmwma-form input,.fmwma-form textarea{width:100%;border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:14px 16px;margin-top:8px;outline:none;font-size:15px;color:#0f172a;transition:border .2s,box-shadow .2s;box-sizing:border-box}.fmwma-form input:focus,.fmwma-form textarea:focus{border-color:var(--fm-primary);box-shadow:0 0 0 4px rgba(29,78,216,.1)}.fmwma-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.fmwma-pass{position:relative;display:block;color:inherit!important}.fmwma-pass input{padding-left:78px}.fmwma-toggle-pass{position:absolute;left:8px;top:50%;transform:translateY(-36%);border:0;border-radius:12px;background:#eef2ff;color:var(--fm-primary);font-weight:900;padding:8px 10px;cursor:pointer}.fmwma-submit,.fmwma-btn{display:inline-flex;align-items:center;justify-content:center;width:100%;border:0;border-radius:17px;padding:15px 18px;background:linear-gradient(135deg,var(--fm-primary),var(--fm-secondary));color:#fff!important;text-decoration:none!important;font-weight:900;font-size:16px;cursor:pointer;box-shadow:0 14px 28px rgba(29,78,216,.22);transition:transform .2s,box-shadow .2s}.fmwma-submit:hover,.fmwma-btn:hover{transform:translateY(-2px);box-shadow:0 18px 32px rgba(29,78,216,.3)}.fmwma-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:2px 0 22px}.fmwma-row a{color:var(--fm-primary);font-weight:900;text-decoration:none}.fmwma-check{display:flex!important;align-items:center;gap:8px;margin:0!important;color:#475569!important}.fmwma-check input{width:auto!important;margin:0!important}.fmwma-message,.woocommerce-notices-wrapper{margin-bottom:18px}.fmwma-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca;padding:12px;border-radius:14px}.fmwma-success{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0;padding:12px;border-radius:14px}.fmwma-logged{max-width:680px;margin:40px auto;padding:30px;border-radius:24px;background:#fff;box-shadow:0 18px 50px rgba(16,24,39,.12);text-align:center}.fmwma-logged strong{display:block;margin-bottom:18px;font-size:20px;color:#0f172a}@keyframes fmwmaFade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media (max-width:900px){.fmwma-wrap{grid-template-columns:1fr;margin:20px 12px}.fmwma-side{min-height:auto}.fmwma-grid{grid-template-columns:1fr}.fmwma-panel{padding:26px}.fmwma-side h2{font-size:28px}}@media (max-width:520px){.fmwma-tabs{grid-template-columns:1fr}.fmwma-row{align-items:flex-start;flex-direction:column}.fmwma-side{padding:28px}.fmwma-side-img{max-height:220px}}
.fmwma-product-desc{--fm-primary:#1d4ed8;--fm-secondary:#0ea5e9;clear:both;direction:rtl;margin:34px 0;padding:30px;border-radius:26px;background:#fff;box-shadow:0 18px 55px rgba(16,24,39,.10);overflow:hidden;position:relative}.fmwma-product-desc:before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:linear-gradient(90deg,var(--fm-primary),var(--fm-secondary));}.fmwma-product-desc-head{display:flex;align-items:center;gap:15px;margin-bottom:20px}.fmwma-product-desc-icon{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,var(--fm-primary),var(--fm-secondary));color:#fff;font-size:24px;box-shadow:0 12px 24px rgba(29,78,216,.22);flex:0 0 auto}.fmwma-product-desc h2{font-size:28px;line-height:1.25;margin:0 0 6px;color:#0f172a;font-weight:900}.fmwma-product-desc-head p{margin:0;color:#64748b;font-size:15px;line-height:1.8}.fmwma-product-desc-lead{padding:18px 20px;margin:0 0 18px;border-radius:20px;background:linear-gradient(135deg,rgba(29,78,216,.08),rgba(14,165,233,.08));color:#0f172a;font-weight:800;line-height:1.9}.fmwma-product-desc-lead p:last-child,.fmwma-product-desc-body p:last-child{margin-bottom:0}.fmwma-product-desc-body{color:#334155;font-size:16px;line-height:2}.fmwma-product-desc-body h2,.fmwma-product-desc-body h3,.fmwma-product-desc-body h4{color:#0f172a;font-weight:900;margin:22px 0 10px}.fmwma-product-desc-body ul,.fmwma-product-desc-body ol{margin:14px 0;padding-right:22px}.fmwma-product-desc-body li{margin:7px 0}.fmwma-product-desc-body table{width:100%;border-collapse:separate;border-spacing:0;margin:18px 0;border:1px solid #e2e8f0;border-radius:18px;overflow:hidden}.fmwma-product-desc-body th,.fmwma-product-desc-body td{padding:13px 15px;border-bottom:1px solid #e2e8f0;text-align:right}.fmwma-product-desc-body tr:last-child td,.fmwma-product-desc-body tr:last-child th{border-bottom:0}.fmwma-product-desc-clean{box-shadow:none;border:1px solid #e2e8f0}.fmwma-product-desc-clean:before{height:0}.fmwma-product-desc-clean .fmwma-product-desc-icon{background:#eef2ff;color:var(--fm-primary);box-shadow:none}.fmwma-product-desc-boxed{background:#f8fafc;border:1px solid #e2e8f0;box-shadow:0 12px 35px rgba(16,24,39,.07)}.fmwma-product-desc-under_summary{margin:22px 0;padding:24px;border-radius:22px}.fmwma-product-desc-under_summary h2{font-size:22px}.fmwma-product-desc-under_summary .fmwma-product-desc-icon{width:46px;height:46px;border-radius:15px;font-size:20px}.fmwma-product-desc-under_summary .fmwma-product-desc-body{font-size:15px;line-height:1.9}@media(max-width:768px){.fmwma-product-desc{padding:22px;border-radius:22px}.fmwma-product-desc-head{align-items:flex-start}.fmwma-product-desc h2{font-size:23px}.fmwma-product-desc-icon{width:48px;height:48px}.fmwma-product-desc-lead{padding:15px}}

/* Premium My Account + Invoice */
.fmwma-account-pro{direction:rtl;margin:0 0 32px}.fmwma-account-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:30px;border-radius:28px;background:linear-gradient(135deg,var(--fm-primary,#1d4ed8),#0f172a);color:#fff;box-shadow:0 22px 55px rgba(15,23,42,.16);margin-bottom:18px}.fmwma-account-hero span{display:inline-flex;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.16);font-weight:900}.fmwma-account-hero h2{margin:12px 0 8px;color:#fff;font-size:30px;font-weight:900}.fmwma-account-hero p{margin:0;color:rgba(255,255,255,.9);line-height:1.8}.fmwma-account-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.fmwma-account-cards>div{padding:22px;border-radius:22px;background:#fff;border:1px solid #e5e7eb;box-shadow:0 12px 32px rgba(15,23,42,.06)}.fmwma-account-cards strong{display:block;color:#0f172a;font-size:24px;font-weight:900;margin-bottom:7px}.fmwma-account-cards span{color:#64748b;font-weight:800}.fmwma-account-orders{background:#fff;border:1px solid #e5e7eb;border-radius:24px;padding:22px;box-shadow:0 14px 35px rgba(15,23,42,.06)}.fmwma-account-orders h3{margin:0 0 15px;color:#0f172a;font-weight:900}.fmwma-account-order-row{display:grid;grid-template-columns:1fr auto auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid #eef2f7}.fmwma-account-order-row:last-child{border-bottom:0}.fmwma-account-order-row b{display:block;color:#0f172a;font-size:16px}.fmwma-account-order-row span{display:block;color:#64748b;margin-top:4px}.fmwma-account-order-row a{display:inline-flex;align-items:center;justify-content:center;padding:9px 13px;border-radius:12px;background:#eef2ff;color:var(--fm-primary,#1d4ed8)!important;text-decoration:none!important;font-weight:900}.fmwma-invoice-panel{direction:rtl;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:26px 0;padding:26px;border-radius:26px;background:linear-gradient(135deg,#fff,#f8fafc);border:1px solid #e5e7eb;box-shadow:0 16px 42px rgba(15,23,42,.08)}.fmwma-invoice-kicker{display:inline-flex;padding:7px 12px;border-radius:999px;background:#eef2ff;color:var(--fm-primary,#1d4ed8);font-weight:900;font-size:12px}.fmwma-invoice-panel h3{margin:12px 0 7px;color:#0f172a;font-size:22px;font-weight:900}.fmwma-invoice-panel p{margin:0 0 11px;color:#64748b;line-height:1.8}.fmwma-free-chip{display:inline-flex;margin:4px 0 0 7px;padding:8px 12px;border-radius:999px;background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;font-weight:900}.fmwma-invoice-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;min-width:260px}.fmwma-mini-btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:14px;padding:12px 16px;background:linear-gradient(135deg,var(--fm-primary,#1d4ed8),var(--fm-secondary,#0ea5e9));color:#fff!important;text-decoration:none!important;font-weight:900;box-shadow:0 10px 22px rgba(29,78,216,.18)}.fmwma-mini-btn-dark{background:#0f172a!important}.fmwma-mini-btn-light{background:#fff!important;color:#0f172a!important;border:1px solid #e5e7eb;box-shadow:none}.fmwma-admin-invoice-box{direction:rtl}.fmwma-admin-invoice-box .button{margin:4px 0 4px 5px}.fmwma-admin-invoice-box p{line-height:1.7}@media(max-width:780px){.fmwma-account-hero,.fmwma-invoice-panel{flex-direction:column;align-items:flex-start}.fmwma-account-cards{grid-template-columns:1fr}.fmwma-account-order-row{grid-template-columns:1fr}.fmwma-invoice-actions{justify-content:flex-start;min-width:0;width:100%}.fmwma-mini-btn{width:100%}}

/* Admin settings page polish */
.fmwma-admin-wrap {
    max-width: 1280px;
    margin: 24px 0 40px;
    font-family: Tahoma, Arial, sans-serif;
}
.fmwma-admin-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #2563eb 100%);
    border-radius: 26px;
    padding: 34px 34px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, .18);
    position: relative;
    overflow: hidden;
}
.fmwma-admin-hero:before,
.fmwma-admin-hero:after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
}
.fmwma-admin-hero:before {
    width: 190px;
    height: 190px;
    top: -70px;
    left: -45px;
}
.fmwma-admin-hero:after {
    width: 120px;
    height: 120px;
    bottom: -52px;
    right: 12%;
}
.fmwma-admin-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1.5;
    font-weight: 800;
    letter-spacing: -.3px;
    position: relative;
    z-index: 1;
}
.fmwma-admin-actions {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 16px;
    margin: 18px 0;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
.fmwma-shortcode-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 10px 14px;
    color: #334155;
    font-weight: 700;
}
.fmwma-shortcode-pill code {
    direction: ltr;
    background: #0f172a;
    color: #fff;
    border-radius: 10px;
    padding: 6px 10px;
}
.fmwma-admin-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.fmwma-admin-buttons .button,
.fmwma-submit-bar .button {
    border-radius: 12px !important;
    min-height: 40px;
    padding: 5px 18px !important;
    font-weight: 700;
}
.fmwma-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.fmwma-settings-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .06);
}
.fmwma-card-wide {
    grid-column: 1 / -1;
}
.fmwma-card-head {
    padding: 18px 22px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.fmwma-card-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}
.fmwma-form-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}
.fmwma-form-table tr:not(:last-child) th,
.fmwma-form-table tr:not(:last-child) td {
    border-bottom: 1px solid #f1f5f9;
}
.fmwma-form-table th {
    width: 210px;
    padding: 18px 22px !important;
    color: #334155;
    font-weight: 800;
}
.fmwma-form-table td {
    padding: 16px 22px !important;
}
.fmwma-form-table input[type="text"],
.fmwma-form-table input[type="url"],
.fmwma-form-table input[type="email"],
.fmwma-form-table input[type="number"],
.fmwma-form-table input[type="password"],
.fmwma-form-table textarea,
.fmwma-form-table select,
.fmwma-field-grid input,
.fmwma-field-grid textarea {
    border: 1px solid #dbe3ee !important;
    border-radius: 14px !important;
    min-height: 42px;
    padding: 9px 13px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .035) !important;
    background: #fff;
    transition: .2s ease;
}
.fmwma-form-table textarea,
.fmwma-field-grid textarea {
    min-height: 88px;
}
.fmwma-form-table input:focus,
.fmwma-form-table textarea:focus,
.fmwma-form-table select:focus,
.fmwma-field-grid input:focus,
.fmwma-field-grid textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10) !important;
    outline: none !important;
}
.fmwma-form-table input[type="color"] {
    width: 64px;
    height: 42px;
    padding: 3px !important;
    border-radius: 14px !important;
    cursor: pointer;
}
.fmwma-switch-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
    font-weight: 600;
}
.fmwma-switch-line input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 7px;
    border-color: #cbd5e1;
}
.fmwma-mt {
    margin-top: 10px !important;
    display: block;
}
.fmwma-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.fmwma-field-grid textarea {
    grid-column: 1 / -1;
    width: 100%;
}
.fmwma-inline-fields {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}
.fmwma-submit-bar {
    position: sticky;
    bottom: 18px;
    z-index: 50;
    margin-top: 18px;
    background: rgba(255,255,255,.92);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
    backdrop-filter: blur(12px);
}
.fmwma-admin-notice {
    border-radius: 14px;
    margin: 18px 0 !important;
}
@media (max-width: 960px) {
    .fmwma-settings-grid,
    .fmwma-field-grid {
        grid-template-columns: 1fr;
    }
    .fmwma-admin-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .fmwma-form-table th,
    .fmwma-form-table td {
        display: block;
        width: auto;
        padding: 12px 18px !important;
    }
    .fmwma-admin-hero h1 {
        font-size: 24px;
    }
}

/* Terms and Conditions */
.fmwma-terms-box{
    margin: 4px 0 20px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: linear-gradient(180deg,#fff,#f8fafc);
    box-shadow: 0 10px 24px rgba(15,23,42,.05);
}
.fmwma-terms-box details{
    border: 1px dashed #cbd5e1;
    border-radius: 15px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 13px;
}
.fmwma-terms-box summary{
    cursor: pointer;
    padding: 13px 15px;
    font-weight: 900;
    color: #0f172a;
    list-style: none;
}
.fmwma-terms-box summary::-webkit-details-marker{display:none}
.fmwma-terms-box summary:after{
    content: "+";
    float: left;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: #eef2ff;
    color: var(--fm-primary,#1d4ed8);
    font-weight: 900;
}
.fmwma-terms-box details[open] summary:after{content:"−"}
.fmwma-terms-content{
    max-height: 180px;
    overflow: auto;
    padding: 0 15px 15px;
    color: #475569;
    line-height: 1.9;
    font-size: 14px;
    white-space: normal;
}
.fmwma-terms-check{
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    align-items: flex-start!important;
    line-height: 1.7;
}
.fmwma-terms-check input{
    margin-top: 5px!important;
    flex: 0 0 auto;
}
.fmwma-terms-admin-textarea{
    min-height: 190px;
    line-height: 1.8 !important;
}
