﻿@layer extra-dry, cemora-commerce;
@layer cemora-commerce {
  html, body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  }
  h1:focus {
    outline: none;
  }
  .valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
  }
  .invalid {
    outline: 1px solid #e50000;
  }
  .validation-message {
    color: #e50000;
  }
  .blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
  }
  .blazor-error-boundary::after {
    content: "An error has occurred.";
  }
  .darker-border-checkbox.form-check-input {
    border-color: #929292;
  }
  .form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
  }
  .form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
  }
  section.form {
    padding: var(--spacing-medium);
    background-color: var(--neutral-2);
  }
  section.form div.form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-large);
    padding: var(--spacing-medium) 0;
  }
  section.form h2 {
    font-weight: normal;
    font-size: var(--text-jumbo);
    padding: 0;
    margin: 0;
  }
  section.form .response-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-medium);
  }
  section.form .form-field {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-tiny);
  }
  section.form .form-field h3 {
    margin: 0;
    padding: 0;
    /* */
    font-weight: normal;
    font-size: var(--text-large);
    color: var(--neutral-8);
    /* */
    display: flex;
    flex-direction: row;
    gap: var(--spacing-small);
    align-items: center;
  }
  section.form .form-field h3 span.optional {
    font-size: var(--text-small);
    color: var(--neutral-7);
  }
  section.form .form-field .text {
    font-size: var(--text-small);
    color: var(--neutral-7);
  }
  section.form .form-field .input {
    display: flex;
    flex-direction: column;
  }
  section.form .form-field .input .address {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-tiny);
  }
  section.form .form-field .input label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-small);
    padding: 0;
  }
  section.form .form-field .input input, section.form .form-field .input select {
    height: var(--input-field-height);
    /* */
    outline: none;
    border-radius: var(--input-rounding);
    border: none;
    padding: 0 var(--spacing-small);
    font-size: var(--text-normal);
    color: var(--neutral-8);
  }
  section.form .form-field .input input[type=date], section.form .form-field .input select[type=date] {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  }
  section.form .form-field .input input[type=checkbox], section.form .form-field .input select[type=checkbox] {
    width: var(--icon-tiny);
    height: var(--icon-tiny);
    margin: 0;
  }
  section.form .form-field .input input:focus-visible, section.form .form-field .input select:focus-visible {
    outline: solid 2px var(--neutral-5);
  }
  section.form .form-field .input textarea {
    resize: vertical;
    outline: none;
    border-radius: var(--input-rounding);
    border: none;
    font-size: var(--text-normal);
    color: var(--neutral-8);
    padding: var(--spacing-small);
    font-family: inherit;
  }
  section.form .form-field .input textarea:focus-visible {
    outline: solid 2px var(--neutral-5);
  }
  section.form .form-field .options, section.form .form-field .choice {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-small);
  }
  section.form .form-field .options label, section.form .form-field .choice label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-small);
  }
  section.form .form-field .options label input, section.form .form-field .choice label input {
    padding: 0;
    margin: 0;
    width: 18px;
    height: 18px;
  }
  section.form .form-field .names {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-small);
  }
  section.form .form-field .names > div {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-tiny);
  }
  /*
      General button styling for entire site.
  */
  .buttons, .primary-buttons, .regular-buttons, .danger-buttons {
    display: flex;
    align-items: center;
    gap: var(--spacing-medium);
  }
  button.solid {
    border: none;
    border-radius: var(--input-rounding);
    min-width: 88px;
    font-size: var(--text-normal);
    height: var(--button-height-large);
    /* */
    display: flex;
    align-items: center;
    gap: var(--spacing-small);
    justify-content: center;
  }
  button.solid.primary, button.solid.regular, button.solid.danger, button.solid.alternate {
    height: calc(var(--button-height-medium) + 2px);
    padding: 0 calc(var(--spacing-small) + 4px);
  }
  button.solid.primary {
    background-color: var(--primary);
    color: var(--text-inverted);
  }
  button.solid.primary:hover {
    background-color: color-mix(in srgb, var(--primary), var(--neutral-8));
  }
  button.solid.primary:active {
    background-color: color-mix(in srgb, var(--primary), var(--neutral-5));
  }
  button.solid.primary:disabled {
    background: var(--primary-light);
    color: var(--neutral-7);
  }
  button.solid.regular {
    background-color: var(--neutral-4);
    color: var(--text);
  }
  button.solid.regular:hover {
    background-color: var(--neutral-5);
  }
  button.solid.regular:active {
    background-color: var(--neutral-3);
  }
  button.solid.regular:disabled {
    background: var(--neutral-3);
    color: var(--neutral-7);
  }
  button.solid.danger {
    background-color: var(--danger);
    color: var(--text-inverted);
  }
  button.solid.danger:hover {
    background-color: color-mix(in srgb, var(--danger), var(--neutral-8));
  }
  button.solid.danger:active {
    background-color: color-mix(in srgb, var(--danger), var(--neutral-5));
  }
  button.solid.danger:disabled {
    background: var(--danger-light);
    color: var(--neutral-7);
  }
  button.solid.alternate {
    background-color: transparent;
    min-width: var(--icon-large);
    padding: 0;
    border: solid 1px var(--neutral-5);
    color: var(--neutral-8);
  }
  button.solid.alternate img, button.solid.alternate svg {
    width: var(--icon-large);
    height: var(--icon-large);
    fill: var(--neutral-7);
  }
  button.solid.alternate:hover {
    background-color: var(--neutral-3);
  }
  button.solid.alternate:active {
    background-color: var(--neutral-1);
  }
  button.solid.alternate:disabled {
    color: var(--neutral-6);
  }
  button.solid.alternate img + span, button.solid.alternate svg + span {
    display: none;
  }
  button.solid img, button.solid svg {
    width: var(--icon-tiny);
    height: var(--icon-tiny);
  }
  .buttons .alternate-buttons {
    flex: 1 1 auto;
    display: flex;
    justify-content: end;
    gap: var(--spacing-medium);
  }
  /*
      Style some buttons
  */
  button.ghost {
    padding: var(--spacing-tiny);
    outline: none;
    background: none;
    border-radius: var(--input-rounding);
    border: solid 1px transparent;
    background-color: transparent;
    min-width: initial;
  }
  button.ghost.danger svg {
    fill: var(--danger);
  }
  button.ghost:focus {
    border: solid 1px var(--neutral-3);
  }
  button.ghost:active {
    background-color: var(--neutral-1);
  }
  button.ghost:hover {
    background-color: var(--neutral-3);
  }
  /* Also go deep on global buttons in button bars as conflict with other CSS styles. */
  .buttons button.ghost {
    background-color: transparent;
  }
  /*
      When buttons div is at bottom of page, should usually be sticky.
  */
  .buttons.sticky {
    position: sticky;
    bottom: 0;
    padding-bottom: var(--spacing-large);
    padding-top: var(--spacing-large);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, var(--neutral-1, #333333) 25%, var(--neutral-1, #333333) 100%);
    z-index: 100;
  }
}
