/* This or That Polls — widget styles (themes: ever, dapper) */

.tot{position:relative;max-width:680px;margin:2em auto;border-radius:14px;overflow:hidden;box-shadow:0 2px 24px rgba(28,25,23,.08)}

/* ---- Slide-in variant ---- */
/* Anchored to the right edge at mid-height, clear of anchored video
   players and sticky ads that live in the bottom corners. */
.tot.tot-slidein{position:fixed;right:20px;top:45%;bottom:auto;width:400px;max-width:calc(100vw - 24px);margin:0;z-index:99998;transform:translate(130%,-50%);transition:transform .55s cubic-bezier(.22,.8,.3,1);box-shadow:0 14px 48px rgba(0,0,0,.28)}
.tot.tot-slidein.tot-visible{transform:translate(0,-50%)}
.tot-slidein .tot-inner{padding:20px 22px 18px}
.tot-slidein .tot-eyebrow{margin-bottom:10px}
.tot-slidein .tot-q{font-size:18px;margin-bottom:4px;padding-right:20px}
.tot-slidein .tot-sub{font-size:13px;margin-bottom:14px}
.tot-slidein .tot-options{gap:10px}
.tot-slidein .tot-opt{padding:12px 12px 11px;border-radius:10px}
.tot-slidein .opt-img{aspect-ratio:16/10;margin-bottom:9px;border-radius:7px}
.tot-slidein .opt-name{font-size:14px}
.tot-slidein .opt-tag{margin-bottom:6px}
.tot-slidein .tot-vs{font-size:10px}
.tot-slidein .res-thumb{width:44px;height:33px}
.tot-slidein .res-name{font-size:14px}
.tot-slidein .res-pct{font-size:16px}
.tot-slidein .tot-meta{margin-top:12px;padding-top:10px;font-size:11.5px}
.tot-close{position:absolute;top:8px;right:12px;z-index:2;background:none;border:none;font-size:22px;line-height:1;cursor:pointer;color:inherit;opacity:.55;padding:4px}
.tot-close:hover{opacity:1}

/* ---- After-vote quiz CTA ---- */
.tot-cta{display:block;margin-top:14px;padding:12px 16px;border-radius:9px;text-align:center;font-family:Helvetica,Arial,sans-serif;font-size:14px;font-weight:700;text-decoration:none;transition:filter .15s ease}
.tot-cta:hover{filter:brightness(1.08)}
.theme-ever .tot-cta{background:#b98d4f;color:#fff}
.theme-dapper .tot-cta{background:#c8a15c;color:#14181f}
.tot-inner{padding:34px 38px 30px}
.tot-eyebrow{font-family:Helvetica,Arial,sans-serif;font-size:11px;font-weight:700;letter-spacing:2.5px;text-transform:uppercase;display:flex;align-items:center;gap:8px;margin-bottom:14px}
.tot-eyebrow .dot{width:6px;height:6px;border-radius:50%}
.tot-q{font-size:24px;font-weight:600;line-height:1.3;margin-bottom:6px}
.tot-sub{font-size:14px;margin-bottom:26px;opacity:.65}

.tot-options{display:flex;gap:14px}
.tot-opt{flex:1;appearance:none;border-radius:12px;cursor:pointer;padding:22px 20px 20px;text-align:left;position:relative;border:1.5px solid;background:transparent;color:inherit;transition:transform .15s ease,box-shadow .15s ease,background .15s ease;font-family:inherit}
.tot-opt:hover{transform:translateY(-2px)}
.tot-opt:focus-visible{outline:3px solid currentColor;outline-offset:2px}
.tot-busy .tot-opt{pointer-events:none;opacity:.7}
.opt-img{display:block;width:100%;aspect-ratio:4/3;border-radius:9px;overflow:hidden;margin-bottom:14px;background:rgba(0,0,0,.05)}
.opt-img img{display:block;width:100%;height:100%;object-fit:cover}
.opt-tag{font-family:Helvetica,Arial,sans-serif;font-size:10px;font-weight:700;letter-spacing:2px;text-transform:uppercase;display:inline-block;margin-bottom:10px;padding:3px 9px;border-radius:99px}
.opt-name{display:block;font-size:19px;font-weight:600;line-height:1.25}
.tot-vs{align-self:center;font-family:Helvetica,Arial,sans-serif;font-size:12px;font-weight:800;letter-spacing:1px;opacity:.5;flex:0 0 auto}

.tot-results{display:none}
.tot.revealed .tot-options{display:none}
.tot.revealed .tot-results{display:block}
.res-row{margin-bottom:18px}
.res-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px;gap:12px}
.res-left{display:flex;align-items:center;gap:12px;min-width:0}
.res-thumb{width:56px;height:42px;border-radius:8px;overflow:hidden;flex:0 0 auto;background:rgba(0,0,0,.06)}
.res-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.res-name{font-size:16px;font-weight:600}
.res-name .yourpick{font-family:Helvetica,Arial,sans-serif;font-size:10.5px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;margin-left:10px;padding:2.5px 9px;border-radius:99px;vertical-align:2px;white-space:nowrap}
.res-pct{font-family:Helvetica,Arial,sans-serif;font-size:20px;font-weight:700;font-variant-numeric:tabular-nums}
.res-track{height:14px;border-radius:99px;overflow:hidden;background:rgba(0,0,0,.07)}
.res-fill{height:100%;width:0%;border-radius:99px;transition:width 1.1s cubic-bezier(.22,.8,.3,1)}
.tot-meta{display:flex;justify-content:space-between;align-items:center;margin-top:22px;padding-top:16px;border-top:1px solid rgba(0,0,0,.08);font-family:Helvetica,Arial,sans-serif;font-size:12.5px;opacity:.75}

/* ---- Footer placement ---- */
.tot-footer-wrap{padding:16px 16px 48px}
.tot-footer-wrap .tot{margin:0 auto}
/* inside a footer widget area, the column supplies spacing */
.footer-widget-area .tot-footer-wrap{padding:20px 0 8px}
.footer-widget-area .tot{box-shadow:0 2px 18px rgba(0,0,0,.18)}

/* ---- Quiz overlay ---- */
.tot-overlay{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center}
.tot-overlay-backdrop{position:absolute;inset:0;background:rgba(12,10,9,.72);backdrop-filter:blur(2px)}
.tot-overlay-box{position:relative;width:min(860px,94vw);height:min(760px,90vh);background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.45)}
.tot-overlay-box iframe{width:100%;height:100%;border:0;display:block}
.tot-overlay-close{position:absolute;top:8px;right:8px;z-index:2;width:34px;height:34px;border-radius:50%;border:none;background:rgba(20,24,31,.85);color:#fff;font-size:20px;line-height:1;cursor:pointer}
.tot-overlay-close:hover{background:rgba(20,24,31,1)}
@media(max-width:560px){.tot-overlay-box{width:100vw;height:100vh;border-radius:0}}

/* ---- Theme: everfumed ---- */
.tot.theme-ever{background:#fdfbf7;color:#231f1c;font-family:Georgia,'Times New Roman',serif}
.theme-ever .tot-eyebrow{color:#a0793f}
.theme-ever .tot-eyebrow .dot{background:#a0793f}
.theme-ever .tot-opt{border-color:#e2dbcd}
.theme-ever .tot-opt:hover{background:#faf5ea;box-shadow:0 6px 18px rgba(160,121,63,.15);border-color:#cdb488}
.theme-ever .opt-a .opt-tag{background:#f1e6d2;color:#8a6832}
.theme-ever .opt-b .opt-tag{background:#e4e7e0;color:#4f5d50}
.theme-ever .res-a .res-fill{background:#b98d4f}
.theme-ever .res-b .res-fill{background:#6d7d6e}
.theme-ever .res-a .res-pct{color:#9a7440}
.theme-ever .res-b .res-pct{color:#5c6b5d}
.theme-ever .yourpick{background:#f1e6d2;color:#8a6832}

/* ---- Theme: dapper ---- */
.tot.theme-dapper{background:#14181f;color:#eceae6;font-family:Helvetica,Arial,sans-serif}
.theme-dapper .tot-eyebrow{color:#c8a15c}
.theme-dapper .tot-eyebrow .dot{background:#c8a15c}
.theme-dapper .tot-opt{border-color:#333b47}
.theme-dapper .tot-opt:hover{background:#1b212b;box-shadow:0 6px 18px rgba(0,0,0,.4);border-color:#4a5567}
.theme-dapper .opt-a .opt-tag{background:#3a3323;color:#d9b878}
.theme-dapper .opt-b .opt-tag{background:#243038;color:#9fc4d4}
.theme-dapper .res-track{background:rgba(255,255,255,.1)}
.theme-dapper .res-a .res-fill{background:#c8a15c}
.theme-dapper .res-b .res-fill{background:#7fa8bb}
.theme-dapper .res-a .res-pct{color:#d9b878}
.theme-dapper .res-b .res-pct{color:#9fc4d4}
.theme-dapper .yourpick{background:#3a3323;color:#d9b878}
.theme-dapper .tot-meta{border-top:1px solid rgba(255,255,255,.12)}

@media(max-width:560px){
  .tot-inner{padding:26px 22px 24px}
  .tot:not(.tot-slidein) .tot-options{flex-direction:column}
  .tot:not(.tot-slidein) .tot-vs{align-self:flex-start;padding-left:4px}
  /* phones: compact sheet, raised above the bottom ad zone */
  .tot.tot-slidein{right:10px;left:10px;top:auto;bottom:90px;width:auto;transform:translateY(150%)}
  .tot.tot-slidein.tot-visible{transform:translateY(0)}
  .tot-slidein .opt-img{display:none} /* compact bottom sheet on phones */
}
