/* notifikace.css v1 (2026-11-12): hlášky Shoptetu (.messages .msg) v designu Dreamy
   místo zelené/červené bubliny se slonem-ikonou ze šablony Shoptak.
   Bílá karta dole uprostřed, malá kulatá ikona vlevo, barva podle typu.
   Selektory mají :not(#dn) kvůli specifičnosti — šablona používá !important. */
html body .messages .msg:not(#dn) .container:not(#dn) {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 28px !important;
  width: auto !important;
  min-width: 300px;
  max-width: min(460px, calc(100vw - 32px)) !important;
  margin: 0 !important;
  padding: 16px 22px 16px 62px !important;
  background: #fff !important;
  color: #1a1a1a !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 40px -14px rgba(20, 17, 24, .35), 0 2px 6px rgba(20, 17, 24, .08) !important;
  font-family: Rubik, -apple-system, 'Segoe UI', system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  text-align: left !important;
  transform: translateX(-50%) !important;
  animation: dn-in .35s cubic-bezier(.2, .8, .2, 1) both;
}
html body .messages .msg:not(#dn) .container:not(#dn) span,
html body .messages .msg:not(#dn) .container:not(#dn) a { color: inherit !important; font: inherit !important; }
html body .messages .msg:not(#dn) .container:not(#dn) a { text-decoration: underline !important; color: var(--dn-c, #d90074) !important; }

/* ikona: kroužek v barvě typu s bílým symbolem (nahrazuje velký obrázek nad bublinou) */
html body .messages .msg:not(#dn) .container:not(#dn)::before {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 18px !important;
  width: 30px !important;
  height: 30px !important;
  margin: -15px 0 0 0 !important;
  border-radius: 50%;
  background: var(--dn-c, #d90074) var(--dn-i) center / 16px 16px no-repeat !important;
  transform: none !important;
}

/* typy */
.messages .msg-success { --dn-c: #d90074;
  --dn-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.messages .msg-error { --dn-c: #b3261e;
  --dn-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v8M12 18.5v.01'/%3E%3C/svg%3E"); }
.messages .msg-warning,
.messages .msg-info,
.messages .msg-notice { --dn-c: #1a1a1a;
  --dn-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 11v7M12 6.5v.01'/%3E%3C/svg%3E"); }

@keyframes dn-in {
  from { opacity: 0; translate: 0 16px; }
  to   { opacity: 1; translate: 0 0; }
}

@media (max-width: 640px) {
  html body .messages .msg:not(#dn) .container:not(#dn) {
    bottom: 16px !important;
    min-width: 0;
    width: calc(100vw - 32px) !important;
    font-size: 14.5px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body .messages .msg:not(#dn) .container:not(#dn) { animation: none; }
}
