/* 1.1.227: Edit photo (product form) and the cover photos' "See more". */
.photo-edit-open{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin:8px 0 0;padding:9px 14px;border:1px solid #d8eee0;border-radius:10px;background:#f1fbf4;color:#147630;font:inherit;font-weight:800;cursor:pointer}
.photo-edit-open svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.phone-product-editor #product-form .photo-edit-open{grid-column:3;grid-row:3;width:100%;margin:2px 0 6px;padding:7px 4px;font-size:9.5px;border-radius:8px}
.phone-product-editor #product-form .photo-edit-open svg{width:14px;height:14px}
.cover-see-more{display:block;width:100%;margin:0 0 12px;padding:10px;border-radius:12px;font-weight:700}
#product-cover-options>.product-cover-option[hidden]{display:none}
html.pe-open{overflow:hidden}
.pe-modal{position:fixed;inset:0;z-index:3000;display:flex;align-items:flex-end;justify-content:center;background:#0b1a1280}
.pe-modal[hidden]{display:none}
.pe-card{width:min(560px,100%);max-height:94dvh;overflow:auto;box-sizing:border-box;padding:16px 16px calc(16px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;background:#fff;color:#14261c}
@media(min-width:700px){.pe-modal{align-items:center}.pe-card{border-radius:22px}}
.pe-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}.pe-head h3{flex:1;margin:0;font-size:19px}
.pe-x,.pe-back{width:38px;height:38px;border:0;border-radius:12px;background:#f1f4f2;font-size:22px;line-height:1;cursor:pointer}
.pe-help{margin:0 0 12px;color:#5d6b63}
.pe-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}
.pe-pick button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px;border:1px solid #e1e8e3;border-radius:12px;background:#fbfdf9;font:inherit;font-weight:700;cursor:pointer}
.pe-pick img{width:100%;aspect-ratio:1;object-fit:contain}
.pe-stage{position:relative;display:grid;place-items:center;min-height:240px;border-radius:14px;background:repeating-conic-gradient(#eef0ef 0 25%,#fff 0 50%) 0 0/18px 18px;overflow:hidden}
.pe-stage canvas{display:block;max-width:100%;max-height:46dvh}
.pe-busy{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#ffffffcc;font-weight:700}
.pe-busy[hidden]{display:none}
.pe-busy i{width:34px;height:34px;border:4px solid #cfe7d6;border-top-color:#16803a;border-radius:50%;animation:pe-spin .8s linear infinite}
@keyframes pe-spin{to{transform:rotate(360deg)}}
.pe-tools{display:grid;gap:12px;margin-top:12px}
.pe-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.pe-row>button:not(.pe-swatch){flex:1;min-height:44px;padding:8px 10px;border:1px solid #d8e3dc;border-radius:12px;background:#fff;color:#14261c;font:inherit;font-weight:700;cursor:pointer}
.pe-row .pe-cut{flex-basis:100%;background:#eaf7ee;border-color:#cbe8d4;color:#126b2f}
.pe-tilt{display:grid;gap:6px;font-weight:700}.pe-tilt input{width:100%;accent-color:#16803a}
.pe-colors>span{font-weight:700;margin-right:4px}
.pe-colors [data-bg="original"]{flex:0 0 auto!important;min-height:36px!important}
.pe-swatch{position:relative;width:36px;height:36px;padding:0;border:2px solid #d8e3dc;border-radius:50%;background:var(--c,#fff);cursor:pointer;overflow:hidden}
.pe-swatch.pe-clear{background:repeating-conic-gradient(#d9dedb 0 25%,#fff 0 50%) 0 0/10px 10px}
.pe-swatch[aria-pressed="true"],.pe-custom.on,[data-bg="original"][aria-pressed="true"]{border-color:#16803a;box-shadow:0 0 0 2px #16803a55}
.pe-custom{background:conic-gradient(red,#ff0,lime,cyan,blue,#f0f,red)}
.pe-custom input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.pe-msg{min-height:1em;margin:0;color:#b3261e;font-size:14px}
.pe-actions .primary{background:#16803a;color:#fff;border-color:#16803a}
.pe-brush[hidden]{display:none!important}
.pe-brush>span{font-weight:700}
.pe-brush [aria-pressed="true"]{background:#16803a!important;color:#fff!important;border-color:#16803a!important}
.pe-brush .pe-undo{flex:0 0 44px!important}
.pe-size{flex:1 1 100%;display:block}.pe-size input{width:100%;accent-color:#16803a}
.pe-stage canvas.pe-painting{touch-action:none;cursor:crosshair}
.pe-busy small{font-weight:500;color:#5d6b63}
/* 1.1.443: Edit mode of the cover photos: a × on each photo to take out a photo added by mistake */
.cover-tools{display:flex;justify-content:flex-end;margin:6px 0 0}
.cover-tools[hidden]{display:none}
.cover-edit{padding:7px 16px;border-radius:99px;font-weight:700}
#product-cover-options .product-cover-option{position:relative}
#product-cover-options .cover-remove{display:none;position:absolute;top:6px;right:6px;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:#dc2626;color:#fff;font:700 20px/1 system-ui,sans-serif;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.3)}
#product-cover-options.editing .cover-remove{display:block}

