.site-owner-popup {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  width: 420px;
  background: #fff;
  border-radius: 12px;
  z-index: 10001;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
  display: none;
  text-align: left;
  flex-direction: column;
  max-height: 520px;
}

.site-owner-popup.is-active {
  display: flex !important;
}

.site-owner-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
}

.site-owner-backdrop.is-active {
  display: block !important;
}

.site-owner-tabs {
  display: flex;
  gap: 10px;
  padding: 15px 15px 10px;
  background: #fff;
  border-radius: 12px;
}

@media (min-width: 1024px) {
  #site-owner-btn {
    min-width: 120px !important;
  }
}

.site-owner-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  transition: all 0.2s;
}

.site-owner-tab:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.site-owner-tab.is-active {
  border-color: #1a1a1a;
  border-width: 1px;
  color: #1a1a1a;
  background: #fff;
}

.tab-radio {
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  position: relative;
}

.site-owner-tab.is-active .tab-radio {
  border-color: #1a1a1a;
}

.site-owner-tab.is-active .tab-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #1a1a1a;
  border-radius: 50%;
}

.site-owner-content {
  padding: 10px 15px;
  display: none;
}

.site-owner-content.is-active {
  display: block;
}

.site-owner-search-container {
  margin-bottom: 10px;
}

.site-owner-search {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  color: #1a1a1a;
  outline: none;
}

.site-owner-search::placeholder {
  color: #94a3b8;
}

.site-owner-reset {
  display: block;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  text-decoration: none;
}

.site-owner-reset:hover {
  text-decoration: underline;
}

.site-owner-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
  scrollbar-width: none;
  border: 1px solid lightgray;
  border-radius: 10px;
  padding: 8px;
}

.site-owner-list::-webkit-scrollbar {
  width: 6px;
}

.site-owner-list::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 10px;
}

.site-owner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 10px 12px;
  padding-bottom: 0;
  border-radius: 10px;
  transition: all 0.2s ease;
  margin-bottom: 2px;
  border: 1px solid transparent;
}

.site-owner-item:hover {
  background: #f8fafc;
  border-color: #f1f5f9;
}

.site-owner-item.is-selected {
  background: rgb(0 0 0 / 6%);
  border-color: rgb(0 0 0 / 15%);
}

.site-owner-item-left {
  display: flex;
  align-items: center;
}

.site-owner-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 12px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.site-owner-item:hover .site-owner-item-avatar {
  transform: scale(1.04);
}

.site-owner-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-owner-item-avatar.letter-avatar {
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

.site-owner-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  transition: color 0.2s ease;
}

.site-owner-item:hover .site-owner-item-name {
  color: #0f172a;
}

.site-owner-item.is-selected .site-owner-item-name {
  color: black;
  font-weight: 700;
}

.site-owner-item-radio {
  width: 20px;
  height: 20px;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  position: relative;
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-owner-item:hover .site-owner-item-radio {
  border-color: #94a3b8;
}

.site-owner-item-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 10px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.site-owner-item.is-selected .site-owner-item-radio {
  background: black;
  border-color: black;
  box-shadow: 0 0 0 4px rgb(0 0 0 / 15%);
}

.site-owner-item.is-selected .site-owner-item-radio::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Mobile Bottom Sheet Styling */
@media (max-width: 767.98px) {
  .site-owner-popup {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 24px 24px 0 0 !important;
    max-height: 85vh !important;
    z-index: 10001 !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(100%);
    padding-top: 20px !important;
  }

  .site-owner-popup.is-active {
    display: flex !important;
    animation: slideUpSiteOwnerSheet 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  }

  @keyframes slideUpSiteOwnerSheet {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }

  /* Bottom sheet handle */
  .site-owner-popup::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 10px;
    z-index: 10;
  }

  .site-owner-backdrop {
    z-index: 10000 !important;
  }

  .site-owner-tabs {
    padding-top: 15px !important;
  }
}