/* My Humidor: the Save button, the toast and the bottom sheets. Product pages and My Humidor. */
.cgmh-save{display:flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;width:100%;padding:12px 22px;border:1px solid #d2d2d7;border-radius:980px;background:#fff;color:#1d1d1f;font:500 16px/1.4 Inter,-apple-system,system-ui,sans-serif;text-transform:none;letter-spacing:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.cgmh-save:hover,.cgmh-save:focus{background:#f5f5f7;border-color:#1d1d1f;color:#1d1d1f}
.cgmh-save[aria-busy="true"]{cursor:progress}
.cgmh-ico{position:relative;display:block;flex:none;width:17px;height:17px}
.cgmh-ico svg{display:block;width:17px;height:17px}
.cgmh-hp{fill:transparent;transition:fill .2s}
.cgmh-save.on .cgmh-ico{color:#ff2d55}
.cgmh-save.on .cgmh-hp{fill:currentColor}
.cgmh-save.go svg{animation:cgmh-pop .5s cubic-bezier(.34,1.56,.64,1)}
@keyframes cgmh-pop{0%{transform:scale(1)}25%{transform:scale(.78)}60%{transform:scale(1.2)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.cgmh-save.go svg{animation:none}}

/* A copy of just the cigar on its way somewhere: clipped to its rounded ends, so no grey ever shows. */
.cgmh-crop{position:relative;display:block;overflow:hidden}
.cgmh-crop img{position:absolute;max-width:none;display:block;margin:0;padding:0;border:0;border-radius:0;box-shadow:none}
.cgmh-lie{position:relative;display:block;flex:none}
.cgmh-rot{position:absolute;transform:rotate(90deg)}
.cgmh-noimg{display:block;border-radius:6px;background:#e5e5ea}

.cgmh-toast{position:fixed;left:16px;right:16px;bottom:24px;max-width:420px;margin:0 auto;min-height:52px;box-sizing:border-box;border-radius:16px;background:#1d1d1f;color:#f5f5f7;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 8px 8px 18px;font:15px/1.3 Inter,-apple-system,system-ui,sans-serif;z-index:100003;transform:translateY(160px);transition:transform .45s cubic-bezier(.34,1.56,.64,1);visibility:hidden}
.cgmh-toast.on{transform:none;visibility:visible}
.cgmh-toast b{font-weight:600;color:#fff}
.cgmh-tt{flex:1;min-width:0}
.cgmh-ta{display:flex;gap:6px;flex:none}
.cgmh-toast button,.cgmh-toast button:hover,.cgmh-toast button:focus{flex:none;height:36px;min-height:0;padding:0 14px;margin:0;border:0;border-radius:12px;background:rgba(255,255,255,.14);color:#f5f5f7;font:600 14px/36px Inter,-apple-system,system-ui,sans-serif;text-transform:none;letter-spacing:0;box-shadow:none;cursor:pointer}

.cgmh-dim{position:fixed;inset:0;background:rgba(0,0,0,.34);opacity:0;pointer-events:none;transition:opacity .3s;z-index:100001}
.cgmh-dim.on{opacity:1;pointer-events:auto}
.cgmh-sheet{position:fixed;left:0;right:0;bottom:0;max-width:480px;max-height:88vh;overflow-y:auto;margin:0 auto;box-sizing:border-box;background:#fff;border-radius:22px 22px 0 0;padding:10px 20px 34px;z-index:100002;transform:translateY(105%);transition:transform .45s cubic-bezier(.32,.72,0,1);visibility:hidden;font:15px/1.4 Inter,-apple-system,system-ui,sans-serif;color:#1d1d1f;-webkit-font-smoothing:antialiased;text-align:left}
.cgmh-sheet.on{transform:none;visibility:visible}
.cgmh-sheet *{box-sizing:border-box}
.cgmh-sheet [hidden]{display:none!important}
.cgmh-sheet button{font:inherit;color:inherit;border:0;background:none;padding:0;margin:0;min-height:0;box-shadow:none;text-transform:none;letter-spacing:inherit;border-radius:0;cursor:pointer;text-align:inherit}
/* Hover and focus only undo the theme's recolour. Kept weaker than our own row and button rules, so a mouse never changes a size. */
html .cgmh-sheet button:where(:hover,:focus,:active){color:inherit;background:none;border:0;box-shadow:none;text-decoration:none}
.cgmh-grab{width:36px;height:5px;border-radius:3px;background:rgba(118,118,128,.2);margin:0 auto 6px}
.cgmh-sheet .cgmh-x,.cgmh-sheet .cgmh-x:hover{position:absolute;top:16px;right:20px;width:30px;height:30px;border-radius:50%;background:rgba(118,118,128,.12);display:grid;place-items:center;color:#6e6e73;z-index:2}
/* The little x buttons: under a mouse a quick pulse that settles a touch bigger, under a finger a squeeze while pressed. */
.cgmh-x,.cgmh-dr-x,.cgmh-dx{transition:transform .5s cubic-bezier(.3,2.2,.5,1),background-color .2s,color .2s;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
@media (hover:hover){html body .cgmh-x:hover,html body .cgmh-dr-x:hover,html body .cgmh-dx:hover{transform:scale(1.1)}}
html body .cgmh-x:active,html body .cgmh-dr-x:active,html body .cgmh-dx:active{transform:scale(.84);transition:transform .12s cubic-bezier(.2,0,0,1),background-color .2s,color .2s}
@media (prefers-reduced-motion:reduce){html body .cgmh-x,html body .cgmh-dr-x,html body .cgmh-dx{transform:none!important}}
.cgmh-sheet h3{text-transform:none;font:700 22px/1.2 Inter,-apple-system,system-ui,sans-serif;letter-spacing:-.02em;margin:6px 44px 16px 0;padding:0;color:#1d1d1f}
.cgmh-sheet .cgmh-sh-sub{margin:-10px 0 14px;font-size:14px;color:#6e6e73}
/* Save to and Move to: each humidor on its tile, its name over its count, and a check on the right. */
.cgmh-sheet .cgmh-pick{display:flex;align-items:center;gap:12px;width:100%;min-height:62px;padding:10px 0;position:relative;text-align:left}
.cgmh-pick+.cgmh-pick:before{content:"";position:absolute;top:0;left:40px;right:0;height:1px;background:#e5e5ea}
.cgmh-ht{flex:none;width:28px;height:28px;color:var(--hue,#1d1d1f);display:grid;place-items:center}
.cgmh-ht svg{width:24px;height:24px}
.cgmh-pick.add .cgmh-ht svg{width:17px;height:17px}
.cgmh-pn{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.cgmh-pn b{font-size:16px;line-height:1.3;font-weight:600;color:#1d1d1f;overflow-wrap:anywhere}
.cgmh-pn span{font-size:13px;line-height:1.3;color:#6e6e73;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cgmh-pick i{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;color:#fff;font-style:normal;visibility:hidden;transition:background-color .2s,box-shadow .2s}
.cgmh-pick i svg{width:12px;height:9px}
.cgmh-picks.many .cgmh-pick i{visibility:visible;box-shadow:inset 0 0 0 1.5px #d2d2d7}
.cgmh-pick:not(.on) i svg{opacity:0}
.cgmh-sheet .cgmh-pick.on i{visibility:visible;background:#1d1d1f;box-shadow:none}
.cgmh-form{display:flex;flex-direction:column;gap:12px}
.cgmh-sheet .cgmh-form input{width:100%;height:50px;border-radius:14px;border:1px solid #d2d2d7;background:#fff;padding:0 16px;margin:0;font:16px Inter,-apple-system,system-ui,sans-serif;color:#1d1d1f;box-shadow:none;outline:none}
.cgmh-sheet .cgmh-btn,.cgmh-sheet .cgmh-btn:hover,.cgmh-sheet .cgmh-btn:focus{height:50px;border-radius:25px;background:#fff;box-shadow:inset 0 0 0 1px #d2d2d7;color:#1d1d1f;transition:box-shadow .2s;font-size:16px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 18px;width:100%;text-align:center;white-space:nowrap;text-decoration:none}
.cgmh-sheet .cgmh-btn:hover{box-shadow:inset 0 0 0 1px #1d1d1f}
.cgmh-sheet .cgmh-btn.ink,.cgmh-sheet .cgmh-btn.ink:hover,.cgmh-sheet .cgmh-btn.ink:focus{background:#1d1d1f;box-shadow:none;color:#fff}
.cgmh-sheet .cgmh-btn.red,.cgmh-sheet .cgmh-btn.red:hover,.cgmh-sheet .cgmh-btn.red:focus{color:#d70015}
.cgmh-sheet .cgmh-btn.redfill,.cgmh-sheet .cgmh-btn.redfill:hover,.cgmh-sheet .cgmh-btn.redfill:focus{background:#d70015;box-shadow:none;color:#fff}
.cgmh-sheet .cgmh-btn[disabled]{opacity:.45;cursor:default}
.cgmh-sheet .cgmh-two{display:flex;gap:10px;margin-top:10px}
.cgmh-sheet .cgmh-two .cgmh-btn{flex:1;width:auto;font-size:14px;padding:0 10px}
.cgmh-sheet .cgmh-note{font-size:13px;color:#6e6e73;margin:0}
.cgmh-sheet .cgmh-err{font-size:13px;color:#b42318;margin:0}
.cgmh-sheet .cgmh-tg{font-size:13px;font-weight:600;color:#6e6e73;white-space:nowrap}
.cgmh-sheet .cgmh-tg.low{color:#1d1d1f}
.cgmh-sheet .cgmh-nt{font-size:13px;font-weight:600;color:#1d1d1f;text-decoration:underline;text-underline-offset:2px}

/* The drawer: one humidor from the product page. A side panel on wide screens, a bottom panel on phones. */
.cgmh-drs{margin:0 0 16px}
.cgmh-dr{display:flex;align-items:center;gap:6px;position:relative;background:#fff}
.cgmh-dr+.cgmh-dr:before{content:"";position:absolute;top:0;left:112px;right:0;height:1px;background:#e5e5ea}
.cgmh-sheet a.cgmh-dr-a{display:flex;align-items:center;gap:12px;flex:1;min-width:0;min-height:80px;padding:10px 0;color:#1d1d1f;text-decoration:none}
/* Each photo sits on the grey it was shot on. */
.cgmh-dr-p{flex:0 0 100px;height:64px;border-radius:12px;background:#f6f5f8;display:flex;align-items:center;justify-content:center}
.cgmh-dr-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.cgmh-dr-t b{font-size:14px;font-weight:600;line-height:1.25;letter-spacing:-.01em}
.cgmh-dr-t span{font-size:13px;color:#6e6e73}
.cgmh-sheet .cgmh-dr-x,.cgmh-sheet .cgmh-dr-x:hover{flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:#86868b}
.cgmh-sheet .cgmh-dr-x:hover{color:#1d1d1f}
.cgmh-dr-more{margin:-6px 0 14px!important}
@media (min-width:800px){
/* On a computer a panel opens in the middle of the screen, rising the same way it does on a phone. */
.cgmh-sheet:not(.cgmh-drawer){top:50%;bottom:auto;max-width:460px;max-height:min(760px,86vh);border-radius:22px;padding:22px 24px 26px;transform:translateY(100vh)}
.cgmh-sheet:not(.cgmh-drawer).on{transform:translateY(-50%)}
.cgmh-sheet:not(.cgmh-drawer) .cgmh-grab{display:none}
.cgmh-sheet:not(.cgmh-drawer) .cgmh-x,.cgmh-sheet:not(.cgmh-drawer) .cgmh-x:hover{top:20px;right:22px}
.cgmh-sheet.cgmh-drawer{left:auto;right:0;top:0;bottom:0;width:400px;max-width:none;max-height:none;margin:0;border-radius:22px 0 0 22px;padding:24px 24px 34px;transform:translateX(105%)}
.cgmh-sheet.cgmh-drawer.on{transform:none}
.cgmh-sheet.cgmh-drawer .cgmh-grab{display:none}
}
