/**
 * @package     plg_system_oslikcookies
 * @copyright   (C) 2026 oslik.eu
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 *
 * Uses the CSS variables of the Oslik template; the fallbacks give the same look elsewhere.
 */

.oslik-cookies {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2100;
  display: flex;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}

.oslik-cookies[hidden] {
  display: none;
}

.oslik-cookies__box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 720px;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface-bg, #fff);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
}

.oslik-cookies__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  fill: var(--o-primary, #6a11cb);
}

.oslik-cookies__text {
  flex: 1;
  margin: 0;
  color: var(--text-secondary, rgba(0, 0, 0, 0.6));
  font-size: 0.875rem;
  line-height: 1.43;
}

.oslik-cookies__text a {
  color: var(--link-color, #2575fc);
  font-weight: 700;
  text-decoration: underline;
}

.oslik-cookies__btn {
  flex-shrink: 0;
  padding: 6px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--o-gradient, linear-gradient(90deg, #6a11cb, #2575fc));
  color: #fff;
  font-family: var(--o-font-heading, inherit);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.02857em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  transition: background 0.25s ease;
}

.oslik-cookies__btn:hover,
.oslik-cookies__btn:focus-visible {
  background: var(--o-gradient-dark, linear-gradient(90deg, #5a0fb0, #1d63d8));
}

@media (min-width: 600px) {
  .oslik-cookies__box {
    flex-direction: row;
    align-items: center;
  }
}

@media print {
  .oslik-cookies {
    display: none !important;
  }
}
