.speculr-profile__container {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 100;
}

.speculr-profile__container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 600px; /* Match VTON container height */
  overflow: hidden;
  position: relative;
}

.profile-content {
  display: flex;
  width: 100%;
  height: 100%;
}

.profile-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.profile-left-section {
  width: 50%;
  padding: 30px 30px 10px 30px;
  height: 100%;
  overflow-y: auto;
  max-height: 100vh;
  opacity: 0.95;
}

.profile-right-section {
  width: 50%;
  vertical-align: top;
  height: 100%;
  overflow: hidden;
  background: #fafafa;
  position: relative;
}

.profile-picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #eee;
  color: #222;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 0;
  position: relative;
  border-radius: 8px;
}

.btn-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1px;
  background: linear-gradient(to right, #cdffd8, #94b9ff);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  border-radius: 8px;
}

.btn-icon svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  z-index: 2;
}

.btn-icon:hover {
  /* transform: translateY(-2px); */
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); */
}

.btn-icon:hover::before {
  /* padding: 1.5px; */
}

.btn {
  padding: 12px 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
  border-radius: 8px;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1px;
  background: linear-gradient(to right, #cdffd8, #94b9ff);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  border-radius: 8px;
}

.btn:hover {
  /* transform: translateY(-2px); */
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.btn:hover::before {
  /* padding: 1.5px; */
}

.btn-back {
  background: white;
  border: 1px solid #ddd;
  color: #222;
}

.btn-primary {
  background: linear-gradient(to right, #8ab4f8, #7fffd4);
  border: none;
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: #f8f9fa;
  border: 1px solid #ddd;
  color: #222;
}

.profile-detail-group {
  padding: 0px;
}

.detail-group-title {
  font-size: 12px;
  margin-bottom: 8px;
  color: #222;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 100;
}

.detail-item {
  display: flex;
  margin-bottom: 8px;
  padding: 8px;
  background-color: white;
  position: relative;
  border-radius: 8px;
}

.detail-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1px;
  background: linear-gradient(to right, #cdffd8, #94b9ff);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  border-radius: 8px;
}

.detail-label {
  flex: 1;
  font-size: 12px;
  color: #222;
  position: relative;
  z-index: 2;
}

.detail-value {
  flex: 2;
  font-size: 12px;
  color: #222;
  position: relative;
  z-index: 2;
}

.profile-title {
  margin-bottom: 4px;
  font-size: 20px;
  color: #222;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 100;
}

.profile-edit-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.form-group {
  flex: 1;
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #222;
  font-size: 12px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  font-size: 12px;
  transition: border-color 0.2s;
  border-radius: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 100;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #94b9ff;
}

.form-group input:focus-visible,
.form-group select:focus-visible {
  box-shadow: none;
}

.form-group input:disabled {
  background-color: #f9f9f9;
  color: #999;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
}

.btn {
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 100;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1px;
  background: linear-gradient(to right, #cdffd8, #94b9ff);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover::before {
  padding: 1.5px;
}

.btn-primary {
  background: linear-gradient(to right, #cdffd8, #94b9ff);
  border: none;
  color: #222;
}

.btn-secondary {
  background: white;
  border: 1px solid #ddd;
  color: #222;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.alert {
  padding: 10px 15px;
  margin-bottom: 20px;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Profile photo edit styles */
.profile-photo-edit {
  margin: 0;
  text-align: center;
}

.profile-photo-upload-label {
  cursor: pointer;
  display: inline-block;
}

.profile-photo-preview {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  border: 3px solid #f0f0f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-photo-upload-overlay svg {
  margin-bottom: 5px;
}

.profile-photo-preview:hover .profile-photo-upload-overlay {
  opacity: 1;
}

.profile-photo-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.profile-arrow-separator {
  display: none; /* Hide by default (desktop) */
}

@media screen and (max-width: 600px) {
  .profile-content {
    display: block;
    flex-direction: unset;
    font-size: 12px;
  }

  .profile-left-section {
    width: 100%;
    height: auto;
    max-height: none;
    padding: 20px;
  }

  .profile-right-section {
    width: 100%;
    height: auto;
    min-height: unset;
    order: 2;
    position: static;
    overflow: visible;
    background: #fafafa;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 20px;
  }

  .profile-picture {
    position: static;
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center center;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }

  .speculr-profile__container {
    height: auto;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
  }

  .profile-title {
    font-size: 20px;
  }

  .detail-group-title,
  .detail-item .detail-value,
  .detail-item .detail-label,
  .form-group label {
    font-size: 12px;
  }

  .profile-arrow-separator {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
  }
  .profile-arrow-separator img {
    width: 32px;
    height: 32px;
  }
}
