/* Trezor Modal CSS */
#trezorOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

#trezorOverlay.active {
  display: flex;
}

#trezorModal {
  background: white;
  width: 90%;
  max-width: 550px;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  animation: fadeIn 0.4s ease-in;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.trezor-connecting {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.trezor-connecting img {
  width: 80px;
  animation: pulse 1.5s infinite;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 10px;
}

@keyframes pulse {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

.trezor-phrase-input {
  display: none;
  flex-direction: column;
  align-items: center;
}

.trezor-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  border-radius: 15px;
  border: 1px solid rgba(223, 223, 223, 0.609);
  padding: 5px;
}

.trezor-tab {
  padding: 5px 5px;
  margin: 0 5px;
  border-radius: 10px;
  background-color: rgba(235, 235, 235, 0.568);
  cursor: pointer;
  color: black;
  font-weight: 400;
  width:150px;
}

.trezor-tab.active {
  background: #eee;
  font-weight: 450;
  border-radius: 13px;
  border: 1px solid #aaa;
  color: black;
}

.trezor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
}

.trezor-grid input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 2px;
  color: rgba(0, 0, 0, 0.568);
  font-size: 15px;
}

.trezor-button {
  background: #666;
  color: white;
  padding: 12px 20px;
  border-radius: 20px;
  width: 100%;
  font-weight: 500;
  height: 50px;
  border: none;
  cursor: pointer;
}

.trezor-powered-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: monospace;
  margin-top: 100px;
  font-size: 20px;
  color: #111;
}

.trezor-inline-reown {
  background-color: #0a0a0a;
  border: none;
  border-radius: 20px;
  color: #ddd;
  padding: 3px 10px;
  font-size: 10px;
  font-family: monospace;
  cursor: default;
  height: 30px;
}

.trezor-inline-manual {
  font-size: 15px;
  color: #333;
  font-family: monospace;
}

.trezor-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

.trezor-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 30%;
  background: rgba(255, 255, 255, 0);
  border: 1px solid;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0px;
  margin-top: -10px;
}

.reown-btn {
    background-color: #141414;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 15px;
    cursor: pointer;
    font-family: '', monospace; /* or 'Courier New', monospace */
    margin-left: 0px;
    height: 40px;
    margin-bottom: 10px;
  }

  .manual-kit-label {
    font-size: 15px;
    font-family: '', monospace; /* or 'Courier New', monospace */
    color: #333;
    margin-top: -4px;
  }

.trezor-input-title,
.trezor-input-desc {
  text-align: left;
  width: 100%;
}

.trezor-grid-wrapper {
  margin-bottom: 10px;
  width: 100%;
}


.trezor-input-title {
  font-size: 20px;
  margin-bottom: 10px;
  margin-top: 0px;
  color: rgb(44, 44, 44);
  
}

.trezor-input-desc {
  font-size: 13px;
  margin-bottom: 10px;
  margin-top: 0px;
  color: rgba(44, 44, 44, 0.794);
  
}
.trezor-grid-wrapper.scrollable {
  max-height: 200px;
  overflow-y: auto;
}

.trezor-grid-wrapper.scrollable::-webkit-scrollbar {
  width: 4px;
}

.trezor-grid-wrapper.scrollable::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.trezor-grid-wrapper.scrollable::-webkit-scrollbar-track {
  background: transparent;
}

.trezor-error-msg {
  color: rgba(255, 0, 0, 0.705);
  font-size: 12px;
  text-align: left;
  width: 100%;
  margin-bottom: 10px;
  display: none;
}

.trezor-button:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

.trezor-grid input.invalid {
  border: 1px solid rgba(255, 0, 0, 0.705);
}

@media (max-width: 600px) {
  #trezorModal {
    width: 95%;
    padding: 20px;
  }
  .trezor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .trezor-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 15px;
    border: 1px solid rgba(223, 223, 223, 0.609);
    padding: 5px;
  }
  
  .trezor-tab {
    padding: 5px 5px;
    margin: 0 5px;
    border-radius: 10px;
    background-color: rgba(235, 235, 235, 0.568);
    cursor: pointer;
    color: black;
    font-weight: 400;
    width:125px;
  }
  
  .trezor-tab.active {
    background: #eee;
    font-weight: 450;
    border-radius: 13px;
    border: 1px solid #aaa;
    color: black;
  }
}
