/* ==========================================================
   TOOLSFORGE / TF PANEL KLIENTA 0.5.5
   Centrum projektów, narzędzi i konta WooCommerce
   ========================================================== */

:root {
    --tfpk-red: #b23434;
    --tfpk-red-dark: #962a2a;
    --tfpk-blue: #2f4a68;
    --tfpk-blue-dark: #243b54;
    --tfpk-slate: #2f3742;
    --tfpk-text: #5f6874;
    --tfpk-muted: #8b95a2;
    --tfpk-soft: #f4f6f8;
    --tfpk-white: #ffffff;
    --tfpk-line: #e3e6ea;
    --tfpk-line-dark: rgba(255, 255, 255, .12);
    --tfpk-shadow: 0 18px 48px rgba(35, 48, 61, .08);
    --tfpk-font: Montserrat, Arial, Helvetica, sans-serif;
}

body.woocommerce-account.tfpk-active .entry-content,
body.woocommerce-account.tfpk-active .site-main,
body.woocommerce-account.tfpk-active .content-area,
body.woocommerce-account.tfpk-active .wp-block-post-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.woocommerce-account.tfpk-active .entry-content > p:empty,
body.woocommerce-account.tfpk-active .wp-block-post-content > p:empty {
    display: none !important;
}

.tfpk-root,
.tfpk-root *,
.tfpk-root *::before,
.tfpk-root *::after {
    box-sizing: border-box;
}

.tfpk-root {
    width: 100%;
    color: var(--tfpk-slate);
    font-family: var(--tfpk-font);
}

.tfpk-root a,
.tfpk-root button,
.tfpk-root input,
.tfpk-root textarea,
.tfpk-root select {
    border-radius: 0 !important;
    font-family: var(--tfpk-font);
}

.tfpk-breakout {
    position: relative;
    display: block;
    width: 100%;
    clear: both;
    box-sizing: border-box;
}

.tfpk-wrap {
    width: min(1500px, calc(100% - 80px));
    margin: 0 auto;
}

/* ==========================================================
   HERO / MAPA SYSTEMU
   ========================================================== */

.tfpk-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0 !important;
    padding: 62px 0 66px;
    background:
        radial-gradient(circle at 82% 24%, rgba(77, 112, 149, .26), transparent 33%),
        linear-gradient(120deg, #29323d 0%, #2f3742 58%, #27313b 100%);
    box-shadow: 0 0 0 100vmax #2f3742;
    clip-path: inset(0 -100vmax);
}

.tfpk-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: calc(50% + 70px);
    width: 1px;
    background: rgba(255, 255, 255, .08);
}

.tfpk-hero::after {
    content: "TF";
    position: absolute;
    z-index: -2;
    right: -42px;
    bottom: -108px;
    color: rgba(255, 255, 255, .027);
    font-size: clamp(230px, 28vw, 520px);
    font-weight: 900;
    line-height: .72;
    letter-spacing: -.12em;
    pointer-events: none;
}

.tfpk-hero-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 54%, #000 100%);
}

.tfpk-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
    gap: clamp(46px, 6vw, 100px);
    align-items: center;
}

.tfpk-hero-copy {
    max-width: 850px;
}

.tfpk-eyebrow {
    margin: 0 0 17px;
    color: #e25555;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.tfpk-title {
    max-width: 880px;
    margin: 0 0 24px;
    color: #fff !important;
    font-size: clamp(38px, 3.9vw, 66px);
    font-weight: 750;
    line-height: 1.03;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.tfpk-lead {
    max-width: 820px;
    margin: 0;
    color: #b7c0ca !important;
    font-size: clamp(15px, 1.2vw, 19px);
    font-weight: 450;
    line-height: 1.72;
}

.tfpk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.tfpk-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    min-height: 50px !important;
    padding: 13px 23px !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    letter-spacing: .065em !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease !important;
}

.tfpk-btn:hover {
    transform: translateY(-2px);
}

.tfpk-btn-main {
    background: var(--tfpk-red) !important;
    border-color: var(--tfpk-red) !important;
    color: #fff !important;
}

.tfpk-btn-main:hover {
    background: var(--tfpk-red-dark) !important;
    border-color: var(--tfpk-red-dark) !important;
    color: #fff !important;
}

.tfpk-btn-ghost {
    background: transparent !important;
    border-color: rgba(255, 255, 255, .35) !important;
    color: #fff !important;
}

.tfpk-btn-ghost:hover {
    background: rgba(255, 255, 255, .09) !important;
    border-color: rgba(255, 255, 255, .58) !important;
    color: #fff !important;
}

.tfpk-system-map {
    position: relative;
    padding: 19px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-top: 4px solid var(--tfpk-red);
    background: rgba(19, 27, 35, .38);
    box-shadow: 0 28px 70px rgba(13, 20, 27, .2);
    backdrop-filter: blur(8px);
}

.tfpk-system-map-head {
    padding: 5px 6px 17px;
    border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.tfpk-system-map-head span {
    display: block;
    margin-bottom: 6px;
    color: #e25555;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
}

.tfpk-system-map-head strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

.tfpk-system-step {
    position: relative;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) 28px;
    gap: 13px;
    align-items: center;
    min-height: 73px;
    padding: 11px 7px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: #fff !important;
    text-decoration: none !important;
    transition: background .2s ease, padding .2s ease;
}

.tfpk-system-step:last-child {
    border-bottom: 0;
}

.tfpk-system-step::before {
    content: "";
    position: absolute;
    left: -19px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
}

.tfpk-system-step:hover,
.tfpk-system-step.is-active {
    padding-left: 13px;
    background: rgba(255, 255, 255, .065);
}

.tfpk-system-step.is-active::before {
    background: var(--tfpk-red);
}

.tfpk-system-step-number {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #f0f4f8;
    font-size: 11px;
    font-weight: 900;
}

.tfpk-system-step.is-active .tfpk-system-step-number {
    border-color: var(--tfpk-red);
    background: var(--tfpk-red);
}

.tfpk-system-step-copy strong,
.tfpk-system-step-copy small {
    display: block;
}

.tfpk-system-step-copy strong {
    margin-bottom: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.tfpk-system-step-copy small {
    color: #99a7b4;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
}

.tfpk-system-step-arrow {
    color: #8896a4;
    font-size: 17px;
    transition: color .2s ease, transform .2s ease;
}

.tfpk-system-step:hover .tfpk-system-step-arrow,
.tfpk-system-step.is-active .tfpk-system-step-arrow {
    color: #fff;
    transform: translate(2px, -2px);
}

.tfpk-system-map-public {
    padding: 32px;
}

.tfpk-public-kicker,
.tfpk-system-map-public strong,
.tfpk-system-map-public p,
.tfpk-system-map-public a {
    display: block;
}

.tfpk-public-kicker {
    margin-bottom: 24px;
    color: #e25555;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .15em;
}

.tfpk-system-map-public strong {
    margin-bottom: 12px;
    color: #fff;
    font-size: 27px;
    line-height: 1.15;
}

.tfpk-system-map-public p {
    margin: 0 0 25px;
    color: #aeb9c4;
    font-size: 14px;
    line-height: 1.65;
}

.tfpk-system-map-public a {
    color: #fff !important;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-decoration: none !important;
    text-transform: uppercase;
}

/* ==========================================================
   GŁÓWNY UKŁAD KONTA
   ========================================================== */

.tfpk-account-section {
    margin: 0 !important;
    padding: 54px 0 72px;
    background: var(--tfpk-soft);
    box-shadow: 0 0 0 100vmax var(--tfpk-soft);
    clip-path: inset(0 -100vmax);
}

.tfpk-account-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.tfpk-account-nav {
    position: sticky;
    top: 24px;
    min-width: 0;
    border: 1px solid var(--tfpk-line);
    border-top: 4px solid var(--tfpk-red);
    background: #fff;
    box-shadow: 0 14px 38px rgba(35, 48, 61, .055);
}

.tfpk-user-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding: 20px 18px;
    background: var(--tfpk-slate);
}

.tfpk-user-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: var(--tfpk-blue);
    color: #fff;
    font-size: 21px;
    font-weight: 900;
}

.tfpk-user-copy {
    min-width: 0;
}

.tfpk-user-copy small,
.tfpk-user-copy strong,
.tfpk-user-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tfpk-user-copy small {
    margin-bottom: 4px;
    color: #e25555;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .14em;
}

.tfpk-user-copy strong {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.tfpk-user-copy span {
    margin-top: 4px;
    color: #a8b3be;
    font-size: 10px;
}

.tfpk-nav {
    padding: 9px 0;
}

.tfpk-nav-group {
    padding: 12px 10px 7px;
    border-bottom: 1px solid var(--tfpk-line);
}

.tfpk-nav-group:last-child {
    border-bottom: 0;
}

.tfpk-nav-group-label {
    display: block;
    padding: 0 10px 8px;
    color: #98a1ac;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .15em;
}

.tfpk-nav-link,
.tfpk-logout {
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) 16px;
    gap: 10px;
    align-items: center;
    min-height: 47px;
    padding: 8px 10px !important;
    border-left: 3px solid transparent;
    color: var(--tfpk-slate) !important;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.tfpk-nav-link:hover {
    background: #f3f5f7;
    color: var(--tfpk-blue) !important;
}

.tfpk-nav-link.is-active {
    border-left-color: var(--tfpk-red);
    background: #eef2f6;
    color: var(--tfpk-blue) !important;
}

.tfpk-nav-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #778391;
}

.tfpk-nav-link.is-active .tfpk-nav-icon {
    color: var(--tfpk-red);
}

.tfpk-nav-icon svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.tfpk-nav-label {
    color: inherit;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .04em;
    line-height: 1.25;
    text-transform: uppercase;
}

.tfpk-nav-arrow {
    color: #b2bac3;
    font-size: 18px;
    line-height: 1;
}

.tfpk-logout {
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 54px;
    margin: 0 10px 10px;
    border: 1px solid #ead3d3;
    background: #fff7f7;
    color: var(--tfpk-red) !important;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.tfpk-logout:hover {
    border-color: var(--tfpk-red);
    background: var(--tfpk-red);
    color: #fff !important;
}

.tfpk-nav-toggle {
    display: none;
    width: 100%;
    min-height: 52px;
    margin: 0 0 14px;
    padding: 0 18px;
    border: 1px solid var(--tfpk-line);
    border-top: 3px solid var(--tfpk-red);
    background: #fff;
    color: var(--tfpk-blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tfpk-nav-toggle-icon {
    position: relative;
    width: 20px;
    height: 14px;
    margin-right: 10px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.tfpk-nav-toggle-icon::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    border-top: 2px solid currentColor;
}

.tfpk-account-main,
.tfpk-account-shell {
    min-width: 0;
}

.tfpk-account-shell > .woocommerce {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--tfpk-text) !important;
    font-family: var(--tfpk-font) !important;
}

.tfpk-account-shell > .woocommerce::before,
.tfpk-account-shell > .woocommerce::after {
    display: none !important;
    content: none !important;
}

.tfpk-account-shell .woocommerce-MyAccount-navigation {
    display: none !important;
}

.tfpk-account-shell .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: none !important;
    min-height: 360px;
    margin: 0 !important;
    padding: 34px !important;
    float: none !important;
    border: 1px solid var(--tfpk-line);
    border-top: 4px solid var(--tfpk-blue);
    background: #fff;
    box-shadow: var(--tfpk-shadow);
}

/* Narzędzia mają własne, zaakceptowane sekcje i karty. Panel zapewnia im
   przestrzeń, ale nie zamyka ich ponownie w ciężkiej białej ramie. */
body.tfpk-endpoint-dashboard .tfpk-account-shell .woocommerce-MyAccount-content,
body.tfpk-endpoint-projekty-stolow .tfpk-account-shell .woocommerce-MyAccount-content,
body.tfpk-endpoint-konfigurator-korpusow .tfpk-account-shell .woocommerce-MyAccount-content,
body.tfpk-endpoint-tf-rozkroj .tfpk-account-shell .woocommerce-MyAccount-content,
body.tfpk-endpoint-tf-wizualizator .tfpk-account-shell .woocommerce-MyAccount-content,
body.tfpk-endpoint-pakiety-tf .tfpk-account-shell .woocommerce-MyAccount-content {
    min-height: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* ==========================================================
   NOWY KOKPIT
   ========================================================== */

body.tfpk-endpoint-dashboard .woocommerce-MyAccount-content > p:first-of-type,
body.tfpk-endpoint-dashboard .woocommerce-MyAccount-content > p:nth-of-type(2) {
    display: none !important;
}

.tfpk-dashboard {
    display: block;
}

.tfpk-dashboard-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: end;
    margin-bottom: 22px;
    padding: 28px 30px;
    border: 1px solid var(--tfpk-line);
    border-top: 4px solid var(--tfpk-blue);
    background: #fff;
}

.tfpk-dashboard-intro span {
    display: block;
    margin-bottom: 9px;
    color: var(--tfpk-red);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .15em;
}

.tfpk-dashboard-intro h2 {
    margin: 0 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--tfpk-slate) !important;
    font-size: clamp(26px, 2.3vw, 38px) !important;
    font-weight: 750 !important;
    line-height: 1.12 !important;
    letter-spacing: -.035em !important;
    text-transform: none !important;
}

.tfpk-dashboard-intro p {
    max-width: 870px;
    margin: 0 !important;
    color: var(--tfpk-text) !important;
    font-size: 14px !important;
    line-height: 1.72 !important;
}

.tfpk-dashboard-intro > a {
    align-self: center;
    color: var(--tfpk-blue) !important;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .07em;
    text-decoration: none !important;
    text-transform: uppercase;
    white-space: nowrap;
}

.tfpk-dashboard-intro > a:hover {
    color: var(--tfpk-red) !important;
}

.tfpk-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tfpk-module-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 295px;
    padding: 25px 27px 0;
    overflow: hidden;
    border: 1px solid var(--tfpk-line);
    border-top: 4px solid var(--tfpk-red);
    background: #fff;
    box-shadow: 0 12px 32px rgba(35, 48, 61, .045);
}

.tfpk-module-card::after {
    content: attr(data-number);
    position: absolute;
    right: -18px;
    top: 38px;
    color: rgba(47, 74, 104, .035);
    font-size: 150px;
    font-weight: 900;
    line-height: .8;
    pointer-events: none;
}

.tfpk-module-card.is-cabinet,
.tfpk-module-card.is-visual {
    border-top-color: var(--tfpk-blue);
}

.tfpk-module-card.is-cutting {
    background: #f9fafb;
}

.tfpk-module-card.is-visual {
    background: var(--tfpk-slate);
    border-color: var(--tfpk-slate);
    border-top-color: var(--tfpk-red);
}

.tfpk-module-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 32px;
}

.tfpk-module-number {
    color: var(--tfpk-red);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.05em;
}

.tfpk-module-tag {
    padding: 7px 9px;
    border: 1px solid var(--tfpk-line);
    color: var(--tfpk-blue);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .12em;
}

.tfpk-module-card.is-visual .tfpk-module-tag {
    border-color: rgba(255, 255, 255, .18);
    color: #cbd4dd;
}

.tfpk-module-copy {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
}

.tfpk-module-copy h3 {
    margin: 0 0 13px !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--tfpk-slate) !important;
    font-size: clamp(21px, 1.6vw, 28px) !important;
    font-weight: 750 !important;
    line-height: 1.15 !important;
    letter-spacing: -.025em !important;
    text-transform: none !important;
}

.tfpk-module-copy p {
    max-width: 530px;
    margin: 0 !important;
    color: var(--tfpk-text) !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
}

.tfpk-module-card.is-visual .tfpk-module-copy h3 {
    color: #fff !important;
}

.tfpk-module-card.is-visual .tfpk-module-copy p {
    color: #b4bec8 !important;
}

.tfpk-module-card > a {
    position: relative;
    z-index: 1;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    margin: 27px -27px 0;
    padding: 0 27px;
    border-top: 1px solid var(--tfpk-line);
    background: #f8f9fa;
    color: var(--tfpk-blue) !important;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .09em;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease;
}

.tfpk-module-card > a:hover {
    background: var(--tfpk-blue);
    color: #fff !important;
}

.tfpk-module-card.is-visual > a {
    border-top-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    color: #fff !important;
}

.tfpk-module-card.is-visual > a:hover {
    background: var(--tfpk-red);
}

.tfpk-dashboard-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 22px;
    border: 1px solid var(--tfpk-line);
    background: var(--tfpk-line);
}

.tfpk-dashboard-links > a {
    position: relative;
    min-height: 112px;
    padding: 21px 45px 20px 22px;
    background: #fff;
    color: var(--tfpk-slate) !important;
    text-decoration: none !important;
    transition: background .2s ease;
}

.tfpk-dashboard-links > a:hover {
    background: #f5f7f9;
}

.tfpk-dashboard-links span,
.tfpk-dashboard-links strong {
    display: block;
}

.tfpk-dashboard-links span {
    margin-bottom: 10px;
    color: var(--tfpk-red);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .13em;
}

.tfpk-dashboard-links strong {
    color: var(--tfpk-slate);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.tfpk-dashboard-links i {
    position: absolute;
    right: 18px;
    top: 18px;
    color: #9ba5af;
    font-size: 17px;
    font-style: normal;
}

/* ==========================================================
   WOO: TYPOGRAFIA, FORMULARZE, TABELE, ADRESY
   ========================================================== */

.tfpk-account-shell .woocommerce-MyAccount-content,
.tfpk-login-shell > .woocommerce {
    font-size: 14px;
    line-height: 1.65;
}

.tfpk-account-shell .woocommerce-MyAccount-content > h2,
.tfpk-account-shell .woocommerce-MyAccount-content > h3,
.tfpk-account-shell .woocommerce-MyAccount-content legend,
.tfpk-login-shell h2 {
    margin: 0 0 20px !important;
    padding: 0 0 13px !important;
    border-bottom: 1px solid var(--tfpk-line) !important;
    color: var(--tfpk-blue) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: .035em !important;
    text-transform: uppercase !important;
}

.tfpk-account-shell .woocommerce-MyAccount-content p,
.tfpk-account-shell .woocommerce-MyAccount-content li,
.tfpk-account-shell .woocommerce-MyAccount-content address,
.tfpk-login-shell p {
    color: var(--tfpk-text) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

.tfpk-account-shell .woocommerce-MyAccount-content a:not(.button),
.tfpk-login-shell a:not(.button) {
    color: var(--tfpk-blue) !important;
    font-weight: 750;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.tfpk-account-shell .woocommerce-MyAccount-content a:not(.button):hover,
.tfpk-login-shell a:not(.button):hover {
    color: var(--tfpk-red) !important;
}

.tfpk-account-shell button.button,
.tfpk-account-shell a.button,
.tfpk-account-shell input.button,
.tfpk-login-shell button.button,
.tfpk-login-shell a.button,
.tfpk-login-shell input.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 47px !important;
    padding: 12px 21px !important;
    border: 1px solid var(--tfpk-blue) !important;
    background: var(--tfpk-blue) !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    letter-spacing: .065em !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: background .2s ease, border-color .2s ease !important;
}

.tfpk-account-shell button.button:hover,
.tfpk-account-shell a.button:hover,
.tfpk-account-shell input.button:hover,
.tfpk-login-shell button.button:hover,
.tfpk-login-shell a.button:hover,
.tfpk-login-shell input.button:hover {
    border-color: var(--tfpk-red) !important;
    background: var(--tfpk-red) !important;
    color: #fff !important;
}

.tfpk-account-shell form .form-row,
.tfpk-login-shell form .form-row {
    margin: 0 0 17px !important;
    padding: 0 !important;
}

.tfpk-account-shell form .form-row label,
.tfpk-login-shell form .form-row label {
    display: block !important;
    margin: 0 0 7px !important;
    color: var(--tfpk-slate) !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    line-height: 1.35 !important;
    letter-spacing: .055em !important;
    text-transform: uppercase !important;
}

.tfpk-account-shell form .required,
.tfpk-login-shell form .required {
    color: var(--tfpk-red) !important;
}

.tfpk-account-shell input.input-text,
.tfpk-account-shell input[type="text"],
.tfpk-account-shell input[type="email"],
.tfpk-account-shell input[type="password"],
.tfpk-account-shell input[type="tel"],
.tfpk-account-shell input[type="number"],
.tfpk-account-shell textarea,
.tfpk-account-shell select,
.tfpk-login-shell input.input-text,
.tfpk-login-shell input[type="text"],
.tfpk-login-shell input[type="email"],
.tfpk-login-shell input[type="password"],
.tfpk-login-shell input[type="tel"],
.tfpk-login-shell textarea,
.tfpk-login-shell select {
    width: 100% !important;
    min-height: 47px !important;
    padding: 11px 13px !important;
    border: 1px solid #d7dde3 !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--tfpk-slate) !important;
    font-size: 13px !important;
    outline: none !important;
}

.tfpk-account-shell textarea,
.tfpk-login-shell textarea {
    min-height: 130px !important;
}

.tfpk-account-shell input:focus,
.tfpk-account-shell textarea:focus,
.tfpk-account-shell select:focus,
.tfpk-login-shell input:focus,
.tfpk-login-shell textarea:focus,
.tfpk-login-shell select:focus {
    border-color: var(--tfpk-blue) !important;
    outline: 2px solid rgba(47, 74, 104, .09) !important;
}

.tfpk-account-shell fieldset {
    margin: 25px 0 0 !important;
    padding: 24px !important;
    border: 1px solid var(--tfpk-line) !important;
    background: #f8f9fa !important;
}

.tfpk-account-shell table.shop_table,
.tfpk-account-shell .woocommerce-table {
    width: 100% !important;
    margin: 0 0 22px !important;
    border: 1px solid var(--tfpk-line) !important;
    border-collapse: collapse !important;
    background: #fff !important;
    box-shadow: none !important;
}

.tfpk-account-shell table.shop_table th,
.tfpk-account-shell table.shop_table td,
.tfpk-account-shell .woocommerce-table th,
.tfpk-account-shell .woocommerce-table td {
    padding: 14px 16px !important;
    border-top: 1px solid var(--tfpk-line) !important;
    color: var(--tfpk-text) !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    text-align: left;
}

.tfpk-account-shell table.shop_table thead th,
.tfpk-account-shell .woocommerce-table thead th {
    border-top: 0 !important;
    background: #f3f5f7 !important;
    color: var(--tfpk-blue) !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    letter-spacing: .09em !important;
    text-transform: uppercase !important;
}

.tfpk-account-shell .woocommerce-info,
.tfpk-account-shell .woocommerce-message,
.tfpk-account-shell .woocommerce-error,
.tfpk-login-shell .woocommerce-info,
.tfpk-login-shell .woocommerce-message,
.tfpk-login-shell .woocommerce-error {
    margin: 0 0 22px !important;
    padding: 17px 18px 17px 54px !important;
    border: 1px solid var(--tfpk-line) !important;
    border-top: 3px solid var(--tfpk-blue) !important;
    background: #fff !important;
    color: var(--tfpk-slate) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.tfpk-account-shell .woocommerce-error,
.tfpk-login-shell .woocommerce-error {
    border-top-color: var(--tfpk-red) !important;
}

.tfpk-account-shell .woocommerce-Addresses,
.tfpk-account-shell .u-columns.woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin-top: 22px !important;
}

.tfpk-account-shell .woocommerce-Addresses::before,
.tfpk-account-shell .woocommerce-Addresses::after {
    display: none !important;
    content: none !important;
}

.tfpk-account-shell .woocommerce-Address {
    width: 100% !important;
    margin: 0 !important;
    padding: 23px !important;
    float: none !important;
    border: 1px solid var(--tfpk-line) !important;
    border-top: 3px solid var(--tfpk-red) !important;
    background: #fff !important;
}

.tfpk-account-shell .woocommerce-Address:nth-child(2) {
    border-top-color: var(--tfpk-blue) !important;
}

.tfpk-account-shell .woocommerce-Address-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
    margin: 0 0 15px !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid var(--tfpk-line) !important;
}

.tfpk-account-shell .woocommerce-Address-title h3 {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--tfpk-blue) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    letter-spacing: .055em !important;
    text-transform: uppercase !important;
}

.tfpk-account-shell .woocommerce-Address-title a.edit {
    color: var(--tfpk-red) !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    letter-spacing: .06em !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

/* ==========================================================
   LOGOWANIE / REJESTRACJA
   ========================================================== */

.tfpk-login-shell {
    padding: 0;
}

.tfpk-login-shell > .woocommerce {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tfpk-login-shell .u-columns,
.tfpk-login-shell .woocommerce-form-login-register {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

.tfpk-login-shell .u-columns::before,
.tfpk-login-shell .u-columns::after {
    display: none !important;
    content: none !important;
}

.tfpk-login-shell .u-column1,
.tfpk-login-shell .u-column2,
.tfpk-login-shell .col-1,
.tfpk-login-shell .col-2 {
    width: 100% !important;
    margin: 0 !important;
    padding: 30px !important;
    float: none !important;
    border: 1px solid var(--tfpk-line) !important;
    border-top: 4px solid var(--tfpk-red) !important;
    background: #fff !important;
    box-shadow: var(--tfpk-shadow) !important;
}

.tfpk-login-shell .u-column2,
.tfpk-login-shell .col-2 {
    border-top-color: var(--tfpk-blue) !important;
}

.tfpk-login-shell form.login,
.tfpk-login-shell form.register {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* ==========================================================
   WSPARCIE
   ========================================================== */

.tfpk-support {
    margin: 0 !important;
    padding: 62px 0;
    overflow: hidden;
    background: var(--tfpk-blue-dark);
    box-shadow: 0 0 0 100vmax var(--tfpk-blue-dark);
    clip-path: inset(0 -100vmax);
}

.tfpk-support-layout {
    display: grid;
    grid-template-columns: minmax(320px, .75fr) minmax(0, 1.25fr);
    gap: clamp(45px, 7vw, 110px);
    align-items: center;
}

.tfpk-support-copy > span {
    display: block;
    margin-bottom: 14px;
    color: #e25555;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .15em;
}

.tfpk-support-copy h2 {
    max-width: 540px;
    margin: 0 0 17px;
    color: #fff;
    font-size: clamp(29px, 2.6vw, 43px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.tfpk-support-copy p {
    max-width: 560px;
    margin: 0 0 25px;
    color: #b9c3cd;
    font-size: 13px;
    line-height: 1.7;
}

.tfpk-support-main {
    display: inline-flex !important;
    align-items: center;
    gap: 15px;
    min-height: 48px;
    padding: 0 19px;
    border: 1px solid var(--tfpk-red);
    background: var(--tfpk-red);
    color: #fff !important;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-decoration: none !important;
    text-transform: uppercase;
}

.tfpk-support-main:hover {
    border-color: var(--tfpk-red-dark);
    background: var(--tfpk-red-dark);
}

.tfpk-support-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, .13);
}

.tfpk-support-links > a {
    position: relative;
    min-height: 210px;
    padding: 23px 21px 48px;
    border-right: 1px solid rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .035);
    color: #fff !important;
    text-decoration: none !important;
    transition: background .2s ease;
}

.tfpk-support-links > a:last-child {
    border-right: 0;
}

.tfpk-support-links > a:hover {
    background: rgba(255, 255, 255, .08);
}

.tfpk-support-links span,
.tfpk-support-links strong,
.tfpk-support-links small {
    display: block;
}

.tfpk-support-links span {
    margin-bottom: 32px;
    color: #e25555;
    font-size: 18px;
    font-weight: 900;
}

.tfpk-support-links strong {
    margin-bottom: 11px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.tfpk-support-links small {
    color: #aeb9c4;
    font-size: 10px;
    line-height: 1.55;
}

.tfpk-support-links i {
    position: absolute;
    right: 17px;
    bottom: 15px;
    color: #8e9aa6;
    font-size: 18px;
    font-style: normal;
}

/* ==========================================================
   RESPONSYWNOŚĆ
   ========================================================== */

@media (max-width: 1240px) {
    .tfpk-wrap {
        width: min(100% - 48px, 1320px);
    }

    .tfpk-hero-layout {
        grid-template-columns: minmax(0, 1fr) 430px;
        gap: 45px;
    }

    .tfpk-account-layout {
        grid-template-columns: 270px minmax(0, 1fr);
        gap: 22px;
    }

    .tfpk-dashboard-links {
        grid-template-columns: 1fr;
    }

    .tfpk-dashboard-links > a {
        min-height: 92px;
    }
}

@media (max-width: 1000px) {
    .tfpk-hero {
        padding: 48px 0 52px;
    }

    .tfpk-hero-layout,
    .tfpk-support-layout {
        grid-template-columns: 1fr;
    }

    .tfpk-hero::before {
        display: none;
    }

    .tfpk-system-map {
        max-width: 720px;
    }

    .tfpk-account-layout {
        grid-template-columns: 1fr;
    }

    .tfpk-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .tfpk-account-nav {
        position: static;
        display: none;
    }

    .tfpk-account-nav.is-open {
        display: block;
    }

    .tfpk-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tfpk-nav-group {
        border-right: 1px solid var(--tfpk-line);
    }

    .tfpk-module-grid {
        grid-template-columns: 1fr;
    }

    .tfpk-support-links {
        max-width: 900px;
    }
}

@media (max-width: 720px) {
    .tfpk-wrap {
        width: calc(100% - 28px);
    }

    .tfpk-hero {
        padding: 39px 0 42px;
    }

    .tfpk-title {
        font-size: clamp(34px, 10vw, 47px);
    }

    .tfpk-lead {
        font-size: 15px;
    }

    .tfpk-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tfpk-btn {
        width: 100%;
    }

    .tfpk-system-map {
        padding: 13px;
    }

    .tfpk-system-step::before {
        left: -13px;
    }

    .tfpk-account-section {
        padding: 30px 0 46px;
    }

    .tfpk-nav {
        grid-template-columns: 1fr;
    }

    .tfpk-nav-group {
        border-right: 0;
    }

    .tfpk-dashboard-intro {
        grid-template-columns: 1fr;
        padding: 23px 21px;
    }

    .tfpk-dashboard-intro > a {
        white-space: normal;
    }

    .tfpk-module-card {
        min-height: 275px;
        padding-left: 21px;
        padding-right: 21px;
    }

    .tfpk-module-card > a {
        margin-left: -21px;
        margin-right: -21px;
        padding-left: 21px;
        padding-right: 21px;
    }

    .tfpk-account-shell .woocommerce-MyAccount-content {
        padding: 23px !important;
    }

    .tfpk-account-shell .woocommerce-Addresses,
    .tfpk-account-shell .u-columns.woocommerce-Addresses,
    .tfpk-login-shell .u-columns,
    .tfpk-login-shell .woocommerce-form-login-register {
        grid-template-columns: 1fr !important;
    }

    .tfpk-login-shell .u-column1,
    .tfpk-login-shell .u-column2,
    .tfpk-login-shell .col-1,
    .tfpk-login-shell .col-2 {
        padding: 23px !important;
    }

    .tfpk-account-shell table.shop_table,
    .tfpk-account-shell .woocommerce-table {
        display: block;
        overflow-x: auto;
    }

    .tfpk-support {
        padding: 46px 0;
    }

    .tfpk-support-links {
        grid-template-columns: 1fr;
    }

    .tfpk-support-links > a {
        min-height: 160px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .13);
    }

    .tfpk-support-links > a:last-child {
        border-bottom: 0;
    }

    .tfpk-support-links span {
        margin-bottom: 20px;
    }
}

/* Ochrona przycisków kokpitu przed ogólnym kolorem linków WooCommerce. */
.tfpk-account-shell .woocommerce-MyAccount-content .tfpk-module-card > a {
    color: var(--tfpk-blue) !important;
    text-decoration: none !important;
}
.tfpk-account-shell .woocommerce-MyAccount-content .tfpk-module-card > a:hover {
    color: #fff !important;
}
.tfpk-account-shell .woocommerce-MyAccount-content .tfpk-module-card.is-visual > a {
    color: #fff !important;
}

/* ==========================================================
   TOOLSFORGE / TF PANEL KLIENTA 0.5.1
   Korekta Deep Blue, przyciski TF i techniczna rama treści
   ========================================================== */

/* Jednolite HERO w kolorze TF Deep Blue. */
.tfpk-hero {
    background: var(--tfpk-blue) !important;
    box-shadow: 0 0 0 100vmax var(--tfpk-blue) !important;
}

.tfpk-hero::before,
.tfpk-hero::after,
.tfpk-hero-grid {
    display: none !important;
    content: none !important;
}

.tfpk-lead {
    color: rgba(255, 255, 255, .78) !important;
}

.tfpk-system-map {
    border-color: rgba(255, 255, 255, .18) !important;
    border-top-color: var(--tfpk-red) !important;
    background: rgba(24, 47, 71, .42) !important;
    box-shadow: 0 24px 58px rgba(20, 38, 57, .2) !important;
    backdrop-filter: none !important;
}

/* Dwa równe przyciski w standardzie TF. */
.tfpk-actions {
    align-items: stretch !important;
    gap: 12px !important;
}

.tfpk-actions .tfpk-btn {
    flex: 0 0 262px !important;
    width: 262px !important;
    min-width: 262px !important;
    max-width: 262px !important;
    min-height: 54px !important;
    padding: 0 20px !important;
    justify-content: space-between !important;
    border-width: 1px !important;
    transition: background .18s ease, color .18s ease, border-color .18s ease !important;
}

.tfpk-actions .tfpk-btn:hover {
    transform: none !important;
}

.tfpk-actions .tfpk-btn span {
    margin-left: auto;
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
}

.tfpk-btn-main {
    background: var(--tfpk-red) !important;
    border-color: var(--tfpk-red) !important;
    color: #fff !important;
}

.tfpk-btn-main:hover {
    background: var(--tfpk-red-dark) !important;
    border-color: var(--tfpk-red-dark) !important;
    color: #fff !important;
}

.tfpk-btn-ghost {
    background: transparent !important;
    border-color: rgba(255, 255, 255, .72) !important;
    color: #fff !important;
}

.tfpk-btn-ghost:hover {
    background: #fff !important;
    border-color: #fff !important;
    color: var(--tfpk-blue) !important;
}

/* Profil użytkownika i kafel podsumowujący system. */
.tfpk-user-card {
    background: var(--tfpk-blue) !important;
}

.tfpk-user-avatar {
    border-color: rgba(255, 255, 255, .28) !important;
    background: var(--tfpk-blue-dark) !important;
}

.tfpk-user-copy span {
    color: rgba(255, 255, 255, .72) !important;
}

.tfpk-module-card.is-visual {
    border-color: var(--tfpk-blue) !important;
    border-top-color: var(--tfpk-red) !important;
    background: var(--tfpk-blue) !important;
}

.tfpk-module-card.is-visual::after {
    color: rgba(255, 255, 255, .045) !important;
}

.tfpk-module-card.is-visual .tfpk-module-copy p {
    color: rgba(255, 255, 255, .76) !important;
}

.tfpk-module-card.is-visual > a {
    border-top-color: rgba(255, 255, 255, .16) !important;
    background: var(--tfpk-blue-dark) !important;
    color: #fff !important;
}

.tfpk-module-card.is-visual > a:hover {
    background: var(--tfpk-red) !important;
}

/* Wylogowanie jest stale czerwonym przyciskiem. */
.tfpk-logout {
    border-color: var(--tfpk-red) !important;
    background: var(--tfpk-red) !important;
    color: #fff !important;
}

.tfpk-logout .tfpk-nav-icon,
.tfpk-logout span {
    color: #fff !important;
}

.tfpk-logout:hover,
.tfpk-logout:focus-visible {
    border-color: var(--tfpk-red-dark) !important;
    background: var(--tfpk-red-dark) !important;
    color: #fff !important;
}

/* Techniczna rama obejmująca całą zawartość aktywnej zakładki. */
.tfpk-account-main {
    position: relative;
    min-width: 0;
    padding: 18px;
    overflow: visible;
    border: 1px solid var(--tfpk-line);
    border-top: 4px solid var(--tfpk-blue);
    background: #f7f8fa;
    box-shadow: var(--tfpk-shadow);
}

.tfpk-account-main::before {
    content: "";
    position: absolute;
    top: -4px;
    left: -1px;
    width: 150px;
    height: 4px;
    background: var(--tfpk-red);
    pointer-events: none;
}

.tfpk-account-shell > .woocommerce {
    background: transparent !important;
}

.tfpk-account-shell .woocommerce-MyAccount-content {
    min-height: 0 !important;
    padding: 16px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.tfpk-endpoint-dashboard .tfpk-account-shell .woocommerce-MyAccount-content,
body.tfpk-endpoint-projekty-stolow .tfpk-account-shell .woocommerce-MyAccount-content,
body.tfpk-endpoint-konfigurator-korpusow .tfpk-account-shell .woocommerce-MyAccount-content,
body.tfpk-endpoint-tf-rozkroj .tfpk-account-shell .woocommerce-MyAccount-content,
body.tfpk-endpoint-tf-wizualizator .tfpk-account-shell .woocommerce-MyAccount-content,
body.tfpk-endpoint-pakiety-tf .tfpk-account-shell .woocommerce-MyAccount-content {
    padding: 0 !important;
}

@media (max-width: 760px) {
    .tfpk-actions .tfpk-btn {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .tfpk-account-main {
        padding: 11px;
    }

    .tfpk-account-main::before {
        width: 90px;
    }
}

/* ==========================================================
   TOOLSFORGE / TF PANEL KLIENTA 0.5.2
   Przyciski 1:1 z TF Poznaj System, 90% szerokości i wspólna rama
   ========================================================== */

/* Wewnętrzny układ panelu korzysta z szerokości liczonej względem okna,
   a nie z węższego kontenera motywu. */
.tfpk-wrap {
    width: 90vw !important;
    max-width: 1720px !important;
}

/* Przyciski przeniesione z zaakceptowanego wzorca TF Poznaj System. */
.tfpk-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: min(100%, 620px) !important;
    max-width: 620px !important;
    margin-top: 34px !important;
}

.tfpk-actions .tfpk-btn,
.tfpk-actions a.tfpk-btn {
    position: relative !important;
    z-index: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 14px 25px !important;
    overflow: hidden !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 0 !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    font-family: "Barlow", "Segoe UI", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: .5px !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background-color .3s ease, color .3s ease !important;
}

.tfpk-actions .tfpk-btn::after {
    content: "" !important;
    position: absolute !important;
    z-index: -1 !important;
    top: 0 !important;
    left: -100% !important;
    width: 50% !important;
    height: 100% !important;
    pointer-events: none !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent) !important;
    transform: skewX(-25deg) !important;
    transition: left .6s ease !important;
}

.tfpk-actions .tfpk-btn:hover::after,
.tfpk-actions .tfpk-btn:focus-visible::after {
    left: 150% !important;
}

.tfpk-actions .tfpk-btn:hover,
.tfpk-actions .tfpk-btn:focus-visible {
    transform: none !important;
}

.tfpk-actions .tfpk-btn-main,
.tfpk-actions .tfpk-btn-main:visited {
    background: var(--tfpk-red) !important;
    background-color: var(--tfpk-red) !important;
    color: #fff !important;
}

.tfpk-actions .tfpk-btn-main:hover,
.tfpk-actions .tfpk-btn-main:focus-visible {
    background: var(--tfpk-red-dark) !important;
    background-color: var(--tfpk-red-dark) !important;
    color: #fff !important;
}

/* Na granatowym HERO drugi przycisk otrzymuje ciemniejszy, wypełniony wariant
   zamiast obrysu z poprzedniej wersji. Konstrukcja pozostaje 1:1 z TFPS. */
.tfpk-actions .tfpk-btn-ghost,
.tfpk-actions .tfpk-btn-ghost:visited {
    background: var(--tfpk-blue-dark) !important;
    background-color: var(--tfpk-blue-dark) !important;
    color: #fff !important;
}

.tfpk-actions .tfpk-btn-ghost:hover,
.tfpk-actions .tfpk-btn-ghost:focus-visible {
    background: #1c3045 !important;
    background-color: #1c3045 !important;
    color: #fff !important;
}

/* Wspólna techniczna rama obejmuje menu i treść aktualnej zakładki. */
.tfpk-account-section {
    padding-top: 38px !important;
    padding-bottom: 64px !important;
}

.tfpk-account-layout {
    position: relative !important;
    grid-template-columns: 300px minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
    padding: 18px !important;
    overflow: visible !important;
    border: 1px solid #dfe4e8 !important;
    border-top: 4px solid var(--tfpk-blue) !important;
    background: #f7f8fa !important;
    box-shadow: 0 18px 48px rgba(35, 48, 61, .08) !important;
}

.tfpk-account-layout::before {
    content: "" !important;
    position: absolute !important;
    top: -4px !important;
    left: -1px !important;
    width: 150px !important;
    height: 4px !important;
    background: var(--tfpk-red) !important;
    pointer-events: none !important;
}

.tfpk-account-nav {
    top: 18px !important;
    box-shadow: 0 8px 24px rgba(35, 48, 61, .045) !important;
}

/* Usuwamy poprzednią ramę obejmującą tylko prawą kolumnę. */
.tfpk-account-main {
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tfpk-account-main::before {
    display: none !important;
    content: none !important;
}

@media (max-width: 1240px) {
    .tfpk-wrap {
        width: 92vw !important;
        max-width: none !important;
    }

    .tfpk-account-layout {
        grid-template-columns: 270px minmax(0, 1fr) !important;
        gap: 14px !important;
        padding: 15px !important;
    }
}

@media (max-width: 1000px) {
    .tfpk-account-layout {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

@media (max-width: 720px) {
    .tfpk-wrap {
        width: calc(100vw - 24px) !important;
    }

    .tfpk-actions {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: none !important;
    }

    .tfpk-account-section {
        padding-top: 24px !important;
        padding-bottom: 44px !important;
    }

    .tfpk-account-layout {
        padding: 10px !important;
    }

    .tfpk-account-layout::before {
        width: 90px !important;
    }
}


/* ==========================================================
   TOOLSFORGE / TF PANEL KLIENTA 0.5.3
   Dokładne centrowanie względem okna i nagłówki TF Deep Blue
   ========================================================== */

/* Przesunięcie jest wyliczane przez panel-ui.js względem realnej szerokości
   okna, a nie względem kontenera motywu. Dzięki temu lewy i prawy oddech są
   identyczne także w motywach z asymetrycznym kontenerem treści. */
.tfpk-account-section > .tfpk-wrap {
    transform: translateX(var(--tfpk-viewport-center-shift, 0px)) !important;
    will-change: transform;
}

/* Wszystkie nagłówki wewnątrz właściwej części panelu korzystają z
   podstawowego koloru TF Deep Blue. */
.tfpk-account-main h1,
.tfpk-account-main h2,
.tfpk-account-main h3,
.tfpk-account-main h4,
.tfpk-account-main h5,
.tfpk-account-main h6,
.tfpk-dashboard-intro h2,
.tfpk-module-copy h3,
.tfpk-dashboard-links strong {
    color: var(--tfpk-blue) !important;
}

/* Ciemna karta Wizualizatora zachowuje biały nagłówek dla czytelności. */
.tfpk-module-card.is-visual .tfpk-module-copy h3 {
    color: #fff !important;
}

@media (max-width: 720px) {
    .tfpk-account-section > .tfpk-wrap {
        will-change: auto;
    }
}


/* ==========================================================
   TOOLSFORGE / TF PANEL KLIENTA 0.5.4
   Mniej linii — spokojniejsza rama i pionowy akcent powitania
   ========================================================== */

/* Główna rama ma pozostać delikatną techniczną tabelą bez podwójnego
   czerwono-granatowego akcentu na górnej krawędzi. */
.tfpk-account-layout {
    border-top: 1px solid #dfe4e8 !important;
}

.tfpk-account-layout::before {
    display: none !important;
    content: none !important;
}

/* Lewe menu zachowuje własną subtelną ramkę, ale bez czerwonego paska
   nad polem zalogowanego użytkownika. */
.tfpk-account-nav {
    border-top: 1px solid var(--tfpk-line) !important;
}

/* Sekcja powitalna korzysta z pionowego akcentu po lewej stronie,
   zgodnego z zaakceptowanymi nagłówkami sekcji ToolsForge. */
.tfpk-dashboard-intro {
    border-top: 1px solid var(--tfpk-line) !important;
    border-left: 4px solid var(--tfpk-blue) !important;
}

/* ==========================================================
   TOOLSFORGE / TF PANEL KLIENTA 0.5.5
   Typografia ToolsForge i nadtytuł stronicowania
   ========================================================== */

/* Główny krój strony TF: Barlow dla treści i Barlow Condensed dla nagłówków. */
.tfpk-root {
    --tfpk-font: "Barlow", "Segoe UI", Arial, sans-serif;
    --tfpk-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    font-family: var(--tfpk-font) !important;
}

.tfpk-root,
.tfpk-root a,
.tfpk-root button,
.tfpk-root input,
.tfpk-root textarea,
.tfpk-root select,
.tfpk-account-main,
.tfpk-account-main p,
.tfpk-account-main span,
.tfpk-account-main small,
.tfpk-account-main strong,
.tfpk-account-main label,
.tfpk-account-main td,
.tfpk-account-main th {
    font-family: var(--tfpk-font) !important;
}

.tfpk-title,
.tfpk-dashboard-intro h2,
.tfpk-module-copy h3,
.tfpk-account-main h1,
.tfpk-account-main h2,
.tfpk-account-main h3,
.tfpk-account-main h4,
.tfpk-account-main h5,
.tfpk-account-main h6,
.tfpk-support-copy h2,
.tfpk-support-links strong,
.tfpk-system-map-head strong,
.tfpk-system-step-copy strong {
    font-family: var(--tfpk-head) !important;
}

/* Czytelniejsze menu boczne bez zmiany zaakceptowanych ikon. */
.tfpk-user-copy small {
    font-size: 9px !important;
}

.tfpk-user-copy strong {
    font-size: 15px !important;
    line-height: 1.2 !important;
}

.tfpk-user-copy span {
    font-size: 11px !important;
    line-height: 1.3 !important;
}

.tfpk-nav-group-label {
    padding-bottom: 10px !important;
    font-size: 9px !important;
    letter-spacing: .16em !important;
}

.tfpk-nav-link,
.tfpk-logout {
    min-height: 50px !important;
}

.tfpk-nav-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: .025em !important;
}

.tfpk-logout .tfpk-nav-label,
.tfpk-logout span:not(.tfpk-nav-icon) {
    font-size: 12px !important;
    font-weight: 700 !important;
}

/* Nadtytuł w lewej części belki stronicowania. Sama belka zachowuje
   dotychczasowe tło TF Deep Blue — zmieniamy wyłącznie ten tekst. */
.tfpk-pagination-eyebrow {
    color: var(--tfpk-red) !important;
    -webkit-text-fill-color: var(--tfpk-red) !important;
    font-family: var(--tfpk-font) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
}

/* Typografia dolnej sekcji wsparcia. */
.tfpk-support-copy > span,
.tfpk-support-links span {
    font-family: var(--tfpk-font) !important;
    font-weight: 700 !important;
}

.tfpk-support-copy h2 {
    font-weight: 700 !important;
    letter-spacing: -.02em !important;
}

.tfpk-support-links strong {
    font-weight: 600 !important;
    letter-spacing: .01em !important;
}

@media (max-width: 1240px) {
    .tfpk-nav-label {
        font-size: 11.5px !important;
    }
}

/* ==========================================================
   TOOLSFORGE / TF PANEL KLIENTA 0.5.7
   Prywatne Blaty na zamówienie + pięcioetapowe Centrum
   ========================================================== */

/* 04 Blaty na zamówienie — pełnoprawna karta narzędzia. */
.tfpk-module-card.is-tops {
    border-top-color: var(--tfpk-blue) !important;
    background: #fff !important;
}

/* Przy pięciu etapach: pierwsze cztery karty 2x2, Wizualizator = pełna szerokość. */
.tfpk-module-grid.has-custom-tops .tfpk-module-card.is-wide-visual {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    grid-template-rows: minmax(235px, auto) 54px;
    min-height: 325px;
    padding: 0;
    column-gap: 0;
}

.tfpk-module-card.is-wide-visual .tfpk-module-wide-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 25px 30px 26px;
}

.tfpk-module-card.is-wide-visual .tfpk-module-copy {
    flex: 1 1 auto;
}

.tfpk-module-card.is-wide-visual .tfpk-module-media-slot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    margin: 24px 24px 24px 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    background:
        linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.01)),
        var(--tfpk-blue-dark);
}

.tfpk-module-card.is-wide-visual .tfpk-module-media-slot::before,
.tfpk-module-card.is-wide-visual .tfpk-module-media-slot::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, .07);
}

.tfpk-module-card.is-wide-visual .tfpk-module-media-slot::before {
    width: 1px;
    height: 140%;
    transform: rotate(32deg);
}

.tfpk-module-card.is-wide-visual .tfpk-module-media-slot::after {
    width: 140%;
    height: 1px;
    transform: rotate(-18deg);
}

.tfpk-module-card.is-wide-visual .tfpk-module-media-slot span {
    position: relative;
    z-index: 2;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(24,47,71,.72);
    color: rgba(255,255,255,.58);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .12em;
    text-align: center;
    text-transform: uppercase;
}

.tfpk-module-card.is-wide-visual > a {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 54px;
    margin: 0;
    padding: 0 30px;
}

@media (max-width: 1000px) {
    .tfpk-module-grid.has-custom-tops .tfpk-module-card.is-wide-visual {
        grid-column: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 54px;
    }

    .tfpk-module-card.is-wide-visual .tfpk-module-media-slot {
        grid-column: 1;
        grid-row: 2;
        min-height: 190px;
        margin: 0 24px 24px;
    }

    .tfpk-module-card.is-wide-visual > a {
        grid-column: 1;
        grid-row: 3;
    }
}

@media (max-width: 720px) {
    .tfpk-module-card.is-wide-visual .tfpk-module-wide-copy {
        padding: 23px 21px 22px;
    }

    .tfpk-module-card.is-wide-visual .tfpk-module-media-slot {
        min-height: 160px;
        margin: 0 21px 21px;
    }

    .tfpk-module-card.is-wide-visual > a {
        padding: 0 21px;
    }
}
