/* bio-artikelimport: the page /Firmengeschenke/ (views/tpl/bio_firmengeschenke.tpl). Only .bio-gift* selectors.
   Laid out like the basket: what the customer does on the left, what it costs in a pale green panel on the right (it stays in view while
   the left column scrolls). Colours and corners are the theme's: #8eb61e, #546a16, #f2f8e6, hairlines rgba(17, 34, 17, .13), no radius. */
.bio-gift { margin-bottom: 56px; }
.bio-gift-lead { max-width: 62ch; margin: 0 0 36px; font-size: 1.125rem; line-height: 1.6; }
.bio-gift-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.bio-gift-main { display: grid; gap: 40px; min-width: 0; }
.bio-gift-step { min-width: 0; }
.bio-gift-step-title { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.bio-gift-step-title label { margin: 0; font: inherit; }
.bio-gift-step-no {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f2f8e6;
    color: #546a16;
    font-size: 1rem;
}
.bio-gift-step-text { max-width: 62ch; margin: 0 0 12px; }
.bio-gift-hint { margin: 0; color: #5f6368; font-size: 0.875rem; line-height: 1.5; }

/* 1: the packages, one of them chosen. The radio button itself is out of sight; its card shows the choice. */
.bio-gift-packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 12px; }
.bio-gift-package { position: relative; display: block; margin: 0; cursor: pointer; }
.bio-gift-package input { position: absolute; top: 14px; right: 14px; width: 1px; height: 1px; opacity: 0; }
.bio-gift-package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 16px 16px 14px;
    border: 1px solid rgba(17, 34, 17, 0.13);
    background-color: #fff;
}
.bio-gift-package-card::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(17, 34, 17, 0.3);
    border-radius: 50%;
    background-color: #fff;
}
.bio-gift-package:hover .bio-gift-package-card { border-color: #8eb61e; }
.bio-gift-package input:checked + .bio-gift-package-card { border-color: #8eb61e; box-shadow: inset 0 0 0 1px #8eb61e; }
.bio-gift-package input:checked + .bio-gift-package-card::after {
    border-color: #8eb61e;
    background: #8eb61e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.bio-gift-package input:focus-visible + .bio-gift-package-card { outline: 2px solid #121212; outline-offset: 2px; }
.bio-gift-package-card img { align-self: center; width: 100%; max-width: 160px; height: auto; aspect-ratio: 1; margin-bottom: 6px; object-fit: contain; }
.bio-gift-package-tag { align-self: flex-start; padding: 2px 8px; background-color: #f2f8e6; color: #546a16; font-size: 0.8125rem; font-weight: 600; }
.bio-gift-package-title { font-weight: 600; line-height: 1.35; }
.bio-gift-package-price { margin-top: auto; padding-top: 4px; font-size: 1.125rem; font-weight: 700; }
.bio-gift-package-unit { color: #5f6368; font-size: 0.8125rem; font-weight: 400; white-space: nowrap; }
.bio-gift-package-more { align-self: flex-start; color: #546a16; font-size: 0.875rem; text-decoration: underline; }
.bio-gift-package-more:hover, .bio-gift-package-more:focus { color: #121212; }

/* 2 and 3: the number and the addresses */
.bio-gift .bio-gift-step .form-control { border: 1px solid rgba(17, 34, 17, 0.3); background-color: #fff; }
.bio-gift .bio-gift-step .form-control:focus { border-color: #8eb61e; box-shadow: 0 0 0 1px #8eb61e; }
.bio-gift-number { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.bio-gift-number .form-control { width: 120px; font-size: 1.25rem; font-weight: 600; text-align: center; }
.bio-gift-step textarea.form-control { display: block; width: 100%; min-height: 176px; line-height: 1.5; resize: vertical; }
.bio-gift-count { margin: 10px 0 4px; color: #546a16; font-weight: 600; }
.bio-gift-count:empty { display: none; }
.bio-gift-count-over { color: #8a5300; }

/* the panel: what the order is and costs */
.bio-gift-order { display: flex; flex-direction: column; gap: 20px; padding: 30px; background-color: #f2f8e6; }
.bio-gift-order-title { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.bio-gift-chosen { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; font-weight: 600; line-height: 1.35; }
.bio-gift-chosen img { width: 72px; height: 72px; background-color: #fff; object-fit: contain; }
.bio-gift-lines { width: 100%; margin: 0; border-collapse: collapse; }
.bio-gift-lines th { padding: 6px 12px 6px 0; font-weight: 400; text-align: left; vertical-align: top; }
.bio-gift-lines td { padding: 6px 0; font-variant-numeric: tabular-nums; text-align: right; vertical-align: top; white-space: nowrap; }
.bio-gift-lines tr:nth-last-child(2) > * { padding-bottom: 14px; }
.bio-gift-lines .bio-gift-total > * { padding-top: 14px; border-top: 1px solid rgba(17, 34, 17, 0.2); font-size: 1.125rem; font-weight: 700; }
.bio-gift-lines .bio-gift-total > td { color: #546a16; }
.bio-gift-submit { width: 100%; }
.bio-gift-contact { margin-top: 28px; font-size: 0.9375rem; line-height: 1.6; }
.bio-gift-contact h2 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; }
.bio-gift-contact p { margin: 0; }
.bio-gift-none { max-width: 62ch; margin: 0; padding: 20px 24px; background-color: #f2f8e6; }
.bio-gift-none + .bio-gift-contact { max-width: 62ch; }

@media (min-width: 992px) {
    .bio-gift-form { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
    .bio-gift-side { position: sticky; top: 24px; }
    /* under the panel, in line with its text */
    .bio-gift-side .bio-gift-contact { padding: 0 30px; }
}
@media (max-width: 575px) {
    .bio-gift-lead { margin-bottom: 28px; font-size: 1.0625rem; }
    .bio-gift-main { gap: 32px; }
    .bio-gift-packages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .bio-gift-package-card { padding: 12px 12px 10px; }
    .bio-gift-package-title { font-size: 0.9375rem; }
    .bio-gift-order { padding: 20px; }
}
