.account-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.account-header {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.account-header h1 {
  font-size: 28px;
  color: #333;
  margin-bottom: 10px;
}

.account-tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 30px;
}

.account-tab {
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.account-tab.active {
  color: #ef4444;
  border-bottom-color: #ef4444;
}

.account-tab:hover {
  color: #ef4444;
}

.account-content {
  display: none;
}

.account-content.active {
  display: block;
}

.profile-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 30px;
}

.profile-section h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

/* Password Section Styles */
.password-section {
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 24px;
}

.password-section h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
  margin-right: 20px;
}

.form-group:last-child {
  margin-right: 0;
}

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

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  transition: border 0.3s;
}

.form-group input:focus {
  border-color: #ef4444;
  outline: none;
}

.save-btn {
  background-color: #ef4444;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.save-btn:hover {
  background-color: #ef4444;
}

.save-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.danger-zone {
  background-color: #fff8f8;
  border: 1px solid #ffebeb;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
}

.danger-zone h3 {
  color: #ef4444;
  margin-bottom: 15px;
}

.danger-zone p {
  color: #666;
  margin-bottom: 20px;
}

.delete-btn {
  background-color: #ef4444;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.delete-btn:hover {
  background-color: #ef4444;
}

.notification {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  display: none;
}

.notification.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.notification.error {
  background-color: #ffebee;
  color: #ef4444;
  border: 1px solid #ffcdd2;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 22px;
  color: #999;
  cursor: pointer;
}

.modal-title {
  font-size: 22px;
  color: #333;
  margin-bottom: 20px;
}

.modal-body {
  margin-bottom: 25px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
}

.modal-btn {
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  margin-left: 10px;
}

.modal-btn.cancel {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.modal-btn.confirm {
  background-color: #ef4444;
  color: white;
  border: none;
}

.loader {
  display: none;
  width: 100%;
  text-align: center;
  padding: 20px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(33, 150, 243, 0.3s);
  border-radius: 50%;
  border-top-color: #ef4444;
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Address styles */
.address-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.address-card:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.address-details {
  margin: 15px 0;
  line-height: 1.6;
  color: #555;
}

.address-actions {
  display: flex;
  justify-content: flex-end;
}

.address-btn {
  background: none;
  border: none;
  color: #2196f3;
  font-size: 14px;
  padding: 5px 10px;
  cursor: pointer;
  margin-left: 15px;
  transition: color 0.2s;
}

.address-btn:hover {
  color: #ef4444;
}

.address-btn.delete {
  color: #ef4444;
}

.address-btn.delete:hover {
  color: #ef4444;
}

.address-btn.set-shipping {
  background-color: #10b981;
  color: white;
}

.address-btn.set-shipping:hover {
  background-color: #059669;
}

/* Shipping address badge */
.shipping-badge {
  display: inline-flex;
  align-items: center;
  background-color: #10b981;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
}

.shipping-badge i {
  margin-right: 5px;
  font-size: 11px;
}

/* Shipping address summary */
.shipping-summary {
  background-color: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.shipping-summary h3 {
  color: #0ea5e9;
  margin-bottom: 8px;
  font-size: 16px;
}

.shipping-summary h3 i {
  margin-right: 8px;
}

.shipping-summary p {
  color: #333;
  margin: 0;
  line-height: 1.4;
}

.address-form-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
  gap: 20px;
}

.address-form-col {
  flex: 1;
  min-width: 200px;
}

/* Fix for address form modal layout */
#address-form .form-group {
  margin-right: 0;
}

#address-form input {
  box-sizing: border-box;
  width: 100%;
}

/* Checkbox styling */
.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: #555;
  margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 10px;
  width: auto;
  cursor: pointer;
}

.checkbox-label:hover {
  color: #ef4444;
}

.modal-content {
  box-sizing: border-box;
  max-width: 550px;
  padding: 25px;
}

/* Wishlist styles */
.wishlist-items-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wishlist-item {
  display: flex;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.2s ease;
}

.wishlist-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wishlist-item-image {
  flex: 0 0 120px;
  margin-right: 20px;
}

.wishlist-item-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.wishlist-item-details {
  flex: 1;
}

.wishlist-item-name {
  font-size: 18px;
  margin-bottom: 8px;
}

.wishlist-item-name a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.wishlist-item-name a:hover {
  color: #ef4444;
}

.wishlist-item-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.wishlist-item-price {
  margin-bottom: 10px;
}

.wishlist-item-price .sale-price {
  font-weight: bold;
  color: #ef4444;
  margin-right: 8px;
}

.wishlist-item-price .original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
}

.wishlist-item-price .regular-price {
  font-weight: bold;
  color: #333;
}

.wishlist-item-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  margin-left: 20px;
}

.add-to-cart-btn,
.remove-wishlist-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.add-to-cart-btn {
  background-color: #ef4444;
  color: white;
  border: none;
}

.add-to-cart-btn:hover {
  background-color: #ef4444;
}

.remove-wishlist-btn {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.remove-wishlist-btn:hover {
  background-color: #ffebee;
  color: #ef4444;
  border-color: #ffcdd2;
}

.add-to-cart-btn i,
.remove-wishlist-btn i {
  margin-right: 6px;
}

.error-message {
  color: #ef4444;
  padding: 10px 0;
}

/* Responsive styles for wishlist */
@media (max-width: 768px) {
  .wishlist-item {
    flex-direction: column;
  }

  .wishlist-item-image {
    flex: 0 0 auto;
    margin-right: 0;
    margin-bottom: 15px;
    width: 100%;
    max-width: 200px;
  }

  .wishlist-item-actions {
    flex-direction: row;
    margin-left: 0;
    margin-top: 15px;
  }
}

/* Customer Information Styles */
.customer-info-section {
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 24px;
  margin-bottom: 24px;
}

.customer-info-section h2 {
  color: #1f2937;
  font-size: 1.5rem;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}

.customer-details {
  display: grid;
  gap: 16px;
}

.detail-row {
  display: flex;
  margin-bottom: 8px;
  font-size: 14px;
}

.detail-row .label {
  font-weight: 600;
  width: 140px;
  color: #4b5563;
}

.detail-row .value {
  color: #1f2937;
  flex: 1;
}

.no-customer {
  text-align: center;
  padding: 24px;
  color: #6b7280;
  font-style: italic;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* Loading state */
.loader {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

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

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

/* Wallet/Cards styles */
#wallet-container {
  position: relative;
  min-height: 200px;
}

.add-card-section {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
}

#add-card-btn {
  position: relative;
  z-index: 1;
}

.card-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.3s ease;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  min-height: 120px;
}

.card-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-header {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-bottom: 15px;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.card-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.card-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.card-btn.delete {
  background: rgba(239, 68, 68, 0.8);
  border-color: rgba(239, 68, 68, 0.9);
}

.card-btn.delete:hover {
  background: rgba(239, 68, 68, 1);
}

.card-number {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-family: "Courier New", monospace;
}

.card-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-holder {
  flex: 1;
}

.card-holder-label {
  font-size: 10px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.card-holder-name {
  font-size: 14px;
  font-weight: 500;
}

/* Add Payment Dropdown */
.add-payment-dropdown {
  position: relative;
  display: inline-block;
}

.add-payment-dropdown .dropdown-content {
  position: absolute;
  background-color: white;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 8px;
  overflow: hidden;
  right: 0;
  top: 100%;
  margin-top: 5px;
}

.add-payment-dropdown .dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
  border-bottom: 1px solid #eee;
}

.add-payment-dropdown .dropdown-content a:last-child {
  border-bottom: none;
}

.add-payment-dropdown .dropdown-content a:hover {
  background-color: #f5f5f5;
}

.add-payment-dropdown .dropdown-content a i {
  margin-right: 8px;
  width: 16px;
}

/* PCard Modal Styles */
.test-credentials-section {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #eee;
  margin-top: 20px;
}

.test-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.test-btn:hover {
  background: #059669;
}

.test-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#pcard-test-result {
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 10px;
}

#pcard-test-result.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

#pcard-test-result.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* PCard Card Display */
.card-item.pcard {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.card-item.pcard .card-number {
  font-size: 16px;
  font-weight: 600;
}

.card-item.pcard .card-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-description {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 10px;
  font-style: italic;
}

/* Card form specific styles */
#card-form .form-group input {
  box-sizing: border-box;
}

/* Card number formatting */
#card-number {
  letter-spacing: 2px;
  font-family: "Courier New", monospace;
}

/* Expiry date formatting */
#expiry-date {
  font-family: "Courier New", monospace;
}

/* Responsive card layout */
@media (max-width: 768px) {
  .card-item {
    padding: 15px;
  }

  .card-number {
    font-size: 16px;
  }

  .card-actions {
    flex-direction: column;
    gap: 5px;
  }

  .card-btn {
    width: 100%;
    text-align: center;
  }

  .add-card-section {
    justify-content: center;
    margin-top: 20px;
  }

  #add-card-btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Return to Subscription Button */
.return-to-subscription-container {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.return-to-subscription-btn {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.return-to-subscription-btn:hover {
  background-color: #357abd;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.return-to-subscription-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(74, 144, 226, 0.3);
}

.return-to-subscription-btn i {
  font-size: 12px;
}

/* Subscription styles */
.subscription-item {
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.3s ease;
  background: #fff;
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
}

.subscription-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.subscription-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.subscription-image {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  margin-right: 15px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  overflow: hidden;
}

.subscription-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.subscription-details {
  flex: 1;
}

.subscription-name {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  margin-bottom: 5px;
  font-family: "Inter", sans-serif;
}

.subscription-description {
  font-size: 16px;
  color: #000;
  margin-bottom: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

.subscription-quantity {
  font-size: 16px;
  color: #000;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

.subscription-progress {
  margin: 15px 0;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background-color: #e8def8;
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #e8def8;
  border-radius: 6px;
  transition: width 0.3s ease;
}

.subscription-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.subscription-price {
  font-size: 20px;
  font-weight: 400;
  color: #000;
  font-family: "Inter", sans-serif;
}

.subscription-frequency {
  font-size: 20px;
  color: #000;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

.subscription-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subscription-edit-btn {
  background-color: #2c2c2c;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

.subscription-edit-btn:hover {
  background-color: #404040;
}

.subscription-menu-btn {
  background: none;
  border: none;
  color: #000;
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: color 0.2s;
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
}

.subscription-menu-btn:hover {
  color: #333;
  background-color: #f5f5f5;
}

.subscription-arrival {
  font-size: 24px;
  font-weight: 600;
  color: #000;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.48px;
}

/* Responsive subscription layout */
@media (max-width: 768px) {
  .subscription-item {
    padding: 15px;
  }

  .subscription-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .subscription-image {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .subscription-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .subscription-actions {
    flex-direction: column;
    gap: 10px;
  }

  .subscription-edit-btn {
    width: 100%;
  }
}

/* No Subscriptions Empty State */
.no-subscriptions-content {
  max-width: 600px;
  margin: 0 auto;
}

.no-subscriptions-content .benefit-item {
  transition: transform 0.2s ease;
}

.no-subscriptions-content .benefit-item:hover {
  transform: translateY(-2px);
}

.category-tag {
  transition: all 0.2s ease;
  cursor: pointer;
}

.category-tag:hover {
  background: #e3f2fd !important;
  color: #1976d2 !important;
}

@media (max-width: 768px) {
  .no-subscriptions-content h3 {
    font-size: 20px !important;
  }

  .no-subscriptions-content p {
    font-size: 14px !important;
  }

  .no-subscriptions-actions {
    flex-direction: column;
    gap: 12px;
  }

  .no-subscriptions-actions button {
    width: 100%;
    margin-right: 0 !important;
  }

  .subscription-benefits > div {
    gap: 24px !important;
  }

  .popular-categories > div {
    gap: 8px !important;
  }
}

/* Subscription Status Styling */
.subscription-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subscription-status.status-active {
  background-color: #e7f5e7;
  color: #2e7d2e;
}

.subscription-status.status-paused {
  background-color: #fff3cd;
  color: #856404;
}

.subscription-status.status-cancelled {
  background-color: #f8d7da;
  color: #721c24;
}

.subscription-status.status-ended {
  background-color: #d1ecf1;
  color: #0c5460;
}

/* Subscription Menu Popup */
.subscription-menu-popup {
  display: none;
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  pointer-events: none;
}

.subscription-menu-popup.active {
  display: block;
}

.subscription-menu-content {
  position: absolute;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  padding: 8px 0;
  border: 1px solid #e0e0e0;
  pointer-events: auto;
}

.subscription-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 22px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #000000;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.subscription-menu-item:hover {
  background-color: #f5f5f5;
}

.subscription-menu-item.danger {
  color: #c00f0c;
}

.subscription-menu-item.danger:hover {
  background-color: #ffebee;
}

.subscription-menu-item i {
  font-size: 16px;
  color: #c00f0c;
}

/* Edit Subscription Modal */
.edit-subscription-modal-content {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
}

.edit-subscription-body {
  margin-bottom: 25px;
}

.product-info-section {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.product-image {
  width: 168px;
  height: 168px;
  border-radius: 8px;
  margin-right: 20px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  overflow: hidden;
}

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

.product-description {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 20px; /* Align with upper half of image */
}

.product-description h3 {
  font-size: 20px;
  font-weight: 400;
  color: #000;
  font-family: "Inter", sans-serif;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

/* Quantity Control Styling */
.quantity-control {
  margin-top: 15px;
}

.quantity-control label {
  display: block;
  font-weight: 500;
  margin-right: 8px;
  color: #333;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

.quantity-input-group {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
}

.quantity-btn {
  width: 45px;
  height: 45px;
  border: 2px solid #e0e0e0;
  background: #f8f9fa;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 16px;
}

.quantity-btn:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.quantity-btn.decrease {
  border-radius: 6px 0 0 6px;
}

.quantity-btn.increase {
  border-radius: 0 6px 6px 0;
}

.quantity-input {
  width: 70px;
  height: 45px;
  border: 2px solid #e0e0e0;
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  background: white;
  appearance: textfield; /* Standard */
  -moz-appearance: textfield; /* Firefox */
}

.quantity-input:focus {
  outline: none;
  border-color: #ef4444;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.edit-subscription-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edit-subscription-form .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 0;
}

.edit-subscription-form .form-group {
  flex: 1;
  margin-bottom: 0;
  margin-right: 0;
}

.edit-subscription-form label {
  display: block;
  font-weight: 400;
  margin-bottom: 8px;
  color: #1e1e1e;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

.edit-subscription-form input,
.edit-subscription-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #1e1e1e;
  background-color: #ffffff;
  transition: border 0.3s;
  box-sizing: border-box;
}

.edit-subscription-form input:focus,
.edit-subscription-form select:focus {
  border-color: #ef4444;
  outline: none;
}

.edit-subscription-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e1e1e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.edit-subscription-form input::placeholder {
  color: #999;
}

/* Form help text styling */
.form-help-text {
  display: block;
  font-size: 14px;
  color: #666;
  margin-top: 6px;
  font-style: italic;
}

/* Edit Subscription Actions */
.edit-subscription-actions {
  margin: 30px 0 25px 0;
  padding-top: 25px;
  border-top: 1px solid #f0f0f0;
}

.edit-subscription-actions h3 {
  font-size: 18px;
  font-weight: 500;
  color: #1e1e1e;
  font-family: "Inter", sans-serif;
  margin: 0 0 20px 0;
}

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

.subscription-action-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 14px 18px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #1e1e1e;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 12px;
}

.subscription-action-btn:hover {
  background: #f0f0f0;
  border-color: #d0d0d0;
}

.subscription-action-btn i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.subscription-action-btn.danger {
  color: #c00f0c;
  border-color: #f5c6cb;
  background: #fff5f5;
}

.subscription-action-btn.danger:hover {
  background: #ffebee;
  border-color: #f1aeb5;
}

.subscription-action-btn.danger i {
  color: #c00f0c;
}

/* Next delivery preview styling */
.next-delivery-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  min-height: 47px; /* Match input height */
}

#next-delivery-date {
  font-weight: 500;
  color: #333;
  font-size: 16px;
}

.next-delivery-preview .form-help-text {
  margin-top: 4px;
  margin-bottom: 0;
}

/* Date input specific styling */
input[type="date"] {
  position: relative;
  padding-right: 40px; /* Add space for the calendar icon */
}

input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  cursor: pointer;
  background-color: transparent;
  color: #666;
  border: none;
  outline: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3e%3c/rect%3e%3cline x1='16' y1='2' x2='16' y2='6'%3e%3c/line%3e%3cline x1='8' y1='2' x2='8' y2='6'%3e%3c/line%3e%3cline x1='3' y1='10' x2='21' y2='10'%3e%3c/line%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  transition: opacity 0.2s ease;
}

input[type="date"]:hover::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3e%3c/rect%3e%3cline x1='16' y1='2' x2='16' y2='6'%3e%3c/line%3e%3cline x1='8' y1='2' x2='8' y2='6'%3e%3c/line%3e%3cline x1='3' y1='10' x2='21' y2='10'%3e%3c/line%3e%3c/svg%3e");
}

/* Responsive design for edit subscription modal */
@media (max-width: 768px) {
  .edit-subscription-modal-content {
    max-width: 95vw;
    margin: 20px;
  }

  .product-info-section {
    flex-direction: column;
    text-align: center;
  }

  .product-image {
    margin-right: 0;
    margin-bottom: 20px;
    width: 120px;
    height: 120px;
    align-self: center;
  }

  .product-description {
    padding-top: 0;
    align-items: center;
  }

  .quantity-control {
    margin-top: 10px;
  }

  .edit-subscription-form .form-row {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
  }
}

/* PCard Permission Control */
.pcard-disabled #add-pcard-option {
  display: none !important;
}

.pcard-disabled .card-item.pcard {
  display: none !important;
}

.pcard-disabled #add-pcard-modal {
  display: none !important;
}
