/* Scoped to the animal creation/edit form and pet memorial background. */
#theme.memoryz-pet-theme-active .memoryz-theme-toolbar {display:flex!important;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:14px 0 22px!important;padding:0 0 17px!important;background:transparent!important;border:0!important;border-bottom:1px solid #e6e6e6!important;border-radius:0!important;box-shadow:none!important;}
#theme.memoryz-pet-theme-active .memoryz-theme-toolbar > span {font-size:14px!important;line-height:1.5!important;font-weight:400!important;color:#454b55!important;text-align:left!important;}
#theme.memoryz-pet-theme-active .memoryz-theme-toolbar > span::before,#theme.memoryz-pet-theme-active .memoryz-theme-toolbar > button::before {content:none!important;display:none!important;}
#theme.memoryz-pet-theme-active .memoryz-theme-toolbar > button {display:inline-flex!important;align-items:center;justify-content:center;min-height:40px;padding:9px 15px!important;border:1px solid #333!important;border-radius:4px!important;background:#fff!important;color:#30343b!important;font-size:12px!important;font-weight:700!important;line-height:1.4!important;letter-spacing:.05em;text-transform:uppercase;box-shadow:none!important;cursor:pointer;white-space:normal;}
#theme.memoryz-pet-theme-active .memoryz-theme-toolbar > button:hover,#theme.memoryz-pet-theme-active .memoryz-theme-toolbar > button[aria-pressed='true'] {background:#333!important;color:#fff!important;}
#theme.memoryz-pet-theme-active .memoryz-theme-toolbar > button:focus-visible {outline:2px solid #333;outline-offset:3px;}
#theme .memoryz-theme-grid[data-memoryz-pet-gallery='1'] {display:block!important;grid-template-columns:none!important;}
#theme .memoryz-theme-grid > .memoryz-pet-gallery {width:100%!important;min-width:0;}
#theme .memoryz-pet-group {margin:0 0 28px;}
#theme .memoryz-pet-group h3 {font-size:18px;line-height:1.4;margin:8px 0 12px;color:#404653;}
#theme .memoryz-pet-grid {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;width:100%;}
/* Theme-wide clearfix pseudo-elements are otherwise counted as grid cells. */
#theme .memoryz-pet-grid::before,#theme .memoryz-pet-grid::after {content:none!important;display:none!important;}
#theme .memoryz-pet-grid > .memoryz-pet-card {position:relative;display:block!important;width:100%!important;min-width:0;max-width:none!important;margin:0!important;float:none!important;grid-column:auto!important;grid-row:auto!important;overflow:hidden;cursor:pointer;border:2px solid #e4e4e4;border-radius:7px;background:#fff;box-shadow:0 1px 2px #0001;transition:border-color .16s,box-shadow .16s;}
#theme .memoryz-pet-card:hover,#theme .memoryz-pet-card:focus-within {border-color:#686d76;}
#theme .memoryz-pet-card.is-selected {border-color:#30343b;box-shadow:0 0 0 1px #30343b;}
#theme .memoryz-pet-card input {position:absolute;right:10px;bottom:12px;z-index:3;width:16px;height:16px;accent-color:#30343b;}
#theme .memoryz-pet-card img,#theme .memoryz-pet-card video {width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;display:block;}
#theme .memoryz-pet-card video {position:absolute;inset:0 0 auto;width:100%;opacity:0;pointer-events:none;}
#theme .memoryz-pet-card:hover video,#theme .memoryz-pet-card:focus-within video {opacity:1;}
#theme .memoryz-pet-caption {display:block;padding:9px 32px 10px 10px;font-size:13px;line-height:1.3;font-weight:600;color:#303743;min-height:46px;}
#theme .memoryz-pet-badge {position:absolute;left:7px;top:7px;z-index:2;padding:3px 7px;color:#fff;background:#242424bb;border-radius:3px;font-size:10px;font-weight:700;letter-spacing:.08em;}
#theme .memoryz-pet-legacy {padding:12px 14px;border-left:3px solid #bc955c;background:#f8f4ed;color:#555;}
form[data-request='memorial/submit'] .memoryz-pet-optional-hint {font-size:13px;line-height:1.5;color:#626873;margin:7px 0 12px;}
#mvc-background.memoryz-pet-detail-background .memoryz-pet-detail-media {width:100%;height:100%;display:block;object-fit:cover;object-position:center;}
@media(max-width:900px){#theme .memoryz-pet-grid {grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:650px){#theme .memoryz-pet-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}#theme .memoryz-pet-caption {font-size:12px;}#theme.memoryz-pet-theme-active .memoryz-theme-toolbar > button {width:100%;}}
@media(prefers-reduced-motion:reduce){#theme .memoryz-pet-card video {display:none;}}
