/* Banner minimale per landing, non invasivo. */
.ematica-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999999;
  font-family: inherit;
}

.ematica-cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid #000;
  border-radius: 0;
  background: #1e2543;
  color: #fff;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.16);
}

.ematica-cookie-banner__content {
  flex: 1 1 420px;
  min-width: 260px;
}

.ematica-cookie-banner__title {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 14px;
  letter-spacing: 0;
}

.ematica-cookie-banner__text {
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.95;
}

.ematica-cookie-banner__links {
  margin-top: 8px;
}

.ematica-cookie-banner__link {
  color: #fff;
  text-decoration: underline;
  font-size: 12px;
  background-color: transparent;
  border: none;
}

.ematica-cookie-banner__link--customize {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: calc(1.9rem + 2px);
  padding: 0.6rem 0.25rem;
  color: #fff;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}

.ematica-cookie-banner__link--customize:hover {
  color: #fff;
  text-decoration: underline;
}

.ematica-cookie-banner__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
}

@media (max-width: 520px) {
	.ematica-cookie-banner__actions {
		display: flex;
    flex-direction: column;
    align-items: stretch;
	}

}

.ematica-cookie-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  padding: 0.95rem 1.6rem;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ematica-cookie-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  text-decoration: none;
}

.ematica-cookie-btn:focus-visible,
.ematica-cookie-banner__link:focus-visible {
  outline: 2px solid #6598cc;
  outline-offset: 2px;
}

.ematica-cookie-btn--accept {
  background: #ffffff;
  color: #000;
  border-color: #ffffff;
}

.ematica-cookie-btn--accept:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

@media (max-width: 520px) {
  .ematica-cookie-banner__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .ematica-cookie-btn,
  .ematica-cookie-banner__link--customize {
    width: 100%;
  }
}

#ematica-cookie-modal .modal-content {
  border: 1px solid #000;
  border-radius: 0;
  color: #000;
  background: #fff;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.18);
}

#ematica-cookie-modal .modal-header,
#ematica-cookie-modal .modal-footer {
  border-color: #000;
  border-radius: 0;
}

#ematica-cookie-modal .modal-title {
  font-weight: 700;
}

#ematica-cookie-modal .btn-close {
  border-radius: 0;
  box-shadow: none;
}

#ematica-cookie-modal .btn-close:focus {
  box-shadow: none;
  outline: 2px solid #6598cc;
  outline-offset: 2px;
}

#ematica-cookie-modal .ematica-cookie-pref-item {
  border-color: #000 !important;
}

#ematica-cookie-modal .form-check-input {
  border-color: #000;
  border-radius: 0;
  box-shadow: none;
}

#ematica-cookie-modal .form-check-input:checked {
  background-color: #1e2543;
  border-color: #1e2543;
}

#ematica-cookie-modal .form-check-input:focus {
  border-color: #6598cc;
  box-shadow: none;
  outline: 2px solid #6598cc;
  outline-offset: 2px;
}

#ematica-cookie-modal .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 0;
  font-size: 0.875rem !important;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#ematica-cookie-modal .btn:focus,
#ematica-cookie-modal .btn:active {
  box-shadow: none;
}

#ematica-cookie-modal .btn:focus-visible {
  outline: 2px solid #6598cc;
  outline-offset: 2px;
}

#ematica-cookie-modal .btn-primary,
#ematica-cookie-modal .btn-success {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

#ematica-cookie-modal .btn-primary:hover,
#ematica-cookie-modal .btn-success:hover {
  background-color: transparent;
  color: #000;
  border-color: #000;
}

#ematica-cookie-modal .btn-outline-secondary {
  background-color: transparent;
  color: #000;
  border-color: #000;
}

#ematica-cookie-modal .btn-outline-secondary:hover {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

@media (max-width: 520px) {
  #ematica-cookie-modal .modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  #ematica-cookie-modal .btn {
    width: 100%;
  }
}
