dialog.test-thanks {
 --clay-top:#ffe8d8;
 --clay-bottom:#efc5af;
 --clay-ink:#704f40;
 --clay-relief:inset 0 2px 3px #ffffffa6,inset 0 -2px 3px #49404b14,0 3px 5px #514a4320;
 box-sizing:border-box;width:min(438px,calc(100% - 28px));max-height:calc(100dvh - 28px);
 overflow:auto;margin:auto;padding:0;border:1px solid #ead9c6;border-radius:20px;
 background:#fffaf2;color:#493528;box-shadow:inset 0 2px 4px #fff,0 20px 50px #3b302545;
 font:400 15px/1.55 system-ui,-apple-system,sans-serif
}
.test-thanks::backdrop {background:#322a2269}
.test-thanks .test-thanks-close {
 position:absolute;z-index:1;top:14px;right:14px;display:grid;place-items:center;width:36px;height:36px;
 padding:0;border:1px solid #fff9;border-radius:50%;background:#fff3e6;color:var(--clay-ink);
 box-shadow:var(--clay-relief);cursor:pointer;font:400 22px/1 system-ui
}
.test-thanks :is(button,summary):focus-visible {outline:2px solid #a67154;outline-offset:2px}
.test-thanks-hero {
 position:relative;isolation:isolate;box-sizing:border-box;display:flex;align-items:center;
 min-height:176px;margin:8px;padding:16px clamp(16px,4.8vw,23px);overflow:hidden;
 border:1px solid #ffffff70;border-radius:16px;
 background:linear-gradient(165deg,var(--clay-top) 8%,var(--clay-bottom) 100%);
 color:var(--clay-ink);box-shadow:var(--clay-relief)
}
.test-thanks-photo {
 position:absolute;inset:0 10px 0 auto;width:46%;overflow:hidden;pointer-events:none
}
.test-thanks-photo img {
 position:absolute;left:50%;top:51%;width:auto;max-width:none;height:98%;
 transform:translate(-50%,-50%);
 /* Follow the cup silhouette while keeping the original product colors. */
 clip-path:polygon(
  31.15% 17.85%, 31.46% 16.76%, 32.55% 15.48%, 34.42% 14.03%, 36.45% 12.93%,
  39.10% 11.66%, 42.06% 10.75%, 43.61% 10.93%, 44.70% 11.84%, 46.57% 10.56%,
  48.44% 9.84%, 50.62% 9.65%, 52.18% 10.02%, 54.05% 11.29%, 55.30% 11.48%,
  58.10% 10.75%, 60.28% 10.93%, 61.99% 11.84%, 63.08% 13.30%, 65.73% 14.39%,
  67.45% 15.66%, 68.38% 17.12%, 68.22% 18.76%, 67.13% 20.77%, 66.67% 23.68%,
  66.04% 28.42%, 65.42% 32.97%, 64.80% 37.34%, 64.33% 42.08%, 63.86% 46.63%,
  63.40% 51.55%, 62.93% 56.10%, 62.46% 60.66%, 62.15% 65.21%, 61.53% 69.76%,
  61.37% 74.86%, 60.75% 79.05%, 60.44% 80.69%, 59.35% 81.79%, 57.17% 82.88%,
  53.89% 83.97%, 49.84% 84.34%, 46.11% 83.97%, 43.46% 83.24%, 41.12% 82.33%,
  40.03% 81.24%, 39.41% 79.78%, 38.94% 75.96%, 38.47% 71.77%, 38.01% 67.58%,
  37.54% 63.57%, 37.07% 59.20%, 36.45% 54.64%, 35.98% 50.09%, 35.51% 45.36%,
  35.05% 40.98%, 34.58% 36.25%, 33.96% 31.51%, 33.49% 26.96%, 33.02% 22.77%,
  32.55% 20.58%, 31.46% 19.31%
 )
}
.test-thanks-gift-label {position:relative;max-width:53%}
.test-thanks-gift-label small {display:block;margin-bottom:7px;font:700 clamp(8px,2.1vw,10px)/1.4 system-ui;letter-spacing:.09em;color:#835643}
.test-thanks-gift-label strong {display:block;font-size:clamp(19px,5.65vw,25px);line-height:1.18;letter-spacing:-.055em;white-space:pre-line;word-break:keep-all}
.test-thanks-body {padding:12px clamp(17px,5vw,27px) 23px}
.test-thanks h2 {margin:0 0 5px;font-size:clamp(16px,4.8vw,19px);letter-spacing:-.035em;color:inherit;word-break:keep-all}
.test-thanks p {margin:4px 0;font-size:13px;color:#6b5545}
.test-thanks p:empty {display:none}
.test-thanks p.test-thanks-reward {margin:13px 0;padding:9px 0;border-top:1px solid #e8dacc;color:#684831;font-weight:700}
.test-thanks summary,.test-thanks form button {
 padding:10px 14px;border:1px solid #fff9;border-radius:13px;cursor:pointer;font:700 14px/1.5 system-ui;
 background:linear-gradient(165deg,#fff1d4 8%,#ead3a5);color:#6e5631;box-shadow:var(--clay-relief)
}
.test-thanks summary {list-style:none;display:flex;align-items:center;justify-content:space-between}
.test-thanks summary::-webkit-details-marker {display:none}
.test-thanks summary::after {content:"→"}
.test-thanks details[open] summary::after {content:"↑"}
.test-thanks form,.test-thanks label {display:grid;gap:7px;font-size:13px}
.test-thanks form {gap:12px;margin-top:15px}
.test-thanks form button {justify-self:start}
.test-thanks input[type=tel] {width:100%;box-sizing:border-box;padding:9px;border:1px solid #c8a886;border-radius:6px;background:#fff;font-size:16px}
.test-thanks .test-thanks-consent {grid-template-columns:auto minmax(0,1fr);align-items:start}

@media (max-width:380px) {
 .test-thanks-hero {min-height:160px}
 .test-thanks-photo {right:6px}
 .test-thanks-gift-label strong {font-size:clamp(17px,5.9vw,22px)}
}
