@import url('https://fonts.cdnfonts.com/css/neue-haas-grotesk-display-pro');

/* Force custom font on Swagger UI elements */
.swagger-ui * {
  font-family: "Neue Haas Grotesk Display Pro", sans-serif !important;
}

/* Ensure code elements keep their original fonts */
.swagger-ui code,
.swagger-ui pre,
.swagger-ui pre span,
.swagger-ui div[class^='parameter__'],
.swagger-ui div[class*=' parameter__'],
.swagger-ui .opblock .opblock-summary-operation-id,
.swagger-ui .opblock .opblock-summary-path span,
.swagger-ui .opblock .opblock-summary-path__deprecated  {
  font-family: Consolas, monaco, monospace !important;
}

/* Hide the information container */
.swagger-ui .information-container {
  display: none;
}

/* Change border radius */
.swagger-ui .opblock,
.swagger-ui .opblock .opblock-summary-method,
.swagger-ui .btn {
  border-radius: 12px;
}

@media (max-width: 768px) {
  .swagger-ui .opblock-tag {
    flex-direction: column;
    text-align: center;
  }

  .swagger-ui .opblock-summary {
    flex-direction: column;
    text-align: center;
  }

  .swagger-ui .opblock-summary-path-description-wrapper {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  .swagger-ui .opblock .opblock-summary-path-description-wrapper {
    align-items: center;
  }

  .swagger-ui .opblock-summary .authorization__btn {
    padding-left: 0;
  }
  
  .swagger-ui .opblock .opblock-summary .view-line-link.copy-to-clipboard {
    height: 0;
  }
  
  .swagger-ui .opblock .opblock-summary:hover .view-line-link.copy-to-clipboard {
    margin-bottom: 10px;
    height: 26px;
  }

  .swagger-ui .responses-inner,
  .swagger-ui .table-container {
    overflow-x: auto;
  }
}
