/* -- sketchub.com rebrand announcement (markup and script: libs/rebrand_banner.php) -- */

/* Make room for the banner above the fixed header. --sk-banner-h is set by the banner's script. */
.sk-header {
  top: var(--sk-banner-h, 0px);
}
#root {
  padding-top: calc(var(--header-height) + var(--sk-banner-h, 0px));
}


/* --- banner --- */

.sk-rebrand {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  min-height: 44px;
  /* the left padding matches the close button's width, so the message stays centred */
  padding: var(--sp-ultra-tight) var(--sp-extra-tight) var(--sp-ultra-tight) 44px;

  background-color: #ffe27a;
  border-bottom: 1px solid #e9c443;
  color: #3a2d00;
}
.sk-rebrand[hidden] {
  display: none;
}

.sk-rebrand__content {
  flex: 1;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.sk-rebrand__icon {
  flex: none;
  margin-right: var(--sp-tight);
  font-size: 16px;
  line-height: 1;
  color: #9a6700;
}

.sk-rebrand__text {
  min-width: 0;
}
.sk-rebrand__text strong {
  font-weight: 700;
}

.sk-rebrand__more {
  display: inline-block;
  margin-left: var(--sp-extra-tight);
  padding: 0 var(--sp-tight);
  border: 1px solid rgba(58, 45, 0, 0.4);
  border-radius: 999px;
  color: inherit;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.sk-rebrand__close {
  flex: none;
  width: 36px;
  height: 36px;
  margin-left: var(--sp-extra-tight);

  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--bo-normal);
  color: inherit;
  cursor: pointer;
}
.sk-rebrand__close > i {
  font-size: 24px;
  line-height: 1;
  color: inherit;
}

@media (hover: hover) {
  .sk-rebrand__more:hover,
  .sk-rebrand__close:hover {
    background-color: rgba(58, 45, 0, 0.1);
  }
}
.sk-rebrand__more:active,
.sk-rebrand__close:active {
  background-color: rgba(58, 45, 0, 0.16);
}
.sk-rebrand__more:focus-visible,
.sk-rebrand__close:focus-visible {
  outline: 2px solid #3a2d00;
  outline-offset: 1px;
}

@media (max-width: 540px) {
  .sk-rebrand {
    padding-left: var(--sp-normal);
  }
  .sk-rebrand__content {
    justify-content: flex-start;
  }
}


/* --- "Know more" dialog --- */

.sk-rebrand-dialog {
  width: calc(100% - 2 * var(--sp-normal));
  max-width: 520px;
  /* base.css zeroes every element's margin, which would pin the dialog to the top-left corner */
  margin: auto;
  padding: 0;
  overflow: hidden;

  border: 1px solid var(--bg-surface-border);
  border-radius: var(--bo-high);
  background-color: var(--bg-surface);
  color: var(--tc-surface-normal);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
}
.sk-rebrand-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Scrolls here, not on the <dialog>, so a click on the scrollbar isn't taken for a backdrop click. */
.sk-rebrand-dialog__inner {
  max-height: calc(100vh - 2 * var(--sp-normal));
  overflow-y: auto;
  padding: var(--sp-loose);
}

.sk-rebrand-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--sp-tight);
}
.sk-rebrand-dialog__header > .text {
  padding-top: var(--sp-ultra-tight);
  color: var(--tc-surface-high);
  font-weight: 500;
}
.sk-rebrand-dialog__header > .sk-icon-button {
  flex: none;
  margin: calc(-1 * var(--sp-ultra-tight)) calc(-1 * var(--sp-extra-tight)) 0 var(--sp-tight);
}

.sk-rebrand-dialog strong {
  color: var(--tc-surface-high);
  font-weight: 500;
}

.sk-rebrand-dialog__list {
  list-style: none;
  margin: var(--sp-loose) 0;
}
.sk-rebrand-dialog__list > li {
  display: flex;
  align-items: flex-start;
}
.sk-rebrand-dialog__list > li + li {
  margin-top: var(--sp-normal);
}
.sk-rebrand-dialog__list > li > i {
  flex: none;
  width: 40px;
  height: 40px;
  margin-right: var(--sp-tight);

  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--bo-normal);
  background-color: var(--bg-surface-low);
  font-size: 18px;
  color: var(--bg-primary);
}
.sk-rebrand-dialog__item-title {
  color: var(--tc-surface-high);
  font-weight: 500;
}

.sk-rebrand-dialog__footer {
  display: flex;
  justify-content: flex-end;
}
.sk-rebrand-dialog__footer > .btn-primary {
  min-width: 96px;
  text-align: center;
}
