.tdgift-catalog, .tdgift-delivery, .tdgift-cart-delivery {
    --tdgift-wine: #681c2d;
    --tdgift-deep: #45101d;
    --tdgift-muted: #685951;
    --tdgift-paper: #fdf6e8;
    --tdgift-line: #e7d2ad;
}

.tdcl.tdgift-catalog .tdgift-hero {
    min-height: 190px;
    display: grid;
    align-items: center;
    isolation: isolate;
    background: #410e19;
    color: #fff9ee;
    overflow: hidden;
    position: relative;
    border-radius: 14px;
}
.tdgift-hero img {
    position: absolute;
    z-index: -2;
    right: 0;
    width: 46%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}
.tdgift-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, #410e19 54%, #410e19e5 58%, #410e194a 79%, transparent);
}
.tdgift-hero > div { padding: 25px 35px; }
.tdcl.tdgift-catalog .tdgift-hero h1 {
    color: inherit;
    font: 500 clamp(33px, 5.7vw, 64px)/1 Georgia, serif;
    letter-spacing: -.04em;
    margin: 6px 0 11px;
}
.tdgift-hero p { margin: 0; max-width: 34ch; }
.tdgift-hero .tdgift-season { color: #f2cc91; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }

.tdgift-delivery, .tdgift-cart-delivery {
    border: 1px solid var(--tdgift-line);
    border-radius: 11px;
    background: var(--tdgift-paper);
    color: var(--tdgift-deep);
    padding: 14px 16px;
    margin: 14px 0 17px;
}
.tdgift-delivery {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, auto);
    gap: 12px;
    align-items: center;
}
.tdgift-delivery__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f3e4c8;
    color: var(--tdgift-wine);
}
.tdgift-delivery__icon svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.65; fill: none; }
.tdgift-delivery .tdgift-delivery__copy h2 { color: inherit; margin: 0 0 3px; font-size: 14px; font-weight: 700; }
.tdgift-delivery__copy p { margin: 0; color: var(--tdgift-muted); font-size: 13px; line-height: 1.4; }
.tdgift-delivery__copy .tdgift-deadline { color: var(--tdgift-deep); font-size: clamp(17px, 2.5vw, 24px); font-weight: 750; }
.tdgift-delivery a, .tdgift-cart-delivery a, .tdgift-catalog .tdgift-reset { color: var(--tdgift-wine); font-weight: 700; text-decoration: underline; }
.tdgift-carrier, .tdgift-filters > label { min-width: 0; }
.tdgift-carrier label, .tdgift-filters > label { display: grid; gap: 5px; font-weight: 700; font-size: 13px; }
.tdgift-delivery select, .tdgift-filters select {
    max-width: 100%;
    min-height: 43px;
    border: 1px solid #dbcfc3;
    border-radius: 7px;
    background: #fffdfa;
    color: #291e1b;
    padding: 0 9px;
    font: inherit;
}
.tdgift-results {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin: 13px 0;
}
.tdcl.tdgift-catalog .tdgift-results h2 { margin: 0; color: #291e1b; font: 500 clamp(25px, 3vw, 36px)/1.15 Georgia, serif; }
.tdgift-results span { color: var(--tdgift-muted); }
.tdgift-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 10px 18px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e0d4c8;
}
.tdgift-filters fieldset { max-width: 100%; min-width: 0; border: 0; margin: 0; padding: 0; }
.tdgift-filters legend { border: 0; padding: 0; margin: 0 0 5px; font-size: 13px; font-weight: 700; }
.tdgift-budgets { display: flex; gap: 6px; flex-wrap: wrap; }
.tdgift-budgets label { position: relative; display: flex; margin: 0; }
.tdgift-budgets input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tdgift-budgets label > span {
    display: inline-flex;
    align-items: center;
    gap: .25em;
    min-height: 43px;
    padding: 0 12px;
    border: 1px solid #dbcfc3;
    background: #fffdfa;
    color: #291e1b;
    border-radius: 8px;
    font-size: 14px;
}
.tdgift-budgets input:checked + span { background: var(--tdgift-wine); color: #fffdfa; border-color: var(--tdgift-wine); }
.tdgift-budgets input:focus-visible + span { outline: 2px solid var(--tdgift-wine); outline-offset: 3px; }
.tdgift-apply {
    min-height: 40px;
    padding: 5px 11px;
    color: var(--tdgift-wine);
    background: #fffdfa;
    border: 1px solid var(--tdgift-line);
    border-radius: 7px;
}
.tdgift-carrier .tdgift-apply { margin-top: 5px; }
.tdgift-auto-submit .tdgift-apply { display: none; }
.tdgift-reset { flex-basis: 100%; width: fit-content; white-space: nowrap; }
.tdcl.tdgift-catalog #produkty, .tdgift-delivery { scroll-margin-top: 100px; }
.tdcl.tdgift-catalog .tdcl-catalog .tdcl-grid > li.product .tdcl-purchase {
    grid-template-rows: minmax(22px, auto) 60px 44px;
    border-color: #ede4db;
    background: #fbf7f0;
}
.tdcl.tdgift-catalog .tdcl-catalog .tdcl-grid > li.product .tdcl-availability-row { flex-wrap: wrap; gap: 3px 6px; }
.tdgift-card-status {
    display: block;
    width: fit-content;
    margin: 0;
    padding: 3px 7px;
    border-radius: 6px;
    color: #2d5737;
    background: #edf6ea;
    font-size: 12px;
    font-weight: 700;
}
.tdgift-cart-delivery p { margin: 5px 0; line-height: 1.45; }
.tdgift-cart-delivery details { margin-top: 7px; }
.tdgift-cart-delivery ul { padding-inline-start: 19px; margin: 6px 0; }
.tdgift-quote-note { display: block; }
@media (max-width: 700px) {
    .tdgift-hero > div { padding-inline: 20px; }
    .tdgift-hero img { width: 65%; }
    .tdgift-hero::after { background: linear-gradient(90deg, #410e19 28%, #410e19e3 44%, #410e196d 100%); }
    .tdgift-delivery { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
    .tdgift-carrier { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
    .tdgift-budgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tdgift-budgets label > span { width: 100%; justify-content: center; }
    .tdgift-filters > label { width: 100%; }
}
