.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner--large {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

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

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.loading-logo {
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
}

.loading-shop {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.loading-text {
  margin-top: 16px;
  font-weight: 600;
  font-size: 18px;
}

.loading-subtext {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.scroll-top-button {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.feedback-fab-group {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  z-index: 1000;
}

.feedback-fab {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  border: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.feedback-fab--discord {
  background: linear-gradient(135deg, #5865f2 0%, #404eed 100%);
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(88, 101, 242, 0.24);
}

.feedback-fab-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feedback-fab-icon svg {
  width: 18px;
  height: 18px;
}

.feedback-fab:hover {
  transform: translateY(-1px);
}

.success-text {
  color: var(--color-success-text);
  font-size: 14px;
  margin: 0;
}

.order-fab {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  border: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: none;
  z-index: 90;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
  gap: 8px;
  overflow: visible;
}

.order-fab--warning {
  background: linear-gradient(135deg, #f7a52b, #e07b00);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(224, 123, 0, 0.35);
}

.order-fab:hover {
  transform: translateY(-1px);
}

.order-fab-icon {
  display: none;
}

.order-fab-label {
  display: inline-flex;
}

.order-fab-message {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
  border: 1px solid var(--color-warning-text);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.3;
  box-shadow: 0 12px 24px var(--color-shadow);
  max-width: 220px;
  pointer-events: none;
  text-align: left;
  z-index: 1;
}

body.modal-open .order-fab {
  display: none;
}

.scroll-top-button:hover {
  transform: translateY(-4px);
}

.order-status.success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border: 2px solid var(--color-success-text);
  padding: 24px;
  border-radius: 16px;
  margin-top: 32px;
  text-align: center;
  box-shadow: 0 10px 25px var(--color-shadow);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.order-status.success strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

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

@media (max-width: 1024px) {
  .order-fab {
    display: inline-flex;
    top: auto;
    bottom: 88px;
    right: 24px;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 1100;
  }

  .order-fab-icon {
    display: inline-flex;
    font-size: 20px;
  }

  .order-fab-label {
    display: none;
  }
}

@media (max-width: 640px) {
  .order-fab {
    bottom: 72px;
    right: 16px;
    width: 48px;
    height: 48px;
  }

  .order-fab-icon {
    font-size: 18px;
  }

  .scroll-top-button {
    bottom: 72px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .feedback-fab-group {
    right: 16px;
    bottom: 16px;
    gap: 8px;
  }

  .feedback-fab {
    padding: 10px 14px;
  }
}
