/* Footer Styles */
.ws-footer {
  background: var(--charcoal);
  color: #fff;
  padding: 40px 24px;
  margin-top: 80px;
  text-align: center;
}

.ws-footer-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ws-footer-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.ws-footer-nav a:hover {
  color: var(--accent-color);
}

.ws-footer-copy {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.ws-footer-powered {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.ws-footer-powered:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.ws-footer-bottom p {
  margin: 8px 0;
}

.ws-footer-bottom .ws-footer-powered {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.ws-footer-bottom .ws-footer-powered:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .ws-footer-nav {
    gap: 20px;
  }
  
  .ws-footer {
    padding: 30px 16px;
    margin-top: 60px;
  }
}

@media (max-width: 480px) {
  .ws-footer-nav {
    flex-direction: column;
    gap: 15px;
  }
  
  .ws-footer {
    padding: 24px 12px;
    margin-top: 40px;
  }
}

/* Sticky Mobile Footer */
.ws-sticky-footer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-top: 1px solid #e0e0e0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Show sticky footer on mobile devices */
@media screen and (max-width: 768px) {
  .ws-sticky-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  body {
    padding-bottom: 140px !important; /* Space for sticky footer (expanded height) */
  }
  
  html {
    padding-bottom: 0;
  }
  
  /* Ensure footer doesn't get hidden by other elements */
  .ws-sticky-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }
}

/* Ensure it works on touch devices */
@media (hover: none) and (pointer: coarse) {
  @media (max-width: 768px) {
    .ws-sticky-footer {
      display: block !important;
    }
  }
}

.ws-sticky-footer-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f8f8;
  width: 100%;
  box-sizing: border-box;
}

.ws-sticky-location-info {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 10px;
  min-width: 0;
}

.ws-sticky-location-info i {
  color: var(--primary-color);
  font-size: 18px;
  flex-shrink: 0;
}

.ws-sticky-location-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.ws-sticky-location-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-sticky-location-hours {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-sticky-location-hours.open-now {
  color: #28a745;
  font-weight: 600;
}

.ws-sticky-switch-location {
  background: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 8px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.ws-sticky-switch-location:hover {
  background: var(--primary-color);
  color: #fff;
}

.ws-sticky-expand {
  background: none;
  border: none;
  color: var(--charcoal);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.ws-sticky-expand[aria-expanded="true"] {
  transform: rotate(180deg);
}

.ws-sticky-footer-expanded {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fff;
}

.ws-sticky-footer-expanded.open {
  max-height: 200px;
  border-bottom: 1px solid #e0e0e0;
}

.ws-sticky-location-full {
  padding: 16px;
}

.ws-sticky-location-full-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 8px 0;
}

.ws-sticky-location-full-address,
.ws-sticky-location-full-phone,
.ws-sticky-location-full-hours {
  font-size: 13px;
  color: #666;
  margin: 4px 0;
  line-height: 1.5;
}

.ws-sticky-location-full-phone i {
  color: var(--primary-color);
  margin-right: 6px;
}

.ws-sticky-map-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.ws-sticky-view-map,
.ws-sticky-directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.ws-sticky-view-map:hover,
.ws-sticky-directions:hover {
  color: var(--accent-color);
}

.ws-sticky-view-map i,
.ws-sticky-directions i {
  font-size: 14px;
}

.ws-sticky-footer-actions {
  display: flex;
  padding: 12px 8px;
  gap: 8px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.ws-sticky-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  min-height: 50px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-sizing: border-box;
}

.ws-sticky-action-btn .ws-bread-cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ff4444;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ws-sticky-action-btn i {
  font-size: 18px;
}

.ws-sticky-action-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ws-sticky-action-btn:active {
  transform: translateY(0);
}

.ws-sticky-order-bread {
  background: var(--primary-color);
}

.ws-sticky-view-menu {
  background: #666;
}

.ws-sticky-order-online {
  background: #28a745;
}

/* Location Selection Modal */
.ws-location-select-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ws-location-select-modal.show {
  display: flex;
}

.ws-location-select-content {
  background: #fff;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ws-location-select-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.ws-location-select-header h3 {
  margin: 0;
  font-size: 20px;
  color: var(--charcoal);
}

.ws-location-select-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.ws-location-select-close:hover {
  background: #f0f0f0;
  color: var(--charcoal);
}

.ws-location-select-list {
  padding: 10px;
}

.ws-location-select-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.ws-location-select-item:hover {
  border-color: var(--primary-color);
  background: #f8f8f8;
}

.ws-location-select-item.selected {
  border-color: var(--primary-color);
  background: #f0f7ff;
}

.ws-location-select-item.selected .fa-check {
  display: block !important;
  color: var(--primary-color);
  font-size: 20px;
}

.ws-location-select-item-info {
  flex: 1;
}

.ws-location-select-item-info h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  color: var(--charcoal);
  font-weight: 600;
}

.ws-location-select-item-info p {
  margin: 4px 0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.ws-location-select-item-info i {
  color: var(--primary-color);
  margin-right: 6px;
}