/* Taskelio Core: account screens, purchases, review gate. Uses theme variables with fallbacks. */

/* ---------- Auth screen (login / register / verify) ---------- */
.tkc-auth-page .t-page__head{display:none}
.tkc-auth-page .t-page{padding-top:clamp(36px,7vh,80px)!important;padding-bottom:clamp(48px,9vh,110px)!important}
.tkc-auth-page .woocommerce{display:block!important;max-width:440px!important;margin:0 auto!important}
.tkc-auth,.tkc-auth *{box-sizing:border-box}
.tkc-auth{max-width:440px;margin:0 auto;animation:tkc-rise .7s cubic-bezier(.2,.7,.2,1) both}
@keyframes tkc-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.tkc-auth__card{background:#fff;border:1px solid rgba(10,10,12,.08);border-radius:28px;padding:clamp(28px,5vw,44px);box-shadow:0 1px 0 rgba(10,10,12,.04),0 30px 80px -40px rgba(10,10,12,.35)}
.tkc-auth__logo{display:flex;flex-direction:column;align-items:center;gap:10px;text-decoration:none;color:#0A0A0C;margin:0 auto 26px;width:max-content}
.tkc-auth__logo img{width:44px;height:44px;border-radius:13px;box-shadow:0 10px 24px -12px rgba(10,10,12,.6)}
.tkc-auth__logo span{font-family:var(--display,inherit);font-weight:600;font-size:19px;letter-spacing:-.03em}
.tkc-auth__panel{display:none}
.tkc-auth__panel.is-active{display:block;animation:tkc-fade .45s ease both}
@keyframes tkc-fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.tkc-auth__title{font-family:var(--display,inherit);font-size:clamp(26px,3.2vw,32px)!important;line-height:1.15;letter-spacing:-.035em;text-align:center;margin:0 0 8px!important;color:#0A0A0C}
.tkc-auth__sub{text-align:center;color:#55555F;font-size:15px!important;line-height:1.55;margin:0 auto 26px!important;max-width:34ch}
.tkc-auth__form{display:block;padding:0!important;border:0!important;background:none!important;margin:0!important}
.tkc-label{display:block;font-size:14px;font-weight:500;color:#1d1d22;margin:0 0 7px}
.tkc-label-row{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.tkc-link-sm{font-size:13px;color:#6b6b75!important;text-decoration:none}
.tkc-link-sm:hover{color:#0A0A0C!important;text-decoration:underline}
.tkc-input{display:block;width:100%;height:50px;padding:0 16px;border-radius:14px;border:1px solid rgba(10,10,12,.14);background:#fff;color:#0A0A0C;font:inherit;font-size:16px;margin:0 0 18px;transition:border-color .2s,box-shadow .2s;box-shadow:0 1px 2px rgba(10,10,12,.04)}
.tkc-input:hover{border-color:rgba(10,10,12,.26)}
.tkc-input:focus{outline:none;border-color:#0A0A0C;box-shadow:0 0 0 4px rgba(231,194,125,.35)}
.tkc-pass{position:relative}
.tkc-pass .tkc-input{padding-right:50px}
.tkc-eye{position:absolute;right:6px;top:5px;width:40px;height:40px;border:0;background:none;border-radius:10px;color:#6b6b75;cursor:pointer;display:grid;place-items:center}
.tkc-eye:hover,.tkc-eye[aria-pressed="true"]{color:#0A0A0C;background:rgba(10,10,12,.05)}
.tkc-check{display:flex!important;align-items:center;gap:10px;font-size:14px;color:#3a3a42;margin:-4px 0 20px;cursor:pointer}
.tkc-check input{width:18px;height:18px;accent-color:#0A0A0C;margin:0}
.tkc-btn{display:flex;align-items:center;justify-content:center;width:100%;height:52px;border:0;border-radius:14px;background:#0A0A0C;color:#F3EFE7;font:inherit;font-size:15px;font-weight:600;cursor:pointer;position:relative;overflow:hidden;isolation:isolate;transition:transform .3s cubic-bezier(.2,.7,.2,1),box-shadow .3s;box-shadow:0 14px 30px -16px rgba(10,10,12,.7)}
.tkc-btn::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(115deg,transparent 30%,rgba(231,194,125,.35) 50%,transparent 70%);transform:translateX(-120%);transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.tkc-btn:hover{transform:translateY(-1px)}
.tkc-btn:hover::after{transform:translateX(120%)}
.tkc-btn[disabled]{background:#a3a3ad!important;color:#f5f5f7!important;box-shadow:none!important;transform:none!important;cursor:not-allowed;opacity:1}
.tkc-btn[disabled]::after{display:none}
.tkc-input.is-invalid{border-color:#d92d20!important;box-shadow:0 0 0 4px rgba(217,45,32,.12)!important}
.tkc-hint{font-size:13px;color:#6b6b75;margin:-10px 0 18px!important;line-height:1.5}
.tkc-hint--center{text-align:center;margin:14px 0 0!important}
.tkc-auth__switch{text-align:center;font-size:14px;color:#55555F;margin:24px 0 0!important}
.tkc-auth__switch a{color:#0A0A0C!important;font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(10,10,12,.25)}
.tkc-auth__legal{text-align:center;font-size:13px;color:#6b6b75;margin:22px auto 0!important;max-width:36ch}
.tkc-auth__legal a{color:#3a3a42!important}
.tkc-auth .woocommerce-privacy-policy-text{font-size:13px;color:#6b6b75}
.tkc-auth .woocommerce-privacy-policy-text p{margin:0 0 16px}
.tkc-auth__mail{width:60px;height:60px;margin:0 auto 18px;border-radius:18px;display:grid;place-items:center;color:#0A0A0C;background:linear-gradient(135deg,#F8E6BF,#E7C27D 50%,#C7895A);box-shadow:0 16px 34px -18px rgba(199,137,90,.9)}
.tkc-code{height:64px;text-align:center;font-family:var(--mono,ui-monospace,Menlo,monospace);font-size:30px;letter-spacing:.55em;padding:0 0 0 .55em;font-weight:600}
.tkc-code::placeholder{color:rgba(10,10,12,.2)}
.tkc-auth__resend{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;font-size:14px;color:#55555F;margin:18px 0 0}
.tkc-link{border:0;background:none;padding:0;font:inherit;font-weight:600;color:#0A0A0C;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.tkc-link[disabled]{color:#9a9aa4;text-decoration:none;cursor:default}
.tkc-auth-page .woocommerce-notices-wrapper{max-width:440px;margin:0 auto 16px}
.tkc-auth-page .woocommerce-error,.tkc-auth-page .woocommerce-message,.tkc-auth-page .woocommerce-info{background:#fff!important;font-size:14px}

/* ---------- Dashboard ---------- */
.tkc-dash__hello{font-size:clamp(26px,3vw,34px)!important;letter-spacing:-.03em;margin:0 0 6px!important}
.tkc-muted{color:var(--muted,#55555F)}
.tkc-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;margin-top:26px}
.tkc-card{display:flex;flex-direction:column;gap:4px;text-align:left;padding:22px;border-radius:20px;background:var(--surface,#fff);border:1px solid var(--line,rgba(10,10,12,.1));text-decoration:none!important;color:var(--text,#0A0A0C)!important;font:inherit;cursor:pointer;transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s}
.tkc-card:hover{transform:translateY(-3px);box-shadow:0 22px 40px -28px rgba(10,10,12,.5)}
.tkc-card__k{font-family:var(--display,inherit);font-size:28px;font-weight:600;letter-spacing:-.03em;margin-bottom:8px;color:#8a5a14}
.tkc-card strong{font-size:16px}
.tkc-card span:last-child{font-size:14px;color:var(--muted,#55555F)}

/* ---------- Purchases ---------- */
.tkc-plist{list-style:none;margin:20px 0 24px;padding:0;display:grid;gap:10px}
.tkc-plist__item{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 20px;border-radius:18px;background:var(--surface,#fff);border:1px solid var(--line,rgba(10,10,12,.1))}
.tkc-plist__item div{display:flex;flex-direction:column}
.tkc-plist__item span{font-size:14px;color:var(--muted,#55555F)}
.tkc-pill{font-style:normal;font-size:12px;font-weight:600;padding:5px 11px;border-radius:99px;background:rgba(46,160,103,.12);color:#1f7a4c}
.tkc-pill--refunded{background:rgba(10,10,12,.06);color:#55555F}
.tkc-empty{padding:28px;border-radius:20px;border:1px dashed var(--line-strong,rgba(10,10,12,.2));margin:20px 0}
.tkc-empty p{margin:0 0 6px}
.tkc-empty .button{margin-top:12px}

/* ---------- Review gate (dark product page) ---------- */
.tkc-review-gate{margin-top:10px;padding:22px 24px;border-radius:18px;border:1px solid var(--line,rgba(255,255,255,.08));background:color-mix(in srgb,var(--text,#F3EFE7) 3%,transparent);max-width:640px}
.tkc-review-gate p{margin:0 0 6px}
.tkc-review-gate__actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px;margin:16px 0 12px!important}
.tkc-review-gate__actions span{font-size:15px;color:var(--muted,#A6A6B0)}
.tkc-review-gate__actions span a{color:var(--text,#F3EFE7)}
.tkc-review-gate .tkc-review-gate__btn{min-height:46px!important;border-radius:12px!important;padding:0 20px!important;background:var(--grad,linear-gradient(135deg,#F8E6BF,#E7C27D 50%,#C7895A))!important;color:#0A0A0C!important;border:0!important;font-weight:600}
.tkc-review-gate__hint{font-size:14px;color:var(--muted,#A6A6B0)}
.tkc-review-gate__hint strong{color:var(--text,#F3EFE7)}

@media (prefers-reduced-motion:reduce){.tkc-auth,.tkc-auth__panel.is-active{animation:none}.tkc-btn,.tkc-card{transition:none}}

.tkc-check--optin{align-items:flex-start!important;margin:2px 0 18px!important;font-size:13.5px!important;line-height:1.45;color:#3a3a42}
.tkc-check--optin input{margin-top:1px!important;flex:none}
.tkc-optin-field{margin:28px 0 20px;padding:18px 20px;border:1px solid var(--line,rgba(10,10,12,.1));border-radius:16px;background:var(--surface,#fff)}
.tkc-optin-field legend{font-weight:600;padding:0 6px;font-size:15px}
/* Account details form (logged in) */
.woocommerce-EditAccountForm fieldset,.woocommerce-EditAccountForm .tkc-optin-field{display:block;margin:24px 0 16px;padding:22px 22px 6px;border:1px solid rgba(10,10,12,.1);border-radius:18px;background:#fff;min-width:0}
.woocommerce-EditAccountForm .tkc-optin-field{padding-bottom:18px}
.woocommerce-EditAccountForm fieldset>legend{float:left;width:100%;padding:0;margin:0 0 16px;font-size:16px;font-weight:600;color:#0A0A0C;line-height:1.3}
.woocommerce-EditAccountForm fieldset>legend+*{clear:both}
.woocommerce-EditAccountForm input.input-text{width:100%;height:48px;padding:0 14px;border:1px solid rgba(10,10,12,.16);border-radius:12px;background:#fff;color:#0A0A0C;font-size:15px;box-shadow:none;transition:border-color .15s,box-shadow .15s}
.woocommerce-EditAccountForm fieldset input.input-text{background:#FAF8F4}
.woocommerce-EditAccountForm input.input-text:focus{outline:0;border-color:#0A0A0C;box-shadow:0 0 0 3px rgba(10,10,12,.08)}
.woocommerce-EditAccountForm label{font-size:14px;font-weight:500;color:#2a2a30;margin-bottom:6px;display:block}
.woocommerce-EditAccountForm .required{color:#C7895A!important;text-decoration:none}
.woocommerce-EditAccountForm #account_display_name_description,.woocommerce-EditAccountForm .form-row em{display:block;margin-top:6px;font-style:normal;font-size:13px;color:#6b6b75}
.woocommerce-EditAccountForm .show-password-input{top:50%!important;transform:translateY(-50%);right:12px!important;opacity:.6}
.woocommerce-EditAccountForm button[name="save_account_details"]{min-height:48px;padding:0 26px!important;border:0!important;border-radius:12px!important;background:#0A0A0C!important;color:#F3EFE7!important;font-weight:600!important;font-size:15px!important;cursor:pointer;box-shadow:0 10px 24px -14px rgba(10,10,12,.6)}
.woocommerce-EditAccountForm button[name="save_account_details"]:hover{background:#26262D!important}
@media (max-width:600px){.woocommerce-EditAccountForm .form-row-first,.woocommerce-EditAccountForm .form-row-last{float:none!important;width:100%!important}}
.tkc-optin-field .tkc-check{margin:6px 0 4px}
.tkc-optin-field .tkc-hint{margin:6px 0 0!important}

/* ---------- Auth page: only the card (no header, footer, bot) ---------- */
body.tkc-auth-page .t-header,body.tkc-auth-page .t-footer,body.tkc-auth-page .t-skip,body.tkc-auth-page #tkc-bot,body.tkc-auth-page .t-progress{display:none!important}
body.tkc-auth-page .t-main{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;justify-content:center;padding:0!important}
body.tkc-auth-page.admin-bar .t-main{min-height:calc(100dvh - 32px)}
body.tkc-auth-page .t-page{padding:clamp(24px,5vh,56px) 16px!important;margin:0!important}
body.tkc-auth-page .t-prose,body.tkc-auth-page .t-wrap{max-width:none!important;padding:0!important}

/* Password strength meter: its own row under the field, never over the hint */
.tkc-auth .tkc-pass .tkc-input{margin-bottom:10px}
.tkc-auth .woocommerce-password-strength{position:static!important;display:block;margin:0 0 8px!important;padding:7px 12px!important;border:0!important;border-radius:10px;font-size:12.5px!important;font-weight:600;line-height:1.4;text-align:left!important;opacity:1!important}
.tkc-auth .woocommerce-password-strength:empty{display:none}
.tkc-auth .woocommerce-password-strength.short{background:#fde8e8!important;color:#b42318!important}
.tkc-auth .woocommerce-password-strength.bad{background:#fdeee3!important;color:#b54708!important}
.tkc-auth .woocommerce-password-strength.good{background:#fff4d6!important;color:#8a5a14!important}
.tkc-auth .woocommerce-password-strength.strong{background:#e3f6ec!important;color:#1f7a4c!important}
.tkc-auth .woocommerce-password-hint{display:none!important}
.tkc-auth .tkc-pass + .tkc-hint{margin:0 0 18px!important}

/* Lost-password screen gets the same card look */
body.tkc-auth-page .woocommerce-form-lost-password-legacy{background:#fff;border:1px solid rgba(10,10,12,.08);border-radius:28px;padding:clamp(28px,5vw,44px)!important;box-shadow:0 30px 80px -40px rgba(10,10,12,.35)}
body.tkc-auth-page .woocommerce-ResetPassword input.input-text{height:50px;border-radius:14px;border:1px solid rgba(10,10,12,.14);padding:0 16px;width:100%;box-sizing:border-box}
body.tkc-auth-page .woocommerce-ResetPassword .button{width:100%;height:52px;border-radius:14px!important;background:#0A0A0C!important;color:#F3EFE7!important}

/* Reset form: match indicator */
.tkc-match{min-height:20px;margin:-8px 0 14px!important;font-size:13px;font-weight:600}
.tkc-match.is-ok{color:#1f7a4c}
.tkc-match.is-bad{color:#b42318}
.tkc-input.is-valid{border-color:#2e9e67!important}
.tkc-auth .tkc-pass:has(+ .tkc-match) .tkc-input{margin-bottom:12px}
/* Neutralise WooCommerce's old lost/reset-form card styles inside our card */
.tkc-auth .woocommerce-ResetPassword{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important}
.tkc-auth .woocommerce-ResetPassword .form-row{float:none!important;width:100%!important;padding:0!important;margin:0!important}

/* Purchases: list alignment, sort, review buttons */
.tkc-purchases ul.tkc-plist{list-style:none!important;margin:16px 0 24px!important;padding:0!important}
.tkc-purchases ul.tkc-plist>li{margin:0!important;padding:18px 20px!important}
.tkc-purchases ul.tkc-plist>li::before,.tkc-purchases ul.tkc-plist>li::marker{content:none!important}
.tkc-plist-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 0}
.tkc-plist-bar .tkc-muted{font-size:14px;color:#55555F;margin:0}
.tkc-sort{display:inline-flex;align-items:center;gap:8px;margin:0!important;font-size:14px;color:#55555F}
.tkc-sort select{height:38px;padding:0 34px 0 12px;border:1px solid rgba(10,10,12,.14);border-radius:10px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230A0A0C' stroke-width='2.4' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;-webkit-appearance:none;appearance:none;color:#0A0A0C;font:inherit;font-size:14px;cursor:pointer;color-scheme:light}
.tkc-sort select option{background:#fff;color:#0A0A0C}
.tkc-sort select:focus{outline:0;border-color:#0A0A0C;box-shadow:0 0 0 3px rgba(10,10,12,.08)}
.tkc-plist__info{display:flex;flex-direction:column;gap:3px;min-width:0}
.tkc-plist__info strong{font-weight:600;color:#0A0A0C}
.tkc-plist__side{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;flex-shrink:0}
.tkc-rate{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:99px;background:#0A0A0C;color:#F3EFE7!important;font-size:13px;font-weight:600;text-decoration:none!important;white-space:nowrap;transition:background .15s,transform .15s}
.tkc-rate svg{color:#E7C27D}
.tkc-rate:hover{background:#26262D;transform:translateY(-1px)}
.tkc-rate--done{background:transparent;color:#0A0A0C!important;border:1px solid rgba(10,10,12,.16)}
.tkc-rate--done:hover{background:rgba(10,10,12,.05)}
.tkc-purchases .button.alt{border-radius:12px!important;min-height:48px;padding:0 22px!important;align-items:center}
@media (max-width:600px){.tkc-purchases ul.tkc-plist>li{flex-direction:column;align-items:flex-start!important}.tkc-plist__side{width:100%;justify-content:space-between}.tkc-plist-bar{flex-wrap:wrap}}

/* Link-style buttons inside the auth card: keep light text, no underline */
.tkc-auth a.tkc-btn,.tkc-auth a.tkc-btn:visited,.tkc-auth a.tkc-btn:hover,.tkc-auth a.tkc-btn:focus,body .t-prose .tkc-auth a.tkc-btn{color:#F3EFE7!important;text-decoration:none!important;background-image:none!important;border-bottom:0!important}
.tkc-auth a.tkc-btn:hover{background:#26262D}
@media (hover:none),(pointer:coarse),(max-width:860px){.t-grain{display:none!important}}
