/* Mobile Responsive Styles for Lemon Show Page */
@media (max-width: 768px) {
  /* Reduce card padding significantly for mobile */
  .card {
    padding: 2rem 1.5rem;
    max-width: 100%;
    margin-top: 1rem;
  }
  
  .card--lemon-show {
    padding: 2rem 1.5rem;
  }
  
  .card--comments {
    padding: 2rem 1.5rem;
  }
  
  /* Adjust card header for mobile */
  .card__header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }
  
  /* Make title smaller on mobile */
  .card__title {
    font-size: 1.75rem;
    line-height: 1.3;
    word-wrap: break-word;
  }
  
  /* Stack card meta items on mobile */
  .card__meta {
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
  }
  
  /* Make content more readable on mobile */
  .card__content {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Stack action buttons vertically on mobile */
  .card__actions {
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
  }
  
  .card__actions .button {
    width: 100%;
    justify-content: center;
  }
  
  .card__status {
    margin-left: 0;
    width: 100%;
  }
  
  .card__status .button {
    width: 100%;
  }
  
  /* Fix comments section for mobile */
  .comments__title {
    font-size: 1.5rem;
    padding: 0 1rem;
    /* Remove pseudo-element decorations on mobile for cleaner display */
  }
  
  .comments__title::before {
    display: none;
  }
  
  .comments__title::after {
    display: none;
  }
  
  /* Make comment cards more compact on mobile */
  .card--comment {
    padding: 1.5rem;
    font-size: 1rem;
    border-radius: 1.5rem;
  }
  
  .comment__avatar {
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
  }
  
  .comment__author {
    gap: 0.5rem;
  }
  
  .comment__author-name {
    font-size: 0.85rem;
  }
  
  .comment__timestamp {
    font-size: 0.75rem;
  }
  
  .comment__content {
    font-size: 0.9rem;
  }
  
  /* Make comment form more compact on mobile */
  .card--comment-form {
    border-radius: 1.25rem;
  }
  
  .comment-form {
    padding: 1rem;
  }
  
  .comment-form__textarea {
    font-size: 1rem;
    padding: 1rem;
    min-height: 3rem;
  }
  
  .comment-form__actions {
    margin-top: 0.75rem;
  }
  
  .comment-form__button {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* Adjust due date display for mobile */
  .card__due-date {
    margin: 1rem 0;
    padding: 0.75rem;
  }
  
  .card__due-date-label {
    font-size: 0.75rem;
  }
  
  .card__due-date-value {
    font-size: 1rem;
    flex-wrap: wrap;
  }
  
  /* Make search input responsive */
  .search__input-container {
    width: 100%;
    max-width: 90%;
  }

  .search > .custom-select,
  .search > .basket-popup-wrap:not(.basket-popup-wrap--edit-cta) {
    display: block !important;
    width: 100% !important;
    margin: 0 0 0.75rem 0 !important;
    max-width: 100%;
  }

  /* Ensure search/header has proper spacing on mobile */
  .search {}
  
  /* Adjust lemon card for mobile */
  .lemon-card--new {
    width: 100% !important;
    max-width: 100%;
    padding: 1.5rem;
    font-size: 1rem;
    margin-top: 1rem;
  }
  
  .lemon-card--new h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  /* Squeezers form container mobile */
  .squeezers {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }
  
  .squeezers--card-panel {
    padding: 1.5rem;
    max-width: 100%;
  }
  
  /* Action menu mobile layout */
  .action-menu {
    text-align: left;
  }

  .basket-popup-wrap:not(.basket-popup-wrap--edit-cta) {
    display: block !important;
    width: 100%;
  }

  .basket-popup-wrap:not(.basket-popup-wrap--edit-cta) .button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .basket-popup-wrap--edit-cta,
  .basket-popup-wrap--edit-cta .basket-popup__edit-pill-button {
    width: 2rem !important;
    min-width: 2rem !important;
    display: inline-flex !important;
  }

  .basket-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: auto;
    margin-top: 0.75rem;
    align-items: flex-start;
  }

  .basket-popup__action {
    width: auto;
    max-width: none;
    justify-content: center;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    text-align: center;
  }

  .basket-popup-wrap--edit-cta .basket-popup__actions {
    align-items: stretch;
    width: 100%;
  }

  .basket-popup-wrap--edit-cta .basket-popup__action {
    width: 100%;
  }
  
  /* Make form buttons stack on mobile */
  .action-menu .button {
    display: block;
    width: 100%;
    margin: 0.75rem 0 0 0 !important;
    text-align: center;
  }
  
  .action-menu form button[type="submit"],
  .action-menu form input[type="submit"] {
    display: block;
    width: 100%;
    margin: 1rem 0 0 0 !important;
  }
  
  /* Ensure form inputs are mobile-friendly */
  .action-menu .input {
    width: 100%;
    font-size: 1rem;
  }
  
  /* Fix button icon sizes on mobile */
  .button svg {
    margin-right: 0.1rem !important;
    height: 24px;
    width: 24px;
  }
  
  /* Trix editor mobile styles */
  trix-editor {
    min-height: 150px;
    font-size: 1rem;
  }
  
  /* Alert styling for mobile */
  .alert {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .alert__list {
    padding-left: 1.25rem;
  }
  
  /* Account settings page mobile styles */
  .label {
    font-size: 0.95rem;
  }
  
  /* Override inline styles for buttons on mobile */
  .action-menu a[class*="button"] {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0.75rem 0 0 0 !important;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .basket-popup-wrap:not(.basket-popup-wrap--edit-cta) {
    display: block !important;
    width: 100%;
  }

  .basket-popup-wrap:not(.basket-popup-wrap--edit-cta) .button:not(.basket-popup__action) {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .basket-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: auto;
    align-items: flex-start;
    margin-top: 0.75rem;
  }

  .basket-popup__action {
    width: auto;
    max-width: none;
    justify-content: center;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    text-align: center;
  }

  .basket-popup-wrap--edit-cta .basket-popup__actions {
    align-items: stretch;
    width: 100%;
  }

  .basket-popup-wrap--edit-cta .basket-popup__action {
    width: 100%;
  }

  .card {
    padding: 1.5rem 1rem;
  }
  
  .card--lemon-show,
  .card--comments {
    padding: 1.5rem 1rem;
  }
  
  .card__title {
    font-size: 1.5rem;
  }
  
  .comments__title {
    font-size: 1.25rem;
  }
  
  .comment-form__textarea {
    font-size: 0.95rem;
  }
  
  .card--comment {
    padding: 1.25rem;
  }
  
  /* New/Edit form mobile styles for small devices */
  .squeezers {
    padding: 1.5rem 1rem;
  }
  
  .lemon-card--new {
    font-size: 1rem;
  }
  
  .lemon-card--new h1 {
    font-size: 1.5rem;
  }
  
  /* Account settings adjustments for small mobile */
  .action-menu h2 {
    font-size: 1.25rem;
  }
  
  .action-menu p {
    font-size: 0.9rem;
  }
}
