:root {
  --ssit-app-bar-height: 72px;
}

.ssit-app-install-button {
  cursor: pointer;
}

body.ssit-smart-app-standalone {
  padding-bottom: calc(var(--ssit-app-bar-height) + env(safe-area-inset-bottom)) !important;
}

#ssit-smart-app-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity .22s ease;
}

#ssit-smart-app-splash img {
  width: min(62vw, 310px);
  max-height: 180px;
  object-fit: contain;
}

#ssit-smart-app-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483646;
  min-height: calc(var(--ssit-app-bar-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .985);
  border-top: 1px solid #e8e8e8;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .07);
  direction: inherit;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
}

.ssit-app-nav-item {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  color: #222229;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.ssit-app-nav-icon {
  width: 25px;
  height: 25px;
  display: block;
}

.ssit-app-whatsapp-icon {
  width: 29px;
  height: 29px;
  display: block;
}

#ssit-smart-app-badge {
  position: absolute;
  top: 4px;
  inset-inline-start: calc(50% + 7px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #d92d20;
  color: #fff;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
  display: none;
}

#ssit-smart-app-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, .34);
}

#ssit-smart-app-modal .ssit-app-card {
  width: 100%;
  max-width: 420px;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
}

.ssit-app-center-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  direction: inherit;
}

.ssit-app-center-head h3 {
  margin: 0;
  font-size: 22px;
}

.ssit-app-center-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ssit-app-clear-all {
  border: 0;
  background: transparent;
  color: #666;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ssit-app-close {
  border: 0;
  background: #22202b;
  color: #fff;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
}

.ssit-app-close span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  transform: translateY(-1px);
}

#ssit-smart-app-list {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ssit-app-message {
  position: relative;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 13px;
  padding-inline-end: 48px;
  background: #fafafa;
  text-align: start;
  direction: inherit;
}

.ssit-app-message-delete {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #ededed;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ssit-app-message-delete:hover,
.ssit-app-message-delete:focus {
  background: #22202b;
  color: #fff;
}

.ssit-app-message strong {
  display: block;
  margin-bottom: 5px;
  color: #222229;
}

.ssit-app-message p {
  margin: 0 0 6px;
  color: #555;
  line-height: 1.5;
}

.ssit-app-message time {
  font-size: 11px;
  color: #999;
}

.ssit-app-empty {
  text-align: center;
  color: #777;
  padding: 30px 8px;
}
