/* Shared top controls styling for calculator pages */
.ms-cl .top-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 10px 0 20px;
}

.ms-cl .action-buttons {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.ms-cl .qr-promo-container {
  margin: 0;
  padding: 8px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  width: fit-content;
  max-width: 200px;
}

.ms-cl .qr-promo-content {
  text-align: center;
  padding: 5px;
}

.ms-cl .qr-title {
  font-size: 1rem;
  color: #2c3e50;
  margin: 5px 0;
  font-weight: 600;
}

.ms-cl .qr-subtitle {
  font-size: 0.8rem;
  color: #7f8c8d;
  margin-bottom: 8px;
}

.ms-cl .qr-image-container {
  padding: 5px;
  background: white;
  border-radius: 5px;
  display: inline-block;
}

.ms-cl .qr-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.ms-cl .embed-button {
  position: static;
  background: linear-gradient(135deg, #adade2, #41335e);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
  z-index: 10;
}

.ms-cl .back-button {
  position: static;
  background: linear-gradient(135deg, #1f5fa0, #0f3f73);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15, 63, 115, 0.3);
  z-index: 120;
}

.shared-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f5fa0, #0f3f73);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15, 63, 115, 0.3);
  text-align: center;
}

.ms-cl .embed-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.ms-cl .back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 63, 115, 0.4);
}

.shared-back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 63, 115, 0.4);
}

@media (max-width: 768px) {
  .ms-cl .top-controls {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
  }

  .ms-cl .qr-promo-container {
    margin: 0 auto;
  }

  .ms-cl .action-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .ms-cl .embed-button {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    font-size: 12px;
    padding: 10px 10px;
    margin: 0;
    width: 100%;
  }

  .ms-cl .back-button {
    position: relative;
    left: auto;
    right: auto;
    top: 0;
    font-size: 12px;
    padding: 12px 12px;
    margin: 0;
    display: block;
    width: 100%;
    text-align: center;
  }

  .shared-back-button {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
}
