/* Base variables */
:root {
  --primary: #398276;
  --primary-light: #BCD8C2;
  --text: black;
  --text-light: gray;
  --error: #823939;
  --background: #fff;
  --background-light: #F7F7F7;
  --background-primary-valid: #f0f6f0;
  --background-primary-error: #FEF2F2;

  --radius-sm: 4px;
  --radius-md: 6px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 1px rgba(0, 0, 0, 0.04);
}

/* Reset-ish */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
}

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
}

/******** Page layout ********/
.page {
  min-height: 100vh;
  background: var(--background-light);
}

.container {
  max-width: 640px;
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--background-light);
  background: #fff;
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 18px -14px rgba(0, 0, 0, 0.28), 0 6px 12px -12px rgba(0, 0, 0, 0.22);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 0.5rem;
  gap: 0.25rem;
}

.brand-logo {
  height: 60px;
  width: auto;
}

.brand-text {
  color: var(--text);
  font-weight: 600;
  font-size: small;
  line-height: 1;
  text-align: left;
}

.info-btn {
  display: inline-flex;
  height: 36px;
  width: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--background-light);
  border-color: var(--background-light);
  color: var(--text);
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.info-btn:hover {
  background: var(--background-light);
}

.info-btn:active {
  background: var(--background-light);
}

.info-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.main {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
}

.check-result-panel {
  width: 100%;
  background: var(--background-light);
  box-shadow: var(--shadow-sm);
}

/* Status banner */
.status-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.75rem 1rem;
  border: 2px solid;
  border-radius: var(--radius-sm);
  width: 60%;
}

/* Responsive tweaks for status banner */
@media (max-width: 640px) {
  .status-banner {
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    width: 70%;
  }
}

@media (max-width: 400px) {
  .status-banner {
    gap: 0.375rem;
    padding: 0.375rem 0.5rem;
    width: 80%;
  }
}

.status-banner-valid {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--background-primary-valid) ;
}

.status-banner-error {
  border-color: var(--error);
  color: var(--error);
  background: var(--background-primary-error) ;
}

.status-banner-checking {
  border-color: var(--primary-light);
  color: var(--background-light);
  background: var(--background);
}

.status-icon {
}

.status-text {
  font-weight: 600;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.product-teaser {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.product-image-wrap {
  border-radius: var(--radius-sm);
  background: var(--background-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.productImage {
  height: 20rem;
  width: 20rem;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.code-label {
  text-align: center;
  font-size: small;
  color: var(--text-light);
}

.code-text {
  text-align: center;
  color: var(--text-light);
}

/* Details */
.details {
  margin-top: 1.5rem;
}

.details-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  background: var(--background);
}

.details-row.alt {
  background: var(--background-light);
}

.details-label {
  color: var(--text-light);
  font-size: small;
}

.details-value {
  color: var(--text);
  text-align: right;
}
