:root{--ah-red:#ff174f;--ah-bg:rgba(7,7,11,.93);--ah-card:rgba(24,23,29,.96);--ah-text:#fff;--ah-muted:#aaa}
.ahw-wall,.ahw-recorder{box-sizing:border-box;font-family:Arial,Helvetica,sans-serif;color:var(--ah-text);background:linear-gradient(180deg,rgba(18,6,10,.96),var(--ah-bg));border:1px solid rgba(255,23,79,.92);border-radius:22px;box-shadow:0 0 14px rgba(255,23,79,.55),inset 0 0 24px rgba(255,23,79,.05);padding:18px;width:100%;max-width:560px}
.ahw-wall-head,.ahw-rec-head{display:flex;align-items:center;gap:13px;margin:0 4px 14px}.ahw-logo-wave,.ahw-wave-icon{font-size:34px;color:var(--ah-red);text-shadow:0 0 10px var(--ah-red)}.ahw-wall h3{font-size:24px;line-height:1;margin:0 0 5px}.ahw-wall p,.ahw-rec-head small{display:block;margin:0;color:#ddd;font-size:10px;letter-spacing:1.2px}.ahw-rec-head b{font-size:18px}
.ahw-list{display:grid;gap:10px}.ahw-item{display:flex;gap:12px;align-items:center;background:var(--ah-card);border:1px solid rgba(255,255,255,.04);border-radius:13px;padding:11px 13px;box-shadow:0 8px 20px rgba(0,0,0,.25)}.ahw-avatar{width:62px;height:62px;border-radius:50%;object-fit:cover;border:2px solid #eee;flex:0 0 auto}.ahw-body{min-width:0;flex:1}.ahw-meta{display:flex;justify-content:space-between;gap:10px;align-items:center}.ahw-meta strong{font-size:15px}.ahw-meta time{font-size:11px;color:var(--ah-muted);white-space:nowrap}.ahw-text{font-size:13px;color:#ddd;margin:5px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ahw-player{display:flex;align-items:center;gap:9px}.ahw-item-play,.ahw-play{border:0;width:36px;height:36px;border-radius:50%;background:var(--ah-red);color:#fff;cursor:pointer;box-shadow:0 0 12px rgba(255,23,79,.35)}.ahw-track{height:32px;position:relative;overflow:hidden;flex:1}.ahw-static-bars,.ahw-bars{height:100%;display:flex;gap:2px;align-items:center}.ahw-static-bars i,.ahw-bars i{display:block;width:2px;min-width:2px;background:linear-gradient(#ff174f,#ff557a);border-radius:2px}.ahw-progress{position:absolute;left:0;bottom:0;height:2px;width:0;background:#fff;box-shadow:0 0 7px #fff}.ahw-duration{font-size:11px;color:#ddd}.ahw-empty{padding:30px 10px;text-align:center;color:#aaa}
.ahw-fields{display:grid;gap:9px}.ahw-fields input,.ahw-fields textarea{box-sizing:border-box;width:100%;border:1px solid #34343b;background:#15151a;color:#fff;border-radius:10px;padding:11px 12px}.ahw-fields textarea{min-height:72px;resize:vertical}.ahw-photo-label input{display:none}.ahw-photo-label span{display:block;border:1px dashed #555;border-radius:10px;padding:12px;text-align:center;cursor:pointer;color:#ddd}.ahw-record-row{display:flex;align-items:center;justify-content:space-between;margin:12px 0}.ahw-record,.ahw-submit,.ahw-redo{border:0;border-radius:999px;padding:11px 17px;background:var(--ah-red);color:#fff;font-weight:700;cursor:pointer}.ahw-timer{font-variant-numeric:tabular-nums;color:#ddd}.ahw-preview{background:#15151a;border-radius:12px;padding:10px;display:flex;align-items:center;gap:10px;margin-bottom:12px}.ahw-preview[hidden]{display:none}.ahw-bars{flex:1;overflow:hidden;height:35px}.ahw-current{font-size:11px}.ahw-redo{background:transparent;border:1px solid #555;font-size:10px;padding:8px 10px}.ahw-submit{width:100%;border-radius:10px}.ahw-submit:disabled{opacity:.35;cursor:not-allowed}.ahw-status{text-align:center;font-size:12px;color:#ddd;margin-top:9px;min-height:16px}
@media(max-width:600px){.ahw-wall,.ahw-recorder{padding:12px;border-radius:17px}.ahw-wall h3{font-size:20px}.ahw-avatar{width:52px;height:52px}.ahw-item{padding:9px;gap:9px}.ahw-meta time{font-size:9px}.ahw-text{font-size:12px}.ahw-static-bars i:nth-child(n+29){display:none}.ahw-redo{font-size:0}.ahw-redo:after{content:'↻';font-size:16px}}

/* v1.0.10 - clean responsive containment.
   No Elementor ancestor resizing: this keeps the logo/background layout intact in landscape. */
.elementor-widget-ahw_audio_wall,
.elementor-widget-ahw_voice_recorder,
.elementor-widget-ahw_audio_wall > .elementor-widget-container,
.elementor-widget-ahw_voice_recorder > .elementor-widget-container{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}

.ahw-wall,.ahw-recorder{
  box-sizing:border-box!important;
  min-width:0!important;
}
.ahw-wall *,.ahw-recorder *{box-sizing:border-box;min-width:0;max-width:100%}
.ahw-wall-head>div,.ahw-rec-head>div,.ahw-body,.ahw-track,.ahw-bars,.ahw-static-bars{min-width:0;max-width:100%}
.ahw-wall h3,.ahw-wall p,.ahw-rec-head b,.ahw-rec-head small,.ahw-meta strong,.ahw-text{overflow-wrap:anywhere;word-break:normal}

/* Phones/tablets: keep the wall visibly inside the photo on BOTH sides. */
@media (max-width:1024px){
  html,body{max-width:100%;overflow-x:clip!important;background:#050507!important;}

  .elementor-widget-ahw_audio_wall,
  .elementor-widget-ahw_voice_recorder{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
    margin:0!important;
    padding:0 20px!important;
    overflow:visible!important;
  }

  .elementor-widget-ahw_audio_wall > .elementor-widget-container,
  .elementor-widget-ahw_voice_recorder > .elementor-widget-container{
    display:block!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }

  .elementor-widget-ahw_audio_wall .ahw-wall,
  .elementor-widget-ahw_voice_recorder .ahw-recorder{
    width:100%!important;
    max-width:100%!important;
    margin:0 auto!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
  }
}

/* Portrait phones: a little extra breathing room, matching the requested inset. */
@media (max-width:600px) and (orientation:portrait){
  .elementor-widget-ahw_audio_wall,
  .elementor-widget-ahw_voice_recorder{padding-left:24px!important;padding-right:24px!important;}
  .ahw-wall,.ahw-recorder{padding:12px!important;border-radius:17px}
  .ahw-wall-head,.ahw-rec-head{gap:9px;margin-left:0;margin-right:0}
  .ahw-logo-wave,.ahw-wave-icon{font-size:28px;flex:0 0 auto}
  .ahw-wall h3{font-size:20px}
  .ahw-wall p,.ahw-rec-head small{font-size:9px;letter-spacing:.8px}
}

/* Landscape phones: same centered inset; never use 100vw and never resize Elementor parents. */
@media (orientation:landscape) and (max-height:600px){
  .elementor-widget-ahw_audio_wall,
  .elementor-widget-ahw_voice_recorder{
    width:100%!important;
    max-width:100%!important;
    padding-left:28px!important;
    padding-right:28px!important;
  }
  .elementor-widget-ahw_audio_wall .ahw-wall,
  .elementor-widget-ahw_voice_recorder .ahw-recorder{
    width:100%!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}
/* 1.0.11 controls */
.ahw-photo{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.ahw-photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ahw-photo-choose,.ahw-photo-camera{min-height:46px;border:1px dashed #666;border-radius:10px;background:#15151a;color:#eee;font-weight:700;cursor:pointer;padding:10px}
.ahw-photo-selected{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid #34343b;border-radius:10px;background:#15151a;color:#ddd;font-size:12px}.ahw-photo-selected[hidden]{display:none}.ahw-photo-preview{width:48px!important;height:48px!important;object-fit:cover;border-radius:8px;flex:0 0 48px}.ahw-photo-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ahw-track,.ahw-preview-track{cursor:pointer;touch-action:manipulation}.ahw-preview-track{position:relative;flex:1;height:35px;overflow:hidden}.ahw-preview-progress{position:absolute;left:0;bottom:0;height:2px;width:0;background:#fff;box-shadow:0 0 7px #fff;pointer-events:none}
@media(max-width:420px){.ahw-photo-actions{grid-template-columns:1fr}.ahw-photo-choose,.ahw-photo-camera{width:100%}}

/* v1.0.15 - recorder behaves as a normal Elementor column item. */
.elementor-widget-ahw_voice_recorder{
  position:relative!important;
  inset:auto!important;
  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  transform:none!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  flex:0 1 auto!important;
  align-self:stretch!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.elementor-widget-ahw_voice_recorder>.elementor-widget-container{
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding:0!important;box-sizing:border-box!important;
}
.elementor-widget-ahw_voice_recorder .ahw-recorder{
  width:100%!important;max-width:560px!important;min-width:0!important;
  margin-left:auto!important;margin-right:auto!important;
}
/* Custom Afterhours lips icon from the supplied icon sheet. */
.ahw-custom-icon{display:block;flex:0 0 34px;width:34px;height:34px;background:url('../lips-icon.png') center/cover no-repeat;border-radius:8px;box-shadow:0 0 10px rgba(255,23,79,.45)}
@media(max-width:600px){.ahw-custom-icon{flex-basis:28px;width:28px;height:28px}}

/* v1.0.16 - Afterhours custom icon picker inside the message area */
.ahw-icon-picker{margin-top:-2px}
.ahw-icon-favs{display:flex;gap:6px;align-items:center;overflow-x:auto;padding:4px 1px 7px;scrollbar-width:thin}
.ahw-icon-btn,.ahw-icon-more{flex:0 0 38px;width:38px;height:38px;border:1px solid #3a3a42;border-radius:8px;background:#111116;padding:3px;cursor:pointer;display:grid;place-items:center;transition:.18s ease}
.ahw-icon-btn:hover,.ahw-icon-more:hover{border-color:var(--ah-red);box-shadow:0 0 10px rgba(255,23,79,.35);transform:translateY(-1px)}
.ahw-icon-btn img{width:100%;height:100%;object-fit:cover;border-radius:5px}
.ahw-icon-more{color:#fff;font-size:22px;padding:0}
.ahw-icon-all{display:grid;grid-template-columns:repeat(auto-fill,minmax(38px,1fr));gap:6px;padding:8px;background:#0d0d11;border:1px solid rgba(255,23,79,.35);border-radius:10px;max-height:220px;overflow:auto;margin-bottom:4px}
.ahw-icon-all[hidden]{display:none}
.ahw-inline-icon{display:inline-block!important;width:25px!important;height:25px!important;max-width:none!important;object-fit:cover;border-radius:5px;vertical-align:-7px;margin:0 2px;box-shadow:0 0 5px rgba(255,23,79,.25)}
.ahw-text{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.65}
@media(max-width:600px){.ahw-icon-btn,.ahw-icon-more{flex-basis:34px;width:34px;height:34px}.ahw-icon-all{grid-template-columns:repeat(6,1fr);max-height:190px}.ahw-inline-icon{width:22px!important;height:22px!important;vertical-align:-6px}}

/* v1.0.18: fixed-height 3-message wall. Extra messages scroll INSIDE the hero. */
.ahw-wall{position:relative;overflow:hidden}
.ahw-list{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:7px;scroll-behavior:smooth;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.ahw-list::-webkit-scrollbar{width:9px}
.ahw-list::-webkit-scrollbar-track{background:rgba(255,255,255,.05);border-radius:99px}
.ahw-list::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#ff174f,#8f0d2e);border-radius:99px;border:2px solid rgba(10,10,14,.9);box-shadow:0 0 8px rgba(255,23,79,.65)}
.ahw-list{scrollbar-width:thin;scrollbar-color:#ff174f rgba(255,255,255,.05)}
.ahw-scroll-hint{height:28px;margin:7px 2px -4px;display:flex;align-items:center;justify-content:center;gap:8px;color:#ff174f;text-shadow:0 0 8px rgba(255,23,79,.8);font-size:16px;line-height:1;pointer-events:none;user-select:none}
.ahw-scroll-label{font-size:9px;letter-spacing:2px;color:#ddd;text-shadow:none}
.ahw-scroll-up{opacity:.18;transition:opacity .18s}.ahw-scroll-down{opacity:1;animation:ahwNudge 1.25s ease-in-out infinite}
.ahw-wall.ahw-can-up .ahw-scroll-up{opacity:1}.ahw-wall.ahw-at-bottom .ahw-scroll-down{opacity:.18;animation:none}
@keyframes ahwNudge{0%,100%{transform:translateY(-2px)}50%{transform:translateY(2px)}}
@media(max-width:600px){.ahw-list::-webkit-scrollbar{width:7px}.ahw-scroll-hint{height:24px;margin-top:5px}}


/* v1.0.20: short title + required publication consent */
.ahw-title-help{display:block;margin:-3px 2px 2px;color:#aaa;font-size:11px;line-height:1.35}
.ahw-consent{display:flex;align-items:flex-start;gap:9px;margin:10px 1px 12px;color:#d7d7dc;font-size:11px;line-height:1.4;cursor:pointer}
.ahw-consent input{width:17px;height:17px;min-width:17px;margin:0;accent-color:var(--ah-red);cursor:pointer}
.ahw-consent span{flex:1}


/* v1.0.22 - fixed floating icon palette */
.ahw-icon-picker{position:relative;z-index:50}
.ahw-icon-all{position:absolute!important;left:0;right:0;top:100%;z-index:9999;margin:2px 0 0!important;max-height:220px;overflow-y:auto!important;overflow-x:hidden;background:rgba(13,13,17,.98);box-shadow:0 14px 32px rgba(0,0,0,.72),0 0 18px rgba(255,23,79,.30);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.ahw-icon-all[hidden]{display:none!important}
.ahw-recorder,.ahw-fields{overflow:visible!important}
@media(max-width:600px){.ahw-icon-all{left:0;right:0;max-height:190px}}

/* v1.0.23: obvious ALL button first; favorites no longer masquerade as the full icon set */
.ahw-icon-favs{overflow:hidden!important;scrollbar-width:none!important}
.ahw-icon-favs::-webkit-scrollbar{display:none!important}
.ahw-icon-all-button{flex:0 0 48px!important;width:48px!important;height:38px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:0;border-color:rgba(255,23,79,.7)!important;color:#fff!important;line-height:1!important}
.ahw-icon-all-button .ahw-all-grid{font-size:17px;line-height:15px;color:#ff174f}
.ahw-icon-all-button .ahw-all-label{font-size:8px;font-weight:800;letter-spacing:.7px;margin-top:2px}
.ahw-icon-all-button.is-open .ahw-all-grid{font-size:0}
.ahw-icon-all-button.is-open .ahw-all-grid:after{content:'×';font-size:22px;color:#ff174f}
.ahw-icon-all-button.is-open .ahw-all-label{font-size:0}
.ahw-icon-all-button.is-open .ahw-all-label:after{content:'CLOSE';font-size:7px}
@media(max-width:600px){.ahw-icon-favs{gap:5px}.ahw-icon-all-button{flex-basis:44px!important;width:44px!important;height:34px!important}.ahw-icon-btn{flex:1 1 0!important;min-width:0!important;max-width:38px}}

/* Optional audio upload for Android WebView compatibility */
.ahw-upload-fallback{margin:12px 0;padding:12px;border:1px solid #5a222b;border-radius:8px;color:#eee;background:#140d10}.ahw-upload-fallback label{display:block;font-size:13px;margin-bottom:8px}.ahw-upload-fallback input{display:block;max-width:100%;font-size:13px}.ahw-upload-fallback small{display:block;opacity:.7;margin-top:5px}

/* v1.0.26 selected photo card */
.ahw-photo-selected:not([hidden]){display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #a51a39;border-radius:12px;background:linear-gradient(120deg,#1d1017,#111115);box-shadow:0 0 12px #e5094530}.ahw-photo-preview{width:76px!important;height:76px!important;flex:0 0 76px!important;border-radius:10px;border:1px solid #e51a4a;object-fit:cover}.ahw-photo-name{flex:1;min-width:0;font-size:13px;color:#f4e9ee}.ahw-photo-replace{flex:0 0 auto;background:#ed174c;color:#fff;border:0;border-radius:9px;padding:10px 12px;font-weight:700;cursor:pointer}.ahw-photo-choose,.ahw-photo-camera{border-color:#a12b45;background:#181318}.ahw-photo-choose:focus-visible,.ahw-photo-camera:focus-visible,.ahw-photo-replace:focus-visible{outline:2px solid #fff;outline-offset:3px}@media(max-width:420px){.ahw-photo-selected:not([hidden]){flex-wrap:wrap}.ahw-photo-name{flex-basis:calc(100% - 100px)}.ahw-photo-replace{margin-left:auto}}

/* v1.0.27: custom audio upload controls; native picker remains OS-owned */
.ahw-upload-fallback .ahw-audio-file{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important;clip-path:inset(50%)}
.ahw-upload-fallback .ahw-audio-choose{display:block;width:100%;padding:14px 12px;background:#171016;color:#fff;border:1px solid #ec174d;border-radius:9px;font:inherit;font-weight:700;cursor:pointer;text-align:center}
.ahw-upload-fallback .ahw-audio-selected{margin-top:10px;padding:10px;background:#21151b;border:1px solid #602334;border-radius:8px;overflow-wrap:anywhere}
.ahw-upload-fallback .ahw-audio-selected[hidden]{display:none!important}
.ahw-upload-fallback .ahw-audio-name{display:block;font-size:13px;margin-bottom:8px}
.ahw-upload-fallback .ahw-audio-replace{padding:8px 14px;background:#e9144c;color:white;border:0;border-radius:7px;font-weight:700}
