.worldologists-trip-fields {
  margin: 1.5rem 0;
}

body.woocommerce-checkout > .worldologists-trip-fields--checkout {
  display: none;
}

.worldologists-trip-fields label {
  margin-bottom: 0;
}

.worldologists-trip-fields h2 {
  margin: 0 0 1rem;
}

.worldologists-trip-fields--checkout h2,
.worldologists-trip-fields--checkout h3 {
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.worldologists-trip-fields--checkout h3 {
  margin: 1.25rem 0 0.75rem;
}

.worldologists-trip-fields fieldset {
  margin: 1rem 0;
  padding: 15px;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}

.worldologists-trip-fields legend {
  padding: 0 0.35rem;
  color: var(--wp--preset--color--contrast);
  font-family: var(--wp--preset--font-family--oswald);
}

.worldologists-trip-fields__participant,
.worldologists-trip-fields__emergency {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.worldologists-trip-fields__field {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.worldologists-trip-fields__field--wide {
  grid-column: 1 / -1;
}

.worldologists-trip-fields__trip {
  margin-top: 1rem;
}

.worldologists-trip-fields__intro,
.worldologists-trip-fields__notice {
  color: color-mix(in srgb, currentColor 70%, transparent);
  font-size: 0.95em;
}

.worldologists-trip-fields__notice.is-error {
  color: #b42318;
}

.worldologists-trip-fields input,
.worldologists-trip-fields textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #b8b8b8;
  border-radius: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  line-height: 1.35;
}

.worldologists-trip-fields textarea {
  min-height: 6rem;
  resize: vertical;
}

.worldologists-trip-fields input::placeholder,
.worldologists-trip-fields textarea::placeholder {
  color: color-mix(in srgb, currentColor 58%, transparent);
  opacity: 1;
}

.worldologists-trip-fields input:focus,
.worldologists-trip-fields textarea:focus {
  border-color: currentColor;
  outline: 2px solid color-mix(in srgb, currentColor 18%, transparent);
  outline-offset: 1px;
}

.worldologists-trip-fields__description {
  margin-top: -0.1rem;
  color: color-mix(in srgb, currentColor 65%, transparent);
  font-size: 0.9em;
  line-height: 1.35;
}

.worldologists-trip-details {
  margin: 0 0 1rem;
}

.worldologists-order-trip-details {
  margin-top: 2rem;
}

.worldologists-trip-details h3,
.worldologists-trip-details h4 {
  margin: 0.75rem 0 0.35rem;
}

#book-trip .wp-block-woocommerce-add-to-cart-with-options-variation-selector,
#book-trip
  .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute {
  width: 100%;
}

#book-trip
  .wp-block-woocommerce-add-to-cart-with-options-variation-selector
  .wp-block-group {
  width: 100%;
}

#book-trip .wc-block-product-filter-chips__fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

#book-trip .wc-block-product-filter-chips__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

#book-trip .wc-block-product-filter-chips__item {
  position: relative;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid
    color-mix(in srgb, var(--wp--preset--color--accent-1) 45%, #d8d8d8);
  border-radius: 15px;
  background: #fff;
  padding: 0.95rem 1rem 0.95rem 3rem;
  color: var(--wp--preset--color--contrast);
  text-align: left;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

#book-trip .wc-block-product-filter-chips__item::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  box-sizing: border-box;
  border: 2px solid var(--wp--preset--color--accent-1);
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}

#book-trip .wc-block-product-filter-chips__item::after {
  content: "";
  position: absolute;
  left: calc(1rem + 0.3rem);
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--wp--preset--color--accent-1);
  opacity: 0;
  transform: translateY(-50%) scale(0.75);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

#book-trip .wc-block-product-filter-chips__item:hover,
#book-trip .wc-block-product-filter-chips__item:focus-visible {
  border-color: var(--wp--preset--color--accent-1);
  box-shadow: 0 0 0 2px
    color-mix(in srgb, var(--wp--preset--color--accent-1) 20%, transparent);
}

#book-trip .wc-block-product-filter-chips__item[aria-checked="true"] {
  border-color: var(--wp--preset--color--accent-1);
  background: color-mix(in srgb, var(--wp--preset--color--accent-1) 12%, #fff);
  box-shadow: 0 0 0 2px
    color-mix(in srgb, var(--wp--preset--color--accent-1) 18%, transparent);
}

#book-trip .wc-block-product-filter-chips__item[aria-checked="true"]::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

#book-trip .wc-block-product-filter-chips__item:disabled,
#book-trip .wc-block-product-filter-chips__item[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.72;
}

#book-trip .wc-block-product-filter-chips__label,
#book-trip .wc-block-product-filter-chips__text {
  width: 100%;
  white-space: normal;
  line-height: 1.35;
}

.woocommerce-checkout [data-worldologists-formatted-agreement="true"] {
  white-space: normal;
  line-height: 1.55;
}

.woocommerce-checkout .worldologists-agreement-copy {
  display: block;
}

.woocommerce-checkout .worldologists-agreement-copy p,
.woocommerce-checkout [data-worldologists-formatted-agreement="true"] p,
.woocommerce-checkout .wc-block-components-checkbox__label p,
.woocommerce-checkout .wc-block-components-select__label p {
  margin: 0 0 0.75rem;
  line-height: 1.55;
}

.woocommerce-checkout .worldologists-agreement-copy p:last-child,
.woocommerce-checkout
  [data-worldologists-formatted-agreement="true"]
  p:last-child,
.woocommerce-checkout .wc-block-components-checkbox__label p:last-child,
.woocommerce-checkout .wc-block-components-select__label p:last-child {
  margin-bottom: 0;
}

.woocommerce-checkout .worldologists-agreement-copy ul,
.woocommerce-checkout .worldologists-agreement-copy ol,
.woocommerce-checkout [data-worldologists-formatted-agreement="true"] ul,
.woocommerce-checkout [data-worldologists-formatted-agreement="true"] ol,
.woocommerce-checkout .wc-block-components-checkbox__label ul,
.woocommerce-checkout .wc-block-components-checkbox__label ol,
.woocommerce-checkout .wc-block-components-select__label ul,
.woocommerce-checkout .wc-block-components-select__label ol {
  margin: 0.5rem 0 0.75rem 1.25rem;
  padding: 0;
}

.woocommerce-checkout .worldologists-agreement-copy li + li,
.woocommerce-checkout [data-worldologists-formatted-agreement="true"] li + li,
.woocommerce-checkout .wc-block-components-checkbox__label li + li,
.woocommerce-checkout .wc-block-components-select__label li + li {
  margin-top: 0.35rem;
}

@media (max-width: 640px) {
  .worldologists-trip-fields__participant,
  .worldologists-trip-fields__emergency {
    grid-template-columns: 1fr;
  }
}
