/* PC Služba – Silktide Consent Manager brand overrides */
#stcm-wrapper {
  --primaryColor: #e87516;
  --backgroundColor: #ffffff;
  --textColor: #3d4449;
  --iconColor: #e87516;
  --iconBackgroundColor: #ffffff;
  --fontFamily: "Open Sans", Arial, sans-serif;
}

#stcm-banner,
#stcm-modal {
  border: 1px solid #e5e7eb;
}

/* Compact desktop banner */
#stcm-banner {
  width: 540px;
  max-width: calc(100% - 32px);
  padding: 22px 24px 18px;
  overflow-x: hidden;
}

#stcm-banner p {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 0;
}

#stcm-banner .stcm-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 16px;
}

#stcm-banner .stcm-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

#stcm-wrapper .stcm-button {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  font-family: var(--fontFamily);
  font-weight: 700;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0;
  padding: 10px 12px;
  white-space: normal;
}

/* Silktide marks both prompt buttons as primary, so target its real classes. */
#stcm-banner button.stcm-accept-all {
  background-color: #e87516 !important;
  color: #111111 !important;
  border: 2px solid #e87516 !important;
}

#stcm-banner button.stcm-reject-all {
  background-color: #ffffff !important;
  color: #3d4449 !important;
  border: 2px solid #e87516 !important;
}

#stcm-banner button.stcm-reject-all:hover {
  background-color: #fff8f1 !important;
  color: #3d4449 !important;
}

/* Preferences: simple tertiary text link */
#stcm-banner .stcm-preferences-button {
  display: inline-flex;
  width: auto;
  min-width: 0;
  min-height: 0;
  align-self: flex-start;
  align-items: center;
  gap: 5px;
  border: 0 !important;
  outline: 0;
  box-shadow: none !important;
  background: transparent !important;
  color: #6f7780;
  font-family: var(--fontFamily);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: none;
  padding: 3px 0;
  margin: 0;
  white-space: nowrap;
}

#stcm-banner .stcm-preferences-button:hover {
  color: #e87516;
  background: transparent !important;
}

#stcm-banner .stcm-preferences-button span {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#stcm-modal {
  width: 720px;
  max-width: calc(100% - 32px);
}

@media (max-width: 599px) {
  #stcm-banner {
    width: auto;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    padding: 20px;
  }

  #stcm-banner .stcm-actions-row {
    grid-template-columns: 1fr;
  }

  #stcm-banner .stcm-preferences-button {
    align-self: center;
  }
}