{"title":"Test","description":"\u003cdiv id=\"collection-countdown\" data-deadline=\"2026-08-01T23:59:59+07:00\"\u003e\n  \u003cp class=\"countdown-title\"\u003eHurry! This offer ends in:\u003c\/p\u003e\n\n  \u003cdiv class=\"countdown-grid\"\u003e\n    \u003cdiv\u003e\n\u003cstrong id=\"cd-days\"\u003e00\u003c\/strong\u003e\u003cspan\u003eDays\u003c\/span\u003e\n\u003c\/div\u003e\n    \u003cdiv\u003e\n\u003cstrong id=\"cd-hours\"\u003e00\u003c\/strong\u003e\u003cspan\u003eHours\u003c\/span\u003e\n\u003c\/div\u003e\n    \u003cdiv\u003e\n\u003cstrong id=\"cd-minutes\"\u003e00\u003c\/strong\u003e\u003cspan\u003eMinutes\u003c\/span\u003e\n\u003c\/div\u003e\n    \u003cdiv\u003e\n\u003cstrong id=\"cd-seconds\"\u003e00\u003c\/strong\u003e\u003cspan\u003eSeconds\u003c\/span\u003e\n\u003c\/div\u003e\n  \u003c\/div\u003e\n\n  \u003cp id=\"countdown-ended\" hidden\u003eThis offer has ended.\u003c\/p\u003e\n\u003c\/div\u003e\n\n\u003cstyle\u003e\n  #collection-countdown {\n    max-width: 620px;\n    margin: 24px auto;\n    padding: 22px 16px;\n    text-align: center;\n    background: #fff5f5;\n    border: 1px solid #f2cccc;\n    border-radius: 12px;\n  }\n\n  .countdown-title {\n    margin: 0 0 16px;\n    font-size: 18px;\n    font-weight: 600;\n  }\n\n  .countdown-grid {\n    display: grid;\n    grid-template-columns: repeat(4, 1fr);\n    gap: 10px;\n  }\n\n  .countdown-grid div {\n    padding: 12px 6px;\n    background: #ffffff;\n    border-radius: 8px;\n  }\n\n  .countdown-grid strong {\n    display: block;\n    font-size: clamp(22px, 5vw, 36px);\n    line-height: 1;\n    color: #c93636;\n  }\n\n  .countdown-grid span {\n    display: block;\n    margin-top: 7px;\n    font-size: 12px;\n    text-transform: uppercase;\n  }\n\n  #countdown-ended {\n    margin: 12px 0 0;\n    font-weight: 600;\n    color: #c93636;\n  }\n\u003c\/style\u003e\n\n\u003cscript\u003e\n  (() =\u003e {\n    const timer = document.getElementById(\"collection-countdown\");\n    if (!timer) return;\n\n    const deadline = new Date(timer.dataset.deadline).getTime();\n    const days = document.getElementById(\"cd-days\");\n    const hours = document.getElementById(\"cd-hours\");\n    const minutes = document.getElementById(\"cd-minutes\");\n    const seconds = document.getElementById(\"cd-seconds\");\n    const ended = document.getElementById(\"countdown-ended\");\n    const grid = timer.querySelector(\".countdown-grid\");\n\n    const pad = value =\u003e String(value).padStart(2, \"0\");\n\n    function updateCountdown() {\n      const remaining = deadline - Date.now();\n\n      if (remaining \u003c= 0) {\n        clearInterval(interval);\n        grid.hidden = true;\n        ended.hidden = false;\n        return;\n      }\n\n      days.textContent = pad(Math.floor(remaining \/ 86400000));\n      hours.textContent = pad(Math.floor((remaining \/ 3600000) % 24));\n      minutes.textContent = pad(Math.floor((remaining \/ 60000) % 60));\n      seconds.textContent = pad(Math.floor((remaining \/ 1000) % 60));\n    }\n\n    updateCountdown();\n    const interval = setInterval(updateCountdown, 1000);\n  })();\n\u003c\/script\u003e\u003cp\u003e\u003cbr\u003e\u003c\/p\u003e","products":[],"url":"https:\/\/wrappiness.co\/collections\/test-1.oembed","provider":"Wrappiness Gifts","version":"1.0","type":"link"}