/* Modern Cart Page Styles - Force Override */
body .cart-page {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Override container styles for cart page */
body .container .cart-page {
  padding: 0 !important;
  max-width: none !important;
}

/* Cart Header */
.cart-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
}

.cart-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
  background: linear-gradient(135deg, #2f855a 0%, #38a169 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cart Content Layout */
.cart-content {
  display: grid !important;
  grid-template-columns: 1fr 400px !important;
  gap: 2rem !important;
  align-items: start !important;
}

/* Cart Section */
.cart-section {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.cart-items-container {
  padding: 1.5rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Cart Item Styles */
.cart-item {
  display: grid !important;
  grid-template-columns: 80px 1fr auto !important;
  gap: 1rem !important;
  align-items: center !important;
  padding: 1.25rem !important;
  background: #f8fafc !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.2s ease !important;
  margin-bottom: 1rem !important;
}

.cart-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.cart-item-article {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 0.75rem 0;
}

.cart-item-quantity {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quantity-text {
  font-size: 0.875rem;
  color: #4a5568;
  font-weight: 500;
}

.price-per-unit {
  font-size: 0.875rem;
  color: #718096;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border-radius: 8px;
  padding: 0.25rem;
  border: 1px solid #e2e8f0;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: #2f855a;
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: #276749;
  transform: scale(1.05);
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-display {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  color: #2d3748;
  font-size: 0.875rem;
}

.cart-item-total {
  text-align: right;
}

.total-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2f855a;
}

.remove-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: #fed7d7;
  color: #c53030;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-btn:hover {
  background: #feb2b2;
  transform: scale(1.05);
}

/* Cart Summary */
.cart-summary {
  background: #f7fafc;
  border-top: 1px solid #e2e8f0;
  padding: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.summary-label {
  color: #4a5568;
}

.summary-value {
  color: #2f855a;
  font-size: 1.5rem;
}

/* Order Section */
.order-section {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
  box-sizing: border-box;
  overflow: hidden;
}

.order-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

/* Order Window Note */
.order-window-note {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Form Styles */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4a5568;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #1a202c;
  box-sizing: border-box;
  max-width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #2f855a;
  box-shadow: 0 0 0 3px rgba(47, 133, 90, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

/* Phone Input Container */
.phone-input-container {
  display: flex;
  align-items: center;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  transition: all 0.2s ease;
  overflow: hidden;
}

.phone-input-container:focus-within {
  border-color: #2f855a;
  box-shadow: 0 0 0 3px rgba(47, 133, 90, 0.1);
}

.phone-prefix {
  padding: 0.75rem 0.875rem;
  background: #f7fafc;
  color: #4a5568;
  font-weight: 600;
  font-size: 0.95rem;
  border-right: 1px solid #e2e8f0;
  white-space: nowrap;
  user-select: none;
}

.phone-input {
  border: none !important;
  box-shadow: none !important;
  padding: 0.75rem 0.875rem !important;
  flex: 1;
  background: transparent !important;
}

.phone-input:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Validation states for phone container */
.phone-input-container.invalid {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
}

.phone-input-container.valid {
  border-color: #38a169 !important;
  box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1) !important;
}

/* Validation Styles */
.required-asterisk {
  color: #e53e3e;
  font-weight: bold;
  margin-left: 0.25rem;
}

.validation-message {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  min-height: 1.25rem;
  display: flex;
  align-items: center;
}

.validation-message.invalid {
  color: #e53e3e;
  background-color: #fed7d7;
  border: 1px solid #feb2b2;
}

.validation-message.valid {
  color: #38a169;
  background-color: #c6f6d5;
  border: 1px solid #9ae6b4;
}

/* Form input validation states */
.form-input.invalid,
.form-select.invalid,
.form-textarea.invalid {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1) !important;
}

.form-input.valid,
.form-select.valid,
.form-textarea.valid {
  border-color: #38a169 !important;
  box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1) !important;
}

.form-input:focus.invalid,
.form-select:focus.invalid,
.form-textarea:focus.invalid {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2) !important;
}

.form-input:focus.valid,
.form-select:focus.valid,
.form-textarea:focus.valid {
  border-color: #38a169 !important;
  box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.2) !important;
}

/* Form Actions */
.form-actions {
  margin-top: 1rem;
}

.btn-checkout {
  width: 100% !important;
  padding: 1rem 2rem !important;
  background: linear-gradient(135deg, #2f855a 0%, #38a169 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(47, 133, 90, 0.3) !important;
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 133, 90, 0.4);
}

.btn-checkout:active {
  transform: translateY(0);
}

.btn-checkout:disabled,
.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Empty Cart State - handled by JavaScript */
.empty-cart-message {
  display: block;
  text-align: center;
  padding: 3rem 1rem;
  color: #718096;
  font-size: 1.125rem;
  background: #f7fafc;
  border-radius: 12px;
  border: 2px dashed #cbd5e0;
  margin: 1rem 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cart-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .order-section {
    position: static;
    order: -1;
  }
}

/* Fix for screens from 425px - ensure full width */
@media (min-width: 425px) and (max-width: 640px) {
  .cart-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .cart-content {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .order-section {
    width: 100% !important;
    margin: 0 !important;
    padding: 1.5rem 1rem !important;
  }
  
  .cart-section {
    width: 100% !important;
    margin: 0 !important;
  }
  
  .cart-items-container {
    width: 100% !important;
    padding: 1rem !important;
  }
}

/* Small screens - Form first, then cart items */
@media (max-width: 640px) {
  .cart-page {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .container {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .cart-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .order-section {
    order: 1 !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
    padding: 1.5rem 1rem !important;
    background: #ffffff !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .cart-section {
    order: 2 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
    background: #f8fafc !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Add visual separator */
  .order-section::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin-top: 1.5rem;
  }
  
  /* Full-width header */
  .cart-header {
    padding: 1.5rem 1rem !important;
    margin-bottom: 0 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }
  
  .cart-header h1 {
    font-size: 1.75rem !important;
    margin: 0 !important;
  }
  
  /* Add section labels for better UX */
  .order-section h2::before {
    content: '📝 ';
    margin-right: 0.5rem;
  }
  
  .cart-section::before {
    content: '🛒 Ваші товари';
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 0;
    border-left: none;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .cart-items-container {
    padding: 1rem !important;
  }
  
  /* Hide cart summary on small screens to save space */
  .cart-summary {
    display: none !important;
  }
  
  /* Show total in order section instead */
  .order-section::before {
    content: '💰 Загальна сума: €' attr(data-total);
    display: block;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2f855a;
  }
}
  
  .cart-header h1 {
    font-size: 2rem;
  }
  
  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 0.75rem;
  }
  
  .cart-item-image {
    width: 60px;
    height: 60px;
  }
  
  .cart-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
  }
  
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
  }
  
  .order-section {
    padding: 1rem !important;
    width: 100% !important;
  }
  
  .order-form {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .quantity-controls {
    order: 1;
  }
  
  .cart-item-total {
    order: 2;
    text-align: left;
  }
  
  .remove-btn {
    order: 3;
  }
}

@media (max-width: 480px) {
  .cart-page {
    padding: 0 1rem;
  }
  
  .cart-header {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
  }
  
  .cart-header h1 {
    font-size: 1.75rem;
  }
  
  .cart-items-container,
  .order-section {
    padding: 1rem;
  }
  
  .cart-item {
    padding: 1rem;
  }
  
  .cart-item-title {
    font-size: 1rem;
  }
  
  .btn-checkout {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
  /* Enhanced touch targets */
  .qty-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.25rem !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }
  
  .remove-btn {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.125rem !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
  
  /* Better spacing for mobile */
  .cart-item {
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .cart-item-title {
    font-size: 1rem !important;
    line-height: 1.3 !important;
  }
  
  .cart-item-article {
    font-size: 0.8rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Improved form elements for mobile */
  .form-input,
  .form-select,
  .form-textarea {
    padding: 1rem !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    min-height: 48px !important;
  }
  
  .form-textarea {
    min-height: 120px !important;
  }
  
  /* Phone input mobile optimization */
  .phone-input-container {
    border-radius: 8px !important;
    min-height: 48px !important;
  }
  
  .phone-prefix {
    padding: 1rem 0.75rem !important;
    font-size: 1rem !important;
  }
  
  .phone-input {
    padding: 1rem 0.75rem !important;
    font-size: 1rem !important;
  }
  
  /* Better button sizing */
  .btn-checkout {
    padding: 1.25rem 2rem !important;
    font-size: 1.125rem !important;
    border-radius: 12px !important;
    min-height: 56px !important;
  }
  
  /* Improved validation messages */
  .validation-message {
    font-size: 0.8rem !important;
    padding: 0.5rem 0.75rem !important;
    margin-top: 0.5rem !important;
  }
  
  /* Better cart summary */
  .cart-summary {
    padding: 1.25rem !important;
  }
  
  .summary-row {
    font-size: 1.125rem !important;
  }
  
  .summary-value {
    font-size: 1.375rem !important;
  }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
  .cart-page {
    padding: 0 !important;
  }
  
  .container {
    padding: 0 !important;
  }
  
  .cart-header {
    padding: 1rem 0.75rem !important;
  }
  
  .order-section {
    padding: 1rem 0.75rem !important;
  }
  
  .cart-items-container {
    padding: 0.75rem !important;
  }
  
  .cart-header h1 {
    font-size: 1.5rem !important;
  }
  
  .cart-item {
    padding: 0.75rem !important;
    gap: 0.5rem !important;
  }
  
  .cart-item-image {
    width: 50px !important;
    height: 50px !important;
  }
  
  .cart-item-title {
    font-size: 0.9rem !important;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.875rem !important;
    font-size: 0.9rem !important;
  }
  
  .btn-checkout {
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .qty-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.125rem !important;
  }
  
  .remove-btn {
    width: 40px !important;
    height: 40px !important;
  }
  
  /* Enhanced small screen layout */
  .cart-content {
    gap: 1rem !important;
  }
  
  .order-section {
    margin-bottom: 0.75rem !important;
  }
  
  .order-section::after {
    margin-top: 1rem !important;
  }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .cart-header {
    padding: 0.75rem 0 !important;
    margin-bottom: 1rem !important;
  }
  
  .cart-header h1 {
    font-size: 1.75rem !important;
  }
  
  .cart-content {
    gap: 1rem !important;
  }
  
  .order-section {
    padding: 1rem !important;
  }
  
  .cart-items-container {
    padding: 0.75rem !important;
  }
  
  .cart-item {
    padding: 0.75rem !important;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.75rem !important;
    min-height: 44px !important;
  }
  
  .btn-checkout {
    padding: 1rem 1.5rem !important;
    min-height: 48px !important;
  }
}

/* Cart comment field — текст нормального контраста + читаемый placeholder */
#cart textarea[name*="comment"],
#checkout textarea[name*="comment"],
.cart textarea[name*="comment"],
textarea#comment,
textarea#order_comment,
textarea.comment {
  color:#111111 !important;
  -webkit-text-fill-color:#111111 !important;
  background:#ffffff !important;
  border-color:#d0d0d0 !important;
}

#cart textarea[name*="comment"]::placeholder,
#checkout textarea[name*="comment"]::placeholder,
.cart textarea[name*="comment"]::placeholder,
textarea#comment::placeholder,
textarea#order_comment::placeholder,
textarea.comment::placeholder {
  color:#777777 !important;
  opacity:1 !important;
}

.btn-disabled{ opacity: .6; pointer-events: none; cursor: not-allowed; }

/* Override default button styles */
body .cart-page .btn,
body .cart-page button {
  padding: 8px 12px !important;
  border-radius: 8px !important;
  border: 0 !important;
  cursor: pointer !important;
  font-family: inherit !important;
}

/* Override default form styles */
body .cart-page input,
body .cart-page select,
body .cart-page textarea {
  font-family: inherit !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* Ensure form elements don't overflow */
body .cart-page .form-input,
body .cart-page .form-select,
body .cart-page .form-textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Force cart item display */
body .cart-page .cart-item {
  display: grid !important;
  grid-template-columns: 80px 1fr auto !important;
  gap: 1rem !important;
  align-items: center !important;
  padding: 1.25rem !important;
  background: #f8fafc !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.2s ease !important;
  margin-bottom: 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Profile Autofill Buttons Styling */
.zb-profile-row {
  display: flex !important;
  gap: 0.75rem !important;
  align-items: center !important;
  margin-top: 1rem !important;
  flex-wrap: wrap !important;
  padding: 1rem !important;
  background: #f8fafc !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
}

.zb-profile-row label {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 0.875rem !important;
  color: #4a5568 !important;
  cursor: pointer !important;
}

.zb-profile-row input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  accent-color: #2f855a !important;
  cursor: pointer !important;
}

.zb-profile-row button {
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  border: 1px solid #d1d5db !important;
  background: #ffffff !important;
  color: #374151 !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.zb-profile-row button:hover {
  background: #f9fafb !important;
  border-color: #9ca3af !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.zb-profile-row button:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* First button (Заповнити збережені) - Primary style */
.zb-profile-row button:first-of-type {
  background: linear-gradient(135deg, #2f855a 0%, #38a169 100%) !important;
  color: #ffffff !important;
  border-color: #2f855a !important;
}

.zb-profile-row button:first-of-type:hover {
  background: linear-gradient(135deg, #276749 0%, #2f855a 100%) !important;
  border-color: #276749 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(47, 133, 90, 0.3) !important;
}

/* Second button (Стерти збережені) - Secondary style */
.zb-profile-row button:last-of-type {
  background: #ffffff !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
}

.zb-profile-row button:last-of-type:hover {
  background: #fef2f2 !important;
  border-color: #f87171 !important;
  color: #b91c1c !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.1) !important;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .zb-profile-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  
  .zb-profile-row button {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Enhanced mobile optimization for profile buttons */
@media (max-width: 768px) {
  .zb-profile-row {
    padding: 1.25rem !important;
    margin-top: 1.25rem !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 640px) {
  .zb-profile-row {
    margin: 1rem 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    background: #f8fafc !important;
  }
  
  .zb-profile-row button {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
    min-height: 48px !important;
  }
  
  .zb-profile-row label {
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .zb-profile-row input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
  }
}

@media (max-width: 360px) {
  .zb-profile-row {
    padding: 1rem !important;
    margin-top: 1rem !important;
  }
  
  .zb-profile-row button {
    padding: 0.75rem 1rem !important;
    font-size: 0.85rem !important;
    min-height: 44px !important;
  }
  
  .zb-profile-row label {
    font-size: 0.85rem !important;
  }
}