/* Pet first (spec 2026-11-25). Every rule starts with body.pet-first. Notes: tests/test.petfirst_css.js */
body.pet-first{--pf-go:#2A7D36;--pf-go-hover:#226A2D;--pf-go-text:#fff;
  --pf-up:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5M4 20h16'/%3E%3C/svg%3E");}

/* Add to cart and Checkout */
body.pet-first section#order-page-2[data-petfirst] #add-to-cart, body.pet-first #offcanvasCart a#checkout-button{background:var(--pf-go);color:var(--pf-go-text);box-shadow:0 5px 14px rgba(42,125,54,.28);}
body.pet-first section#order-page-2[data-petfirst] #add-to-cart:hover, body.pet-first section#order-page-2[data-petfirst] #add-to-cart:active, body.pet-first #offcanvasCart a#checkout-button:hover, body.pet-first #offcanvasCart a#checkout-button:active{background:var(--pf-go-hover);color:var(--pf-go-text);}
body.pet-first #offcanvasCart a#checkout-button.loading{background:var(--pf-go);}
body.pet-first #offcanvasCart a#checkout-button.loading::before{border-color:#FFFFFF4D;border-top-color:#fff;}
body.pet-first section#order-page-2[data-petfirst] #add-to-cart :is(.item-price,.item-description){color:inherit;}

/* Top line and cart arrival line */
body.pet-first.page-order:has(section#order-page-2[data-petfirst]) .ff-topbar{background:var(--e-peach-2);}
body.pet-first.page-order:has(section#order-page-2[data-petfirst]) .ff-ship-pill{background:var(--e-peach-2);}
body.pet-first.page-order:has(section#order-page-2[data-petfirst]) :is(.ff-topbar,.ff-ship-pill) i{color:var(--e-ink);}
body.pet-first.page-order:has(section#order-page-2[data-petfirst]) #shopping-cart-shipping.ff-total-row div.shipping-estimate.ff-arrival{background:none;}

/* Pet panel */
body.pet-first section#order-page-2[data-petfirst] .ff-pet-panel{display:flex;flex-direction:column;gap:24px;padding:18px 16px;border:1px solid var(--e-peach-2);border-radius:14px;background:var(--e-peach);}
body.pet-first section#order-page-2[data-petfirst] .ff-pet-panel :is(.product-option,div#pet-gallery){padding-top:0;border-top:0;}

/* Step headings */
body.pet-first section#order-page-2[data-petfirst] :is(.ff-step-pet,.ff-step-style){display:block;padding:0;border-radius:0;background:none;text-align:left;}
body.pet-first section#order-page-2[data-petfirst] :is(.ff-step-pet,.ff-step-style) small{display:block;margin:0 0 5px;font:700 11px/1 var(--ff-font);letter-spacing:.09em;text-transform:uppercase;color:var(--e-ink-3);}
body.pet-first section#order-page-2[data-petfirst] :is(.ff-step-pet,.ff-step-style) h2{margin:0;font:700 19px/1.25 var(--ff-font);letter-spacing:0;color:var(--e-ink);}
body.pet-first section#order-page-2[data-petfirst] .ff-step-sub{margin:3px 0 0;font-size:13.5px;line-height:1.45;color:var(--e-ink-2);}
body.pet-first section#order-page-2[data-petfirst] .ff-step-has{display:none;}
body.pet-first section#order-page-2[data-petfirst] form#order-info.has-pets:not(.mode-add) .ff-step-has{display:inline;}
body.pet-first section#order-page-2[data-petfirst] form#order-info.has-pets:not(.mode-add) .ff-step-new, body.pet-first section#order-page-2[data-petfirst] form#order-info.has-pets:not(.mode-add) .ff-step-sub{display:none;}
body.pet-first section#order-page-2[data-petfirst] .ff-step-style{margin-bottom:-16px;border:0;}
body.pet-first section#order-page-2[data-petfirst] .ff-step-style + .product-option{padding-top:0;border-top:0;}

/* Upload box */
body.pet-first section#order-page-2[data-petfirst] .ff-drop{padding:16px;border:1.5px dashed #D9B58E;border-radius:12px;background:#fff;text-align:center;}
body.pet-first section#order-page-2[data-petfirst] .ff-drop.drag-over{background:var(--e-sun);}
body.pet-first section#order-page-2[data-petfirst] .ff-drop .drop-zone-text{flex:1 1 auto;min-width:0;}
body.pet-first section#order-page-2[data-petfirst] .ff-drop .drop-zone-icon{display:none;}
body.pet-first section#order-page-2[data-petfirst] .ff-drop .drop-zone-text-lines{flex:1 1 auto;gap:9px;}
body.pet-first section#order-page-2[data-petfirst] .ff-drop .drop-zone-line-1{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;padding:8px 20px;border-radius:26px;background:var(--pf-go);color:var(--pf-go-text);box-shadow:0 5px 14px rgba(42,125,54,.28);font:700 16px/1.2 var(--ff-font);letter-spacing:0;}
body.pet-first section#order-page-2[data-petfirst] .ff-drop:hover .drop-zone-line-1{background:var(--pf-go-hover);}
body.pet-first section#order-page-2[data-petfirst] .ff-drop .drop-zone-line-1::before{content:"";flex:none;width:20px;height:20px;background:var(--pf-up) center/20px no-repeat;}
body.pet-first section#order-page-2[data-petfirst] .ff-drop .drop-zone-line-3{font-size:13px;line-height:1.4;letter-spacing:0;color:var(--e-ink-2);}
/* Photo field: hidden, kept in the Tab order */
body.pet-first section#order-page-2[data-petfirst] .ff-drop #pet-photos{position:absolute;left:0;top:0;width:1px;height:1px;padding:0;border:0;opacity:0;overflow:hidden;clip-path:inset(50%);}
body.pet-first section#order-page-2[data-petfirst] label.ff-drop:focus-within{outline:2px solid var(--e-ink);outline-offset:3px;}

/* Create my free preview */
body.pet-first section#order-page-2[data-petfirst] #generate-preview-btn{background:var(--pf-go);color:var(--pf-go-text);box-shadow:0 5px 14px rgba(42,125,54,.28);}
body.pet-first section#order-page-2[data-petfirst] #generate-preview-btn:hover, body.pet-first section#order-page-2[data-petfirst] #generate-preview-btn:active{background:var(--pf-go-hover);color:var(--pf-go-text);}
body.pet-first section#order-page-2[data-petfirst] #generate-preview-btn.is-disabled{background:var(--e-stone);color:var(--e-ink-3);box-shadow:none;}
@media (min-width:577px){body.pet-first section#order-page-2[data-petfirst] form#order-info.no-photo #generate-preview-wrapper{display:none;}}
/* No marigold guiding ring */
body.pet-first section#order-page-2[data-petfirst] form#order-info label.ff-drop::after, body.pet-first section#order-page-2[data-petfirst] form#order-info .product-option-pets-name > .field.type-text::after, body.pet-first section#order-page-2[data-petfirst] form#order-info #generate-preview-btn::before{animation:none;box-shadow:none;}
/* Phone bar */
@media (max-width:576px){
  body.pet-first section#order-page-2[data-petfirst] form#order-info:is(.no-photo,.no-name) #generate-preview-btn{background:var(--pf-go);color:var(--pf-go-text);box-shadow:none;}
  body.pet-first section#order-page-2[data-petfirst] #generate-preview-btn::after{content:"Create my free preview";}
  body.pet-first section#order-page-2[data-petfirst] form#order-info.no-photo #generate-preview-btn::after{content:"Upload a photo";padding-left:28px;background:var(--pf-up) 0 50%/20px no-repeat;}
  body.pet-first section#order-page-2[data-petfirst] form#order-info.status-error #generate-preview-btn::after{content:"Try again";}
  body.pet-first section#order-page-2[data-petfirst] form#order-info.no-name:not(.no-photo) #generate-preview-btn::after{content:"Add your pet's name";}
}

/* Progress */
body.pet-first section#order-page-2[data-petfirst] .ff-reveal-track, body.pet-first section#order-page-2[data-petfirst] #design-status-message .status-bar{background:#fff;box-shadow:inset 0 0 0 1px var(--e-peach-2);}
body.pet-first section#order-page-2[data-petfirst] .ff-reveal-fill{background:var(--e-gold);}

/* Saved pets */
body.pet-first section#order-page-2[data-petfirst] .ff-pet-panel div#pet-gallery .pet-list-container{padding:0;border:0;background:none;}
body.pet-first section#order-page-2[data-petfirst] .ff-pet-panel div#pet-gallery .pet-list{grid-template-columns:repeat(auto-fill,minmax(68px,1fr));gap:12px;}
body.pet-first section#order-page-2[data-petfirst] .ff-pet-panel div#pet-gallery :is(.pet-row,.pet-add-tile){min-height:0;padding:6px 0;border:0;background:none;box-shadow:none;}
body.pet-first section#order-page-2[data-petfirst] .ff-pet-panel div#pet-gallery .pet-row-thumbnail{flex:0 0 66px;width:66px;max-width:66px;height:66px;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(49,43,54,.1);}
body.pet-first section#order-page-2[data-petfirst] .ff-pet-panel div#pet-gallery .pet-add-tile i{flex:0 0 66px;width:66px;max-width:66px;height:66px;border:1.5px dashed #D9B58E;background:none;color:var(--e-ink-2);}
body.pet-first section#order-page-2[data-petfirst] .ff-pet-panel div#pet-gallery .pet-row.selected .pet-row-thumbnail, body.pet-first section#order-page-2[data-petfirst] .ff-pet-panel div#pet-gallery .pet-add-tile.selected i{box-shadow:0 0 0 4px #fff,0 0 0 7px var(--e-ink);}
body.pet-first section#order-page-2[data-petfirst] .ff-pet-panel div#pet-gallery .pet-list{gap:14px 12px;align-items:start;padding-top:8px;}
body.pet-first section#order-page-2[data-petfirst] .ff-pet-panel div#pet-gallery :is(.pet-row,.pet-add-tile){gap:14px;}
body.pet-first section#order-page-2[data-petfirst] .ff-pet-panel div#pet-gallery .pet-row-name{white-space:normal;overflow:visible;overflow-wrap:anywhere;}
body.pet-first section#order-page-2[data-petfirst] .ff-pet-panel div#pet-gallery .pet-row-status{display:none;}
/* The chosen ring: 4 px white, 3 px ink */
body.pet-first section#order-page-2[data-petfirst]{--e-ring:0 0 0 4px #FFF,0 0 0 7px #312B36;}
/* Room for that ring */
body.pet-first section#order-page-2[data-petfirst] .ff-steps-form :is(.product-option-pet-style.ff-look-chips,.product-option-background-style) > :is(.label,.value){margin-bottom:14px;}
body.pet-first section#order-page-2[data-petfirst] .ff-steps-form .product-option-pet-style.ff-look-chips .ff-look-thumb{margin-bottom:12px;}
body.pet-first section#order-page-2[data-petfirst] .ff-steps-form .product-option-background-style a.btn-option{gap:12px;}
body.pet-first section#order-page-2[data-petfirst] .ff-steps-form .product-option-background-style .view-options{row-gap:16px;}

/* Gallery (the sample's before photo, furfam-etsy.css's corner Polaroid, shows again: Brandon, 2026-11-26) */
body.pet-first section#order-page-2[data-petfirst] .ff-gallery-cap{display:none;margin:12px 16px 0;font-size:13px;line-height:1.4;text-align:center;color:var(--e-ink-2);}
body.pet-first section#order-page-2[data-petfirst] form#order-info:not(.has-pets,.status-uploading,.status-pregenerating,.status-generating,.status-complete) .ff-gallery-cap{display:block;}
@media (max-width:767.98px){body.pet-first section#order-page-2[data-petfirst] .ff-gallery-cap{margin-top:30px;}}
/* Pet art close-up slide */
body.pet-first section#order-page-2[data-petfirst] form#order-info div#product-image-gallery div.image-pet-art{background:var(--e-page);}
body.pet-first section#order-page-2[data-petfirst] form#order-info div#product-image-gallery div.image-pet-art img.pet-art{visibility:hidden;}
body.pet-first section#order-page-2[data-petfirst] form#order-info div#product-image-gallery div.image-pet-art div.design-canvas{-webkit-mask:none;mask:none;mix-blend-mode:normal;}
body.pet-first section#order-page-2[data-petfirst] form#order-info div#product-image-gallery div.image-pet-art :is(.custom-design-name,.color-mask,.color-title,.dimensions),body.pet-first section#order-page-2[data-petfirst] form#order-info div#product-image-gallery div.image-pet-art::before,body.pet-first section#order-page-2[data-petfirst] form#order-info div#product-image-gallery div.image-pet-art::after,body.pet-first section#order-page-2[data-petfirst] form#order-info div#product-image-gallery div.image-pet-art :is(.design-canvas,.custom-design)::before,body.pet-first section#order-page-2[data-petfirst] form#order-info div#product-image-gallery div.image-pet-art :is(.design-canvas,.custom-design)::after{display:none;}
body.pet-first section#order-page-2[data-petfirst] form#order-info div#product-image-gallery div.image-pet-art div.custom-design{inset:7%;width:86%;height:86%;margin:0;}
body.pet-first section#order-page-2[data-petfirst] form#order-info div#product-image-gallery div.image-pet-art img.custom-design{width:100%;height:100%;min-height:100%;margin:0;object-fit:contain;object-position:center;transform:none;}
@media (min-width:768px){body.pet-first section#order-page-2[data-petfirst] form#order-info div#product-image-gallery div.image-pet-art div.custom-design{inset:10%;width:80%;height:80%;}}
/* Its Pet style label, and the size label (same white pill) */
body.pet-first section#order-page-2[data-petfirst] :is(.ff-art-label,.ff-size-tab){left:10px;top:10px;bottom:auto;padding:5px 10px;border:1px solid #d9cfc2;border-radius:999px;background:#fff;color:var(--e-ink);font:600 13px/1.2 var(--ff-font);letter-spacing:0;}
body.pet-first section#order-page-2[data-petfirst] .ff-art-label{display:none;position:absolute;z-index:1001;pointer-events:none;}
body.pet-first section#order-page-2[data-petfirst] .carousel-cell div.image.image-pet-art .ff-art-label:not(:empty){display:block;}
body.pet-first section#order-page-2[data-petfirst] a#openShareModalBtn.ff-share{padding:8px 4px;border-radius:0;background:none;box-shadow:none;color:var(--e-ink);font:600 13px/1.2 var(--ff-font);text-decoration:underline;text-underline-offset:2px;}
body.pet-first section#order-page-2[data-petfirst] a#openShareModalBtn.ff-share:is(:hover,:focus-visible){background:none;color:var(--e-ink);}

/* Price line, guarantee */
body.pet-first section#order-page-2[data-petfirst] .ff-order-ship{padding:0;border-radius:0;background:none;color:var(--e-ink-2);font-size:14px;line-height:20px;font-weight:400;letter-spacing:0;}
body.pet-first section#order-page-2[data-petfirst] .ff-guarantee-line{padding-left:0;}
body.pet-first section#order-page-2[data-petfirst] .ff-guarantee-line::before{content:none;}

/* Size scale card */
body.pet-first section#order-page-2[data-petfirst] .ff-scale{display:none;position:absolute;left:10px;bottom:10px;z-index:1001;box-sizing:content-box;width:104px;height:104px;border:1px solid #d9cfc2;border-radius:10px;background:#fff;pointer-events:none;}
body.pet-first section#order-page-2[data-petfirst] .carousel-cell div.image.image-design-detail .ff-scale{display:block;}
body.pet-first section#order-page-2[data-petfirst] form#order-info:is(.status-uploading,.status-pregenerating,.status-generating) :is(.ff-scale,.ff-art-label){display:none;}
body.pet-first section#order-page-2[data-petfirst] .ff-scale svg{display:block;width:104px;height:104px;}
body.pet-first section#order-page-2[data-petfirst] .ff-scale-blanket{fill:#565c66;}
body.pet-first section#order-page-2[data-petfirst] .ff-scale-ground{fill:none;stroke:#cfc6ba;}
body.pet-first section#order-page-2[data-petfirst] div#product-image-gallery.size-small .ff-scale-blanket{width:30px;height:40px;y:52px;}
body.pet-first section#order-page-2[data-petfirst] div#product-image-gallery.size-medium .ff-scale-blanket{width:50px;height:60px;y:32px;}
body.pet-first section#order-page-2[data-petfirst] div#product-image-gallery.size-large .ff-scale-blanket{width:60px;height:80px;y:12px;}
/* A photo for each pet: the hint, the add tile */
body.pet-first section#order-page-2[data-petfirst] .ff-multi-hint{display:none;}
body.pet-first.multi-pet section#order-page-2[data-petfirst] form#order-info.no-photo .ff-multi-hint{display:block;margin:8px 0 0;font-size:13px;line-height:1.4;color:var(--e-ink);text-align:center;}
body.pet-first section#order-page-2[data-petfirst] .ff-multi-hint::before{content:"";display:inline-block;width:15px;height:15px;margin-right:6px;vertical-align:-2px;background:#C97B3C;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='5.5' cy='10.5' rx='2.2' ry='2.8'/%3E%3Cellipse cx='9.7' cy='5.6' rx='2.2' ry='2.9'/%3E%3Cellipse cx='14.3' cy='5.6' rx='2.2' ry='2.9'/%3E%3Cellipse cx='18.5' cy='10.5' rx='2.2' ry='2.8'/%3E%3Cpath d='M12 11.5c-3.4 0-6 3.1-6 5.8 0 1.8 1.3 2.7 3 2.7 1.2 0 2-.6 3-.6s1.800.6 3 .6c1.700 0 3-.9 3-2.700 0-2.700-2.600-5.800-6-5.800z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='5.5' cy='10.5' rx='2.2' ry='2.8'/%3E%3Cellipse cx='9.7' cy='5.6' rx='2.2' ry='2.9'/%3E%3Cellipse cx='14.3' cy='5.6' rx='2.2' ry='2.9'/%3E%3Cellipse cx='18.5' cy='10.5' rx='2.2' ry='2.8'/%3E%3Cpath d='M12 11.5c-3.4 0-6 3.1-6 5.8 0 1.8 1.3 2.7 3 2.7 1.2 0 2-.6 3-.6s1.800.6 3 .6c1.700 0 3-.9 3-2.700 0-2.700-2.600-5.800-6-5.800z'/%3E%3C/svg%3E") center/contain no-repeat;}
body.pet-first section#order-page-2[data-petfirst] #preview-area .pet-photo-slot{display:contents;}
body.pet-first section#order-page-2[data-petfirst] #preview-area .pet-photo-add{display:flex;flex:none;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:96px;height:96px;padding:6px;border:1.5px dashed #D9B58E;border-radius:8px;background:#fff;color:var(--e-ink);font:600 12px/1.2 var(--ff-font);text-align:center;cursor:pointer;}
body.pet-first section#order-page-2[data-petfirst] #preview-area .pet-photo-add::before{content:"+";font-size:26px;font-weight:400;line-height:1;}
/* Several photos: one grid, four to a row */
body.pet-first section#order-page-2[data-petfirst] .type-upload_photos > .field.type-upload_photos > #preview-area:has(.pet-photo-add,.pet-photo-slot + .pet-photo-slot,.joined){grid-column:1/-1;}
body.pet-first section#order-page-2[data-petfirst] #preview-area .active-upload-container:has(.pet-photo-slot){display:grid;grid-template-columns:repeat(4,minmax(0,96px));gap:10px;width:100%;}
body.pet-first section#order-page-2[data-petfirst] #preview-area .active-upload-container:has(.pet-photo-slot) :is(.pet-photo-preview,.pet-photo-add){width:auto;height:auto;aspect-ratio:1;}
body.pet-first section#order-page-2[data-petfirst] form#order-info:is(.status-uploading,.status-pregenerating,.status-generating) #preview-area .pet-photo-add{display:none;}
body.pet-first section#order-page-2[data-petfirst] form#order-info:is(.status-uploading,.status-pregenerating,.status-generating) .type-upload_photos > .field:has(.pet-photo-slot + .pet-photo-slot,.joined) > #design-status-message{grid-column:1/-1;}
/* The joined picture: a thumbnail in its own shape */
body.pet-first section#order-page-2[data-petfirst] #preview-area .active-upload-container:has(.joined){width:100%;}
body.pet-first section#order-page-2[data-petfirst] #preview-area .pet-photo-preview.joined{width:min(100%,calc(96px*var(--joined-ratio,2)));height:auto;aspect-ratio:var(--joined-ratio,2);}
/* A tick beside a filled label (several-photo switch only, for now) */
body.pet-first.multi-pet section#order-page-2[data-petfirst] :is(div.product-option-pets-name:has(input.option:not(:placeholder-shown)),form#order-info:not(.no-photo) div.product-option.type-upload_photos) > .label::after{content:"";display:inline-block;width:16px;height:16px;margin-left:6px;vertical-align:-3px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%2336662A'/%3E%3Cpath d='M4.6 8.3l2.300 2.300 4.500-4.900' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;}
