body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

.pet-photo-section {
  margin-bottom: 20px;
  text-align: center;
}

.photo-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

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

.add-photo-text {
  color: #666;
  font-size: 14px;
}

.pet-form-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1000;
}

.modal-content {
  padding: 20px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 5px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  margin: 0;
  cursor: pointer;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 5px;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.modal-footer {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.button {
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.button--primary {
  background-color: #4CAF50;
  color: white;
}

.button--secondary {
  background-color: #f0f0f0;
  color: #333;
}

.button:hover {
  opacity: 0.9;
}

/* Add overlay behind modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
} 
.manage-pets {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
}

.manage-pets h1 {
  margin: 0 0 20px 0;
}

.pets-list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 20px;
}

.pet-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: flex-start;
}

.pet-photo {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 20px;
}

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

.photo-placeholder {
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.pet-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pet-info h2 {
  margin: 0 0 15px 0;
  font-size: 1.8rem;
  color: #333;
}

.pet-details {
  margin: 10px 0;
}

.pet-details p {
  margin: 5px 0;
}

.feeding-stats {
  display: flex;
  gap: 2rem;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.feeding-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feeding-stats span:first-child {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.feeding-stats span:nth-child(2) {
  color: #666;
}

.feeding-stats .total-value {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.25rem;
}

.pet-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.pet-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.pet-actions button:first-child {
  background: #4a90e2;
  color: white;
}

.pet-actions button:last-child {
  background: #dc3545;
  color: white;
}

.add-pet-button {
  padding: 12px 24px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 20px;
}

.anonymous-notice {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 4px;
  padding: 15px;
  margin: 20px 0 20px 0;
  text-align: center;
  font-size: 0.8em;
}

.anonymous-notice a {
  color: #0056b3;
  text-decoration: underline;
}

/* Modal styles for PetForm */
.pet-form-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1000;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.auth-container {
  max-width: 400px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.magic-link-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.magic-link-form input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.magic-link-form button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
}

.magic-link-form button[type="button"] {
  background-color: #666;
}

.error-message {
  color: #d32f2f;
  margin-top: 15px;
}

.family-plan-totals {
  margin: 30px 0;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 8px;
  text-align: center;
}

.family-plan-totals h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.family-plan-totals p {
  margin: 10px 0;
  font-size: 1.1em;
  color: #444;
} 
.pet-calculator {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.anonymous-notice {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 6px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 0.9em;
}

.anonymous-notice a {
  color: #533f03;
  text-decoration: underline;
}

.calculator-section {
  margin-bottom: 12px;
  padding: 10px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.calculator-section h2 {
  margin: 0 0 6px 0;
  font-size: 1.1em;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}

.name-input {
  width: 98%;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1em;
}

.helper-text {
  margin: 3px 0 0;
  font-size: 0.85em;
  color: #666;
}

.weight-input-section {
  margin-bottom: 12px;
}

.weight-input-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.weight-input {
  width: 80px;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1em;
}

.weight-unit {
  color: #666;
}

/* Grid layout for options */
.life-stage-options,
.body-condition-options,
.activity-level-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.life-stage-button,
.condition-button,
.activity-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9em;
  min-height: 70px;
  justify-content: center;
}

.life-stage-button:hover,
.condition-button:hover,
.activity-button:hover {
  border-color: #FF885A;
}

.life-stage-button.selected,
.condition-button.selected,
.activity-button.selected {
  border-color: #FF885A;
  background: #FFF1EC;
}

.stage-name {
  font-weight: bold;
  margin-bottom: 2px;
}

.stage-years {
  font-size: 0.8em;
  color: #666;
}

/* Make images smaller */
.condition-button img,
.activity-button img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-bottom: 3px;
}

/* Slider styles */
.percent-slider {
  width: 100%;
  margin: 8px 0;
  -webkit-appearance: none;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
}

.percent-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF885A;
  cursor: pointer;
}

.percent-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF885A;
  cursor: pointer;
  border: none;
}

.percent-slider::-ms-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF885A;
  cursor: pointer;
}

.include-in-plan {
  margin-top: 8px;
  font-size: 0.9em;
}

.include-in-plan label {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pet selector styles */
.pet-selector-section {
  margin-bottom: 12px;
}

.pet-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.pet-button-container {
  position: relative;
}

.pet-select-button {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid #e0e0e0;
  background: #FF885A;
  color: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
}

.pet-select-button.has-photo {
  background-size: cover;
  background-position: center;
  color: white;
}

.pet-select-button.new {
  border-style: dashed;
  background: transparent;
  color: inherit;
}

.pet-select-button.selected {
  border-color: #4CAF50;
  transform: scale(1.05);
}

.pet-select-button .pet-info {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 10px;
  color: white;
  width: 100%;
}

.pet-select-button.new .pet-info {
  color: inherit;
}

.pet-select-button.has-photo .pet-info {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.pet-select-button .pet-name {
  font-weight: bold;
  font-size: 1.2em;
  display: block;
  margin-bottom: 2px;
}

.pet-select-button .pet-weight {
  font-size: 1.1em;
  display: block;
}

.pet-select-button .per-day {
  font-size: 0.85em;
  opacity: 0.9;
  margin-top: -2px;
}

.pet-select-button.has-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
  z-index: 1;
}

.delete-pet-button {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff4444;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 3;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Summary section */
.summary-section {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.pet-summary {
  font-size: 0.9em;
  color: #666;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.add-pet-button,
.select-plan-button {
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-pet-button {
  background: white;
  border: 1px solid #FF885A;
  color: #FF885A;
}

.add-pet-button img {
  width: 16px;
  height: 16px;
}

.select-plan-button {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background: #FF885A;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.select-plan-button:hover {
  background: #ff7a47;
}

/* Loading and error states */
.loading-spinner {
  text-align: center;
  padding: 20px;
  color: #666;
}

.error-message {
  background: #fee;
  border: 1px solid #fcc;
  color: #c00;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 0.9em;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .pet-calculator {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
    align-items: start;
  }

  .anonymous-notice,
  .pet-selector-section,
  .feeding-plan-summary {
    grid-column: 1 / -1;
  }
}

/* Feeding Plan Summary */
.feeding-plan-summary {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
}

.plan-summary {
  text-align: left;
  margin-top: 30px;
}

.summary-text {
  font-size: 1.1em;
  margin: 0 0 12px 0;
  color: #333;
}

.circles-row {
  margin-bottom: 20px;
}

.feeding-stats {
  width: 100%;
}

.stat-circle {
  background: #FFE8E0;
  border: 2px solid #FF885A;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  margin: 0 auto;
}

.stat-value {
  font-size: 1.1em;
  font-weight: bold;
  margin: 2px 0;
  color: #333;
}

.stat-label {
  font-size: 0.75em;
  color: #666;
}

.cost-circle {
  background: #4CAF50;
  border: none;
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0 auto;
}

.cost-circle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) rotate(0deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 122.88 122.88%27%3E%3Cpath fill=%27rgba%28255,255,255,0.3%29%27 fill-rule=%27evenodd%27 d=%27M19.44,50.16L8.22,30.72h22.5V8.13l19.44,11.31L61.44,0l11.28,19.44l19.44-11.31v22.59h22.59l-11.31,19.44l19.44,11.28l-19.44,11.28l11.31,19.44H92.16v22.5L72.72,103.44L61.44,122.88l-11.28-19.44L30.72,114.66v-22.5H8.22l11.22-19.44L0,61.44L19.44,50.16z%27/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  animation: rotate-starburst 20s linear infinite;
  z-index: 1;
}

@keyframes rotate-starburst {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.cost-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 85%;
  height: 85%;
  transform: translate(-50%, -50%);
  background: #4CAF50;
  border-radius: 50%;
  z-index: 2;
}

.cost-circle .stat-value,
.cost-circle .stat-label {
  color: white !important;
  position: relative;
  z-index: 3;
  margin: 0;
}

.cost-circle .stat-value {
  font-size: 1.3em;
  font-weight: bold;
}

.cost-circle .stat-label {
  font-size: 0.8em;
  opacity: 0.9;
}

.stat-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
}

.button-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 20px;
  flex-shrink: 0;
}

.select-plan-button,
.adjust-frequency-button {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  border: none;
  font-size: 14px;
  min-width: 200px;
  text-align: center;
  white-space: nowrap;
}

.select-plan-button {
  background: #FF885A;
  color: white;
}

.select-plan-button:hover {
  background: #ff7a47;
}

.adjust-frequency-button {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.adjust-frequency-button:hover {
  background: #e8e8e8;
}

/* Desktop (min-width: 769px) */
@media (min-width: 769px) {
  .feeding-stats {
    display: flex !important;
    flex-direction: row !important;
    gap: 18px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
  }
  .button-stack {
    flex: 0 0 auto !important;
    max-width: 240px !important;
    min-width: 180px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin-left: 32px !important;
    align-self: center !important;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .circles-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }
  .feeding-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 1fr 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto 24px auto !important;
    justify-items: center !important;
    height: auto !important;
  }
  .stat-circle {
    width: 100px !important;
    height: 100px !important;
    margin: 0 !important;
  }
  .button-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    align-items: stretch !important;
    position: static !important;
    z-index: 1 !important;
  }
  .select-plan-button,
  .adjust-frequency-button {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 1.1rem !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .stat-circle,
  .cost-circle {
    width: 80px;
    height: 80px;
  }
  
  .stat-icon {
    width: 20px;
    height: 20px;
  }
}

/* Ensure modal is above chat widget */
.pet-modal {
  z-index: 100000000;
}

.pet-modal-content {
  z-index: 100000001;
}

.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  cursor: help;
}

.info-tooltip svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.info-tooltip:hover svg {
  opacity: 1;
}

.tooltip-content {
  visibility: hidden;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 10px);
  background: #1a1a1a;
  border: none;
  border-radius: 8px;
  padding: 16px;
  width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  color: white;
}

/* Prevent tooltip from going over left edge */
@media (max-width: 340px) {
  .tooltip-content {
    left: -8px;
    transform: none;
  }
  
  .tooltip-content::before {
    left: 16px;
  }
}

/* Position tooltip from the right if close to the right edge */
.info-tooltip:last-child .tooltip-content {
  left: auto;
  right: -8px;
  transform: none;
}

.info-tooltip:last-child .tooltip-content::before {
  left: auto;
  right: 16px;
}

.info-tooltip:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}

.tooltip-content::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #1a1a1a;
}

.tooltip-item {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.tooltip-item:last-child {
  margin-bottom: 0;
}

/* Hide tooltip on small screens */
@media (max-width: 429px) {
  .info-tooltip {
    display: none;
  }
}

.tooltip-item strong {
  color: white;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #FF885A;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.with-bg {
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  overflow: hidden;
  height: 100px;
  color: #222;
  border-radius: 12px;
  border: 1px solid #eee;
  transition: opacity 0.2s, border 0.2s;
}
.with-bg.selected {
  border: 2px solid #FF885A;
  opacity: 1;
}
.with-bg:not(.selected) {
  opacity: 0.5;
}
.button-overlay-text {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1em;
  z-index: 2;
  color: #222;
  text-shadow: 0 2px 8px #fff, 0 1px 0 #fff;
  pointer-events: none;
} 
.pet-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
}

.pet-form {
  background: white;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  margin-top: 32px;
  padding-bottom: 60px;
}

.close-button {
  position: absolute;
  right: 15px;
  top: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.form-header {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.photo-upload-section {
  width: 100px;
  margin-right: 20px;
}

.photo-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px dashed #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.upload-placeholder {
  font-size: 14px;
  color: #666;
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.calculator-section {
  margin-bottom: 15px;
}

.calculator-section h2 {
  font-size: 14px;
  margin: 0 0 8px 0;
  color: #333;
}

.name-input,
.weight-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.weight-input-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.weight-unit {
  color: #666;
  font-size: 14px;
}

.life-stage-options,
.body-condition-options,
.activity-level-options {
  display: flex;
  gap: 8px;
}

.life-stage-button,
.condition-button,
.activity-button {
  flex: 1;
  padding: 8px;
  border: 1px solid #FF885A;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.life-stage-button.selected,
.condition-button.selected,
.activity-button.selected {
  border-color: #FF885A;
  background: #fff3ed;
}
.life-stage-button.selected 
{  background-color: #FFC0A8;}
.stage-name {
  font-weight: 500;
}

.stage-years {
  font-size: 11px;
  color: #666;
}

.percent-slider {
  width: 100%;
  margin: 8px 0;
}

.include-in-plan {
  margin-top: 8px;
  font-size: 13px;
}

.helper-text {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.form-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
  margin-bottom: 50px;
}

.save-button,
.save-and-add-button {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.save-button {
  background: #FF885A;
  color: white;
}

.save-and-add-button {
  background: #f5f5f5;
  color: #333;
}
.summary-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.form-header {
  margin: 0;
  text-align: center;
}
.form-header h2 {
  width: 100%;
  text-align: center;
  margin: 0 0 14px 0;
}

.pet-feeding-plan-summary {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
}

.pet-plan-summary {
  display: flex;
  flex-direction: end;
  flex-wrap: wrap;
  justify-content: right;
  align-items: center;
  width: 100%;
}

.feeding-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  text-align: center;
}

.stat-item {
  padding: 10px;
  background: #f9f6f3;
  border-radius: 8px;
}

.stat-value {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: #666;
}

@media (max-width: 767px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .pet-feeding-plan-summary, .pet-plan-summary {
    gap: 8px;
  }
  .stat-circle, .stat-circle.small {
    width: 56px;
    height: 56px;
    min-width: 48px;
    min-height: 48px;
    border-width: 1.5px;
  }
  .pet-form .pet-photo-preview {
    width: 56px;
    height: 56px;
  }
  .stat-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
  }
  .stat-value {
    font-size: 0.95em;
    margin-bottom: 0;
  }
  .stat-label {
    font-size: 0.7em;
  }
}

.pet-form .pet-photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  cursor: pointer;
  position: relative;
}

.pet-form .pet-photo-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eee;
  background: #fafafa;
  display: block;
}

.pet-form .pet-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pet-form .add-photo-text-overlay {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #888;
  font-size: 1em;
  font-weight: 600;
  pointer-events: none;
  text-align: center;
  width: 100%;
}

.pet-form .add-photo-text {
  margin-top: 0;
}

.stat-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #FF885A;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
  box-sizing: border-box;
}

.stat-circle .stat-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
}

.stat-circle .stat-value {
  font-size: 1.1em;
  font-weight: 700;
  color: #FF885A;
  margin-bottom: 2px;
}

.stat-circle .stat-label {
  font-size: 0.65em;
  color: #444;
  font-weight: 500;
} 
.dashboard-wrapper {
  padding: 40px 20px;
  position: relative;
}

.dashboard-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.dashboard-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #FF885A;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.dashboard-container h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 40px;
}

.dashboard-loading {
  text-align: center;
  padding: 3rem;
  color: #666;
  font-size: 1.1rem;
}

.dashboard-login-prompt {
  max-width: 500px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-login-prompt h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1rem;
}

.dashboard-login-prompt p {
  color: #666;
  margin-bottom: 2rem;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.login-button, .register-button {
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.login-button {
  background-color: #4CAF50;
  color: white;
}

.login-button:hover {
  background-color: #45a049;
}

.register-button {
  background-color: #fff;
  color: #4CAF50;
  border: 1px solid #4CAF50;
}

.register-button:hover {
  background-color: #f5f5f5;
}

@media (min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Subscription Section Styles */
.recommended-products-section,
.active-subscriptions-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-top: 32px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recommendation-text {
  color: #666;
  margin-bottom: 24px;
  font-size: 1.1em;
}

.products-grid,
.subscriptions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.product-card,
.subscription-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-image,
.item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 16px;
}

.product-card h3 {
  font-size: 1.4em;
  margin: 12px 0;
  color: #333;
}

.product-card p {
  color: #666;
  margin-bottom: 16px;
  line-height: 1.4;
}

.price-container {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.original-price {
  text-decoration: line-through;
  color: #999;
}

.subscription-price {
  font-size: 1.4em;
  font-weight: 600;
  color: #FF885A;
}

.delivery-frequency {
  font-size: 0.9em;
  color: #666;
}

.subscribe-button,
.subscribe-button.orange {
  background: #F36E4A;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.1em;
  margin-top: 12px;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
  width: 75%;
}

.subscribe-button.orange:hover,
.subscribe-button:hover {
  background: #ff7a45;
}

/* Active Subscriptions Styles */
.subscription-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subscription-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.subscription-header h3 {
  font-size: 1.2em;
  color: #333;
}

.subscription-date {
  color: #666;
  font-size: 0.9em;
}

.subscription-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscription-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: #f9f9f9;
  border-radius: 6px;
}

.subscription-item .item-image {
  width: 60px;
  height: 60px;
  margin: 0;
}

.item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-title {
  font-weight: 500;
  color: #333;
}

.item-quantity {
  font-size: 0.9em;
  color: #666;
}

.subscriptions-loading,
.subscriptions-error {
  text-align: center;
  padding: 24px;
  color: #666;
  background: white;
  border-radius: 12px;
  margin-top: 32px;
}

.subscriptions-error {
  color: #f44336;
}

@media (max-width: 768px) {
  .dashboard-wrapper {
    padding: 20px;
  }

  .dashboard-container {
    padding: 16px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Button styles */
  .subscribe-button,
  .manage-subscription-button,
  .add-treats-button {
    padding: 8px;
    color: white
  }

  /* Hide the word "Subscription" on mobile */
  .manage-subscription-button::after {
    content: 'Manage';
  }
  .manage-subscription-button span {
    display: none;
  }
  
  .pause-subscription-button::after {
    content: 'Pause';
  }
  .pause-subscription-button span {
    display: none;
  }

  /* Make Edit Products just "Edit" */
  .edit-products-button::after {
    content: 'Edit';
  }
  .edit-products-button span {
    display: none;
  }

  .dashboard-container h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .pet-button-container {
    width: 90px;
    height: 90px;
  }

  .pet-select-button {
    width: 90px;
    height: 90px;
  }

  .pet-info {
    padding: 20px 4px 6px;
  }

  .pet-info div:first-child {
    font-size: 12px;
  }

  .pet-info div:last-child {
    font-size: 11px;
  }

  .circles-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .circles-row > div {
    height: 100px;
  }

  .stat-circle {
    width: 90px!important;
    height: 90px!important;
  }

  .cost-circle {
    width: 90px;
    height: 90px;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
  }

  .stat-value {
    font-size: 0.9em;
  }

  .stat-label {
    font-size: 0.7em;
  }

  .summary-text {
    font-size: 0.9em;
    margin-bottom: 16px;
  }

  /* Reduce spacing before subscriptions section */
  .subscriptions-section {
    margin-top: 16px;
  }

  .feeding-plan-summary {
    padding: 16px;
    margin-top: 16px;
  }

  .summary-text {
    font-size: 0.9em;
    margin-bottom: 16px;
  }

  .order-actions {
    display: none;
  }

  .mobile-order-menu {
    display: block;
  }

  .mobile-menu-button {
    font-size: 0.9em;
    padding: 8px 12px;
  }

  .mobile-menu-dropdown button {
    font-size: 0.9em;
    padding: 8px 12px;
  }

  .action-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .action-buttons > * {
    width: 100% !important;
    height: 36px !important;
    padding: 0 8px !important;
    font-size: 13px !important;
    margin: 0 !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  /* Remove any margins or padding that might affect button width */
  .action-buttons button,
  .action-buttons a,
  .add-treats-button {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* Ensure grid items take full width */
  .action-buttons > *:nth-child(1),
  .action-buttons > *:nth-child(2),
  .action-buttons > *:nth-child(3),
  .action-buttons > *:nth-child(4) {
    grid-column: auto !important;
    justify-self: stretch !important;
  }

  .action-buttons .fa-icon {
    font-size: 14px !important;
  }
}

/* Even smaller screens */
@media (max-width: 480px) {
  .dashboard-wrapper {
    padding: 12px 8px;
  }

  .dashboard-container {
    padding: 12px;
  }

  /* Make buttons even smaller */
  .subscribe-button,
  .manage-subscription-button,
  .add-treats-button,
  .pause-subscription-button,
  .edit-products-button {
    padding: 6px 10px;
    font-size: 0.9em;
    min-width: auto;
  }

  .pet-button-container {
    width: 80px;
    height: 80px;
  }

  .pet-select-button {
    width: 80px;
    height: 80px;
  }

  .circles-row {
    gap: 6px;
  }

  .circles-row > div {
    flex: 0 0 80px;
    width: 80px;
  }

  .stat-circle,
  .cost-circle {
    width: 80px;
    height: 80px;
    padding: 4px;
  }

  .stat-icon {
    width: 28px;
    height: 28px;
  }

  .stat-value {
    font-size: 0.85em;
  }

  .stat-label {
    font-size: 0.65em;
  }

  .orders-list table {
    font-size: 0.8em;
  }

  /* Further reduce spacing before subscriptions */
  .subscriptions-section {
    margin-top: 16px;
  }

  .feeding-plan-summary {
    padding: 12px;
    margin-top: 12px;
  }

  .summary-text {
    margin-bottom: 12px;
  }

  .mobile-menu-button {
    font-size: 0.85em;
    padding: 6px 10px;
  }

  .mobile-menu-dropdown button {
    font-size: 0.85em;
    padding: 6px 10px;
  }
}

.subscription-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 8px;
  margin: 12px 0;
}

.subscription-content .product-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin: 0;
}

.subscription-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subscription-price {
  font-size: 1.2em;
  font-weight: 600;
  color: #FF885A;
}

.subscription-frequency {
  color: #666;
  font-size: 0.9em;
}

/* Pet Selector Styles */
.pet-selector-section {
  flex: 1;
}

.pet-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 20px;
}

.pet-button-container {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  margin: 0;
}

.pet-select-button {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  background: #f0f0f0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-end;
}

.pet-select-button.selected {
  background: #4CAF50;
  color: white;
}

.pet-select-button.has-photo {
  background-size: cover;
  background-position: center;
}

.pet-select-button.has-photo::before {
  display: none;
}

.pet-info {
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 0;
  background: linear-gradient(to bottom, 
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0.7) 70%,
    rgba(0,0,0,0.8) 100%
  );
  color: white;
  padding: 0px;
  text-align: center;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 50%;
  justify-content: flex-end;
  padding-bottom: 12px;
}

.pet-info div:first-child {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 2px;
}

.delete-pet-button {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #ff4444;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding: 0;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.pet-select-button.new {
  border: 2px dashed #ccc;
  background: white;
  color: #666;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Feeding Plan Summary Styles */
.feeding-plan-summary {
  background: white;
  border-radius: 12px;
  padding: 0px;
  margin-top: -10px!important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: 100%;
}

.feeding-plan-summary .circles-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

.summary-text {
  font-size: 1em;
  color: #333;
  margin-bottom: 20px;
}

.circles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 20px;
  width: 100%;
}

.circles-row > div {
  flex: 0 0 100px;
  margin: 0;
}

.stat-circle,
.cost-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.1em;
  font-weight: bold;
  margin: 2px 0;
  color: #333;
}

.stat-label {
  font-size: 0.75em;
  color: #666;
}

.cost-circle {
  background: #4CAF50;
  border: none;
}

.cost-circle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) rotate(0deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 122.88 122.88%27%3E%3Cpath fill=%27rgba%28255,255,255,0.3%29%27 fill-rule=%27evenodd%27 d=%27M19.44,50.16L8.22,30.72h22.5V8.13l19.44,11.31L61.44,0l11.28,19.44l19.44-11.31v22.59h22.59l-11.31,19.44l19.44,11.28l-19.44,11.28l11.31,19.44H92.16v22.5L72.72,103.44L61.44,122.88l-11.28-19.44L30.72,114.66v-22.5H8.22l11.22-19.44L0,61.44L19.44,50.16z%27/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  animation: rotate-starburst 20s linear infinite;
  z-index: 1;
}

.cost-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 85%;
  height: 85%;
  transform: translate(-50%, -50%);
  background: #4CAF50;
  border-radius: 50%;
  z-index: 2;
}

.cost-circle .stat-value,
.cost-circle .stat-label {
  color: white !important;
  position: relative;
  z-index: 3;
  margin: 0;
}

.cost-circle .stat-value {
  font-size: 1.5em;
  font-weight: bold;
}

.cost-circle .stat-label {
  font-size: 0.8em;
  opacity: 0.9;
}

@keyframes rotate-starburst {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Recommendations Section */
.recommendations-section h2 {
  text-align: center;
  margin-bottom: 16px;
}

.recommendations-carousel {
  display: flex;
  flex-direction: row;
  gap: 4px;
  justify-content: center;
  align-items: stretch;
  margin: 32px 0;
}
 
.recommendation-card {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0;
  min-width: 340px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  border: 1px solid #eee;
  overflow: hidden;
  margin: 0;
}

.recommendation-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.recommendation-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.recommendation-title {
  font-size: 1.1em;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-align: center;
}

.plan-toggle {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.plan-toggle-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background: #fff;
  font-weight: 400;
  cursor: pointer;
  min-width: 60px;
}

.plan-toggle-btn.selected {
  border: 2px solid #4CAF50;
  background: #eaffea;
  font-weight: 700;
}

.subscribe-button {
  background: #ff6f3c;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.1em;
  margin-top: 12px;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
  width: 75%;
}

.subscribe-button:hover {
  background: #ff7a45;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .circles-row {
    gap: 0px;
    margin-top: 16px;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
  }

  .circles-row > div {
    flex: 0 0 100px;
    width: auto;
    margin: 0;
  }

  .stat-circle,
  .cost-circle {
    width: 90px;
    height: 90px;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
  }

  .stat-value {
    font-size: 0.9em;
  }

  .stat-label {
    font-size: 0.7em;
  }

  .summary-text {
    font-size: 0.9em;
    margin-bottom: 16px;
  }

  /* Order history table styles */
  .orders-list table {
    font-size: 0.9em;
  }

  .orders-list th,
  .orders-list td {
    padding: 6px;
  }

  .orders-list td:first-child {
    color: #FF885A;
    text-decoration: underline;
    cursor: pointer;
  }

  /* Hide the Details column on mobile */
  .orders-list th:last-child,
  .orders-list td:last-child {
    display: none;
  }

  .recommendations-carousel {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 0 !important;
    margin: 0 !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    scroll-snap-type: none !important;
  }
  .recommendation-card {
    flex: 0 0 80vw !important;
    min-width: 80vw !important;
    max-width: 80vw !important;
    margin: 0 !important;
    scroll-snap-align: none !important;
  }
}

/* Even smaller screens */
@media (max-width: 480px) {
  .circles-row {
    gap: 6px;
    margin-top: 12px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .circles-row > div {
    flex: 0 0 100px;
    margin: 0;
    width:auto;
  }

  .stat-circle,
  .cost-circle {
    width: 80px;
    height: 80px;
  }

  .stat-icon {
    width: 28px;
    height: 28px;
  }

  .stat-value {
    font-size: 0.85em;
  }

  .stat-label {
    font-size: 0.65em;
  }

  .orders-list table {
    font-size: 0.8em;
  }
}

.order-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mobile-order-menu {
  display: none;
  position: relative;
  width: 100%;
}

.mobile-menu-button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
  text-align: center;
}

.mobile-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: none;
  z-index: 100;
  margin-top: 4px;
}

.mobile-menu-dropdown.show {
  display: block;
}

.mobile-menu-dropdown button {
  display: block;
  width: 100%;
  padding: 8px 16px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eee;
}

.mobile-menu-dropdown button:last-child {
  border-bottom: none;
}

.mobile-menu-dropdown button:hover {
  background: #f5f5f5;
}

.mobile-menu-dropdown button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  color: #666;
}

@media (max-width: 768px) {
  .order-actions {
    display: none !important;
  }

  .mobile-order-menu {
    display: block;
  }

  .mobile-menu-button {
    font-size: 0.9em;
    padding: 8px 12px;
  }

  .mobile-menu-dropdown button {
    font-size: 0.9em;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .mobile-menu-button {
    font-size: 0.85em;
    padding: 6px 10px;
  }

  .mobile-menu-dropdown button {
    font-size: 0.85em;
    padding: 6px 10px;
  }
}

.add-treats-button {
  padding: 8px 16px !important;
  font-size: 0.9em !important;
  background-color: #4CAF50 !important;
  color: white !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
}

/* NextOrderSection specific styles */
.action-buttons {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
  justify-content: flex-end !important;
  width: 100% !important;
}

.action-buttons > * {
  height: 40px !important;
  padding: 0 16px !important;
  white-space: nowrap !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  color: white !important;
  border: none !important;
  cursor: pointer !important;
  min-width: fit-content !important;
  flex-shrink: 0 !important;
}

.add-treats-button, .add-treats-button span, .add-treats-button a {
  background-color: #4CAF50 !important;
}
.add-treats-button span {
  background-color: #4CAF50 !important;
  font-size: 14px !important;
  padding:0px;
  margin:0px;
}

.action-buttons button:nth-of-type(1) {
  background-color: #FF885A;
}

.action-buttons button:nth-of-type(2) {
  background-color: #FE9A03 !important;
}

.action-buttons a:last-child {
  background-color: #121212 !important;
}

.action-buttons .fa-icon {
  font-size: 16px !important;
}

@media (max-width: 768px) {
  .action-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .action-buttons > * {
    width: 100% !important;
    height: 36px !important;
    padding: 0 8px !important;
    font-size: 13px !important;
    margin: 0 !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  /* Remove any margins or padding that might affect button width */
  .action-buttons button,
  .action-buttons a,
  .add-treats-button {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* Ensure grid items take full width */
  .action-buttons > *:nth-child(1),
  .action-buttons > *:nth-child(2),
  .action-buttons > *:nth-child(3),
  .action-buttons > *:nth-child(4) {
    grid-column: auto !important;
    justify-self: stretch !important;
  }

  .action-buttons .fa-icon {
    font-size: 14px !important;
  }
}

.shipping-tooltip-container {
  position: relative;
  display: inline-block;
}

.shipping-tooltip {
  visibility: hidden;
  opacity: 0;
  width: 260px;
  background: #222;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 10;
  left: 50%;
  top: auto;
  bottom: 120%;
  transform: translateX(-50%);
  font-size: 0.95em;
  transition: opacity 0.2s;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.shipping-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #222 transparent transparent transparent;
}

.shipping-tooltip-container:hover .shipping-tooltip,
.shipping-tooltip-container:focus-within .shipping-tooltip,
.shipping-tooltip-container.show-tooltip .shipping-tooltip {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
} 
/* FeedingPlanSummary styles extracted from Dashboard.tsx */
.feeding-plan-summary {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 0;
  margin-top: 12px;
}

.summary-text {
  font-size: 1em;
  color: #333;
  margin-bottom: 12px;
  text-align: left;
}

.circles-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
}

.feeding-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.stat-circle {
  background: white;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.stat-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 0.9em;
  font-weight: 500;
  color: #333;
  line-height: 1;
}

.stat-label {
  font-size: 0.7em;
  color: #666;
  line-height: 1;
}

.cost-circle {
  background: #4CAF50;
  color: white;
}

.cost-circle .stat-value {
  color: white;
}

.cost-circle .stat-label {
  color: rgba(255,255,255,0.9);
}

@keyframes rotateValue {
  0% { transform: rotateX(0deg); }
  25% { transform: rotateX(360deg); }
  100% { transform: rotateX(360deg); }
}

@media (max-width: 980px) {
  .feeding-plan-summary-flex {
    flex-direction: column !important;
    gap: 0 !important;
  }
  .email-plan-form {
    margin-top: 24px !important;
    max-width: 100% !important;
    width: 100%;
  }
} 
.legacy-info-box {
  background: #fbe6ce;
  border-radius: 12px;
  border: 1px solid #f0dbc0;
  padding: 28px 32px;
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #222;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(254, 154, 3, 0.04);
}
.legacy-info-box a {
  color: #FC6A43;
  text-decoration: underline;
  transition: color 0.2s;
}
.legacy-info-box a:hover {
  color: #d97a00;
}
.legacy-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
.legacy-action-bar > button {
  min-width: 140px;
  max-width: 240px;
  font-size: 1em;
  font-weight: 500;
  border-radius: 4px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}
.legacy-action-bar .add-treats-button {
  min-width: 140px;
  max-width: 240px;
  font-size: 1em;
  font-weight: 500;
  border-radius: 4px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  background: #4CAF50 !important;
  color: white !important;
  margin: 0;
  transition: background 0.2s;
}
.legacy-action-bar .add-treats-button:hover {
  background: #388e3c !important;
}
@media (max-width: 600px) {
  .legacy-info-box {
    padding: 18px 8px;
    font-size: 0.98em;
  }
  .legacy-action-bar > button {
    min-width: 120px;
    padding: 10px 8px;
    font-size: 0.98em;
  }
} 
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: auto;
}

.feeding-guide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 1000px;
}

.guide-header {
  text-align: center;
  margin-bottom: 2rem;
}

.guide-header h1 {
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.guide-header p {
  color: #666;
  font-size: 1.2rem;
}

.guide-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  position: relative;
}

/* Pet Selector Section */
.pet-selector-section {
  margin-bottom: 2rem;
}

.pet-selector-section h2 {
  color: #333;
  margin-bottom: 1rem;
}

.pet-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.pet-button-container {
  position: relative;
}

.pet-select-button {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid #eee;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.pet-select-button.has-photo {
  background-size: cover;
  background-position: center;
  border: none;
}

.pet-select-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pet-select-button.new {
  background: #fff;
  border: 2px dashed #ccc;
  color: #666;
}

.pet-info {
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem;
  border-radius: 4px;
  text-align: center;
  font-size: 0.9rem;
}

.pet-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /* Use a vertical gradient: black at bottom (1.0), transparent at top (0.2) */
  background: linear-gradient(to top, rgb(0 0 0) 0%, rgb(0 0 0) 40%, rgb(0 0 0 / 0%) 100%);
  color: #fff;
  border-radius: 0 0 50% 50%;
  padding: 12px 0 8px 0;
  text-align: center;
  font-size: 1em;
  font-weight: 500;
  z-index: 2;
  pointer-events: none;
}

.pet-name {
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
  text-shadow: 0 2px 8px #000, 0 1px 0 #000;
}

.pet-grams {
  font-size: 0.95em;
  font-weight: 400;
  opacity: 0.95;
  text-shadow: 0 2px 8px #000, 0 1px 0 #000;
}

.delete-pet-button {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #fff;
  color: #c00;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1.3em;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.delete-pet-button:hover {
  background: #ffeaea;
  color: #a00;
}

.pet-select-button.has-photo {
  filter: none;
  opacity: 1;
}

/* Recommendations Section */
.recommendations-section {
  margin-top: 3rem;
}

.recommendations-section h2 {
  text-align: center;
  color: #333;
  margin-bottom: 2rem;
}

.recommendations-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.recommendation-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.recommendation-card:hover {
  transform: translateY(-2px);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details {
  padding: 1.5rem;
}

.product-details h3 {
  color: #333;
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
}

.plan-details {
  margin-bottom: 1.5rem;
}

.plan-details p {
  margin: 0.5rem 0;
  color: #666;
}

.plan-details .price {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.plan-details .price-per-day {
  color: #4CAF50;
  font-weight: 500;
}

.subscribe-button {
  display: block;
  width: 100%;
  padding: 0.8rem;
  background: #4CAF50;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.subscribe-button:hover {
  background: #43A047;
}

.error-message {
  background-color: #fee;
  color: #c00;
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  text-align: center;
}

.loading-message {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-size: 1.2rem;
}

/* Pet Form Modal Styles */
.pet-form-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.pet-form-container {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90vw;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 40px 0; /* Add margin so it's not flush with the top on small screens */
  max-height: calc(100vh - 80px); /* Always fits in viewport with margin */
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

@media (max-width: 768px) {
  .feeding-guide {
    padding: 1rem;
  }

  .guide-header h1 {
    font-size: 2rem;
  }

  .guide-content {
    padding: 1rem;
  }

  .recommendations-carousel {
    grid-template-columns: 1fr;
  }

  .pet-select-button {
    width: 100px;
    height: 100px;
  }

  .pet-form-container {
    padding: 1rem;
    max-width: 98vw;
    width: 98vw;
    max-height: 98vh;
  }
} 
/* ===== FREE TRIAL COMPLETE STYLES ===== */
/* Merged from FreeTrial.css and FreeTrialChooseRecipe.css */

/* ===== FREE TRIAL FORM PAGE STYLES ===== */
.free-trial-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 10px;
}

/* Global font consistency */
* {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Preserve handwriting font for form inputs */
input, select, textarea {
  font-family: 'Caveat', cursive, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Ensure consistent fonts for all text elements */
h1, h2, h3, h4, h5, h6, p, span, div, button, a, label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Specific font overrides for form elements that should use handwriting */
.pet-edit-form input,
.pet-edit-form select,
.pet-form input,
.pet-form select,
.pet-form-inline input,
.pet-form-inline select {
  font-family: 'Caveat', cursive, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Ensure buttons and interactive elements use consistent font */
button, .claim-button, .recipe-trial-btn, .free-trial-continue-btn, .free-trial-checkout-btn {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.free-trial-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  max-width: 1280px;
  width: 100%;
  padding: 16px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.free-trial-header {
  text-align: center;
  margin-bottom: 12px;
}
.free-trial-intro {
  font-size: 1.1rem;
  color: #6b7280;
  margin: 16px 0 0 0;
}
.free-trial-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FF6B35;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form Fields */
.free-trial-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"] {
  padding: 8px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
  transition: all 0.2s ease;
}

.form-group input:focus {
  border-color: #ff6b35;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.weight-input {
  display: flex;
  align-items: center;
  position: relative;
}

.weight-input input {
  flex: 1;
  padding-right: 40px;
}

.weight-unit {
  position: absolute;
  right: 16px;
  color: #666;
  font-weight: 500;
}

.weight-note {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 4px;
  text-align: center;
}

/* Option Cards */
.option-cards {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.option-card {
  flex: 1;
  min-width: 120px;
  padding: 16px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  text-align: center;
}

.option-card:hover {
  border-color: #ff6b35;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.option-card.selected {
  border-color: #ff6b35;
  background: #ff6b35;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Background image option cards */
.option-card.with-bg {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100px !important;
  border-radius: 8px !important;
  position: relative !important;
  overflow: hidden !important;
}

.option-card.with-bg:hover {
  opacity: 0.8 !important;
}

/* Submit Button */
.free-trial-continue-btn {
  margin-top: 32px;
  width: 100%;
  background: #ff6b35;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.free-trial-continue-btn:hover:not(:disabled) {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.free-trial-continue-btn:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Error Message */
.error-message {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0 0 0;
  font-size: 0.95rem;
  text-align: center;
}

/* Loading States */
.free-trial-loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: white;
  border-radius: 20px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.free-trial-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff6b35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.free-trial-loading-overlay p {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

/* Close button (top right) */
.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-button:hover {
  background: #f3f4f6;
  color: #666;
}

/* ===== RECIPE CHOICE PAGE STYLES ===== */
.choose-recipe-wrapper {
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.choose-recipe-container {
  max-width: 1000px;
  margin: 0 auto;
}

.choose-recipe-header {
  text-align: center;
  margin-bottom: 15px;
}

.choose-recipe-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff6b35;
  background: transparent;
  padding: 15px 30px;
  border-radius: 12px 12px 0 0;
  margin: 0 auto 0 auto;
  max-width: 500px;
  letter-spacing: 1px;
}

.choose-recipe-header p {
  font-size: 1.1rem;
  color: #6b7280;
  margin: 16px 0 0 0;
}

.recipe-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.recipe-trial-card {
  background: #f5f5f5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.recipe-trial-card:hover {
  transform: translateY(-3px);
}

.recipe-product-image {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 45%; /* Reduced from 56.25% to make images shorter */
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
}

.recipe-product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.recipe-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

}

.recipe-title-overlay {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  padding: 12px 0;
  border-radius: 12px;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.lamb-title-overlay {
  top: 75%;
  transform: translate(-50%, -25%);
}

.chicken-title-overlay {
  top: 25%;
  transform: translate(-50%, -75%);
}

.size-selectors-overlay {
  display: flex;
  gap: 12px;
  pointer-events: auto;
  z-index: 20;
  justify-content: center;
  margin: auto auto 15px auto; /* Push to bottom, center horizontally */
}

.size-selector-overlay {
  background: #FF6B35;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: fit-content;
  opacity: 0.8;
  filter: grayscale(30%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.size-selector-overlay .size-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.size-selector-overlay .price-text {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 2px;
  line-height: 1;
}

.size-selector-overlay.selected {
  background: #FF6B35;
  border: 3px solid #000;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  opacity: 1;
  filter: grayscale(0%);
} 

.size-selector-overlay:hover {
  background: #FF6B35;
  border: 2px solid #000;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  opacity: 0.7;
  filter: grayscale(10%);
}

.recipe-features {
  padding: 12px 20px;
  background: #f5f5f5;
}

.recipe-features h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d5a2d;
  margin: 0 0 15px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #4a5568;
}

.checkmark {
  color: #4ade80;
  font-weight: 700;
  margin-right: 12px;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item strong {
  color: #2d5a2d;
  font-weight: 700;
}

.pricing-section {
  padding: 12px 20px 20px 20px;
  background: #f5f5f5;
  text-align: center;
}

.price-display {
  margin-bottom: 8px;
}

.original-price {
  font-size: 1.8rem;
  color: #9ca3af;
  text-decoration: line-through;
  margin-right: 15px;
  font-weight: 600;
}

.free-price {
  font-size: 2.5rem;
  color: #000;
  font-weight: 700;
}

.shipping-note {
  font-size: 1rem;
  color: #6b7280;
  margin: 0 0 25px 0;
}

.claim-button {
  width: 100%;
  background: #ff6b35;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 18px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.claim-button:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.limited-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #4a5568;
  background: #e8f5e8;
  padding: 12px 16px;
  border-radius: 8px;
}

.hourglass {
  font-size: 1.1rem;
}

.limited-time strong {
  color: #2d5a2d;
}

/* Loading States */
.choose-recipe-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: white;
  border-radius: 20px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff6b35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

.choose-recipe-loading p {
  color: #6b7280;
  font-size: 1rem;
  margin: 0;
}

/* Error States */
.choose-recipe-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: white;
  border-radius: 20px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 40px;
  text-align: center;
}

.choose-recipe-error h2 {
  color: #dc2626;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.choose-recipe-error p {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 24px;
}

.back-button {
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.back-button:hover {
  background: #e55a2b;
}

/* Size Toggle Buttons */
.plan-toggle {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  justify-content: center;
}

.plan-toggle-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background: #fff;
  font-weight: 400;
  cursor: pointer;
  min-width: 60px;
  transition: all 0.2s ease;
}

.plan-toggle-btn.selected {
  border: 2px solid #4CAF50;
  background: #eaffea;
  font-weight: 700;
}

.plan-toggle-btn:hover {
  border-color: #4CAF50;
  background: #f0fff0;
}

/* Plan Details */
.plan-details {
  text-align: center!important;
  margin: 0;
  padding: 0 20px;
  font-size: 1em!important;
}

.plan-summary {
  text-align: center!important;
  color: #4a5568;
  margin: 10px 0 20px 0;
  line-height: 1.5;
}

.plan-price {
font-size: 1em!important;
  color: #2d5a2d;
  font-weight: 700;
}

.plan-original-price {
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 600;
  font-size: 1em!important;
}

.plan-per-day {
  font-size: 1.02rem;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 2px;
  text-align: center!important;
}

/* 7-Day FREE Trial Value */
.trial-value {
  margin: 0 auto;
  padding: 16px 20px;
  background: #FF6B35;
  border: 2px solid #FF6B35;
  border-radius: 12px;
  max-width: 280px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.trial-value:hover {
  background: #e55a2b;
  border-color: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.trial-pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.trial-free-price {
  font-size: 1.8rem;
  color: white;
  font-weight: 700;
}

.trial-label {
  font-size: 0.9rem;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}
.trial-label-free {
  font-size: 2rem;
  font-weight: 700;
}
.trial-label.fine-print {
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.2px;
  opacity: 0.9;
  margin-top: 2px;
}

.plan-pricing {
  margin-bottom: 8px;
}

.plan-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d5a2d;
}

.plan-original-price {
  font-size: 1rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.plan-per-day {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
} 

/* Individual Recipe Trial Button */
.recipe-trial-btn {
  background: #ff6b35;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.recipe-trial-btn:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.recipe-trial-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.recipe-trial-btn:disabled:hover {
  background: #ccc;
  transform: none;
  box-shadow: none;
} 

/* Metrics Display */
.metrics-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.metric-item {
  display: flex;
  align-items: center;
  background: #f4e4ca;
  border: 1px solid #FF9900;
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 90px;
  transition: all 0.2s ease;
  flex-direction: row;
}

.metric-item:hover {
  background: #e9ecef;
}

.metric-icon {
  color: #ff6b35;
  font-size: 1.5rem;
  margin-right: 6px;
  flex-shrink: 0;
}

.metric-content {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-direction: row;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
}

.metric-label {
  color: #6b7280;
  margin: 0;
}

/* Change Pet Details Button - inline with metrics */
.change-pet-details-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #ff6b35;
  border: 1px solid #ff6b35;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.change-pet-details-btn:hover {
  background: #ff6b35;
  color: white;
}

/* Common Info Section - Full Width */
.common-info-full {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.common-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
}

.tick-icon {
  color: #28a745;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Recipe Buttons Container */
.recipe-buttons-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Fine Print / Terms Section */
.fine-print-section {
  margin-top: 40px;
  padding: 30px 20px;
  background: f3e2c6;
  border-radius: 12px;
  border: 1px solid #d4edda;
}

.fine-print-section h3 {
  text-align: center;
  color: #333;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.fine-print-intro {
  text-align: center;
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.fine-print-subtitle {
  text-align: center;
  color: #333;
  font-size: 1rem;
  margin: 0 0 30px 0;
}

.fine-print-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.fine-print-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.fine-print-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #000;
}

.fine-print-text {
  color: #444;
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 500;
}

.fine-print-text strong {
  color: #111;
  font-weight: 700;
}

/* Logo Container */
.logo-container {
  text-align: center;
  padding: 10px 0;
  margin-bottom: 10px;
}

.mfb-logo {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Checkout Loading Overlay */
.checkout-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.checkout-loading-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
}

.checkout-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff6b35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px auto;
}

.checkout-loading-message {
  font-size: 1.1rem;
  color: #4a5568;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 20px;
}

.blinking-dot {
  animation: blink 1s infinite;
  color: #ff6b35;
  font-weight: bold;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ===== RECIPE SELECTION STYLES ===== */
.recipe-selection {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.recipe-card {
  flex: 1;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: white;
  display: flex;
  flex-direction: column;
}

.recipe-card:hover {
  border-color: #ff6b35;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
}

.recipe-card.selected {
  border-color: #ff6b35;
  background: linear-gradient(135deg, #fff 0%, #fff8f5 100%);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.25);
}

.recipe-image {
  text-align: center;
}

.recipe-image img {
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.recipe-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  text-align: center;
  padding:20px;
}

.recipe-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: #666;
}

.recipe-features span {
  text-align: left;
}

.recipe-selected {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff6b35;
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Plan Selection Styles */
.plan-selection {
  margin-bottom: 32px;
}

.plan-selection h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.plan-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-option {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
}

.plan-option:hover {
  border-color: #ff6b35;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.plan-option.selected {
  border-color: #ff6b35;
  background: linear-gradient(135deg, #fff 0%, #fff8f5 100%);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

.plan-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-size {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
}

.plan-frequency {
  font-size: 0.9rem;
  color: #666;
}

.plan-pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.plan-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ff6b35;
}

.plan-original-price {
  font-size: 0.9rem;
  color: #999;
  text-decoration: line-through;
}

.plan-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: #666;
  padding-right: 20px;
}

/* Checkout Button */
.free-trial-checkout-btn {
  width: auto;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
  margin: 12px auto 12px auto;
}

.free-trial-checkout-btn:hover:not(:disabled) {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.free-trial-checkout-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.free-trial-checkout-btn span {
  font-size: 1.2rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  /* Free Trial Form Page */
  .free-trial-wrapper {

  }
  
  .free-trial-card {
    padding: 16px 14px;
    max-width: 1170px;
    border-radius: 12px;
  }
  
  .free-trial-header h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .metrics-display {
    gap: 8px;
  }
  
  .metric-item {
    width: 65px;
    height: 55px;
    padding: 6px;
  }
  
  .metric-value {
    font-size: 1.1rem;
  }
  
  .metric-label {
    font-size: 0.6rem;
  }
  
  .option-cards {
    gap: 6px;
  }
  
  .option-card {
    min-width: 90px;
    padding: 10px 6px;
    font-size: 0.85rem;
  }
  
  /* Recipe Choice Page */
  .recipe-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .choose-recipe-header {
    margin-bottom: 10px;
  }
  
  .choose-recipe-header h1 {
    font-size: 1.3rem;
    padding: 6px 10px;
  }
  
  .choose-recipe-header p {
    font-size: 0.8rem;
    margin: 6px 0;
  }
  
  .recipe-product-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 45%; /* Keep shorter aspect ratio on mobile */
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
  }
  
  .recipe-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
  }
  
  .recipe-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
  }
  
  .recipe-title-overlay {
    padding: 10px 16px;
    font-size: 1.2rem;
    width: 90%;
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .free-trial-header p {
    font-size: 1rem;
    margin: 6px 0;
    padding: 0 10px;
    text-align: left;
  }
  .size-selectors-overlay {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    pointer-events: auto;
    z-index: 10;
    justify-content: center;
  }
  
  .size-selector-overlay {
    padding: 4px 8px;
    font-size: 10px;
    opacity: 0.4;
    filter: grayscale(30%);
  }
  
  .size-selector-overlay.selected {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-2px) scale(1.03);
  }
  
  .size-selector-overlay .size-text {
    font-size: 12px;
  }
  
  .size-selector-overlay .price-text {
    font-size: 8px;
  }
  
  .recipe-features {
    padding: 8px 10px;
  }
  
  .recipe-features h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }
  
  .recipe-features span {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }
  
  .pricing-section {
    padding: 8px 10px 15px 10px;
  }
  
  .original-price {
    font-size: 1.1rem;
  }
  
  .free-price {
    font-size: 1.5rem;
  }
  
  .logo-container {
    padding: 5px 0;
    margin-bottom: 5px;
  }
  
  .mfb-logo {
    max-width: 120px;
  }
  
  .metrics-display {
    margin: 8px 0;
  }
  
  .metric-item {
    padding: 4px 6px;
  }
  
  .trial-value {
    margin: 10px auto;
    padding: 12px 16px;
  }
  
  .trial-label {
    font-size: 0.8rem;
  }
  
  .trial-free-price {
    font-size: 1.4rem;
  }
  
  /* Recipe Selection */
  .recipe-selection {
    flex-direction: column;
    gap: 16px;
  }
  
  .plan-option {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }
  
  .plan-pricing,
  .plan-details {
    align-items: center;
  }
  
  .free-trial-checkout-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    gap: 6px;
    margin: 10px auto 0 auto;
  }
  
  .free-trial-checkout-btn span {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  /* Free Trial Form Page - Extra Small Mobile */
  .free-trial-wrapper {
    padding: 8px;
  }
  
  .free-trial-card {
    padding: 12px 10px;
    border-radius: 10px;
  }
  
  .free-trial-header h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }
  
  .form-row {
    gap: 8px;
  }
  
  .form-group label {
    font-size: 0.9rem;
  }
  
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="number"] {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .metrics-display {
    flex-direction: row;
    justify-content: space-between;
    gap: 4px;
    margin: 8px 0;
  }
  
  .metric-item {
    flex: 1;
    padding: 3px 4px;
    min-width: 0;
    height: 50px;
  }
  
  .metric-icon {
    font-size: 0.7rem;
    margin-right: 3px;
  }
  
  .metric-content {
    gap: 2px;
  }
  
  .metric-value {
    font-size: 0.7rem;
  }
  
  .metric-label {
    font-size: 0.55rem;
  }
  
  .change-pet-details-btn {
    padding: 4px 8px;
    font-size: 0.7rem;
    margin-left: 4px;
  }
  
  .option-cards {
    flex-direction: column;
  }
  
  .option-card {
    min-width: auto;
  }
  
  .recipe-card {
    padding: 16px;
  }
  
  .size-selectors-overlay {
    gap: 6px;
    margin: auto auto 8px auto; /* Adjust for smallest mobile */
  }
  
  .size-selector-overlay {
    padding: 4px 8px;
    font-size: 11px;
    opacity: 0.4;
    filter: grayscale(30%);
  }
  
  .size-selector-overlay.selected {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-1px) scale(1.02);
  }
  
  .size-selector-overlay .size-text {
    font-size: 12px;
  }
  
  .size-selector-overlay .price-text {
    font-size: 8px;
  }
  
  .plan-option {
    padding: 16px;
  }
  
  .free-trial-checkout-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    gap: 4px;
    margin: 8px auto 0 auto;
  }
  
  .free-trial-checkout-btn span {
    font-size: 1rem;
  }
  .recipe-product-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 45%; /* Keep shorter aspect ratio on smallest mobile */
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
  }
  .recipe-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
  }
  .recipe-title-overlay {
    padding: 8px 12px;
    font-size: 1rem;
    width: 95%;
    min-width: 0;
    max-width: 98vw;
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .lamb-title-overlay {
    top: 75%;
    transform: translate(-50%, -25%);
  }
  .chicken-title-overlay {
    top: 15%;
    transform: translate(-50%, -25%);
  }
  .size-selectors-overlay {
    gap: 8px;
    margin: auto auto 8px auto; /* Adjust for smallest mobile */
  }
  .size-selector-overlay {
    padding: 3px 6px;
    font-size: 12px;
    opacity: 0.9;
    min-width: 50px;
  }
  .size-selector-overlay .size-text {
    font-size: 13px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
  }
  .size-selector-overlay .price-text {
    font-size: 9px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
  }
} 

/* Mobile select styles */
.mobile-select {
  display: none;
}

/* Desktop optimizations */
@media (min-width: 769px) {
  .free-trial-card {
    max-width: 1170px;
    padding: 16px;
  }
  
  .free-trial-header h2 {
    margin-bottom: 8px;
  }
  
  .metrics-display {
    gap: 8px;
    margin-bottom: 12px;
  }
  
  .metric-item {
    padding: 6px 10px;
    font-size: 1rem;
  }
  
  .free-trial-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .form-group {
    gap: 3px;
    margin-bottom: 4px;
  }
  
  .form-group label {
    font-size: 0.9rem;
  }
  
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="number"] {
    padding: 8px 10px;
    font-size: 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .option-cards {
    gap: 6px;
    margin-top: 4px;
  }
  
  .option-card {
    padding: 4px 8px;
    font-size: 0.75rem;
    min-height: 28px;
  }
  
  .option-card.with-bg {
    height: 35px;
  }
  
  .free-trial-continue-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    grid-column: 1 / -1;
    margin-top: 8px;
  }
  
  /* Ensure proper spacing and prevent overlapping */
  .weight-input {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .weight-input input {
    flex: 1;
  }
  
  .weight-unit {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
  }
  
  .weight-note {
    font-size: 0.75rem;
    color: #666;
    margin-top: 2px;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .free-trial-wrapper {
    padding: 0;
    align-items: flex-start;
  }
  .free-trial-card {
    padding: 6px 2px 6px 2px;
    margin: 4px auto 2px auto;
    max-width: 99vw;
  }
  .free-trial-header h2 {
    font-size: 1rem;
    margin-bottom: 2px;
  }
  .metrics-display {
    gap: 2px;
    margin-bottom: 2px;
  }
  .metric-item {
    padding: 1px 2px;
    font-size: 0.65rem;
  }
  .metric-value {
    font-size: 0.7rem;
  }
  .metric-label {
    font-size: 0.55rem;
  }
  .free-trial-fields {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .form-row {
    gap: 4px;
  }
  .form-group {
    gap: 1px;
    margin-bottom: 1px;
  }
  .form-group label {
    font-size: 0.75rem;
  }
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="number"] {
    padding: 3px 4px;
    font-size: 0.75rem;
    height: 24px;
  }
  .option-cards {
    gap: 2px;
    margin-top: 1px;
  }
  .option-card {
    padding: 1px 4px;
    font-size: 0.65rem;
    min-height: 18px;
  }
  .option-card.with-bg {
    height: 18px;
  }
  .free-trial-continue-btn {
    padding: 6px 0;
    font-size: 0.85rem;
    min-height: 30px;
  }
  .weight-input {
    gap: 2px;
  }
  .weight-unit {
    font-size: 0.7rem;
  }
  .weight-note {
    font-size: 0.6rem;
  }
} 

/* General condensed styles */
.free-trial-wrapper, .choose-recipe-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 20px 0 0 0;
}

.free-trial-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  max-width: 1170px;
  width: 100%;
  padding: 10px 10px 8px 10px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  height: fit-content;
}

.free-trial-header {
  text-align: center;
  margin-bottom: 8px;
}

.free-trial-header h2 {
  font-weight: 700;
  margin-bottom: 4px;
  color: #FF6B35;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.metrics-display {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 6px;
}

.metric-item {
  padding: 24px;
  font-size:1.5rem!important;
  color: #333;
}

.metric-value {
  font-size: 1.3rem;
  color: #333;
}

.metric-label {
  font-size:1rem;
  padding-left: 6px;
}
.free-trial-nutrition-blurb {
  font-size: 1rem;
  color: #333;
  padding: 20px 0;
  line-height: 1.5;
  visibility: hidden;
  display: none;
}

.free-trial-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.form-row {
  grid-template-columns: 1fr;
  gap: 6px;
}

.form-group {
  gap: 2px;
  margin-bottom: 2px;
}

.form-group label {
  font-size: 0.8rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"] {
  padding: 4px 6px;
  font-size: 0.8rem;
  width: 100%;
  box-sizing: border-box;
  height: 28px;
}

.option-cards {
  gap: 4px;
  margin-top: 2px;
}

.option-card {
  padding: 2px 6px;
  font-size: 0.7rem;
  min-height: 22px;
}

.option-card.with-bg {
  height: 22px;
}

.free-trial-continue-btn {
  padding: 8px 0;
  font-size: 0.9rem;
  grid-column: 1 / -1;
  margin-top: 6px;
  min-height: 36px;
}

.weight-input {
  display: flex;
  align-items: center;
  gap: 4px;
}

.weight-input input {
  flex: 1;
}

.weight-unit {
  font-size: 0.8rem;
  color: #666;
  white-space: nowrap;
}

.weight-note {
  font-size: 0.7rem;
  color: #666;
  margin-top: 1px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .free-trial-wrapper {
    padding: 0;
    align-items: flex-start;
  }
  .free-trial-card {
    padding: 6px 2px 6px 2px;
    margin: 4px auto 2px auto;
    max-width: 99vw;
  }
  .free-trial-header h2 {
    font-size: 1rem;
    margin-bottom: 2px;
  }
  .metrics-display {
    gap: 2px;
    margin-bottom: 2px;
  }
  .metric-item {
    padding: 10px 20px;
    font-size: 1rem;
  }
  .metric-value {
    font-size: 0.7rem;
  }
  .metric-label {
    font-size: 0.6rem;
  }
  .free-trial-fields {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .form-row {
    gap: 4px;
  }
  .form-group {
    gap: 1px;
    margin-bottom: 1px;
  }
  .form-group label {
    font-size: 0.75rem;
  }
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="number"] {
    padding: 3px 4px;
    font-size: 0.75rem;
    height: 24px;
  }
  .option-cards {
    gap: 2px;
    margin-top: 1px;
  }
  .option-card {
    padding: 1px 4px;
    font-size: 0.65rem;
    min-height: 18px;
  }
  .option-card.with-bg {
    height: 18px;
  }
  .free-trial-continue-btn {
    padding: 6px 0;
    font-size: 0.85rem;
    min-height: 30px;
  }
  .weight-input {
    gap: 2px;
  }
  .weight-unit {
    font-size: 0.7rem;
  }
  .weight-note {
    font-size: 0.6rem;
  }
} 

/* Mobile Responsive */
@media (max-width: 768px) {
  .metrics-display {
    flex-direction: row;
    justify-content: center;
    gap: 4px;
  }
  .metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 4px;
    font-size: 0.7rem;
    padding-top: 10px;
  }
  .metric-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
   
  }
  .metric-value {
    font-size: 0.8rem;
    line-height: 1.1;
  }
  .metric-label {
    font-size: 0.7rem;
    line-height: 1.4;
    margin-top: 0;
  }
} 

/* Terms and Conditions Section */
.terms-conditions-section {
  margin-top: 24px;
  padding: 16px 50px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.terms-conditions-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  text-align: center;
}

.terms-item {
  margin-bottom: 6px;
}

.terms-item:last-child {
  margin-bottom: 0;
}

.terms-item strong {
  font-size: 0.75rem;
  font-weight: 600;
  color: #495057;
  display: block;
  margin-bottom: 4px;
}

.terms-item p {
  font-size: 0.7rem;
  line-height: 1;
  color: #444;
  margin: 0 0 8px 0;
}

.terms-item ul {
  font-size: 0.7rem;
  line-height: 1;
  color: #444;
  margin: 4px 0 8px 0;
  padding-left: 16px;
}

.terms-item li {
  margin-bottom: 4px;
}

.terms-item li:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .terms-conditions-section {
    margin-top: 16px;
    padding: 12px;
  }
  
  .terms-conditions-section h4 {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
  
  .terms-item strong {
    font-size: 0.7rem;
  }
  
  .terms-item p,
  .terms-item ul {
    font-size: 0.65rem;
  }
} 

/* Feeding Requirements Display */
.feeding-requirements-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
}

.feeding-requirement-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.requirement-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.requirement-text {
  display: flex;
  flex-direction: column;
}

.requirement-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
}

.feeding-requirements-display {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px 16px 0 16px;
  margin: 16px;
  text-align: center;
}

.feeding-requirements-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 12px;
  line-height: 1.3;
}

.feeding-requirements-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

.requirement-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(255, 107, 53, 0.1);
  border: 2px solid rgba(255, 107, 53, 0.3);
  border-radius: 8px;
  min-width: 80px;
}

.requirement-icon-item .icon {
  font-size: 3rem;
  line-height: 1;
}

.requirement-icon-item .icon-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ff6b35;
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .feeding-requirements-overlay {
    padding: 6px;
    gap: 4px;
  }
  
  .feeding-requirement-item {
    padding: 3px 6px;
    gap: 3px;
  }
  
  .requirement-icon {
    font-size: 1rem;
  }
  
  .requirement-value {
    font-size: 0.7rem;
  }
  
  .feeding-requirements-display {
    padding: 12px;
    margin: 12px 0;
  }
  
  .feeding-requirements-text {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
  
  .feeding-requirements-icons {
    gap: 8px;
  }
  
  .requirement-icon-item {
    padding: 6px 8px;
    min-width: 70px;
  }
  
  .requirement-icon-item .icon {
    font-size: 1.5rem;
  }
  
  .requirement-icon-item .icon-label {
    font-size: 1.2rem;
  }
} 

@media (max-width: 768px) {
  /* Feeding guide metrics smaller and edit button on new line */
  .metrics-display {
    flex-direction: row;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 0 10px;
  }
  .metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    font-size: 0.9rem;
    min-width: 70px;
  }
  .metric-icon {
    font-size: 1.2rem;
    margin-right: 0;
    margin-bottom: 2px;
  }
  .metric-value {
    font-size: 1.1rem;
    line-height: 1.1;
  }
  .metric-label {
    font-size: 0.8rem;
    line-height: 1.1;
    margin-top: 0;
  }
  /* Edit Pet button on new line */
  .metrics-display .edit-pet-btn, .metrics-display .edit-pet {
    display: block;
    width:50%;
    margin: 10px auto 0 auto;
    text-align: center;
    order: 2;
  }
} 

/* Pet Form Accordion Styles */
.pet-form-accordion {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin: 0 auto 16px auto;
  max-width: 700px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.pet-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 16px;
  min-height: 2.5em;
  border-bottom: 1px solid #e9ecef;
  background: #fff;
}
.pet-form-toggle {
  font-size: 1.2em;
  color: #ff6b35;
  margin-left: 8px;
}
.pet-form-content {
  transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  background: #f8f9fa;
}
.pet-form {
  padding: 8px 16px 12px 16px;
}
.pet-edit-form {
  padding: 8px 16px 12px 16px;
  background: #f4e4ca;
  border: 1px solid #FF9900;
  border-radius: 8px;
  width: 96%;
  max-width: 96%;
  height: auto;
  overflow: hidden;
}
.pet-form-container {
  background: #f4e4ca;
  border: 1px solid #FF9900;
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  padding: 0;
}
.pet-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}
.pet-form-row input,
.pet-form-row select {
  font-size: 0.95rem;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  min-width: 80px;
  max-width: 120px;
  flex: 1 1 90px;
  margin: 0;
}
.pet-form-row input[type="number"] {
  max-width: 80px;
}
.pet-form-save-btn {
  background: #ff6b35;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.2s;
}
.pet-form-save-btn:hover {
  background: #e55a2b;
}
.pet-form-error {
  color: #d32f2f;
  font-size: 0.9rem;
  margin-top: 6px;
}

@media (max-width: 768px) {
  .pet-form-accordion {
    max-width: 99vw;
    margin: 0 0 12px 0;
  }
  .pet-form-header {
    font-size: 1rem;
    padding: 8px 8px;
    min-height: 2.5em;
  }
  .pet-form {
    padding: 8px 8px 10px 8px;
  }
  .pet-form-row {
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
  }
  .pet-form-row input,
  .pet-form-row select {
    font-size: 1rem;
    padding: 6px 8px;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 100%;
  }
  .pet-form-save-btn {
    width: 100%;
    margin-left: 0;
    margin-top: 6px;
  }
} 

/* Inline Pet Form Accordion Styles */
.pet-form-accordion-inline {
  display: flex;
  align-items: center;
  margin-left: 12px;
  min-width: 120px;
}
.pet-form-accordion-inline.open {
  align-items: flex-start;
}
.pet-form-inline {
  display: flex;
  gap: 6px;
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 4px 8px;
  margin-left: 0;
  margin-top: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.pet-form-inline input,
.pet-form-inline select {
  font-size: 0.95rem;
  padding: 2px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
  min-width: 60px;
  max-width: 100px;
  flex: 1 1 60px;
  margin: 0;
}
.pet-form-inline input[type="number"] {
  max-width: 60px;
}
.pet-form-save-btn, .edit-pet-btn {
  background: #ff6b35;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 4px;
  transition: background 0.2s;
}
.pet-form-save-btn:hover {
  background: #e55a2b;
}
.pet-form-cancel-btn {
  background: #fff;
  color: #ff6b35;
  border: 1px solid #ff6b35;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 4px;
  transition: background 0.2s, color 0.2s;
}
.pet-form-cancel-btn:hover {
  background: #ff6b35;
  color: #fff;
}
.pet-form-error {
  color: #d32f2f;
  font-size: 0.9rem;
  margin-left: 8px;
}

@media (max-width: 768px) {
  .pet-form-accordion-inline {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    justify-content: flex-start;
  }
  .pet-form-inline {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 6px 4px;
    width: 100%;
  }
  .pet-form-inline input,
  .pet-form-inline select {
    font-size: 1rem;
    padding: 6px 8px;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 100%;
  }
  .pet-form-save-btn, .pet-form-cancel-btn {
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
  }
  .pet-form-error {
    margin-left: 0;
    margin-top: 4px;
  }
} 
