.hwg-je-dialog{box-sizing:border-box;width:min(740px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:20px;border:1px solid #78917e;border-radius:14px;background:#fff;color:#17241a;overflow:auto}
.hwg-je-dialog::backdrop,.hwg-jv-dialog::backdrop{background:rgba(0,0,0,.8)}
.hwg-je-dialog h2,.hwg-je-dialog label,.hwg-je-dialog p{color:inherit!important;-webkit-text-fill-color:currentColor!important}
.hwg-je-dialog h2{font-size:22px;margin:0 0 12px}.hwg-je-dialog label{display:block;font-weight:600}
.hwg-je-dialog input:not([type=file]),.hwg-je-dialog textarea,.hwg-je-dialog select{box-sizing:border-box;width:100%;max-width:100%;background:#fff!important;color:#17241a!important;-webkit-text-fill-color:#17241a!important;border:1px solid #78917e;border-radius:6px;padding:9px;margin:6px 0 10px}
.hwg-je-form{background:transparent!important}.hwg-je-row{padding:12px 0;border-bottom:1px solid #78917e}.hwg-je-row img{display:block;max-width:100%;width:auto;max-height:180px;object-fit:contain;background:transparent}
.hwg-je-actions,.hwg-je-row-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.hwg-je-dialog button,.hwg-je-open,.hwg-jv-expand{background:#216d30!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #56915e;border-radius:8px;padding:9px 12px;cursor:pointer;font-size:14px;line-height:1.4}
.hwg-je-dialog .hwg-je-delete{background:#882c2c!important}.hwg-je-status{white-space:pre-wrap}.hwg-je-help{font-size:13px}.hwg-je-open{margin-top:12px}.hwg-jv-expand{display:block;margin:6px auto 10px;padding:5px 10px;font-size:12px}
body:has(.site-wrapper.atbs-dark-mode) .hwg-je-dialog{background:#18231c;color:#edf5ee}body:has(.site-wrapper.atbs-dark-mode) .hwg-je-dialog :is(input:not([type=file]),textarea,select){background:#28382d!important;color:#edf5ee!important;-webkit-text-fill-color:#edf5ee!important}
.hwg-jv-dialog{position:fixed;inset:0;box-sizing:border-box;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#080a09;color:white;overflow:hidden}
.hwg-jv-toolbar{position:absolute;top:0;left:0;right:0;z-index:2;display:flex;flex-wrap:wrap;gap:8px;padding:12px;padding-top:max(12px,env(safe-area-inset-top));background:rgba(0,0,0,.75)}
.hwg-jv-toolbar button{background:#263d2c!important;color:white!important;-webkit-text-fill-color:white!important;border:1px solid #8bb894;border-radius:8px;padding:9px 12px;cursor:pointer}
.hwg-jv-stage{position:absolute;inset:70px 0 40px;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none}.hwg-jv-stage img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;user-select:none;-webkit-user-drag:none;transform-origin:center}
.hwg-jv-help{position:absolute;bottom:0;left:0;right:0;margin:0;padding:8px;text-align:center;font-size:12px;color:white!important}.single-hwg_journal .hwg-journal-entry img[data-hwg-zoom]{-webkit-touch-callout:none}
@media(max-width:480px){.hwg-je-dialog{padding:14px}.hwg-jv-toolbar{gap:5px}.hwg-jv-toolbar button{padding:8px;font-size:13px}}
.single-hwg_journal [data-hwg-je="1"][hidden],.woocommerce-account form[data-hwg-je="1"][hidden]{display:none!important}

.hwg-je-dialog input[type=file]{width:100%;max-width:100%;min-width:0;box-sizing:border-box}.hwg-je-actions>label{min-width:0;max-width:100%}.hwg-je-dialog button{max-width:100%;white-space:normal}

.hwg-je-dialog{overflow-x:hidden}

/* Only journal photo containers that have both actions; never overlay the image. */
.single-hwg_journal .hwg-journal-entry :has(>.hwg-jv-expand):has(>.hwg-share-journal-photo){display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px;align-items:start}
.single-hwg_journal .hwg-journal-entry :has(>.hwg-jv-expand):has(>.hwg-share-journal-photo)>img{grid-column:1/-1}
.single-hwg_journal .hwg-journal-entry :has(>.hwg-jv-expand):has(>.hwg-share-journal-photo)>:is(.hwg-jv-expand,.hwg-share-journal-photo){position:static!important;inset:auto!important;transform:none!important;margin:0!important;justify-self:start;width:auto;max-width:100%;box-sizing:border-box;white-space:normal;border-radius:8px;padding:8px 10px;font-size:12px;line-height:1.4}
