/* PWA Install Button Styles - Trang My Account */
.pwa-install-btn {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(135deg, #2271b1 0%, #1e5a8e 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.pwa-install-btn:hover {
  background: linear-gradient(135deg, #1e5a8e 0%, #164a75 100%);
  box-shadow: 0 4px 12px rgba(34, 113, 177, 0.4);
  transform: translateY(-1px);
}

.pwa-install-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(34, 113, 177, 0.3);
}

.pwa-icon {
  font-size: 20px;
  line-height: 1;
}

/* Message styles */
.pwa-message {
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 400px;
}

.pwa-message-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.pwa-message-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
  .pwa-install-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Ẩn trên desktop nếu không phải My Account */
@media (min-width: 1024px) {
  body:not(.woocommerce-account) .pwa-install-btn {
    display: none !important;
  }
}

/* iOS Modal Styles */
.pwa-ios-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.pwa-ios-modal-show {
  opacity: 1;
}

.pwa-ios-modal-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 20px;
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.pwa-ios-modal-show .pwa-ios-modal-content {
  transform: scale(1);
}

.pwa-ios-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-ios-modal-close:hover {
  color: #333;
}

.pwa-ios-modal-content h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.pwa-ios-steps {
  margin-bottom: 20px;
}

.pwa-ios-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 15px;
}

.pwa-ios-step:last-child {
  margin-bottom: 0;
}

.pwa-ios-step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #2271b1 0%, #1e5a8e 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

.pwa-ios-step-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  padding-top: 4px;
}

.pwa-ios-step-text strong {
  color: #2271b1;
  font-weight: 600;
}

.pwa-ios-icon {
  font-size: 18px;
  display: inline-block;
  margin-left: 5px;
}

.pwa-ios-arrow {
  text-align: center;
  font-size: 40px;
  animation: bounce 1s infinite;
  margin-top: 10px;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
