/* h1 is treated always as page title */
h1 {
  text-align: center;
}

/* Links */
a {
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
}

a:focus {
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -1px;
}

/*
 * Base structure
 */

body {
  background-color: #f8f9fa;
  color: #422788;
}

/*
 * Typography
 */

hr {
  margin: 0.5rem 0;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/*
 * Navbar
 */

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
}

.navbar .navbar-toggler {
  top: .25rem;
  right: 1rem;
}

.navbar-expand-lg .navbar-nav .nav-link {
  color: #422788;
  font-weight: 500;
}

.navbar .nav-link:hover {
  color: #e8350a;
}

.dropdown-menu {
  border-radius: 0.5rem;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-menu {
  animation: fadeIn 0.15s ease-in-out;
}

.form-control {
  direction: rtl;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  margin-bottom: 0.5rem;
}

select.form-control {
  height: 35px;
  padding-top: 1px;
  padding-bottom: 1px;
}

.in_progress {
  background-color: rgba(0, 255, 255, 0.37);
  --bs-table-bg: rgba(0, 255, 255, 0.37);
}

.completed {
  background-color: rgba(0, 0, 255, 0.432);
  --bs-table-bg: rgba(0, 0, 255, 0.432);
}

.cancelled {
  --bs-table-bg: dimgray;
  background-color: dimgray;
  color: #fff;
  a {
    color: #fff;
  }
}

.money_collected {
  background-color: rgba(0, 128, 0, 0.432);
  --bs-table-bg: rgba(0, 128, 0, 0.432);
}

.delivery {
  color:rgb(0, 128, 0) !important;
}

.exchange {
  color: rgb(255, 166, 0) !important;
}

.pick_up {
  color: rgb(128, 19, 0) !important;
}

.page-block-thumb {
  max-height: 120px;
  max-width: 180px;
  object-fit: contain;
}

.page-block-editor-header {
  gap: 1rem;
}

.page-block-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.page-icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
}

.page-icon-option {
  cursor: pointer;
  margin: 0;
  position: relative;
}

.page-icon-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-icon-option-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d8dee4;
  border-radius: 6px;
  background: #fff;
}

.page-icon-option-content i,
.page-icon-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  color: #104f95;
}

.page-icon-option input:checked + .page-icon-option-content {
  border-color: #104f95;
  background: #eef5fd;
  box-shadow: 0 0 0 1px #104f95 inset;
}

.cms-page {
  max-width: 1040px;
  margin: 0 auto;
}

.cms-block {
  display: flow-root;
  clear: both;
  margin: 2.5rem 0;
}

.cms-block h1,
.cms-block h2 {
  text-align: inherit;
  margin-bottom: 1rem;
}

.cms-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f6f8;
}

.cms-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cms-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  .btn {
    background: #104f95;
    color: #fff;
    margin-top: 0.5rem;
  }
}

.cms-hero.has-image .cms-hero-content {
  color: #1f2937;
  margin: 3rem;
  border-radius: 8px;
  background: rgba(172, 172, 172, 0.69);
  padding: 0.8rem;
}

.cms-block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 8px;
  color: #fff;
  background: #104f95;
}

.cms-block-icon i {
  line-height: 1;
}

img.cms-block-image,
img.cms-full-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
}

img.cms-full-image {
  margin-bottom: 1rem;
}

.cms-image-content {
  clear: both;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.cms-image-content h2,
.cms-image-content .cms-rich-text,
.cms-image-content .cms-rich-text p {
  margin: 0;
}

.cms-rich-text {
  line-height: 1.8;
}

.cms-page-links {
  max-width: 1040px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #d8dee4;
}

.cms-page-links h2 {
  margin-bottom: 1rem;
  text-align: inherit;
  font-size: 1.25rem;
}

.cms-page-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cms-page-links a {
  display: inline-flex;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d8dee4;
  border-radius: 6px;
  background: #fff;
}

.cms-block-quote blockquote {
  border-inline-start: 4px solid #104f95;
  padding: 1.5rem;
  background: #f8f9fa;
}

.cms-cta {
  padding: 2rem;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  text-align: center;
}

.breadcrumb {
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: medium;
  text-transform: none;
  color: white;
  h4 {
    font-weight: 600;
    margin-top: 7px;
  }
  a {
    color: #000;
  }
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  border-bottom: solid thin lightgray;
}

.breadcrumb .page-heading {
  color: white;
  font-style: normal;
  font-weight: 500;
  text-transform: none;
}

.breadcrumb ol {
  margin-bottom: 0;
  display: flex;
  justify-content: center;
}

.breadcrumb li {
  color: white;
  list-style: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-size: small;
}

.breadcrumb-item+.breadcrumb-item {
  padding-right: 0px;
  padding-left: 0px;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: #000;
  padding: 0px 3px;
}

.breadcrumb li:after {
  margin: 0 10px;
}

.breadcrumb li:last-child:after {
  margin: 0;
}


/* Lexxy css */
lexxy-editor.form-control .lexxy-content__table-wrapper {
  margin: 0;
  margin-block: 1ch;
  overflow-x: auto;
}

lexxy-editor.form-control table {
  border-collapse: collapse;
  border-spacing: 0;
  inline-size: calc(100% - 0.5ch);
  margin: 0.25ch;
}

lexxy-editor.form-control table th,
lexxy-editor.form-control table td {
  border: 1px solid var(--lexxy-color-table-cell-border);
  min-width: 5ch;
  max-width: 50ch;
  padding: 1ch;
  text-align: start;
  word-break: normal;
}

lexxy-editor.form-control table th.lexxy-content__table-cell--header,
lexxy-editor.form-control table td.lexxy-content__table-cell--header {
  background-color: var(--lexxy-color-table-header-bg);
  font-weight: bold;
}

.cms-video,
.cms-video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #000;
}

.cms-video-embed {
  margin-bottom: 1rem;
}

@media (max-width: 800px) {
  .cms-hero {
    min-height: 280px;
  }

  .cms-hero-content {
    padding: 1.5rem;
  }

  .cms-hero.has-image .cms-hero-content {
    margin: 1rem;
  }

  .page-block-editor-header {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .page-block-editor-actions {
    justify-content: flex-start;
  }
}
