/** Shopify CDN: Minification failed

Line 1883:0 Unexpected "}"

**/
/* Enhanced Account Styles */

/*
 * Bullet-proof default hidden state for the overview empty-state box.
 * The broad mobile rule (.tab-content div[style*="padding"]) can set
 * padding/width/margin with !important on this element; using !important
 * here guarantees display:none wins unless JS explicitly overrides it
 * with setProperty('display', 'block', 'important') (inline !important
 * beats CSS !important via higher specificity).
 */
#overview-subscriptions-empty {
  display: none !important;
}

/* Renewal Calendar Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-container {
  background: rgb(var(--color-background));
  border-radius: var(--media-radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(var(--color-foreground), 0.1);
}

.modal-title {
  margin: 0;
  font-size: 1.6rem;
  color: rgb(var(--color-foreground));
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: rgba(var(--color-foreground), 0.6);
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(var(--color-foreground), 0.1);
  color: rgb(var(--color-foreground));
}

.modal-body {
  padding: 1.5rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  min-height: 400px;
}

.calendar-header {
  text-align: center;
  font-weight: 600;
  padding: 1rem 0;
  color: rgb(var(--color-foreground));
  font-size: 1.1rem;
}

.calendar-day {
  aspect-ratio: 1;
  border: 1px solid rgba(var(--color-foreground), 0.1);
  border-radius: var(--buttons-radius);
  padding: 0.5rem;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgb(var(--color-background));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.calendar-day:hover {
  background: rgba(var(--color-foreground), 0.05);
  border-color: rgba(var(--color-foreground), 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day-number {
  font-size: 1rem;
  font-weight: 500;
  color: rgb(var(--color-foreground));
  margin-bottom: 0.2rem;
}

.calendar-day.other-month {
  opacity: 0.3;
}

.calendar-day.today {
  background: rgba(var(--color-button), 0.1);
  border-color: rgb(var(--color-button));
}

.calendar-day.renewal-date {
  background: rgba(76, 175, 80, 0.1);
  border-color: #4CAF50;
}

.calendar-day.cutoff-date {
  background: rgba(255, 193, 7, 0.1);
  border-color: #ffc107;
}

.calendar-day.urgent {
  background: rgba(220, 53, 69, 0.1);
  border-color: #dc3545;
  animation: pulse-urgent 2s infinite;
}

.calendar-day-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.calendar-day-indicator.renewal {
  background: #4CAF50;
}

.calendar-day-indicator.cutoff {
  background: #ffc107;
}

.calendar-day-indicator.urgent {
  background: #dc3545;
}

.calendar-day-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.calendar-day:hover .calendar-day-tooltip {
  opacity: 1;
}

/* Timeline Styles */
.timeline-content {
  min-height: 400px;
  position: relative;
}

.timeline-view-btn {
  transition: all 0.2s ease;
}

.timeline-view-btn:hover {
  background-color: rgba(var(--color-foreground), 0.2);
}

.timeline-view-btn.active {
  background-color: rgb(var(--color-button));
  color: white;
}

.timeline-month-view,
.timeline-quarter-view,
.timeline-year-view {
  display: none;
}

.timeline-view.active {
  display: block;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-left: 3px solid #4CAF50;
  background: rgba(var(--color-background), 0.5);
  border-radius: var(--buttons-radius);
  margin-bottom: 1rem;
  position: relative;
  transition: all 0.2s ease;
}

.timeline-item:hover {
  background: rgba(var(--color-background), 0.8);
  transform: translateX(4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-item.urgent {
  border-left-color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

.timeline-item.upcoming {
  border-left-color: #ffc107;
  background: rgba(255, 193, 7, 0.05);
}

.timeline-date {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  padding: 0.5rem;
  background: rgba(var(--color-foreground), 0.1);
  border-radius: var(--buttons-radius);
  font-weight: 600;
  color: rgb(var(--color-foreground));
}

.timeline-content-item {
  flex: 1;
}

.timeline-title {
  font-weight: 600;
  color: rgb(var(--color-foreground));
  margin-bottom: 0.5rem;
}

.timeline-details {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: rgba(var(--color-foreground), 0.7);
  font-size: 0.9rem;
}

.timeline-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.timeline-action-btn {
  background: rgba(var(--color-button), 0.1);
  color: rgb(var(--color-button));
  border: none;
  padding: 0.3rem 0.8rem;
  border-radius: var(--buttons-radius);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.timeline-action-btn:hover {
  background: rgba(var(--color-button), 0.2);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .modal-container {
    width: 95%;
    max-height: 95vh;
  }
  
  .calendar-grid {
    gap: 0.2rem;
  }
  
  .calendar-day {
    padding: 0.3rem;
    font-size: 0.8rem;
  }

  /* Mobile-specific fix for Order #1415 unordered list text breaking */
  .order-card:not(.subscription-card) > div[style*="background-color: rgba"] ul li:nth-child(1) {
    position: relative;
    padding-left: 1.5rem !important;
    text-indent: -1.5rem !important;
    line-height: 1.4 !important;
    font-size: 0 !important;
    color: transparent !important;
  }

  .order-card:not(.subscription-card) > div[style*="background-color: rgba"] ul li:nth-child(1)::before {
    content: "• Ice Planet Barbarians Holographic";
    font-size: 1.3rem !important;
    color: rgba(var(--color-foreground), 0.8) !important;
    display: block;
    margin-bottom: 0.2rem;
    font-weight: normal;
  }

  .order-card:not(.subscription-card) > div[style*="background-color: rgba"] ul li:nth-child(1)::after {
    content: "Bookmarks - by CONKY (x1)";
    font-size: 1.3rem !important;
    color: rgba(var(--color-foreground), 0.8) !important;
    display: block;
    margin-left: 1.5rem;
    text-indent: -1.5rem;
  }

  .order-card:not(.subscription-card) > div[style*="background-color: rgba"] ul li:nth-child(2) {
    position: relative;
    padding-left: 1.5rem !important;
    text-indent: -1.5rem !important;
    line-height: 1.4 !important;
    font-size: 0 !important;
    color: transparent !important;
  }

  .order-card:not(.subscription-card) > div[style*="background-color: rgba"] ul li:nth-child(2)::before {
    content: "• Ice Planet Barbarians Stickers";
    font-size: 1.3rem !important;
    color: rgba(var(--color-foreground), 0.8) !important;
    display: block;
    margin-bottom: 0.2rem;
    font-weight: normal;
  }

  .order-card:not(.subscription-card) > div[style*="background-color: rgba"] ul li:nth-child(2)::after {
    content: "- by CONKY (x1)";
    font-size: 1.3rem !important;
    color: rgba(var(--color-foreground), 0.8) !important;
    display: block;
    margin-left: 1.5rem;
    text-indent: -1.5rem;
  }
  
  .calendar-day-number {
    font-size: 0.8rem;
  }
  
  .calendar-controls {
    flex-direction: column;
    gap: 1rem;
  }
  
  .timeline-controls {
    flex-direction: column;
    gap: 1rem;
  }
  
  .timeline-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .timeline-date {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .modal-header {
    padding: 1rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .calendar-legend {
    justify-content: center;
  }
  
  .calendar-legend span {
    font-size: 0.9rem;
  }
  
  .timeline-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}

/* Disabled Cancellation Button Styles */
button[disabled] {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

button[disabled]:hover {
  transform: none !important;
  box-shadow: none !important;
}

.skip-warning-indicator {
  color: #ffc107;
  font-size: 1.2rem;
  margin-right: 0.5rem;
  animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Enhanced Renewal Display Styles */
.renewal-display-enhanced {
  background: rgba(var(--color-background), 0.5);
  border: 1px solid rgba(var(--color-foreground), 0.08);
  border-radius: var(--media-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.renewal-display-enhanced:hover {
  background: rgba(var(--color-background), 0.8);
  border-color: rgba(var(--color-foreground), 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.renewal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.renewal-urgency {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  transition: all 0.3s ease;
}

.renewal-urgency.high {
  background: linear-gradient(135deg, #dc3545, #ff6b6b);
  color: white;
  animation: pulse-urgent 2s infinite;
}

.renewal-urgency.medium {
  background: linear-gradient(135deg, #ffc107, #ffdb4d);
  color: #333;
}

.renewal-urgency.low {
  background: linear-gradient(135deg, #4CAF50, #66bb6a);
  color: white;
}

.renewal-urgency.calculating {
  background: rgba(var(--color-foreground), 0.1);
  color: rgba(var(--color-foreground), 0.6);
}

@keyframes pulse-urgent {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.renewal-date-main {
  position: relative;
  overflow: hidden;
}

.renewal-date-main::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--color-button), 0.3), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.renewal-details {
  position: relative;
}

.billing-amount {
  font-weight: 600;
  position: relative;
}

.billing-amount::before {
  content: '💰';
  margin-right: 0.3rem;
  opacity: 0.7;
}

.billing-frequency::before {
  content: '🔄';
  margin-right: 0.3rem;
  opacity: 0.7;
}

.renewal-progress {
  position: relative;
}

.progress-bar {
  position: relative;
  overflow: hidden;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.progress-fill {
  position: relative;
  overflow: hidden;
}

.progress-fill.urgent {
  background: linear-gradient(90deg, #dc3545, #ff6b6b) !important;
  animation: pulse-fill 1.5s infinite;
}

.progress-fill.warning {
  background: linear-gradient(90deg, #ffc107, #ffdb4d) !important;
}

.progress-fill.good {
  background: linear-gradient(90deg, #4CAF50, #66bb6a) !important;
}

@keyframes pulse-fill {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}

.progress-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.progress-label::before {
  content: '⏳';
  opacity: 0.7;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .renewal-display-enhanced {
    padding: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .renewal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .renewal-date-main {
    font-size: 1.4rem;
  }
  
  .renewal-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  
  .renewal-urgency {
    font-size: 1rem;
    padding: 0.2rem 0.6rem;
  }
}

@media screen and (max-width: 480px) {
  .renewal-display-enhanced {
    padding: 0.8rem;
  }
  
  .renewal-date-main {
    font-size: 1.3rem;
  }
  
  .billing-amount,
  .billing-frequency {
    font-size: 1.1rem;
  }
  
  .progress-label {
    font-size: 1rem;
  }
}

.section-padding {
  padding-top: 0;
  padding-bottom: 0;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

/* Desktop: Subscription buttons in one row */
@media screen and (min-width: 991px) {
  #subscriptions .subscription-card > div[style*="display: flex"][style*="gap: 0.3rem"] {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  #subscriptions .subscription-card > div[style*="display: flex"][style*="gap: 0.3rem"] > div {
    display: contents !important;
  }

  #subscriptions .subscription-card > div[style*="display: flex"][style*="gap: 0.3rem"] button {
    flex: 0 1 auto !important;
    padding: 0.6rem 1rem !important;
    font-size: 1rem !important;
  }
}

@media screen and (min-width: 750px) {
  .section-padding {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

@media screen and (max-width: 990px) {
  .section-padding {
    padding: 0;
  }
}

/* Enhanced Account Styles */
.page-width {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

.account-container {
  display: flex;
  gap: 4rem;
  max-width: 2000px;
  margin: 0;
  font-size: 1.8rem;
  position: relative;
  width: 100%;
  min-height: calc(100vh - 80px);
}

/* Mobile Responsive Styles */
.mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgb(var(--color-background));
  border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.1);
  z-index: 100;
}

.burger-icon {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem;
  cursor: pointer;
}

.burger-line {
  width: 2rem;
  height: 0.2rem;
  background-color: rgb(var(--color-foreground));
  transition: all 0.3s ease;
}

.burger-icon.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.burger-icon.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-icon.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

.mobile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 101;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.account-sidebar.mobile {
  position: fixed;
  top: 0;
  left: auto;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: rgb(var(--color-background));
  z-index: 102;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 1.5rem 1rem;
  box-shadow: 0 0 2rem rgba(0, 0, 0, 0.1);
}

.account-sidebar.mobile.active {
  left: auto;
  right: 0;
}

.mobile-sidebar-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: rgb(var(--color-foreground));
  cursor: pointer;
  padding: 0.5rem;
}

@media screen and (max-width: 990px) {
  .mobile-header {
    display: flex;
    padding: 0.5rem 0;
  }

  .account-container {
    flex-direction: column;
    gap: 0;
    padding-top: 0;
  }
  
  .account-sidebar:not(.mobile) {
    display: none;
  }
  
  /* Mobile sidebar navigation styling */
  .account-sidebar.mobile .sidebar-nav a {
    font-size: 1.4rem !important;
    padding: 1.2rem 0.8rem !important;
    margin-left: 0.5rem !important;
  }
  
  .account-sidebar.mobile .sidebar-nav svg {
    width: 1.8rem !important;
    height: 1.8rem !important;
    margin-right: 1rem !important;
  }
  
  .account-sidebar.mobile h3 {
    font-size: 2rem !important;
    margin-left: 0.5rem !important;
  }
  
  .account-content {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
  }

  .account-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem;
    margin-bottom: 0;
  }

  .account-title {
    font-size: 2.2rem;
    margin: 0;
  }

  .tab-content {
    padding: 0;
    min-height: auto;
    margin: 0;
  }

  /* Expand all card containers on mobile */
  .tab-content > div[style*="background-color"],
  .tab-content > div[style*="background"],
  .address-card,
  .subscription-card,
  .payment-method-card,
  .order-card,
  .tab-content .form-row > div {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Expand all nested divs with inline styles */
  .tab-content div[style*="width"],
  .tab-content div[style*="margin"],
  .tab-content div[style*="padding"] {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Overview tab cards */
  #overview .tab-content > div[style*="background-color"] {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    border: none !important;
    overflow-x: hidden !important;
  }

  /* Personal info cards in overview */
  #overview .form-row {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  #overview .form-row > div {
    background-color: rgba(var(--color-foreground), 0.04) !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 0.5rem !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #overview .form-row h3 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
    color: rgb(var(--color-foreground)) !important;
    font-weight: 600 !important;
  }

  #overview .form-row p {
    font-size: 1.3rem !important;
    line-height: 1.6 !important;
    margin: 0.6rem 0 !important;
    color: rgba(var(--color-foreground), 0.8) !important;
  }

  /* Overview tab main container */
  #overview {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Subscription section in overview - only mobile */
  #overview.tab-content > div[style*="margin-top: 3rem"][style*="padding-top: 2rem"] {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    border: none !important;
  }

  #overview.tab-content > div[style*="margin-top: 3rem"] h3:first-child {
    font-size: 1.8rem !important;
    margin: 0 !important;
    padding: 0.5rem !important;
    color: rgb(var(--color-foreground)) !important;
    font-weight: 600 !important;
  }

  /* Mobile: Stack subscriptions header - h3 on top, buttons underneath */
  #overview.tab-content > div[style*="margin-top: 3rem"] > div[style*="display: flex"][style*="justify-content: space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  #overview.tab-content > div[style*="margin-top: 3rem"] > div[style*="display: flex"] > div[style*="display: flex"] {
    width: 100% !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
  }

  /* Subscription cards in overview */
  #overview.tab-content > div[style*="margin-top: 3rem"] > div[style*="background-color"][style*="border-radius"] {
    padding: 0.5rem !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
    overflow-x: hidden !important;
    border-radius: 0 !important;
    border: none !important;
  }

  /* Subscription card content wrapper */
  #overview.tab-content > div[style*="margin-top: 3rem"] > div[style*="background-color"] > div[style*="flex: 1"] {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0.8rem !important;
  }

  /* Subscription card button containers */
  #overview.tab-content > div[style*="margin-top: 3rem"] > div[style*="background-color"] > div[style*="display: flex"][style*="gap: 0.6rem"] {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.8rem !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
  }

  /* Subscription card buttons */
  #overview.tab-content > div[style*="margin-top: 3rem"] > div[style*="background-color"] > div[style*="display: flex"] button {
    flex: 0 1 auto !important;
    padding: 0.7rem 1rem !important;
    font-size: 0.95rem !important;
    min-width: 100px !important;
    max-width: none !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Subscription card titles in overview */
  #overview.tab-content > div[style*="margin-top: 3rem"] > div[style*="background-color"] > div > h3 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.8rem !important;
    color: rgb(var(--color-foreground)) !important;
    font-weight: 600 !important;
  }

  /* Subscription card paragraphs in overview */
  #overview.tab-content > div[style*="margin-top: 3rem"] > div[style*="background-color"] > div > p {
    font-size: 1.25rem !important;
    line-height: 1.5 !important;
    margin: 0.5rem 0 !important;
    color: rgba(var(--color-foreground), 0.8) !important;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Subscriptions tab mobile styling */
  #subscriptions {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
  }
  
  #subscriptions > div {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  #subscriptions .subscription-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 1rem !important;
    margin: 0 0 1rem !important;
    overflow-x: hidden !important;
    border-radius: 0 !important;
    border: none !important;
  }

  /* Individual subscription items */
  #subscriptions .subscription-card > div[style*="background-color: rgb"] {
    padding: 0.8rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
  }
  
  /* Remove all borders and border-radius from subscription containers */
  #subscriptions div[style*="border-radius"] {
    border-radius: 0 !important;
  }
  
  #subscriptions div[style*="border:"] {
    border: none !important;
  }
  
  /* Pricing Details and Address Deadline sections */
  #subscriptions div[style*="padding: 1.5rem; margin-bottom: 1.5rem"] {
    padding: 0.8rem !important;
    margin-bottom: 0.8rem !important;
    border-radius: 0 !important;
    border: none !important;
  }
  
  /* Active and Paused subscription containers */
  #subscriptions > div > div[style*="background-color: rgba"] {
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  #subscriptions > div > div[style*="background-color: rgba"] > h3 {
    padding: 0.8rem !important;
    margin: 0 !important;
  }
  
  #subscriptions > div > div[style*="background-color: rgba"] > div[style*="background-color: rgb"] {
    padding: 0.8rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
  }

  /* Pricing details section in subscriptions tab - allow horizontal scroll */
  #subscriptions .subscription-card > div[style*="background-color"][style*="padding: 1.5rem"] {
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.3rem !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    min-width: 0 !important;
  }

  #subscriptions .subscription-card > div[style*="background-color"] h5,
  #subscriptions .subscription-card > div[style*="background-color"] h3 {
    font-size: 1.4rem !important;
    margin-bottom: 1rem !important;
    font-weight: 600 !important;
  }

  #subscriptions .subscription-card > div[style*="background-color"] span {
    font-size: 1.3rem !important;
    white-space: nowrap !important;
  }

  #subscriptions .subscription-card > div[style*="background-color"] div[style*="display: flex"] {
    margin-bottom: 0.8rem !important;
    min-width: 0 !important;
    gap: 1rem !important;
  }

  #subscriptions .subscription-card > div[style*="background-color"] div[style*="display: flex"] > span:first-child {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #subscriptions .subscription-card > div[style*="background-color"] div[style*="display: flex"] > span:last-child {
    flex: 0 0 auto !important;
    margin-left: 0.5rem !important;
  }

  #subscriptions .subscription-card > div[style*="background-color"] div[style*="font-weight: 600"] span {
    font-size: 1.4rem !important;
  }

  #subscriptions .subscription-card > div[style*="background-color"] hr {
    margin: 1rem 0 !important;
  }

  /* First subscription card title and details */
  #subscriptions .subscription-card h4,
  #subscriptions .subscription-card h3 {
    font-size: 1.3rem !important;
  }

  #subscriptions .subscription-card > div > div > p {
    font-size: 1.2rem !important;
  }

  #subscriptions .subscription-card .subscription-grid > div > div:first-child,
  #subscriptions .subscription-card > div[style*="grid-template-columns"] > div > div:first-child {
    font-size: 1.1rem !important;
  }

  #subscriptions .subscription-card .subscription-grid > div > div:last-child,
  #subscriptions .subscription-card > div[style*="grid-template-columns"] > div > div:last-child {
    font-size: 1.3rem !important;
  }

  #subscriptions {
    overflow-x: visible !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #subscriptions > div {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Increase grid gap for subscription details */
  #subscriptions .subscription-card > div[style*="grid-template-columns"] {
    gap: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Subscription button container - 2x2 grid layout */
  #subscriptions .subscription-card > div[style*="display: grid"][style*="grid-template-columns"][style*="gap: 0.3rem"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.3rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #subscriptions .subscription-card > div[style*="display: grid"][style*="grid-template-columns"] button {
    padding: 0.15rem 0.25rem !important;
    font-size: 0.4rem !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    text-align: center !important;
    width: 100% !important;
  }

  /* Address tab buttons - MOBILE ONLY */
  #addresses {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
  }
  
  #addresses .address-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.5rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
  }
  
  #addresses .address-card div[style*="display: flex"][style*="gap: 1rem"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.2rem !important;
    width: 100% !important;
    margin-top: 0.3rem !important;
  }

  #addresses .address-card div[style*="display: flex"][style*="gap: 1rem"] > div {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.3rem !important;
    width: 100% !important;
  }

  #addresses .address-card div[style*="display: flex"][style*="gap: 1rem"] > div > button {
    flex: 0 1 auto !important;
    padding: 0.8rem 0.4rem !important;
    font-size: 1.05rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 80px !important;
  }

  #addresses .address-card div[style*="display: flex"][style*="gap: 1rem"] > div:last-child {
    width: 100% !important;
  }

  #addresses .address-card div[style*="display: flex"][style*="gap: 1rem"] > div:last-child > button {
    width: 100% !important;
  }

  /* Payment methods buttons - MOBILE ONLY */
  #payment-methods {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
  }
  
  #payment-methods div[style*="display: flex"][style*="gap: 1rem"] button {
    font-size: 1.05rem !important;
    padding: 0.4rem 0.5rem !important;
  }

  /* Compact Add Payment Method button - mobile override */
  #payment-methods > div[style*="display: flex"] > button[onclick*="openPaymentModal"] {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.6rem !important;
  }

  /* Compact Add New Address button - mobile override */
  #addresses > div[style*="display: flex"] > button[onclick*="openAddressWizard"] {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.6rem !important;
  }

  /* Compact subscription action buttons - mobile override */
  #subscriptions div[style*="display: grid"][style*="grid-template-columns"] button {
    font-size: 0.6rem !important;
    padding: 0.2rem 0.4rem !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }

  /* Personal Info tab - MOBILE ONLY */
  #personal-info {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    background: transparent !important;
  }
  
  #personal-info .personal-info-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }
  
  #personal-info form {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }
  
  #personal-info .form-row {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
  }
  
  #personal-info .form-group {
    padding: 0.5rem !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    background: transparent !important;
  }
  
  #personal-info .form-group input,
  #personal-info .form-group select,
  #personal-info .form-group label {
    background-color: rgb(var(--color-background)) !important;
  }
  
  #personal-info .button-container {
    margin-top: 1.5rem !important;
    padding: 0 0.5rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: rgb(var(--color-background)) !important;
    box-sizing: border-box !important;
  }
  
  #personal-info .button-container button {
    background-color: #FFF6EA !important;
  }
  
  #personal-info button {
    width: calc(100% - 1rem) !important;
    max-width: calc(100% - 1rem) !important;
    padding: 1rem 1.5rem !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
  }
  
  #personal-info .phone-input {
    gap: 0.8rem !important;
  }

  .orders-table {
    font-size: 1.4rem;
  }

  .orders-table th,
  .orders-table td {
    padding: 0.8rem;
    font-size: 1.2rem;
  }

  .modal-container {
    width: 95%;
    margin: 1rem;
  }

  .wizard-steps {
    padding: 0 1rem;
  }

  .step-line {
    width: 2rem;
  }

  /* Mobile Order Navigation */
  .mobile-order-nav {
    display: block !important;
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .desktop-order-nav {
    display: none !important;
  }
  
  .mobile-order-tab-select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 0.1rem solid rgba(var(--color-foreground), 0.2);
    border-radius: var(--inputs-radius);
    background-color: rgb(var(--color-background));
    color: rgb(var(--color-foreground));
    font-size: 1.6rem;
    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='currentColor' 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 1rem center;
    background-size: 1.5rem;
  }
  
  /* Mobile order card layout */
  .order-card {
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .order-card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Mobile button sizing */
  .mobile-btn {
    padding: 0.8rem 1.2rem;
    font-size: 1.2rem;
    margin: 0.3rem;
  }
  
  /* Mobile overview layout */
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .overview-btn {
    padding: 0.8rem 1rem;
    font-size: 1.2rem;
    min-width: auto;
  }
  
  /* Mobile subscription layout */
  .subscription-card {
    padding: 1rem !important;
    margin: 0 0 1rem !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .subscription-card h3,
  .subscription-card h4 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  .subscription-card p {
    font-size: 1.4rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.8rem !important;
  }
  
  .subscription-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  /* Address cards */
  .address-card {
    padding: 1rem 0.8rem !important;
    margin-left: -0.5rem !important;
    margin-right: -0.5rem !important;
    box-sizing: border-box !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
    min-width: 100% !important;
  }

  /* Address card content */
  .address-card h3 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.2rem !important;
  }

  .address-card div[style*="color: rgba"] {
    font-size: 1.5rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.2rem !important;
  }

  .address-card p {
    font-size: 1.4rem !important;
    line-height: 1.4 !important;
    margin: 0.5rem 0 !important;
  }

  .address-card div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 0.8rem !important;
    width: 100% !important;
  }

  .address-card button {
    width: 100% !important;
    padding: 1rem !important;
    font-size: 1.3rem !important;
    text-align: center !important;
  }

  /* Compact Add Payment Method button - 768px override */
  #payment-methods > div[style*="display: flex"] > button[onclick*="openPaymentModal"] {
    font-size: 0.85rem !important;
    padding: 0.35rem 0.7rem !important;
  }

  /* Compact Add New Address button - 768px override */
  #addresses > div[style*="display: flex"] > button[onclick*="openAddressWizard"] {
    font-size: 0.85rem !important;
    padding: 0.35rem 0.7rem !important;
  }

  /* Compact subscription action buttons - 768px override */
  #subscriptions div[style*="display: grid"][style*="grid-template-columns"] button {
    font-size: 0.65rem !important;
    padding: 0.22rem 0.45rem !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }

/* Payment Methods Grid Layout */
.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
}

@media screen and (min-width: 768px) {
  .payment-methods-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* Mobile Mini Credit Card Design */
@media screen and (max-width: 990px) {
  .payment-methods-grid {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .payment-methods-grid > div {
    background: linear-gradient(135deg, rgba(var(--color-foreground), 0.05) 0%, rgba(var(--color-foreground), 0.02) 100%) !important;
    border-radius: 0 !important;
    padding: 0.5rem !important;
    border: none !important;
    border-bottom: 1px solid rgba(var(--color-foreground), 0.1) !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  .payment-methods-grid > div[style*="border: 0.2rem solid"] {
    border: none !important;
    border-bottom: 2px solid rgba(var(--color-button), 0.3) !important;
    background: linear-gradient(135deg, rgba(var(--color-button), 0.05) 0%, rgba(var(--color-button), 0.02) 100%) !important;
  }
  
  .payment-methods-grid > div > div[style*="display: flex; align-items: center; justify-content: space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.8rem !important;
    margin-bottom: 1.2rem !important;
  }
  
  .payment-methods-grid > div > div[style*="display: flex; align-items: center; justify-content: space-between"] > div:first-child {
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    width: 100% !important;
  }
  
  .payment-methods-grid > div > div[style*="display: flex; align-items: center; justify-content: space-between"] > div:last-child {
    width: 100% !important;
    text-align: left !important;
    margin-top: 0.3rem !important;
  }
  
  .payment-methods-grid span[style*="background-color: #FFF6EA"] {
    display: inline-block !important;
    padding: 0.4rem 0.8rem !important;
    font-size: 1rem !important;
    border-radius: 16px !important;
    margin: 0 !important;
  }
  
  .payment-methods-grid > div > div[style*="width: 60px"] {
    width: 45px !important;
    height: 32px !important;
    font-size: 11px !important;
    border-radius: 5px !important;
  }
  
  .payment-methods-grid h4 {
    font-size: 1.3rem !important;
    margin-bottom: 0.2rem !important;
  }
  
  .payment-methods-grid p {
    font-size: 1rem !important;
  }
  
  .payment-methods-grid > div > div[style*="display: flex; gap: 1rem; flex-wrap: wrap;"] {
    flex-direction: row !important;
    gap: 0.6rem !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  
  .payment-methods-grid > div > div[style*="display: flex; gap: 1rem; flex-wrap: wrap;"] button {
    flex: 1 !important;
    min-width: auto !important;
    padding: 0.6rem 0.8rem !important;
    font-size: 1rem !important;
    white-space: nowrap !important;
    text-align: center !important;
  }
  
  .payment-methods-grid > div > div[style*="display: flex; gap: 1rem; flex-wrap: wrap;"] button:first-child {
    flex: 1.2 !important;
  }
  
  .payment-methods-grid > div > div[style*="display: flex; gap: 1rem; flex-wrap: wrap;"] button:last-child {
    flex: 1.1 !important;
  }
}

/* Desktop Grid Layout */
@media screen and (min-width: 991px) {
  .payment-methods-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
  }
  
  .payment-methods-grid > div {
    min-height: 0 !important;
  }
  
  .payment-methods-grid > div > div[style*="display: flex; gap: 1rem; flex-wrap: wrap;"] {
    gap: 0.8rem !important;
  }
  
  .payment-methods-grid > div > div[style*="display: flex; gap: 1rem; flex-wrap: wrap;"] button {
    padding: 0.7rem 1rem !important;
    font-size: 1.1rem !important;
  }
}

  .payment-method-card h3 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
  }

  .payment-method-card p {
    font-size: 1.4rem !important;
    line-height: 1.4 !important;
  }

  /* Orders tab container - allow horizontal scrolling */
  #orders {
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Order subtab content */
  .order-subtab-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    padding: 0 !important;
  }

  /* Orders grid */
  .orders-grid {
    width: 100% !important;
    gap: 1rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Order cards */
  .order-card {
    width: calc(100% - 0.4rem) !important;
    padding: 0.4rem !important;
    margin: 0 0.2rem 0.8rem 0.2rem !important;
    max-width: calc(100% - 0.4rem) !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }

  /* Force all mobile order card content to stay within bounds */
  .order-card * {
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
  }

  /* Order card inner content */
  .order-card > div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    min-width: 0 !important;
  }

  .order-card .subscription-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.3rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    min-width: 0 !important;
  }
    box-sizing: border-box !important;
  }

  .order-card .subscription-grid > div {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
  }

  /* Order actions - arrange buttons in 2 rows */
  .order-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.05rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Button rows - 2 buttons per row */
  .order-actions > div {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.4rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .order-actions button {
    /* Reverted to original button styling */
  }

  /* Items included section */
  .order-card div[style*="background-color: rgba(var(--color-foreground), 0.04)"] {
    padding: 0.4rem !important;
    margin-bottom: 0.6rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.9rem !important;
  }

  /* Order status and header */
  .order-card h4 {
    font-size: 1.1rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0.4rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  .order-card p {
    font-size: 0.9rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0.4rem !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
}

@media screen and (max-width: 480px) {
  .mobile-header {
    padding: 0.8rem 1rem;
  }

  .account-content {
    padding: 0.8rem;
    max-height: calc(100vh - 70px);
  }

  .tab-content {
    padding: 0;
    margin-bottom: 1rem;
  }

  .account-title {
    font-size: 2rem;
    margin: 0;
  }

  .orders-table {
    font-size: 1.2rem;
  }

  .orders-table th,
  .orders-table td {
    padding: 0.6rem;
  }

  .modal-container {
    width: 98%;
    margin: 0.5rem;
    max-height: 95vh;
  }

  .orders-table td.actions-cell {
    padding: 0.4rem;
  }

  .order-card {
    padding: 1rem;
    margin-bottom: 0.8rem;
  }

  .overview-btn {
    padding: 1rem 0.8rem;
    font-size: 1.3rem;
  }

  .subscription-card {
    padding: 1rem !important;
    margin: 0 0 0.8rem !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* All cards on small mobile */
  .address-card,
  .payment-method-card,
  .order-card,
  .subscription-card {
    margin-left: -0.8rem !important;
    margin-right: -0.8rem !important;
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
  }

  /* Overview cards on small mobile */
  #overview .tab-content > div[style*="background-color"] {
    padding: 1rem 1.5rem !important;
    margin-bottom: 0.8rem !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-0.8rem) !important;
    margin-right: calc(-0.8rem) !important;
    box-sizing: border-box !important;
  }

  #overview .form-row > div {
    padding: 1rem 1.5rem !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-0.8rem) !important;
    margin-right: calc(-0.8rem) !important;
    box-sizing: border-box !important;
  }

  /* Order cards on small mobile */
  .order-card {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .order-card .subscription-grid {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    min-width: 0 !important;
  }

  .order-card > div[style*="display: flex"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.8rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    min-width: 0 !important;
  }

  .order-card > div[style*="display: flex"] > div:last-child {
    text-align: left !important;
    align-self: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .order-actions {
    flex-direction: column !important;
    gap: 0.6rem !important;
  }

  .order-actions button {
    padding: 0.8rem 1rem !important;
    font-size: 1.2rem !important;
  }

  /* Address cards on small mobile */
  .address-card h3 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }

  .address-card p {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
  }

  .address-card button {
    font-size: 1.2rem !important;
    padding: 0.8rem !important;
  }

  /* Payment cards on small mobile */
  .payment-method-card h3 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }

  .payment-method-card p {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
  }

  /* Compact Add Payment Method button - 480px override */
  #payment-methods > div[style*="display: flex"] > button[onclick*="openPaymentModal"] {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
  }

  /* Compact Add New Address button - 480px override */
  #addresses > div[style*="display: flex"] > button[onclick*="openAddressWizard"] {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
  }

  /* Compact subscription action buttons - 480px override */
  #subscriptions div[style*="display: grid"][style*="grid-template-columns"] button {
    font-size: 0.55rem !important;
    padding: 0.18rem 0.35rem !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }

  /* Subscription cards on small mobile */
  .subscription-card h3,
  .subscription-card h4 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }

  .subscription-card p {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
  }

  /* Empty state */
  .empty-state {
    width: 100% !important;
    text-align: center !important;
    padding: 2rem 1rem !important;
  }

  /* All tab content containers */
  .tab-content > div,
  .tab-content > section,
  .tab-content > form {
    width: 100% !important;
    max-width: none !important;
  }

  /* Form elements */
  .tab-content form,
  .tab-content .form-group,
  .tab-content .form-row {
    width: 100% !important;
  }

  .tab-content input,
  .tab-content select,
  .tab-content textarea {
    width: 100% !important;
    max-width: none !important;
  }
}

.account-sidebar {
  background-color: rgba(var(--color-foreground), 0.04);
  border-radius: var(--media-radius);
  padding: 2.5rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
  width: 350px;
  flex-shrink: 0;
}

@media screen and (max-width: 1200px) {
  .account-sidebar {
    width: 320px;
    padding: 2rem;
  }
}

.account-sidebar h3 {
  color: rgb(var(--color-foreground));
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: var(--font-heading-weight);
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 3rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 1.5rem 1.5rem;
  color: rgba(var(--color-foreground), 0.75);
  text-decoration: none;
  border-radius: var(--buttons-radius);
  transition: all 0.3s ease;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.sidebar-nav a:hover {
  background-color: #FFF6EA;
  color: #4C5151;
  box-shadow: 0 0.2rem 1rem rgba(var(--color-shadow), 0.1);
}

.sidebar-nav a.active {
  background-color: #FFF6EA;
  color: #4C5151;
  box-shadow: 0 0.4rem 1.5rem rgba(var(--color-shadow), 0.2);
}

/* Desktop-only transform effect */
@media (min-width: 991px) {
  .sidebar-nav a:hover,
  .sidebar-nav a.active {
    transform: translateX(0.5rem);
  }
}



.sidebar-nav svg {
  width: 2rem;
  height: 2rem;
  margin-right: 1.2rem;
}

.account-content {
  background-color: rgb(var(--color-background));
  border-radius: var(--media-radius);
  padding: 2.5rem;
  box-shadow: 0 0.2rem 0.8rem rgba(var(--color-shadow), 0.1);
  font-size: 1.8rem;
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  max-height: calc(100vh - 4rem);
}

@media screen and (max-width: 1200px) {
  .account-content {
    padding: 2rem;
  }
}

.tab-content {
  background-color: rgb(var(--color-background));
  border-radius: var(--media-radius);
  padding: 3rem;
  box-shadow: 0 0.2rem 0.8rem rgba(var(--color-shadow), 0.1);
  min-height: 600px;
  font-size: 1.8rem;
}

.tab-content {
  display: none;
}

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

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.2);
}

.account-title {
  font-size: 3.5rem;
  color: rgb(var(--color-foreground));
  margin: 0;
}

.logout-link {
  display: flex;
  align-items: center;
  color: rgba(var(--color-foreground), 0.75);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.logout-link:hover {
  color: rgb(var(--color-foreground));
}

.logout-link svg {
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.5rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgb(var(--color-foreground));
  font-weight: 500;
  font-size: 1.8rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 0.1rem solid rgba(var(--color-foreground), 0.2);
  border-radius: var(--inputs-radius);
  font-size: 1.8rem;
  background-color: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(var(--color-button), 0.8);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.personal-info-container {
  max-width: 800px;
  margin: 0;
}

.phone-input {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone-input select {
  width: 100px;
  flex-shrink: 0;
}

.phone-input input {
  flex-grow: 1;
}

@media screen and (max-width: 990px) {
  .phone-input {
    gap: 0.5rem;
  }
  
  .phone-input select {
    width: 80px !important;
    font-size: 1.3rem !important;
    padding: 0.8rem 0.3rem !important;
    flex-shrink: 0 !important;
  }
  
  .phone-input input {
    flex-grow: 1 !important;
    font-size: 1.4rem !important;
    padding: 1rem !important;
  }
}

@media screen and (max-width: 750px) {
  .form-row {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

.btn-primary {
  background-color: #FFF6EA;
  color: #4C5151;
  border: none;
  padding: 1.2rem 2.4rem;
  border-radius: var(--buttons-radius);
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-0.1rem);
  box-shadow: 0 0.4rem 0.8rem rgba(var(--color-shadow), 0.2);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.orders-table th,
.orders-table td {
  padding: 1.2rem;
  text-align: left;
  border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.1);
}

.orders-table th {
  background-color: rgba(var(--color-foreground), 0.04);
  font-weight: 600;
  color: rgb(var(--color-foreground));
}

.address-card {
  background-color: rgba(var(--color-foreground), 0.04);
  border-radius: var(--media-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.address-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.address-actions button {
  background: none;
  border: none;
  color: rgba(var(--color-foreground), 0.75);
  cursor: pointer;
  margin-left: 1rem;
  font-size: 1.2rem;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-container {
  background-color: rgb(var(--color-background));
  border-radius: var(--media-radius);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 1rem 3rem rgba(var(--color-shadow), 0.3);
  transform: translateY(-2rem);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 2rem;
  color: rgb(var(--color-foreground));
  margin: 0;
}

.modal-close {
  background: #4C5151 !important;
  border: none !important;
  font-size: 2rem;
  color: #FFF6EA !important;
  cursor: pointer;
  padding: 0.5rem 1rem;
  line-height: 1;
  border-radius: var(--buttons-radius) !important;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background-color: #FFF6EA !important;
  color: #4C5151 !important;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 1rem 2rem 2rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Wizard Steps */
.wizard-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 0 2rem;
}

.wizard-step {
  display: flex;
  align-items: center;
}

.step-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(var(--color-foreground), 0.2);
  color: rgba(var(--color-foreground), 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.step-circle.active {
  background-color: rgba(var(--color-button), var(--alpha-button-background));
  color: rgb(var(--color-button-text));
}

.step-circle.completed {
  background-color: #FFF6EA;
  color: #4C5151;
}

.step-line {
  width: 4rem;
  height: 0.2rem;
  background-color: rgba(var(--color-foreground), 0.2);
  transition: all 0.3s ease;
}

.step-line.completed {
  background-color: #FFF6EA;
}

.wizard-content {
  min-height: 300px;
}

.wizard-step-content {
  display: none;
}

.wizard-step-content.active {
  display: block;
}

/* Order Subtabs Styles */
.order-subtab-content {
  display: none;
}

.order-subtab-content.active {
  display: block;
}

/* Mobile-specific classes */
.mobile-btn {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  border-radius: var(--buttons-radius);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0.3rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.overview-btn {
  background-color: #FFF6EA;
  color: #4C5151;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: var(--buttons-radius);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  text-align: center;
}

.order-card {
  background-color: rgba(var(--color-foreground), 0.04);
  border-radius: var(--media-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.order-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.subscription-card {
  background-color: rgb(var(--color-background));
  border-radius: var(--media-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 0.1rem solid rgba(var(--color-foreground), 0.1);
}

.subscription-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Enhanced Orders Tab Styles */
.orders-container {
  margin: 0 auto;
}

.order-tabs {
  margin-bottom: 2rem;
  border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.2);
}

.desktop-order-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.desktop-order-nav .order-subtab {
  background: transparent !important;
  border: none !important;
  padding: 1rem 2rem;
  cursor: pointer;
  color: rgba(var(--color-foreground), 0.75);
  border-bottom: 0.2rem solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: 1.4rem;
  font-weight: 500;
}

.desktop-order-nav .order-subtab:hover {
  color: rgba(var(--color-foreground), 0.9);
  background-color: rgba(var(--color-foreground), 0.05) !important;
}

.desktop-order-nav .order-subtab.active {
  color: rgba(var(--color-button), var(--alpha-button-background));
  border-bottom-color: rgba(var(--color-button), var(--alpha-button-background));
  font-weight: 600;
  background: transparent !important;
}

.orders-grid {
  display: grid;
  gap: 1.5rem;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

.order-card {
  background-color: rgba(var(--color-foreground), 0.04);
  border-radius: var(--media-radius);
  padding: 1.5rem;
  border-left: 0.4rem solid transparent;
  transition: all 0.3s ease;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  min-width: 0 !important;
  flex-shrink: 1 !important;
}

/* Force all order card content to stay within bounds */
.order-card * {
  box-sizing: border-box !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  hyphens: auto !important;
}

/* Specific containment for order card children */
.order-card > div,
.order-card > h5,
.order-card > p,
.order-card > ul,
.order-card > h3 {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  min-width: 0 !important;
}

/* Force subscription grid to stay within bounds */
.order-card .subscription-grid {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap: 0.5rem !important;
}

/* Force subscription grid items to stay within bounds */
.order-card .subscription-grid > div {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  word-wrap: break-word !important;
}

/* Force order actions to stay within bounds */
.order-card .order-actions {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
}

.order-card .order-actions > div {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
}

.order-card .order-actions button {
  /* Reverted to original button styling */
}

/* Force lists to stay within bounds */
.order-card ul {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-left: 1.5rem !important;
}

.order-card ul li {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  word-wrap: break-word !important;
  line-height: 1.4 !important;
  margin-bottom: 0.5rem !important;
}

/* Force all text elements to wrap */
.order-card h5,
.order-card p,
.order-card h3,
.order-card div {
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  hyphens: auto !important;
  max-width: 100% !important;
}

.order-card:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.4rem 0.8rem rgba(var(--color-shadow), 0.15);
}

.order-card.upcoming {
  border-left-color: #ffc107;
}

.order-card.scheduled {
  border-left-color: #17a2b8;
}

.order-card.pending {
  border-left-color: #6c757d;
}

.order-card.cancelled {
  border-left-color: #dc3545;
}

/* Ensure Order #1415 unordered list matches other order cards container width */
.order-card:not(.subscription-card) > div[style*="background-color: rgba"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.order-card:not(.subscription-card) > div[style*="background-color: rgba"] ul {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding-left: 1.5rem !important;
  font-size: 1.3rem !important;
  list-style-position: inside !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  overflow: hidden !important;
}

.order-card:not(.subscription-card) > div[style*="background-color: rgba"] ul li {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  line-height: 1.4 !important;
  margin-bottom: 0.5rem !important;
  text-align: left !important;
  overflow: hidden !important;
}

/* Ensure Order #1415 list items with long text wrap properly */
.order-card:not(.subscription-card) > div[style*="background-color: rgba"] ul li:contains("Ice Planet Barbarians") {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  max-width: calc(100% - 1.5rem) !important;
  box-sizing: border-box !important;
}

/* Make Order #1415 list behave exactly like subscription-card lists */
.order-card:not(.subscription-card) > div[style*="background-color: rgba"] ul {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.order-card:not(.subscription-card) > div[style*="background-color: rgba"] ul li {
  display: list-item !important;
  list-style-position: inside !important;
  text-indent: -1.5rem !important;
  padding-left: 1.5rem !important;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.order-info h4 {
  color: rgb(var(--color-foreground));
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.order-info p {
  color: rgba(var(--color-foreground), 0.75);
  margin: 0;
  font-size: 1.2rem;
}

.order-status {
  padding: 0.4rem 0.8rem;
  border-radius: var(--buttons-radius);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.order-status.upcoming {
  background-color: #ffc107;
  color: #000;
}

.order-status.scheduled {
  background-color: #17a2b8;
  color: white;
}

.order-status.pending {
  background-color: #6c757d;
  color: white;
}

.order-status.cancelled {
  background-color: #dc3545;
  color: white;
}

.order-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.order-section h5 {
  color: rgb(var(--color-foreground));
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.order-section ul {
  color: rgba(var(--color-foreground), 0.8);
  margin: 0;
  padding-left: 1.5rem;
  font-size: 1.2rem;
}

.order-section li {
  margin-bottom: 0.3rem;
}

.order-section p {
  color: rgba(var(--color-foreground), 0.8);
  margin: 0.3rem 0;
  font-size: 1.2rem;
}

.order-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: #FFF6EA;
  color: #4C5151;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: var(--buttons-radius);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-0.1rem);
  box-shadow: 0 0.2rem 0.4rem rgba(var(--color-shadow), 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: rgba(var(--color-foreground), 0.75);
  border: 0.1rem solid rgba(var(--color-foreground), 0.3);
  padding: 0.8rem 1.5rem;
  border-radius: var(--buttons-radius);
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgba(var(--color-foreground), 0.05);
  border-color: rgba(var(--color-foreground), 0.4);
}

.btn-outline {
  background-color: transparent;
  color: rgba(var(--color-button), var(--alpha-button-background));
  border: 0.1rem solid rgba(var(--color-button), 0.3);
  padding: 0.8rem 1.5rem;
  border-radius: var(--buttons-radius);
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: rgba(var(--color-button), 0.1);
  border-color: rgba(var(--color-button), 0.5);
}

.btn-small {
  background-color: #FFF6EA;
  color: #4C5151;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--buttons-radius);
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
}

.btn-small:hover {
  transform: translateY(-0.1rem);
  box-shadow: 0 0.2rem 0.4rem rgba(var(--color-shadow), 0.2);
}

.btn-small.btn-outline {
  background-color: transparent;
  color: rgba(var(--color-foreground), 0.75);
  border: 0.1rem solid rgba(var(--color-foreground), 0.3);
}

/* Modern Datatable Styles */
.datatable-container {
  background-color: rgb(var(--color-background));
  border-radius: var(--media-radius);
  box-shadow: 0 0.1rem 0.3rem rgba(var(--color-shadow), 0.1);
  overflow: hidden;
}

.datatable-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: rgba(var(--color-foreground), 0.02);
  border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.1);
  gap: 1rem;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 250px;
}

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

.search-icon {
  position: absolute;
  left: 1rem;
  color: rgba(var(--color-foreground), 0.5);
  font-size: 1.2rem;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  border: 0.1rem solid rgba(var(--color-foreground), 0.2);
  border-radius: var(--inputs-radius);
  background-color: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: rgba(var(--color-button), 0.5);
  box-shadow: 0 0 0 0.2rem rgba(var(--color-button), 0.1);
}

.filter-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.8rem 1rem;
  border: 0.1rem solid rgba(var(--color-foreground), 0.2);
  border-radius: var(--inputs-radius);
  background-color: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  font-size: 1.3rem;
  min-width: 150px;
  transition: all 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: rgba(var(--color-button), 0.5);
  box-shadow: 0 0 0 0.2rem rgba(var(--color-button), 0.1);
}

.orders-table-wrapper {
  overflow-x: auto;
  background-color: rgb(var(--color-background));
}

.modern-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
  background-color: rgb(var(--color-background));
}

.modern-orders-table th,
.modern-orders-table td {
  padding: 1rem 0.8rem;
  text-align: left;
  border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.08);
  vertical-align: middle;
}

.modern-orders-table th {
  background-color: rgba(var(--color-foreground), 0.03);
  font-weight: 600;
  color: rgb(var(--color-foreground));
  font-size: 1.4rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modern-orders-table tbody tr:hover {
  background-color: rgba(var(--color-foreground), 0.02);
}

.order-row {
  transition: background-color 0.2s ease;
}

/* ── Order action row (sits directly beneath the data row) ─────────────── */
.order-actions-row td.order-actions-cell {
  padding: 0.4rem 1.2rem 0.9rem;
  border-top: none !important;
  background-color: rgba(var(--color-foreground), 0.015);
}

.order-actions-row + .order-row td:first-child,
.order-row + .order-actions-row td {
  border-top: none;
}

.order-action-buttons {
  display: flex;
  flex-wrap: nowrap;   /* desktop: all 4 buttons stay on one line */
  gap: 0.4rem;
  align-items: center;
}

.order-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  height: 2.8rem;
  border-radius: var(--buttons-radius, 0.4rem);
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
  line-height: 1;
  vertical-align: middle;
  box-sizing: border-box;
}

.order-action-btn:hover {
  opacity: 0.85;
}

.order-action-btn--primary {
  background: #910F3F;
  color: #fff;
  border: 0.1rem solid #910F3F;
  font-weight: 600;
}

.order-action-btn--danger {
  background: transparent;
  color: #dc3545;
  border: 0.1rem solid #dc3545;
}

.order-action-btn--secondary {
  background: transparent;
  color: rgba(var(--color-foreground), 0.75);
  border: 0.1rem solid rgba(var(--color-foreground), 0.25);
}

/* Reset native <button> styles so all action buttons look identical */
button.order-action-btn {
  appearance: none;
  -webkit-appearance: none;
  background-clip: padding-box;
  font-family: inherit;
  font-size: inherit;
  box-sizing: border-box;
  border: 0.1rem solid transparent;
  vertical-align: middle;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.action-item {
  display: inline-block;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  color: rgba(var(--color-foreground), 0.6);
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-size: 1.2rem;
}

.action-link:hover {
  background-color: rgba(var(--color-button), 0.1);
  color: rgba(var(--color-button), var(--alpha-button-background));
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  background: transparent;
  border: 0.1rem solid rgba(var(--color-foreground), 0.2);
  border-radius: 50%;
  color: rgba(var(--color-foreground), 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.2rem;
}

.dropdown-toggle:hover {
  background-color: rgba(var(--color-button), 0.1);
  border-color: rgba(var(--color-button), 0.3);
  color: rgba(var(--color-button), var(--alpha-button-background));
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: rgb(var(--color-background));
  border: 0.1rem solid rgba(var(--color-foreground), 0.2);
  border-radius: var(--media-radius);
  box-shadow: 0 0.4rem 0.8rem rgba(var(--color-shadow), 0.15);
  z-index: 1000;
  min-width: 180px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: all 0.2s ease;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  color: rgb(var(--color-foreground));
  text-decoration: none;
  font-size: 1.3rem;
  transition: all 0.2s ease;
  gap: 0.8rem;
}

.dropdown-item:hover {
  background-color: rgba(var(--color-foreground), 0.05);
  color: rgba(var(--color-button), var(--alpha-button-background));
}

.dropdown-icon {
  font-size: 1.2rem;
  width: 1.5rem;
  text-align: center;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  background-color: rgb(var(--color-background));
}

.no-results-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-results h4 {
  color: rgb(var(--color-foreground));
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

.no-results p {
  color: rgba(var(--color-foreground), 0.7);
  font-size: 1.3rem;
  margin: 0;
}

/* Mobile Responsive Datatable */
@media screen and (max-width: 990px) {
  .datatable-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .search-box {
    min-width: 100%;
  }
  
  .filter-controls {
    justify-content: flex-start;
  }
  
  .filter-select {
    flex: 1;
    min-width: 120px;
  }
  
  .modern-orders-table {
    font-size: 1.1rem;
  }
  
  .modern-orders-table th,
  .modern-orders-table td {
    padding: 0.8rem 0.5rem;
  }
  
  .action-link,
  .dropdown-toggle {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
  
  .dropdown-item {
    padding: 0.6rem 0.8rem;
    font-size: 1.1rem;
  }
  
  .dropdown-icon {
    font-size: 1rem;
    width: 1.2rem;
  }

  .orders-table-container {
    margin: 0 auto;
  }
}

@media screen and (max-width: 768px) {
  .orders-table thead {
    display: none;
  }

  .orders-table tbody,
  .orders-table tr,
  .orders-table td {
    display: block;
  }

  /* Data rows get card styling */
  .orders-table tr.order-row {
    border: 1px solid rgba(var(--color-foreground), 0.1);
    border-bottom: none;
    border-radius: var(--media-radius) var(--media-radius) 0 0;
    margin-bottom: 0;
    padding: 1rem 1rem 0.5rem;
  }

  /* Action rows attach directly below */
  .orders-table tr.order-actions-row {
    border: 1px solid rgba(var(--color-foreground), 0.1);
    border-top: none;
    border-radius: 0 0 var(--media-radius) var(--media-radius);
    margin-bottom: 1.2rem;
    padding: 0;
  }

  .orders-table td {
    border: none;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 50%;
    text-align: right;
  }

  .orders-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 45%;
    padding-right: 1rem;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }

  /* Action cell resets the label-based layout */
  .orders-table td.order-actions-cell {
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: left;
  }

  .orders-table td.order-actions-cell:before {
    display: none;
  }

  /* Mobile: allow buttons to wrap across multiple lines */
  .order-action-buttons {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .order-action-btn {
    font-size: 1rem;
    padding: 0.35rem 0.75rem;
    height: 2.8rem;
    flex: 0 0 auto;
  }
  
  .order-row-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(var(--color-foreground), 0.1);
  }

  .order-row-mobile-header .order-link {
    font-size: 1.6rem;
    font-weight: bold;
  }
  
  .order-row-mobile-header .action-dropdown {
    margin-top: -1rem;
  }
}

@media screen and (max-width: 480px) {
  .datatable-controls {
    padding: 0.8rem;
  }
  
  .search-input {
    font-size: 1.1rem;
  }
  
  .filter-select {
    font-size: 1.1rem;
  }
  
  .dropdown-menu {
    min-width: 150px;
  }
  
  .dropdown-item {
    padding: 0.5rem 0.6rem;
    font-size: 1rem;
  }
  
  .no-results {
    padding: 3rem 1rem;
  }
  
  .no-results-icon {
    font-size: 3rem;
  }
  
  .no-results h4 {
    font-size: 1.4rem;
  }
  
  .no-results p {
    font-size: 1.1rem;
  }
}

.order-link {
  color: rgba(var(--color-button), var(--alpha-button-background));
  text-decoration: none;
  font-weight: 500;
}

.order-link:hover {
  text-decoration: underline;
}

.status-badge {
  padding: 0.3rem 0.6rem;
  border-radius: var(--buttons-radius);
  font-size: 1rem;
  font-weight: 500;
}

.status-badge.paid {
  background-color: #28a745;
  color: white;
}

.status-badge.pending {
  background-color: #ffc107;
  color: #000;
}

.status-badge.processing {
  background-color: #ffc107;
  color: #000;
}

.status-badge.fulfilled {
  background-color: #28a745;
  color: white;
}

.status-badge.delivered {
  background-color: #28a745;
  color: white;
}

.status-badge.unfulfilled {
  background-color: #6c757d;
  color: white;
}

.status-badge.other {
  background-color: #6c757d;
  color: white;
}

.order-total {
  font-weight: 600;
  color: rgb(var(--color-foreground));
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 1rem;
  color: rgba(var(--color-foreground), 0.75);
  margin-bottom: 0.3rem;
}

.meta-value {
  font-size: 1.2rem;
  color: rgb(var(--color-foreground));
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  background-color: rgba(var(--color-foreground), 0.04);
  border-radius: var(--media-radius);
  margin-top: 2rem;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state h4 {
  color: rgb(var(--color-foreground));
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.empty-state p {
  color: rgba(var(--color-foreground), 0.75);
  font-size: 1.3rem;
  margin: 0;
}

/* Modern Orders Table Styles */
.table-controls {
  margin-bottom: 1.5rem;
}

.search-filter-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-box .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(var(--color-foreground), 0.5);
  font-size: 1.2rem;
}

.search-input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  border: 0.1rem solid rgba(var(--color-foreground), 0.2);
  border-radius: var(--inputs-radius);
  background-color: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: rgba(var(--color-button), 0.5);
  box-shadow: 0 0 0 0.2rem rgba(var(--color-button), 0.1);
}

.filter-box {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.8rem 1rem;
  border: 0.1rem solid rgba(var(--color-foreground), 0.2);
  border-radius: var(--inputs-radius);
  background-color: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  font-size: 1.2rem;
  min-width: 120px;
}

.table-responsive {
  overflow-x: auto;
  background-color: rgb(var(--color-background));
  border-radius: var(--media-radius);
  box-shadow: 0 0.1rem 0.3rem rgba(var(--color-shadow), 0.1);
}

.action-dropdown {
  position: relative;
  text-align: center;
}

.action-toggle {
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--buttons-radius);
  transition: all 0.3s ease;
  display: inline-block;
}

.action-toggle:hover {
  background-color: rgba(var(--color-foreground), 0.1);
}

.more-icon {
  display: inline-block;
  transform: rotate(0deg);
  font-weight: bold;
}

.action-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: rgb(var(--color-background));
  border: 0.1rem solid rgba(var(--color-foreground), 0.2);
  border-radius: var(--buttons-radius);
  box-shadow: 0 0.2rem 0.5rem rgba(var(--color-shadow), 0.2);
  min-width: 180px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: all 0.3s ease;
}

.action-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.action-item {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  color: rgb(var(--color-foreground));
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.1);
}

.action-item:last-child {
  border-bottom: none;
}

.action-item:hover {
  background-color: rgba(var(--color-foreground), 0.05);
  color: rgba(var(--color-button), var(--alpha-button-background));
}

.action-icon {
  margin-right: 0.8rem;
  font-size: 1.1rem;
}

/* Mobile Responsive Styles for Orders Table */
@media screen and (max-width: 990px) {
  .search-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    min-width: auto;
  }
  
  .filter-box {
    justify-content: flex-start;
  }
  
  .filter-select {
    flex: 1;
    min-width: auto;
  }
  
  .action-menu {
    right: -1rem;
  }
}

@media screen and (max-width: 480px) {
  .search-filter-row {
    gap: 0.8rem;
  }
  
  .search-input {
    font-size: 1.1rem;
    padding: 0.6rem 0.8rem 0.6rem 2rem;
  }
  
  .filter-select {
    font-size: 1.1rem;
    padding: 0.6rem 0.8rem;
  }
  
  .action-item {
    padding: 0.6rem 0.8rem;
    font-size: 1.1rem;
  }
  
  .action-icon {
    margin-right: 0.6rem;
    font-size: 1rem;
  }
}

/* Mobile order card layout */
@media screen and (max-width: 768px) {
  .order-card.subscription-card {
    width: 100%;
    max-width: 100%;
  }
  
  .order-actions .btn-primary,
  .order-actions .btn-secondary,
  .order-actions .btn-outline {
    font-size: 1.2rem;
    padding: 0.8rem 1rem;
  }
}

/* Order Modal Styles */
.order-edit-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-section {
  padding: 1.5rem;
  background: rgba(var(--color-foreground), 0.04);
  border-radius: var(--media-radius);
}

.form-section h3 {
  margin-bottom: 1rem;
  color: rgb(var(--color-foreground));
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgb(var(--color-foreground));
  font-weight: 500;
}

/* Tracking Modal Styles */
.tracking-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tracking-header {
  text-align: center;
  padding: 1.5rem;
  background: rgba(var(--color-foreground), 0.04);
  border-radius: var(--media-radius);
}

.tracking-status {
  font-size: 1.6rem;
  font-weight: 600;
  color: #4CAF50;
  margin: 0.5rem 0 0 0;
}

.tracking-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.tracking-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: rgba(var(--color-foreground), 0.2);
}

.tracking-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(var(--color-foreground), 0.1);
  color: rgba(var(--color-foreground), 0.6);
  flex-shrink: 0;
}

.tracking-step.completed .step-icon {
  background: #4CAF50;
  color: white;
}

.tracking-step.active .step-icon {
  background: #2196F3;
  color: white;
}

.step-content h4 {
  margin: 0 0 0.5rem 0;
  color: rgb(var(--color-foreground));
}

.step-content p {
  margin: 0;
  color: rgba(var(--color-foreground), 0.75);
}

.step-content small {
  color: rgba(var(--color-foreground), 0.6);
}

.tracking-details {
  padding: 1.5rem;
  background: rgba(var(--color-foreground), 0.04);
  border-radius: var(--media-radius);
  text-align: center;
}

/* Review Modal Styles */
.review-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rating-section {
  text-align: center;
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.star {
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.star:hover {
  color: #FFD700;
}

/* Reorder Modal Styles */
.reorder-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.reorder-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: rgba(var(--color-foreground), 0.04);
  border-radius: var(--media-radius);
  gap: 1rem;
}

.item-info h4 {
  margin: 0 0 0.5rem 0;
  color: rgb(var(--color-foreground));
}

.item-info p {
  margin: 0 0 0.5rem 0;
  color: rgba(var(--color-foreground), 0.75);
}

.item-price {
  font-weight: 600;
  color: rgb(var(--color-foreground));
}

.item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reorder-summary {
  padding: 1.5rem;
  background: rgba(var(--color-foreground), 0.04);
  border-radius: var(--media-radius);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: rgba(var(--color-foreground), 0.8);
}

.summary-line.total {
  font-weight: 600;
  font-size: 1.2rem;
  color: rgb(var(--color-foreground));
  padding-top: 0.5rem;
  border-top: 0.1rem solid rgba(var(--color-foreground), 0.2);
}

/* Footer Fix for Enhanced Account Page */
.footer .page-width {
  max-width: var(--page-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media screen and (min-width: 750px) {
  .footer .page-width {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

@media (max-width: 768px) {
  .address-form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Tab-specific button font size increase */
#subscriptions button,
#addresses button,
#personal-info button,
#payment-methods button {
    font-size: 1.8rem !important;
}

/* Compact Add Payment Method button - override general button styling */
#payment-methods > div[style*="display: flex"] > button[onclick*="openPaymentModal"] {
    font-size: 0.9rem !important;
    padding: 0.4rem 0.8rem !important;
    background-color: #FFF6EA !important;
    color: #4C5151 !important;
    border: none !important;
    border-radius: var(--buttons-radius) !important;
    cursor: pointer !important;
}

/* Compact Add New Address button - override general button styling */
#addresses > div[style*="display: flex"] > button[onclick*="openAddressWizard"] {
    font-size: 0.9rem !important;
    padding: 0.4rem 0.8rem !important;
    background-color: #FFF6EA !important;
    color: #4C5151 !important;
    border: none !important;
    border-radius: var(--buttons-radius) !important;
    cursor: pointer !important;
}

/* Compact subscription action buttons - override general button styling */
#subscriptions div[style*="display: grid"][style*="grid-template-columns"] button {
    flex: 0 1 auto !important;
    padding: 0.25rem 0.5rem !important;
    text-align: center !important;
    font-size: 0.7rem !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    background-color: transparent !important;
    color: rgba(var(--color-foreground), 0.75) !important;
    border: 0.1rem solid rgba(var(--color-foreground), 0.3) !important;
    border-radius: var(--buttons-radius) !important;
    cursor: pointer !important;
}

/* Special styling for cancel button */
#subscriptions div[style*="display: grid"][style*="grid-template-columns"] button[onclick*="cancelSubscription"] {
    background-color: #910F3F !important;
    color: white !important;
    border: none !important;
}

/* Highly specific subscription action buttons - override all general styles */
#subscriptions div[style*="display: grid"][style*="grid-template-columns: auto auto"] button {
    font-size: 1.3rem !important;
    padding: 0.6rem 1.2rem !important;
    background-color: transparent !important;
    color: rgba(var(--color-foreground), 0.75) !important;
    border: 0.1rem solid rgba(var(--color-foreground), 0.3) !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
}

/* Special styling for cancel button with pill shape */
#subscriptions div[style*="display: grid"][style*="grid-template-columns: auto auto"] button[onclick*="cancelSubscription"] {
    background-color: #910F3F !important;
    color: white !important;
    border: none !important;
}

/* Hover effects for pill-shaped buttons */
#subscriptions div[style*="display: grid"][style*="grid-template-columns: auto auto"] button:hover {
    background-color: rgba(var(--color-foreground), 0.1) !important;
    transform: translateY(-1px) !important;
}

#subscriptions div[style*="display: grid"][style*="grid-template-columns: auto auto"] button[onclick*="cancelSubscription"]:hover {
    background-color: #7a0d36 !important;
}

/* Uniform section header sizing across all tabs */
.subscription-card h4,
.address-card h3,
.payment-method-card h3,
.personal-info-section h3,
.overview-card h3,
.pricing-details h5,
.modal-header h2,
.modal-header h3,
.section-title {
    font-size: 1.8rem !important;
    font-weight: 600 !important;
}

/* Specific headers to match Address Change Deadline size */
.subscription-card h4 {
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    color: rgb(var(--color-foreground)) !important;
    margin-bottom: 0.5rem !important;
}

.pricing-details h5 {
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    color: rgb(var(--color-foreground)) !important;
    margin-bottom: 1rem !important;
}

.address-deadline-section strong {
    font-size: 1.8rem !important;
    font-weight: 600 !important;
}

/* Orders tab button hover effects - using btn-secondary hover effect */
#orders button:hover {
    background-color: rgba(var(--color-foreground), 0.05) !important;
    border-color: rgba(var(--color-foreground), 0.4) !important;
    color: rgba(var(--color-foreground), 0.75) !important;
}

#orders .action-item:hover {
    background-color: rgba(var(--color-foreground), 0.05) !important;
    border-color: rgba(var(--color-foreground), 0.4) !important;
    color: rgba(var(--color-foreground), 0.75) !important;
}

#orders .order-tab-btn:hover {
    background-color: rgba(var(--color-foreground), 0.05) !important;
    border-color: rgba(var(--color-foreground), 0.4) !important;
    color: rgba(var(--color-foreground), 0.75) !important;
}

#orders .subscription-actions button:hover {
    background-color: rgba(var(--color-foreground), 0.05) !important;
    border-color: rgba(var(--color-foreground), 0.4) !important;
    color: rgba(var(--color-foreground), 0.75) !important;
}

#orders .address-actions button:hover {
    background-color: rgba(var(--color-foreground), 0.05) !important;
    border-color: rgba(var(--color-foreground), 0.4) !important;
    color: rgba(var(--color-foreground), 0.75) !important;
}

#orders .modal-footer button:hover {
    background-color: rgba(var(--color-foreground), 0.05) !important;
    border-color: rgba(var(--color-foreground), 0.4) !important;
    color: rgba(var(--color-foreground), 0.75) !important;
}

/* Specific hover effect for edit order button in upcoming orders */
#orders #active-orders .edit-order-btn:hover {
    background-color: rgba(var(--color-foreground), 0.05) !important;
    border-color: rgba(var(--color-foreground), 0.4) !important;
    color: rgba(var(--color-foreground), 0.75) !important;
}

/* Enlarge Manage and Skip button text in Overview tab */
#overview .overview-card .btn-secondary {
    font-size: 1.6rem !important;
}

/* Edit order buttons in all tabs - lighter hover background */
.edit-order-btn:hover {
    background-color: rgba(var(--color-foreground), 0.05) !important;
    border-color: rgba(var(--color-foreground), 0.4) !important;
    color: rgba(var(--color-foreground), 0.75) !important;
}

/* Cutoff Date Display Styles */
.cutoff-date-container {
    position: relative;
}

.cutoff-date {
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: var(--buttons-radius);
    transition: all 0.3s ease;
}

.cutoff-date.urgent {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
    animation: pulse-warning 2s infinite;
}

.cutoff-date.warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.cutoff-date.normal {
    background-color: rgba(var(--color-foreground), 0.05);
    color: rgba(var(--color-foreground), 0.8);
}

.cutoff-date.passed {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    text-decoration: line-through;
}

@keyframes pulse-warning {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Progress Bar Styles */
.cutoff-progress-bar {
    margin-top: 1rem;
}

.progress-label {
    font-size: 1.2rem;
    color: rgba(var(--color-foreground), 0.75);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.progress-bar {
    background-color: rgba(var(--color-foreground), 0.1);
    border-radius: var(--buttons-radius);
    height: 8px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #FFC107, #FF5722);
    border-radius: var(--buttons-radius);
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Mobile Responsive Cutoff Display */
@media screen and (max-width: 749px) {
    .subscription-dates {
        font-size: 1.2rem !important;
    }
    
    .cutoff-date {
        font-size: 1.1rem !important;
        padding: 0.3rem 0.6rem;
    }
    
    .progress-label {
        font-size: 1.1rem !important;
    }
    
    .progress-bar {
        height: 6px;
    }
}

/* Tablet Responsive Cutoff Display */
@media screen and (min-width: 750px) and (max-width: 989px) {
    .subscription-dates {
        font-size: 1.3rem !important;
    }
    
    .cutoff-date {
        font-size: 1.2rem !important;
    }
    
    .progress-label {
        font-size: 1.3rem !important;
    }
}

/* Desktop Enhanced Cutoff Display */
@media screen and (min-width: 990px) {
    .subscription-card:hover .cutoff-date.urgent {
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    }
    
    .subscription-card:hover .cutoff-date.warning {
        transform: scale(1.03);
        box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    }
}
