/*
 * MEGA MENU — Tom-Drew kategorie produktów
 * Plik: hara-child/mega-menu.css
 */

/* ── Panel dropdown ─────────────────────────────────────────────────────────── */

/* Nadpisujemy domyślny left: 14px z template.css i ustawiamy pełną szerokość */
.header-default ul.navbar-nav > li.tdmm-oferta > .tdmm-dropdown {
    left: 0 !important;
    right: 0 !important;
    padding: 28px 24px 24px !important;
    width: 100% !important;
    border-top: 3px solid var(--tb-theme-color) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10) !important;
    background: #fff !important;
    /* Znikanie — płynne; pokazywanie — natychmiastowe (patrz reguła hover poniżej) */
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

/* Pokaż błyskawicznie — bez animacji wejścia */
.header-default ul.navbar-nav > li.tdmm-oferta:hover > .tdmm-dropdown {
    transition: none !important;
}

/* ── Siatka kafelków ─────────────────────────────────────────────────────────── */

.tdmm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── Pojedynczy kafelek ───────────────────────────────────────────────────────── */

.tdmm-card {
    display: block;
    position: relative;
    height: 88px;                   /* dopasowane do szerokiego/niskiego formatu zdjęć */
    border-radius: 6px;
    overflow: hidden;
    background-color: #c5d5c5;      /* placeholder kolor gdy brak obrazka */
    background-size: cover;
    background-position: center center;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* Gradient ciemny od dołu — czytelność tekstu */
.tdmm-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.68) 0%,
        rgba(0, 0, 0, 0.20) 50%,
        rgba(0, 0, 0, 0.00) 100%
    );
    transition: background 0.22s ease;
    z-index: 1;
    border-radius: inherit;
}

/* Hover: brązowy tint w kolorze marki (#7f5f43) */
.tdmm-card:hover::before {
    background: linear-gradient(
        to top,
        rgba(127, 95, 67, 0.85) 0%,
        rgba(127, 95, 67, 0.45) 55%,
        rgba(0, 0, 0, 0.04) 100%
    );
}

/* Delikatne uniesienie kafelka */
.tdmm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(97, 58, 46, 0.30);
    text-decoration: none !important;
}

/* ── Etykieta nazwy kategorii ────────────────────────────────────────────────── */

.tdmm-card-label {
    position: absolute;
    bottom: 9px;
    left: 11px;
    right: 11px;
    z-index: 2;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.025em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.18s ease;
}

.tdmm-card:hover .tdmm-card-label {
    transform: translateY(-2px);
}

/* ── Korekty pozycji tła dla wybranych kategorii ─────────────────────────────── */

/* Drewutnie — przesunięcie w prawo */
.tdmm-card[href*="/drewutnie"] {
    background-position: 70% center;
}

/* Sztachety — maksymalnie w prawo */
.tdmm-card[href*="/sztachety"] {
    background-position: right center;
}

/* Huśtawki — drewniana huśtawka jest w ~80% szerokości obrazu */
.tdmm-card[href*="/hustawki"] {
    background-position: 80% center;
}

/* Pergole — kratka pergoli widoczna w ~78% szerokości obrazu */
.tdmm-card[href*="/pergole"] {
    background-position: 78% center;
}

/* ── Intro tekst w mega menu ─────────────────────────────────────────────────── */

.tdmm-intro {
    margin: 0 0 16px;
}

.tdmm-intro-heading {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 5px;
    letter-spacing: .01em;
}

.tdmm-intro p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.tdmm-intro a {
    color: var(--tb-theme-color, #7f5f43);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.tdmm-intro a:hover { text-decoration: underline; }

/* ── Przycisk CTA pod siatką ─────────────────────────────────────────────────── */

.tdmm-footer {
    margin-top: 14px;
    text-align: right;
}

.tdmm-cta-btn {
    display: inline-block;
    padding: 9px 22px;
    background: var(--tb-theme-color, #7f5f43);
    color: #fff !important;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none !important;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, transform 0.15s ease;
}

.tdmm-cta-btn:hover {
    background: #613a2e !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* ── Mobile: nie pokazujemy (motyw używa offcanvas) ──────────────────────────── */

@media (max-width: 1199px) {
    .tdmm-oferta > .tdmm-dropdown {
        display: none !important;
    }
}

/* ── Strona /oferta/ — strip layout z cover foto ────────────────────────────── */

/* Podstawowe pseudo-elementy dla cover — potrzebne dla clip-path */
.custom-image-list-categories .item-cat {
    position: relative;
    overflow: hidden;
}

.custom-image-list-categories .item-cat::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--cat-cover);
    background-size: cover;
    background-position: center center;
    z-index: 3;
    pointer-events: none;
}

.custom-image-list-categories .item-cat::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(0, 0, 0, 0.18) 50%,
        rgba(0, 0, 0, 0.00) 100%
    );
    z-index: 4;
    border-radius: inherit;
    pointer-events: none;
}

/* ── Strips: siatka → kolumna pasków ─────────────────────────────────────────── */

body.oferta .custom-image-list-categories.row.grid {
    flex-direction: column !important;
    gap: 10px;
}

body.oferta .custom-image-list-categories .item.item-image {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
}

body.oferta .custom-image-list-categories .item-cat {
    display: flex !important;
    flex-direction: row !important;
    height: 150px;
    border-radius: 8px;
    cursor: pointer;
    background: #f8f5f0;
}

/* Lewa strefa: produkt wycięty */
body.oferta .custom-image-list-categories .item-cat a.cat-image {
    width: 22%;
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #f8f5f0;
    position: relative;
    z-index: 5;
}

body.oferta .custom-image-list-categories .item-cat a.cat-image img {
    max-height: 126px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Środkowa strefa: nazwa + liczba */
body.oferta .custom-image-list-categories .item-cat .content {
    width: 28%;
    flex-shrink: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 16px 22px;
    background: #fff;
    border-right: 1px solid #ede8e3;
    position: relative;
    z-index: 5;
    transition: background 0.35s ease;
}

body.oferta .custom-image-list-categories .item-cat .content .cat-name {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #2a2a2a !important;
    line-height: 1.3;
    display: block;
    margin-bottom: 6px;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

body.oferta .custom-image-list-categories .item-cat .content .count-item {
    font-size: 13.5px !important;
    color: #999 !important;
    display: block;
    transition: color 0.3s ease;
}

/* Cover foto — widoczna po prawej (50% szerokości), zawsze */
body.oferta .custom-image-list-categories .item-cat::before {
    clip-path: inset(0 0 0 50%);
    opacity: 1;
    transform: none;
    transition: clip-path 0.4s ease;
}

/* Gradient — widoczny po prawej, zawsze */
body.oferta .custom-image-list-categories .item-cat::after {
    clip-path: inset(0 0 0 50%);
    opacity: 1;
    transition: clip-path 0.4s ease;
}

/* Hover: cover rozlewa się na cały pasek */
body.oferta .custom-image-list-categories .item-cat:hover::before {
    clip-path: inset(0);
}

body.oferta .custom-image-list-categories .item-cat:hover::after {
    clip-path: inset(0);
}

body.oferta .custom-image-list-categories .item-cat:hover .content {
    background: transparent;
    border-right-color: transparent;
}

body.oferta .custom-image-list-categories .item-cat:hover .cat-name {
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.60);
}

body.oferta .custom-image-list-categories .item-cat:hover .count-item {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Chowamy ewentualny przycisk "shop now" w pasie */
body.oferta .custom-image-list-categories .item-cat .cat-hover {
    display: none;
}

/* ── Shortcode [tdmm_oferta_strips] — automatyczne paski kategorii ────────── */

/* SEO intro nad siatką kategorii */
.tdmm-strips-wrap {
    width: 100%;
    padding-bottom: 48px;
}

.tdmm-strips-intro {
    margin-bottom: 40px;
    text-align: center;
}

.tdmm-strips-intro h2 {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    color: #2a2a2a;
    margin: 0 0 10px;
    line-height: 1.3;
}

.tdmm-strips-intro p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 820px;
}

/* Siatka 2-kolumnowa */
.tdmm-strips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

@media (max-width: 768px) {
    .tdmm-strips { grid-template-columns: 1fr; }
}

.tdmm-strip {
    display: flex;
    flex-direction: row;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    position: relative;
    background: #f8f5f0;
    cursor: pointer;
}

/* Cover foto — prawych 50%, zawsze widoczne */
.tdmm-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--strip-cover);
    background-size: cover;
    background-position: center center;
    clip-path: inset(0 0 0 50%);
    transition: clip-path 0.4s ease;
    z-index: 3;
}

/* Gradient czytelności */
.tdmm-strip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(0, 0, 0, 0.18) 50%,
        rgba(0, 0, 0, 0.00) 100%
    );
    clip-path: inset(0 0 0 50%);
    transition: clip-path 0.4s ease;
    z-index: 4;
    pointer-events: none;
}

/* Cutout: produkt po lewej (22%) — białe tło */
.tdmm-strip-cutout {
    width: 22%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #fff;
    position: relative;
    z-index: 5;
}

.tdmm-strip-cutout img {
    max-height: 126px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Info: nazwa + liczba (28%) — ciemny brąz marki */
.tdmm-strip-info {
    width: 28%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 18px;
    background: #7f5f43;
    border-right: none;
    position: relative;
    z-index: 5;
    transition: background 0.35s ease;
}

.tdmm-strip-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.tdmm-strip-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    display: block;
    transition: color 0.3s ease;
}

/* Hover: cover rozlewa się na całą szerokość */
.tdmm-strip:hover::before { clip-path: inset(0); }
.tdmm-strip:hover::after  { clip-path: inset(0); }

.tdmm-strip:hover .tdmm-strip-info {
    background: transparent;
}

.tdmm-strip:hover .tdmm-strip-name  { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.tdmm-strip:hover .tdmm-strip-count { color: rgba(255,255,255,0.85); }

/* ── Shortcode [tdmm_oferta_bottom] ─────────────────────────────────────────── */

.tdmm-bottom {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 40px 0 20px;
}

.tdmm-placeholder-inner {
    text-align: center;
    color: #a89880;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.tdmm-placeholder-inner svg { opacity: 0.6; }

.tdmm-placeholder-inner span {
    font-size: 15px;
    font-weight: 600;
}

.tdmm-placeholder-inner small {
    font-size: 12px;
    opacity: 0.7;
}

/* FAQ accordion — CSS-only */
.tdmm-faq { width: 100%; }

.tdmm-faq-heading {
    font-size: clamp(18px, 2vw, 23px);
    font-weight: 700;
    color: #2a2a2a;
    margin: 0 0 20px;
}

.tdmm-faq-toggle { display: none; }

.tdmm-faq-item {
    border-bottom: 1px solid #e8e0d8;
}

.tdmm-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 4px;
    font-size: 15.5px;
    font-weight: 600;
    color: #2a2a2a;
    cursor: pointer;
    gap: 16px;
    user-select: none;
    transition: color 0.2s;
}

.tdmm-faq-q:hover { color: #7f5f43; }

.tdmm-faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
}

.tdmm-faq-icon::before,
.tdmm-faq-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.tdmm-faq-icon::before { width: 20px; height: 2px; top: 9px; left: 0; }
.tdmm-faq-icon::after  { width: 2px; height: 20px; left: 9px; top: 0; }

.tdmm-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
}

.tdmm-faq-a > div {
    padding: 0 4px 18px;
    font-size: 14.5px;
    color: #555;
    line-height: 1.75;
}

/* Otwarty stan */
.tdmm-faq-toggle:checked + .tdmm-faq-q { color: #7f5f43; }
.tdmm-faq-toggle:checked + .tdmm-faq-q .tdmm-faq-icon::after { transform: rotate(90deg); opacity: 0; }
.tdmm-faq-toggle:checked ~ .tdmm-faq-a { max-height: 400px; }


/* ── Shortcode [tdmm_o_firmie] ────────────────────────────────────────────── */

.tdmm-about {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: inherit;
    color: #2a2a2a;
}

/* Intro: 2 kolumny */
.tdmm-about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 64px;
}

.tdmm-about-h2 {
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700;
    color: #613a2e;
    margin: 0 0 20px;
    line-height: 1.25;
}

.tdmm-about-text p {
    font-size: 15.5px;
    line-height: 1.75;
    margin: 0 0 14px;
    color: #3a3a3a;
}
.tdmm-about-text p:last-child { margin-bottom: 0; }

.tdmm-about-photo {
    border-radius: 10px;
    overflow: hidden;
    background: #f0ebe4;
    aspect-ratio: 4 / 3;
}

.tdmm-about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Trzy filary */
.tdmm-about-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 56px;
}

.tdmm-about-pillar {
    background: #faf7f4;
    border: 1px solid #ede5da;
    border-radius: 10px;
    padding: 28px 24px;
}

.tdmm-pillar-icon {
    width: 52px;
    height: 52px;
    background: #7f5f43;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #fff;
}

.tdmm-about-pillar h3 {
    font-size: 15.5px;
    font-weight: 700;
    color: #613a2e;
    margin: 0 0 8px;
}

.tdmm-about-pillar p {
    font-size: 14.5px;
    line-height: 1.65;
    color: #555;
    margin: 0;
}

/* CTA */
.tdmm-about-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 16px;
}

.tdmm-about-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .2s, color .2s, border-color .2s;
}

.tdmm-about-btn--primary {
    background: #7f5f43;
    color: #fff !important;
    border: 2px solid #7f5f43;
}
.tdmm-about-btn--primary:hover { background: #613a2e; border-color: #613a2e; }

.tdmm-about-btn--outline {
    background: transparent;
    color: #7f5f43 !important;
    border: 2px solid #7f5f43;
}
.tdmm-about-btn--outline:hover { background: #7f5f43; color: #fff !important; }

/* Responsywność */
@media (max-width: 860px) {
    .tdmm-about-intro  { grid-template-columns: 1fr; gap: 32px; }
    .tdmm-about-photo  { order: -1; }
    .tdmm-about-pillars { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .tdmm-about-cta { flex-direction: column; align-items: stretch; text-align: center; }
}


/* ── Shortcode [tdmm_formularz_zwrotu] ────────────────────────────────────── */

.tdmm-return-wrap {
    max-width: 820px;
    margin: 0 auto;
    font-family: inherit;
}

.tdmm-return-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #faf7f4;
    border: 1px solid #e8ddd3;
    border-left: 4px solid #7f5f43;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 28px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #3a3a3a;
}
.tdmm-return-info svg { flex-shrink: 0; margin-top: 2px; color: #7f5f43; }
.tdmm-return-info strong { display: block; margin-bottom: 4px; color: #613a2e; }
.tdmm-return-info a { color: #7f5f43; }

.tdmm-return-form {
    border: 1px solid #ddd4c8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.tdmm-return-header {
    background: #613a2e;
    color: #fff;
    padding: 20px 28px;
}
.tdmm-return-header h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}
.tdmm-return-header p {
    margin: 0;
    font-size: 12.5px;
    opacity: .75;
}

.tdmm-return-addressee {
    background: #faf7f4;
    border-bottom: 1px solid #e8ddd3;
    padding: 16px 28px;
    font-size: 14px;
    line-height: 1.7;
    color: #3a3a3a;
}

.tdmm-return-body {
    padding: 24px 28px 28px;
}

.tdmm-return-declaration {
    font-size: 14.5px;
    color: #3a3a3a;
    margin: 0 0 24px;
}

.tdmm-return-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tdmm-return-field { display: flex; flex-direction: column; gap: 6px; }
.tdmm-return-field label {
    font-size: 12px;
    font-weight: 600;
    color: #7f5f43;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.tdmm-return-field--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.tdmm-return-field--2col > div { display: flex; flex-direction: column; gap: 6px; }
.tdmm-return-field--2col > div label { font-size: 12px; font-weight: 600; color: #7f5f43; text-transform: uppercase; letter-spacing: .05em; }

.tdmm-return-line {
    height: 32px;
    border-bottom: 1px solid #ccc4b8;
    width: 100%;
}
.tdmm-return-line--short { width: 280px; max-width: 100%; }

.tdmm-return-signature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px dashed #ddd4c8;
}
.tdmm-return-signature > div { display: flex; flex-direction: column; gap: 8px; }
.tdmm-return-signature label { font-size: 12px; font-weight: 600; color: #7f5f43; text-transform: uppercase; letter-spacing: .05em; }

.tdmm-return-actions {
    margin-top: 20px;
    text-align: right;
}

.tdmm-return-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #7f5f43;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.tdmm-return-print-btn:hover { background: #613a2e; }

@media (max-width: 600px) {
    .tdmm-return-field--2col,
    .tdmm-return-signature { grid-template-columns: 1fr; }
    .tdmm-return-body,
    .tdmm-return-addressee,
    .tdmm-return-header { padding-left: 16px; padding-right: 16px; }
}


/* ── Strona odstąpienia od umowy — nadpisanie stylów wtyczki ─────────────── */

.tdw-wrap {
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.tdw-box {
    background: #fff;
    border: 1px solid #ddd4c8;
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

/* ── Desktop: 2-kolumnowy grid ───────────────────────────────────────────── */
@media (min-width: 769px) {
    .tdw-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 52px;
        align-items: start;
    }

    /* Pełna szerokość: tytuł i pasek kroków na górze */
    .tdw-box > .tdw-title  { grid-column: 1 / -1; grid-row: 1; margin-bottom: 6px; }
    .tdw-box > .tdw-steps  { grid-column: 1 / -1; grid-row: 2; margin-bottom: 28px; }

    /* Lewa kolumna: podtytuł + info jak to działa */
    .tdw-box > .tdw-subtitle { grid-column: 1; grid-row: 3; }
    .tdw-box > .tdw-info-bar { grid-column: 1; grid-row: 4; margin-bottom: 0; }

    /* Prawa kolumna: komunikat + formularz */
    .tdw-box > p:not(.tdw-title):not(.tdw-subtitle) { grid-column: 2; grid-row: 3; }
    .tdw-box > form                                  { grid-column: 2; grid-row: 4; }

    /* Przycisk: wyrównany do prawej, nie full-width */
    .tdw-box form .tdw-btn,
    .tdw-box form .tdw-btn-primary {
        display: block;
        margin-left: auto;
        margin-top: 14px;
        padding: 12px 32px;
        font-size: 15px;
        width: auto;
    }
}

/* Pasek kroków */
.tdw-steps {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd4c8;
}

.tdw-step {
    flex: 1;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    background: #f5f0ea;
    color: #a08060;
    transition: background .2s, color .2s;
}

.tdw-step.active {
    background: #7f5f43;
    color: #fff;
}

/* Tytuł i podtytuł */
.tdw-title {
    font-size: 20px;
    font-weight: 700;
    color: #613a2e;
    margin: 0 0 8px;
    line-height: 1.3;
}

.tdw-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
    margin: 0 0 28px;
}

/* Info bar (instrukcja jak to działa) */
.tdw-info-bar {
    background: #faf7f4;
    border: 1px solid #e8ddd3;
    border-left: 4px solid #7f5f43;
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 13.5px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Pola formularza */
.tdw-field {
    margin-bottom: 18px;
}

.tdw-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #7f5f43;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
}

.tdw-field input[type="number"],
.tdw-field input[type="email"],
.tdw-field input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc4b8;
    border-radius: 6px;
    font-size: 15px;
    color: #2a2a2a;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.tdw-field input:focus {
    outline: none;
    border-color: #7f5f43;
    box-shadow: 0 0 0 3px rgba(127,95,67,.15);
}

/* Przycisk */
.tdw-btn,
.tdw-btn-primary {
    display: inline-block;
    background: #7f5f43;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    text-decoration: none !important;
    margin-top: 8px;
}

.tdw-btn:hover,
.tdw-btn-primary:hover {
    background: #613a2e;
}

/* Podstawa prawna — mały tekst na dole */
.tdw-wrap p:last-child,
.tdw-box > p:last-of-type {
    font-size: 12px;
    color: #999;
    margin-top: 20px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .tdw-box { padding: 24px 18px; }
    .tdw-step { font-size: 12px; padding: 9px 10px; }
    .tdw-btn, .tdw-btn-primary { width: 100%; text-align: center; }
}

/* =============================================================================
   Blog cats sidebar widget (TDMM_Blog_Cats_Widget)
   ============================================================================= */
.tdmm-blog-cats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 2px 0;
}
.tdmm-blog-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2c2320;
    padding: 6px 8px;
    border-radius: 7px;
    transition: background 0.15s;
}
.tdmm-blog-cat-item:hover {
    background: #f5ede6;
    color: #613a2e;
}
.tdmm-blog-cat-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    border: 1px solid #e8ddd4;
}
.tdmm-blog-cat-item span {
    font-size: 14px;
    font-weight: 600;
    color: #613a2e;
    line-height: 1.2;
}
