/* TOBO Profile Avatar & Editor */

.tobo-avatar-trigger {
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.tobo-avatar-trigger:hover {
  transform: scale(1.05);
}

.tobo-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(17, 24, 39, 0.12);
  background: rgba(17, 24, 39, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #6b7280;
  font-size: 16px;
}

.tobo-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tobo-avatar-initials {
  font-weight: 950;
  color: #111827;
}

.tobo-avatar-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  padding: 6px 10px;
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tobo-avatar-trigger:hover .tobo-avatar-tooltip {
  opacity: 1;
}

.tobo-avatar-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: rgba(17, 24, 39, 0.9);
}

/* Profile Editor */
.tobo-prof-editor {
  margin-top: 12px;
  border-top: 1px dashed rgba(17, 24, 39, 0.12);
  padding-top: 12px;
}

.tobo-prof-head {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tobo-prof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 680px) {
  .tobo-prof-grid {
    grid-template-columns: 1fr;
  }
}

.tobo-prof-field label {
  display: block;
  font-size: 11px;
  font-weight: 900;
  color: #6b7280;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tobo-prof-field input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  padding: 10px;
  background: #fff;
}

.tobo-prof-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tobo-prof-actions button {
  background: #e60000;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 950;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tobo-prof-actions button:hover {
  background: #cc0000;
}

.tobo-prof-actions .ghost {
  background: #fff;
  color: #111827;
  border: 1px solid rgba(17, 24, 39, 0.14);
}

.tobo-prof-actions .ghost:hover {
  background: rgba(17, 24, 39, 0.02);
}

/* Adressfelder: Responsive Layout */
.tobo-prof-field[style*="grid-template-columns:repeat(2,1fr)"] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 680px) {
  .tobo-prof-field[style*="grid-template-columns:repeat(2,1fr)"] {
    grid-template-columns: 1fr;
  }
  
  #tobo_billing_fields,
  #tobo_shipping_fields {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

