/* "Psia dekoracja na podstawie zdjęcia Twojego psa" — request wizard (photo-request.js). */

.dn-pr { padding-top: 2rem; padding-bottom: 3rem; }
.dn-pr__gallery { position: sticky; top: 1rem; }
.dn-pr__main { border-radius: .5rem; overflow: hidden; background: #f2f2f0; aspect-ratio: 1; }
.dn-pr__main-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dn-pr__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .5rem; }
.dn-pr__thumb { padding: 0; border: 2px solid transparent; border-radius: .4rem; overflow: hidden; background: none; cursor: pointer; }
.dn-pr__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.dn-pr__thumb[aria-pressed="true"] { border-color: #8b4513; }

.dn-pr__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin: 0 0 .5rem; }
.dn-pr__lead { font-size: 1.15rem; color: #555; margin: 0 0 1.5rem; }

.dn-pr-step { border-top: 1px solid #e6e2dc; padding: 1.25rem 0; }
.dn-pr-step__title { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; font-weight: 700; margin: 0 0 .9rem; }
.dn-pr-step__num {
    flex: 0 0 auto; width: 1.8rem; height: 1.8rem; border-radius: 50%;
    background: #8b4513; color: #fff; font-size: .95rem; display: inline-flex; align-items: center; justify-content: center;
}
.dn-pr-step.is-invalid, .dn-pr-plaque.is-invalid, .dn-pr-photos.is-invalid { outline: 2px solid #b02a37; outline-offset: 4px; border-radius: .4rem; }
.dn-pr-hint { color: #6b6b66; font-size: .9rem; margin: .5rem 0 0; }
.dn-pr-sublabel { font-weight: 600; margin: 1rem 0 .4rem; }

/* option cards */
.dn-pr-cards { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); }
.dn-pr-cards--variants { grid-template-columns: repeat(2, 1fr); }
.dn-pr-cards--colours { grid-template-columns: repeat(4, 1fr); }
.dn-pr-cards--heights { grid-template-columns: repeat(auto-fill, minmax(6.75rem, 1fr)); }
.dn-pr-cards--heights .dn-pr-card__title { white-space: nowrap; }
.dn-pr-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
    min-height: 2.9rem; padding: .5rem; border: 1px solid #ced4da; border-radius: .5rem; background: #fff;
    color: #222; font-size: .95rem; line-height: 1.25; text-align: center; cursor: pointer;
}
.dn-pr-card:hover { border-color: #8b4513; }
.dn-pr-card[aria-checked="true"] { border-color: #8b4513; box-shadow: 0 0 0 2px #8b4513 inset; background: #faf6f2; }
.dn-pr-cards--variants .dn-pr-card { flex-direction: row; justify-content: flex-start; text-align: left; }
.dn-pr-card__img { width: 64px; height: 64px; object-fit: cover; border-radius: .3rem; flex: 0 0 auto; }
.dn-pr-card__title { font-weight: 600; }
.dn-pr-swatch { width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); }

/* plaque designer */
.dn-pr-stage { max-width: 420px; margin: 0 auto 1rem; border-radius: .5rem; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.dn-pr-canvas { display: block; width: 100%; height: auto; }
.dn-pr-labelrow { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: .5rem 0 .3rem; }
.dn-pr-labelrow label { font-weight: 600; }
.dn-pr-count { color: #6b6b66; font-size: .85rem; }
.dn-pr-inputrow { display: flex; gap: .5rem; }
.dn-pr-input { flex: 1 1 auto; min-width: 0; font-family: 'DN Pz Symbols', var(--bs-body-font-family, system-ui), sans-serif; }
.dn-pr-align { display: inline-flex; border: 1px solid #ced4da; border-radius: .5rem; overflow: hidden; flex: 0 0 auto; }
.dn-pr-iconbtn { border: 0; background: #fff; color: #444; width: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dn-pr-iconbtn[aria-pressed="true"] { background: #8b4513; color: #fff; }
.dn-pr-syms { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.dn-pr-sym { width: 40px; height: 40px; border: 1px solid #ced4da; border-radius: .4rem; background: #fff; color: #333; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dn-pr-sym:hover { border-color: #8b4513; color: #8b4513; }
.dn-pr-fonts { display: flex; flex-wrap: wrap; gap: .4rem; }
.dn-pr-font { border: 1px solid #ced4da; border-radius: .4rem; background: #fff; padding: .35rem .7rem; font-size: 1.1rem; cursor: pointer; }
.dn-pr-font[aria-pressed="true"] { border-color: #8b4513; box-shadow: 0 0 0 2px #8b4513 inset; }
.dn-pr-msg { margin: .5rem 0 0; font-size: .9rem; min-height: 0; }
.dn-pr-msg:empty { display: none; }
.dn-pr-msg.is-warn { color: #8a5a00; }
.dn-pr-msg.is-error { color: #b02a37; font-weight: 600; }
.dn-pr-mount__opt { margin-bottom: .35rem; }
.dn-pr-mount__note { color: #6b6b66; font-size: .9rem; }

/* photos */
.dn-pr-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dn-pr-drop {
    display: flex; flex-direction: column; align-items: center; gap: .35rem; margin-top: .75rem; padding: 1.5rem 1rem;
    border: 2px dashed #b8b2a8; border-radius: .6rem; background: #faf8f5; color: #4a4a46; text-align: center; cursor: pointer;
}
.dn-pr-drop:hover, .dn-pr-drop.is-over { border-color: #8b4513; background: #faf6f2; }
.dn-pr-drop.is-full { display: none; }
.dn-pr-drop__icon { color: #8b4513; }
.dn-pr-drop__sub { font-size: .85rem; color: #6b6b66; }
.dn-pr-file:focus-visible + .dn-pr-drop { outline: 2px solid #8b4513; outline-offset: 2px; }
.dn-pr-filelist { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.dn-pr-filelist li { position: relative; }
.dn-pr-filelist img, .dn-pr-filelist__noimg {
    display: flex; align-items: center; justify-content: center; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
    border-radius: .4rem; background: #e9e7e3; color: #6b6b66; font-weight: 700;
}
.dn-pr-filelist__name { display: block; font-size: .75rem; color: #6b6b66; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dn-pr-filelist__rm {
    position: absolute; top: .25rem; right: .25rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 0;
    background: rgba(0, 0, 0, .65); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer;
}

/* contact + send */
.dn-pr-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.dn-pr-field { margin-bottom: .75rem; }
.dn-pr-field.is-invalid input { border-color: #b02a37; }
.dn-pr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; }
.dn-pr-price { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1rem 0; padding: .9rem 1rem; background: #faf6f2; border-radius: .5rem; }
.dn-pr-price__label { font-weight: 600; }
.dn-pr-price__value { font-size: 1.6rem; font-weight: 700; color: #8b4513; }
.dn-pr-submit { width: 100%; }
.dn-pr-after { margin: .75rem 0 0; color: #555; font-size: .95rem; text-align: center; }
.dn-pr-done { padding: 1.5rem; background: #f1f7ee; border: 1px solid #cfe3c6; border-radius: .6rem; }
.dn-pr-done h2 { font-size: 1.4rem; margin: 0 0 .5rem; }

@media (max-width: 991.98px) {
    .dn-pr__gallery { position: static; }
}
@media (max-width: 575.98px) {
    .dn-pr-fields { grid-template-columns: 1fr; gap: 0; }
    .dn-pr-cards--variants { grid-template-columns: 1fr; }
    .dn-pr-cards--colours { grid-template-columns: repeat(2, 1fr); }
}

/* real German Shepherd examples after the placeholders */
.dn-pr__thumb { position: relative; }
.dn-pr__thumb.is-example::after {
    content: "Przykład"; position: absolute; left: .25rem; bottom: .25rem; padding: .05rem .4rem; border-radius: .6rem;
    background: rgba(139, 69, 19, .9); color: #fff; font-size: .7rem; font-weight: 600;
}
/* trust sections under the wizard (theme psy-patronaty.php + opineo.php): the patronage box goes first here */
.dn-pr-trust .dn-psy { padding-top: 3rem; }
