/* TA app components: the established turquoise profile, with restrained green accents. */
:root { --ta-accent:#2c8d7a; --ta-accent-hover:#247562; --ta-accent-soft:#f0f7f2; --ta-ink:#293a33; --ta-muted:#68756d; --ta-border:#e2e9e4; --ta-surface:#fff; --ta-highlight:#dce9df; --ta-menu-accent:#89d1c3; }
.ta-component-eyebrow { display:block; margin-bottom:8px; color:#4b795c; font-size:10px; font-weight:700; line-height:1.5; letter-spacing:.08em; text-transform:uppercase; }
body.home .ta-fp-category-item { min-height:68px; padding:12px 14px; border:1px solid #e2e9e4; border-radius:13px; background:#fff!important; color:var(--ta-ink); box-shadow:none; }
body.home .ta-fp-category-item:hover { background:#f0f7f2!important; border-color:#b9d7c4; box-shadow:none; transform:translateY(-1px); }
body.home .ta-fp-category-icon { width:40px; height:40px; border:1px solid #e2e9e4; border-radius:12px; background:#f0f7f2; color:#4b8060; }
body.home .ta-fp-category-name { color:#293a33; font-weight:600; font-size:13px; }
body.home .ta-fp-category-arrow { color:#779784; }
body.home .ta-fp-community-section,body.home .ta-fp-premium-module { --ta-community-accent:var(--ta-accent); }
/* Existing creator colours remain in the dashboard stylesheet. */
/* Order files are actions, rather than a compact downloads table. */
body .ta-order-files__heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:20px; }
body .ta-order-files__heading .woocommerce-order-downloads__title { margin:0 0 7px!important; padding:0!important; border:0!important; color:var(--ta-ink); font-size:21px!important; line-height:1.35; }
.ta-order-files__heading p { margin:0; color:var(--ta-muted); font-size:13px; line-height:1.7; }
.ta-order-files__count { flex:none; padding:6px 10px; border:1px solid #d8e8dd; border-radius:20px; background:#f0f7f2!important; color:#53795f; font-size:11px; white-space:nowrap; }
.ta-order-files__list { display:grid; gap:12px; }
.ta-order-file { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px; align-items:center; padding:16px; border:1px solid #e2e9e4; border-radius:13px; background:#fff; }
.ta-order-file__identity { display:flex; align-items:center; gap:14px; min-width:0; }
.ta-order-file__image { display:grid; place-items:center; flex:0 0 54px; width:54px; height:64px; overflow:hidden; border:1px solid #dce8df; border-radius:9px; background:#fff; color:#71977f; }
.ta-order-file__image img { width:100%; height:100%; object-fit:contain; }
.ta-order-file__copy { display:flex; flex-direction:column; gap:6px; min-width:0; }
.ta-order-file__copy > :is(a,strong) { color:#34513e; font-size:14px; font-weight:600; line-height:1.5; text-decoration:none; overflow-wrap:anywhere; }
.ta-order-file__name { color:#7a8a7e; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
body .ta-order-file__actions a.ta-order-file__download { display:inline-flex!important; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:11px 16px!important; border:1px solid var(--ta-accent)!important; border-radius:10px; background:var(--ta-accent)!important; color:#fff!important; font-size:13px; font-weight:600; line-height:1.5; white-space:nowrap; text-decoration:none; }
body .ta-order-file__actions a.ta-order-file__download:hover { background:var(--ta-accent-hover)!important; }
.ta-order-file__meta { display:flex; flex-wrap:wrap; grid-column:1/-1; gap:12px 24px; margin:0; }
.ta-order-file__meta > div { display:flex; align-items:center; gap:7px; color:#66816e; font-size:11px; }
.ta-order-file__meta dt { font-weight:400; }.ta-order-file__meta dd { margin:0; font-weight:600; }
.ta-order-files__all { display:inline-flex; align-items:center; gap:14px; min-height:44px; margin-top:14px; color:var(--ta-accent); font-size:12px; font-weight:600; text-decoration:none; }
body.woocommerce-account .ta-view-order-back { margin-bottom:8px; }
body.woocommerce-account .ta-view-order-header { padding:24px; }
body.woocommerce-account .ta-view-order-meta { gap:18px; margin-top:18px; padding-top:18px; }
body.woocommerce-account .ta-view-order-meta-value--total { color:var(--ta-accent); }
body.woocommerce-account .ta-view-order-details { display:grid; gap:20px; }
body.woocommerce-account .ta-view-order-details > :is(.woocommerce-order-downloads,.woocommerce-order-details,.woocommerce-customer-details) { margin:0; padding:24px; border:1px solid #dce8df; border-radius:16px; box-shadow:none; background:#fff; min-width:0; }
body.woocommerce-account .ta-view-order-details .woocommerce-order-details__title,body.woocommerce-account .ta-view-order-details .woocommerce-column__title { font-size:18px; }
body.woocommerce-account .ta-view-order-details .dokan-store-support-btn { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:11px 15px!important; border:1px solid #c9dfd1!important; border-radius:10px; background:#f0f7f2!important; color:#356b4d!important; font-size:13px; font-weight:600; }
body.woocommerce-account .ta-view-order-details .woocommerce-customer-details address { padding:0; border:0; border-radius:0; background:transparent; color:#607565; font-size:13px; line-height:1.8; }
@media(min-width:1200px) {
 body.woocommerce-account .ta-view-order-details { grid-template-columns:minmax(0,1.35fr) minmax(0,.85fr); align-items:start; }
 body.woocommerce-account .ta-view-order-details > .woocommerce-order-downloads { grid-column:1/-1; }
 body.woocommerce-account .ta-view-order-details > .woocommerce-order-details { grid-column:1; }
 body.woocommerce-account .ta-view-order-details > .woocommerce-customer-details { grid-column:2; }
 body.woocommerce-account .ta-view-order-details .woocommerce-customer-details .woocommerce-columns { grid-template-columns:1fr; gap:18px; }
}
@media(max-width:575.98px) {
 body.home .ta-fp-category-item { min-height:66px; padding:12px; }
 body.home .ta-fp-category-name { font-size:12px; }
 body .ta-order-files__heading { gap:10px; margin-bottom:16px; }
 body .ta-order-files__heading .woocommerce-order-downloads__title { font-size:20px!important; }
 .ta-order-files__heading p { font-size:12px; }
 .ta-order-file { grid-template-columns:1fr; gap:14px; padding:14px; }
 .ta-order-file__actions { width:100%; padding-top:12px; border-top:1px solid #e1ece5; }
 body .ta-order-file__actions a.ta-order-file__download { width:100%; min-height:48px; }
 body.woocommerce-account .ta-view-order-header { padding:20px; }
 body.woocommerce-account .ta-view-order-details > :is(.woocommerce-order-downloads,.woocommerce-order-details,.woocommerce-customer-details) { padding:20px 16px; }
}
/* Native Dokan dialogs keep their fields, nonces, captcha and submit handlers. */
body #dokan-modal-login-form-popup.ta-app-dialog.iziModal[role=dialog][aria-modal=true],body .dokan-store-support-modals.ta-app-dialog.iziModal[role=dialog][aria-modal=true] { position:fixed!important; left:0!important; right:0!important; top:calc(var(--ta-header-bottom,70px) + 12px)!important; bottom:calc(var(--ta-app-nav-height,0px) + 12px)!important; width:calc(100% - 32px)!important; max-width:520px!important; height:fit-content!important; max-height:calc(var(--ta-visual-viewport-height,100dvh) - var(--ta-header-bottom,70px) - var(--ta-app-nav-height,0px) - 24px)!important; margin:auto!important; border:1px solid #d2e5d9!important; border-radius:20px!important; background:#fff!important; color:var(--ta-ink); box-shadow:0 24px 80px #17362640!important; overflow:hidden!important; }
.ta-app-dialog.iziModal > .iziModal-header { display:none!important; }
body .ta-app-dialog.iziModal .iziModal-wrap { max-height:calc(var(--ta-visual-viewport-height,100dvh) - var(--ta-header-bottom,70px) - var(--ta-app-nav-height,0px) - 26px)!important; overflow-y:auto!important; overscroll-behavior:contain; }
body .ta-app-dialog.iziModal .iziModal-content { position:relative; padding:0!important; height:auto!important; }
body .ta-app-dialog .white-popup { width:100%; max-width:none; margin:0; padding:28px; border:0; border-radius:0; background:#fff; box-shadow:none; }
.ta-dialog-heading { position:relative; padding-right:22px; margin-bottom:24px; }
.ta-dialog-eyebrow { display:block; margin-bottom:12px; color:#5f866c; font-size:10px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; }
.ta-dialog-symbol { display:grid; place-items:center; width:50px; height:50px; margin-bottom:16px; border:1px solid #d3e6d9; border-radius:14px; background:#f0f7f2!important; color:#4b8060; }
body .ta-app-dialog .ta-dialog-heading h2 { margin:0 0 12px; border:0; color:#2e4836; font-family:inherit; font-size:25px; font-weight:700; line-height:1.2; letter-spacing:-.025em; }
.ta-dialog-heading p { margin:0; color:#758b7b; font-size:13px; line-height:1.7; }
.ta-app-dialog .ta-app-dialog-close { position:absolute; z-index:5; top:12px; right:12px; display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid #dce9e0; border-radius:11px; background:#f0f7f2!important; color:#4f795c; font-size:26px; line-height:1; }
body .ta-app-dialog :is(fieldset,.dokan-form-container) { width:100%; min-width:0; margin:0; padding:0; border:0; }
body .ta-app-dialog .dokan-form-group { display:block; width:100%; max-width:100%; margin:0 0 18px; padding:0; }
body .ta-app-dialog .dokan-form-label { display:block; margin:0 0 8px; color:#45634d; font-size:13px; font-weight:600; line-height:1.5; }
body .ta-app-dialog :is(input.dokan-form-control,select.dokan-form-control,textarea.dokan-form-control) { display:block; width:100%; max-width:100%; min-height:48px; margin:0; padding:11px 13px; border:1px solid #cfe0d5; border-radius:10px; background:#fff; color:#354f3e; font:inherit; font-size:16px; line-height:1.5; box-shadow:none; }
body .ta-app-dialog textarea.dokan-form-control { min-height:128px; resize:vertical; }
body .ta-app-dialog :is(input,select,textarea):focus { border-color:#719f80; outline:2px solid #dceee2; outline-offset:2px; box-shadow:none; }
body .ta-app-dialog :is(button.dokan-btn,input.dokan-btn) { display:flex; align-items:center; justify-content:center; gap:9px; width:100%; min-height:48px; margin:0; padding:12px 16px; border:1px solid var(--ta-accent); border-radius:11px; background:var(--ta-accent); color:#fff; font-family:inherit; font-size:14px; font-weight:600; line-height:1.5; }
body .ta-app-dialog :is(button.dokan-btn,input.dokan-btn):hover { background:var(--ta-accent-hover); color:#fff; }
body .ta-app-dialog .dokan-hide { display:none!important; }
.ta-app-dialog .ta-dialog-submit-busy { opacity:.75; cursor:wait; }
.ta-app-dialog .dokan-login-form-error:empty { display:none; }
.ta-app-dialog .dokan-login-form-error.has-error,body .ta-app-dialog #ds-error-msg.dokan-alert-danger { margin:0 0 16px; padding:12px 14px; border:1px solid #e6b9b5; border-radius:10px; background:#fff4f2; color:#96483d; font-size:13px; line-height:1.6; }
body .ta-login-dialog .dokan-popup-create-an-account,body .ta-app-dialog .dokan-izimodal-close-btn { display:none!important; }
.ta-dialog-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 12px; padding-top:6px; }
.ta-dialog-footer a { display:inline-flex; align-items:center; min-height:44px; color:#718775; font-size:11px; text-decoration:none; }
.ta-dialog-footer a strong { margin-left:4px; color:var(--ta-accent); font-weight:600; }
.ta-app-dialog .dokan-support-intro-user,.ta-app-dialog .dokan-support-intro-text { display:none; }
.ta-app-dialog .iziModal-loader { border-top-color:var(--ta-accent)!important; }
body .ta-app-dialog .dokan-alert-success { border:0; background:#fff; color:#5a7b65; font-size:14px; line-height:1.7; }
.ta-app-dialog :is(a,button):focus-visible,.ta-order-files a:focus-visible { outline:2px solid #4b8060; outline-offset:3px; }
@media(max-width:575.98px) {
 body .ta-app-dialog .white-popup { padding:24px 20px; }
 body .ta-app-dialog .ta-dialog-heading h2 { font-size:23px; }
 .ta-dialog-heading { margin-bottom:20px; }
 .ta-dialog-symbol { width:44px; height:44px; border-radius:12px; margin-bottom:13px; }
 body .ta-app-dialog .dokan-form-group { margin-bottom:16px; }
}
@media(prefers-reduced-motion:reduce) { body.home .ta-fp-category-item { transition:none; } }
/* iziModal stores its original desktop width on inner nodes; constrain the full hierarchy. */
body .ta-app-dialog.iziModal .iziModal-wrap,body .ta-app-dialog.iziModal .iziModal-content { width:100%!important; min-width:0!important; box-sizing:border-box!important; }
body .ta-app-dialog.iziModal .iziModal-content > .white-popup { width:100%!important; min-width:0!important; max-width:100%!important; padding:28px!important; box-sizing:border-box!important; }
body .ta-app-dialog.iziModal #dokan-login-form-submit-btn,body .ta-app-dialog.iziModal #dokan-login-form-working-btn,body .ta-app-dialog.iziModal #support-submit-btn { display:flex; align-items:center; justify-content:center; width:100%!important; min-height:48px; margin:0; padding:12px 16px!important; border:1px solid #2c8d7a!important; border-radius:11px!important; background:#2c8d7a!important; color:#fff!important; font-size:14px!important; line-height:1.5!important; }
body .ta-app-dialog.iziModal #dokan-login-form-working-btn.dokan-hide,body .ta-app-dialog.iziModal #dokan-login-form-submit-btn.dokan-hide { display:none!important; }
body .ta-app-dialog.iziModal .dokan-form-control { box-sizing:border-box; }
.ta-dialog-heading p,.ta-dialog-footer a { overflow-wrap:anywhere; }
@media(max-width:575.98px){body .ta-app-dialog.iziModal .iziModal-content > .white-popup { padding:24px 20px!important; }.ta-dialog-footer { align-items:flex-start; flex-direction:column; gap:0; }}
/* Turquoise remains the accent on dark navigation. */
body #masthead .header-search-wrapper .ta-search-submit,body #masthead .header-search-wrapper .ta-search-submit:hover { background:#2c8d7a!important; border-color:#2c8d7a!important; color:#fff!important; }
body #masthead .ta-header-icon-row .ta-header-icon :is(.cart-content-count,.ta-header-favorites-count,.ta-notification-count) { background:#89d1c3!important; color:#214e45!important; }
body #masthead .ta-header-icon-row .ta-header-icon.is-active { color:#a7e4d8; }
body #masthead .ta-header-icon-row .nav-toggler { background:#89d1c326; border-color:#89d1c34d; }
body #masthead .ta-header-icon-row .nav-toggler.is-menu-open { background:#89d1c33b; color:#a7e4d8; }
body .dokan-dash-sidebar ul.dokan-dashboard-menu li.active,body .dokan-frontend-layout .dokan-frontend-sidebar li a.active { background:#89d1c3!important; color:#214e45!important; }
body .dokan-dash-sidebar ul.dokan-dashboard-menu li.active > a { color:#214e45!important; }
body .ta-analytics-filters .ta-period-btn--active { background:#2c8d7a!important; color:#fff!important; }
body #masthead .ta-activity-indicator::after { background:linear-gradient(90deg,#bfe5da,#89d1c3 45%,#69b4a1 70%,#bfe5da); }
body .dokan-dash-sidebar ul.dokan-dashboard-menu li.active > a :is(svg,i) { color:#214e45!important; }
body #dokan-modal-login-form-popup.ta-app-dialog.iziModal[role=dialog][aria-modal=true],body .dokan-store-support-modals.ta-app-dialog.iziModal[role=dialog][aria-modal=true] { top:var(--ta-dialog-top,calc(var(--ta-header-bottom,70px) + 12px))!important; bottom:var(--ta-dialog-bottom,calc(var(--ta-app-nav-height,0px) + 12px))!important; max-height:var(--ta-dialog-height,calc(100dvh - var(--ta-header-bottom,70px) - var(--ta-app-nav-height,0px) - 24px))!important; }
body .ta-app-dialog.iziModal .iziModal-wrap { max-height:calc(var(--ta-dialog-height,calc(100dvh - var(--ta-header-bottom,70px) - var(--ta-app-nav-height,0px) - 24px)) - 2px)!important; }
body :is(.dokan-layout,.dokan-frontend-layout,.dokan-dashboard-wrap) aside a.active { background:#89d1c3!important; color:#214e45!important; }
body :is(.dokan-layout,.dokan-frontend-layout,.dokan-dashboard-wrap) aside a.active > svg { color:#214e45!important; }
body .ta-app-dialog .ta-dialog-success-action { display:flex; align-items:center; justify-content:center; min-height:48px; margin-top:22px; padding:12px 16px; border:1px solid #2c8d7a; border-radius:11px; background:#2c8d7a; color:#fff!important; font-size:13px; font-weight:600; text-decoration:none; }

/* The agreed TA primary belongs to actions; pale surfaces remain neutral. */
body .btn-primary { --bs-btn-bg:#2c8d7a; --bs-btn-border-color:#2c8d7a; --bs-btn-color:#fff; --bs-btn-hover-bg:#247562; --bs-btn-hover-border-color:#247562; --bs-btn-active-bg:#247562; --bs-btn-active-border-color:#247562; --bs-btn-hover-color:#fff; --bs-btn-active-color:#fff; }
body #masthead .header-search-wrapper .ta-search-submit,body #masthead .ta-mobile-search-panel .search-form .input-group > button[type=submit] { background:#2c8d7a!important; border-color:#2c8d7a!important; color:#fff!important; }
body .dokan-dashboard-wrap .dokan-btn-theme { background:#2c8d7a; border-color:#2c8d7a; }
body :is(.ta-notification-save,.ta-home-hero__button--primary) { background:#2c8d7a; border-color:#2c8d7a; color:#fff; }
body .ta-popularity-periods__tab.is-active { background:#2c8d7a; border-color:#2c8d7a; color:#fff; }
body .ta-ai-switch input:checked + .ta-ai-switch__track { background:#2c8d7a; }
body .ta-filter-check:checked + .ta-filter-check-box { background:#2c8d7a; border-color:#2c8d7a; }
html:root,body .dokan-layout,body .dokan-frontend-layout,body .dokan-dashboard-wrap { --colors-primary-500:#2c8d7a; --colors-primary-600:#247562; --wp-components-color-accent:#2c8d7a; --wp-components-color-accent-darker-20:#247562; --dokan-button-background-color:#2c8d7a; --dokan-button-border-color:#2c8d7a; --dokan-button-hover-background-color:#247562; --dokan-button-text-color:#fff; --dokan-button-hover-text-color:#fff; }
