/* Main styles for Custom My Account Page - Tailwind Inspired */

/* Base Styles */
:root {
  --primary: #ffcf60;
  --primary-dark: #f5c44e;
  --secondary: #f66212;
  --secondary-dark: #e45000;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-muted: #6b7280;
  --bg-light: #f9fafb;
  --border-light: #e5e7eb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

/* Order Note Styles */
.custom-user-phone a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.custom-user-phone a:hover {
  color: var(--secondary);
}

.custom-recent-orders {
  margin-top: 1.25rem;
  padding: 1rem;
  background-color: var(--bg-light);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.custom-recent-orders h3 {
  margin-top: 0;
  margin-bottom: 0.625rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.125rem;
}

.order-attention {
  color: var(--danger);
  font-weight: 600;
}

/* Updated styles for order notes */
.order-note {
  background-color: #fff9c4;
  border-left: 4px solid var(--warning);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.938rem;
  color: var(--text-dark);
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.order-note::before {
  content: "⚠️ Note:";
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  font-size: 1rem;
}

.order-note:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.order-note:not(:hover) {
  animation: pulse 3s infinite;
}

.custom-message {
  background-color: var(--bg-light);
  padding: 1rem;
  margin-bottom: 1.25rem;
  border-radius: 0.5rem;
  color: var(--text-dark);
  border-left: 4px solid var(--primary);
  font-weight: 500;
}

/* User Account Section */
.custom-account-top-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.custom-user-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.custom-user-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.custom-user-phone {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-dark);
}

.custom-user-phone a {
  color: var(--secondary);
  text-decoration: none;
  margin-left: 0.25rem;
}

.custom-user-phone a:hover {
  color: var(--secondary-dark);
}

.custom-user-email {
  font-size: 1rem;
  margin-bottom: 0.375rem;
  color: var(--text-muted);
}

.custom-logout-button {
  background-color: var(--secondary);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  margin-top: 0.625rem;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.875rem;
}

.custom-logout-button:hover {
  background-color: var(--secondary-dark);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation Buttons */
.custom-account-navigation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.custom-nav-item {
  flex-basis: calc(50% - 0.375rem);
  margin-bottom: 0.375rem;
  position: relative;
}

.custom-nav-icon {
  font-size: 1.25rem;
  margin-right: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-nav-button {
  display: flex;
  align-items: center;
  background-color: var(--primary);
  color: var(--text-dark);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-nav-button:hover {
  background-color: var(--secondary);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-nav-button.active {
  background-color: var(--secondary);
  color: var(--text-light);
}

.custom-nav-button.active:hover {
  background-color: var(--secondary-dark);
}

.custom-billing-number {
  position: absolute;
  top: 100%;
  left: 0;
  font-size: 0.75rem;
  font-weight: normal;
  display: block;
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Phone Editing */
.custom-edit-phone-icon {
  margin-left: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  color: var(--secondary);
  transition: color 0.3s;
}

.custom-edit-phone-icon:hover {
  color: var(--secondary-dark);
}

.custom-new-phone {
  display: block;
  margin-top: 0.625rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 0.375rem;
  width: 100%;
  max-width: 250px;
  font-size: 0.875rem;
  transition: border-color 0.3s;
}

.custom-new-phone:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 207, 96, 0.2);
}

.custom-save-phone {
  display: block;
  margin-top: 0.625rem;
  padding: 0.5rem 1rem;
  background-color: var(--secondary);
  border: none;
  border-radius: 0.375rem;
  color: white;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.custom-save-phone:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .custom-nav-item {
    flex-basis: 100%;
  }
  
  .custom-account-top-section {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .custom-logout-button {
    margin-top: 1rem;
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .custom-user-name {
    font-size: 1.25rem;
  }
  
  .custom-user-email {
    font-size: 0.875rem;
  }
  
  .custom-nav-button {
    padding: 0.625rem 0.75rem;
  }
  
  .custom-nav-icon {
    font-size: 1.125rem;
    margin-right: 0.5rem;
  }
}