direct-script {
  --ds-sidebar-width-desktop: 30%;
  --ds-tools-header-height: 170px;
}

direct-script .grid {
  margin-bottom: 0;
}

direct-script .page-width {
  padding: 0 !important;
}

.footer {
  display: none;
}
.sticky {
  position: sticky;
}
.ohs-hp__list-keyword-filter {
  position: sticky;
  top: 0;
}
.cp__list-keyword-filter {
  top: 130px !important;
}
.cp__list .list-header {
  top: 171px !important;
}
@media screen and (min-width: 760px) {
  .cp__list-keyword-filter {
    top: 0 !important;
  }
  .cp__list .list-header {
    top: 40px !important;
  }
}


hr {
  margin: 4rem 0;
  height: .3rem;
  background-color: #324770;
}

.button.loading > .loading-overlay__spinner {
  display: flex !important;
}

.ohs-ds__main {
  background-color: #fff;
}

.button--square,
.button--square:hover,
.button--square:before,
.button--square:after {
  border-radius: 0;
}

.ds-loading-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  opacity: .7;
}

.ds-loading-overlay svg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 50px;
}

/* Breakpoints ---------------------------------------------------- */
@media screen and (max-width: 520px) {
  .ohs-ds__product .image {
    display: none;
  }
}
@media screen and (max-width: 759px) {
  .ohs-ds__tools-header {
    display: none;
  }

  .ohs-ds__tools.mobileHidden {
    display: none;
  }

  .mobile-tools-toggle {
    display: block !important;
  }

  .ohs-ds__tools {
    position: fixed;
    top: 0;
    bottom: 0;
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgb(var(--color-brand-green));
    width: auto !important;
    max-width: 100% !important;
    overflow: auto;
  }

  .ohs-ds__container.grid .grid__item,
  .ohs-ds__main {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media screen and (min-width: 760px) {
  .ohs-ds__main-header,
  .ohs-ds__main {
    width: calc(100% - var(--ds-sidebar-width-desktop) - var(--pro-page-sidebar-width)) !important;
    max-width: 100% !important;
  }

  .ohs-ds__tools-header,
  .ohs-ds__tools {
    width: calc(var(--ds-sidebar-width-desktop) - var(--pro-page-sidebar-width)) !important;
    max-width: 100% !important;
  }

  .ohs-ds__main,
  .ohs-ds__tools {
    height: calc(100vh - var(--ds-tools-header-height));
    overflow: auto;
  }

  direct-script .grid {
    column-gap: 1rem;
    row-gap: 1rem;
  }
}

/* Custom Pak Form ------------------------------------------------ */
@media screen and (max-width: 759px) {
  .cp__list-form {
    padding-bottom: 65px;
  }
}

/* Page View & Tool Toggles --------------------------------------- */
.mobile-tools-toggle {
  display: none;
  position: fixed;
  left: 10px;
  right: 10px;
  z-index: 1001;
  bottom: 0;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.mobile-tools-toggle button,
.mobile-tools-toggle button:hover {
  border-radius: 0;
  width: 50%;
  margin: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 3rem;
  overflow: hidden;
}

.mobile-tools-toggle button .close-text {
  display: none;
}

.mobile-tools-toggle button.selected {
  opacity: .7;
}

.mobile-tools-toggle button.selected svg,
.mobile-tools-toggle button.selected .text,
.mobile-tools-toggle button.selected .ohs-ds__selected-count {
  display: none;
}

.mobile-tools-toggle button.selected .close-text {
  display: inline-block;
  font-weight: normal;
}

.mobile-tools-toggle .border-l {
  border-color: #ffffff;
}

.ohs-ds__view-toggle,
.ohs-ds__tool-toggle {
  display: inline-flex;
  cursor: pointer;
  text-decoration: none;
  background-color: transparent;
  border: 0;
  appearance: none;
  font: inherit;
  font-size: 1.3rem;
  font-weight: var(--font-body-weight-bold);
  line-height: var(--pro-page-header-height);
  padding: 0 1rem;
  white-space: nowrap;
}

.ohs-ds__view-toggle {
  color: #08523C;
  border-bottom: 4px solid transparent;
}

.ohs-ds__view-toggle.selected {
  border-color: #018063;
}

.ohs-ds__tool-toggles {
  border-bottom: 2px solid rgb(var(--color-button));
}

.ohs-ds__tool-toggle {
  color: rgb(var(--color-button));
  border-radius: 1rem 1rem 0 0;
  border: 2px solid transparent;
  border-bottom: 0;
}

.ohs-ds__tool-toggle.selected {
  border-color: rgb(var(--color-button));
  background-image: linear-gradient(to bottom, rgba(255,255,255,1), #ECEAE6);
  position: relative;
  top: 2px;
}

.ohs-ds__selected-count {
  font-size: 1.3rem;
  background-color: rgb(var(--brand-color-secondary-2));
  color: rgb(var(--color-button));
  height: 2.2rem;
  min-width: 2.2rem;
  line-height: 2.2rem;
  margin-left: 1rem;
  padding: 0 .3rem;
  border-radius: .4rem;
}

/* Product List --------------------------------------------------- */

.ohs-ds__product .image div {
  width: 50px;
  height: 50px;
  overflow: hidden;
}
.ohs-ds__product .image div img {
  width: 100%;
}
.ohs-ds__product .icon-external {
  width: 1.2rem;
  margin-left: 0.3rem;
}

.ohs-ds__product .icon-capsules {
  width: 1.4rem;
  margin-right: 0.3rem;
}

.ohs-ds__product-extra-text li::marker {
  color: rgb(var(--brand-color-primary));
}

.affiliate-link {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.affiliate-link .icon {
  width: 1.2rem;
}

.affiliate-link .confirm-text {
  position: absolute;
  top: 0; bottom: 0;
  left: -.5rem; right: -.5rem;
  font-size: 1.2rem;
  height: 1.8rem;
  line-height: 1.8rem;
  margin: auto;
  text-align: center;
  background-color: rgb(var(--color-button));
  color: #fff;
  border-radius: 3px;
}

.ohs-ds__product .icon-external-link {
  width: 1.2rem;
}

.ohs-ds__product details summary svg {
  width: 12px;
}

.ohs-ds__product .variant_inputs {
  padding: .3rem;
}

.ohs-ds__product .variant_inputs:hover {
  background-color: rgba(var(--color-tan),.5);
}

.ohs-ds__product .quantity {
  background-color: rgb(var(--color-background));
  overflow: hidden;
}

/* Send Form ------------------------------------------------------ */

.ohs-ds__field-toggle {
  background-color: rgb(var(--color-background));
}

.ohs-ds__note-field {
  position: relative;
}

.ohs-ds__note-field .countdown {
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
  left: 0.1rem;
  background-color: rgb(var(--color-background));
  padding: 0.3rem 0.8rem 0 0.3rem;
  text-align: right;
}

.ohs-ds__note-field .field__label {
  z-index: 5;
}

.field-lock-remove {
  position: absolute;
  top: 0; bottom: 0;
  left: 0; right: 0;
  text-align: right;
  z-index: 2;
  background-color: rgba(254,232,120,.5);
  cursor: pointer;
}

.field-lock-remove:hover {
  background-color: transparent;
}

.field-locked .field-lock-remove {
  display: flex!important;
}

.field-hpcode .field__input:not(:placeholder-shown),
.field-hpemail .field__input:not(:placeholder-shown),
.field-hpemail .field__input:-webkit-autofill {
  font-size: 1.3rem;
  height: 3.5rem;
}

.field-hpcode .field__input:not(:placeholder-shown) ~ .field__label,
.field-hpemail .field__input:not(:placeholder-shown) ~ .field__label {
  line-height: 0.8;
}






.modal-patientlist {
  background: rgba(var(--color-foreground), 0.3);
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin: 0 auto;
  overflow: auto;
  position: fixed;
  opacity: 0;
  visibility: hidden;
  z-index: -1;
}
patients-details[open] > .modal-patientlist {
  opacity: 1;
  visibility: visible;
  z-index: 1100001;
}
.modal-patientlist--content {
  background-color: rgb(var(--color-background));
  width: 100%;
  max-width: 750px;
  height: 100%;
  max-height: 80vh;
  overflow: auto;
  position: absolute;
  margin: auto;
  top: 40px;
  bottom: 0;
  left: 0;
  right: 0;
}
.modal-patientlist--content .button--icon {
  min-width: 0;
}
.modal-patientlist--content .hp--list-header-sticky {
  top: 0;
}
.modal-patientlist--content .email,
.modal-patientlist--content .phone,
.modal-patientlist--content .both {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgb(var(--color-link));
  cursor: pointer;
}
.modal-patientlist--content .email:hover:before,
.modal-patientlist--content .phone:hover:before,
.modal-patientlist--content .both:hover:before {
  background-color: rgb(var(--color-link));
  color: #fff;
}
.modal-patientlist--content .email:before,
.modal-patientlist--content .phone:before,
.modal-patientlist--content .both:before {
  content: '+';
  border: 1px solid rgb(var(--color-link));
  font-size: 12px;
  width: 14px;
  height: 14px;
  line-height: 13px;
  border-radius: 50%;
  text-align: center;
  display: inline-block;
  margin-right: 3px;
}
@media screen and (min-width: 768px) {
  .modal-patientlist--content .hp--list-table .one-item {
    display: grid;
    grid-template-columns: auto 280px 150px 80px;
    align-items: center;
    padding: 4px 0;
  }
}








/* Selected List -------------------------------------------------- */
.ohs-ds__selected-product-empty {
  padding: .4rem 0 1.2rem;
}
.ohs-ds__selected-product,
.ohs-ds__selected-product-empty {
  background-color: rgba(255, 255, 255, .5);
}

.ohs-ds__selected-product .qty {
  width: 25px;
}

.ohs-ds__selected-product .cart-remove-button {
  min-width: 3.5rem;
  min-height: 3.5rem;
  padding: 0;
  margin: 0 0.1rem 0.1rem 0;
}

.ohs-ds__selected-dose,
.ohs-ds__selected-autoship {
  height: 3.2rem;
}

.ohs-ds__selected-dose .field__input::placeholder {
  opacity: .7;
  font-size: 1.4rem;
}

.ohs-ds__selected-dose .icon-capsules {
  width: 1.3rem;
  margin: 0 1rem;
}

.ohs-ds__selected-dose .field__input {
  background-color: transparent;
  height: 3rem;
  padding: 0 0.8rem 0 0;
  font-size: 1.4rem;
}

.ohs-ds__selected-dose .field__input:focus {
  box-shadow: none;
}

.ohs-ds__selected-autoship {
  font-size: 1.4rem;
}

.ohs-ds__selected-autoship input[type="checkbox"] {
  margin: 0 1rem;
}

.ohs-ds__selected-autoship .autoship_freq {
  border: none;
  padding-right: 0.5rem;
}

.ohs-ds__selected-autoship .autoship_freq select {
  line-height: calc(1 + 0.5 / var(--font-body-scale));
  font-family: var(--font-body-family);
  border: none;
  background-color: transparent;
}

.save-script-form {
  border-radius: 20px;
}

.autoship-options .autoship-buttons {
  border: 1px solid #ccc;
  border-radius: 4px;
  flex-grow: 1;
  overflow: hidden;
}

.autoship-options .autoship-link {
  text-decoration: none;
  text-align: center;
  flex-grow: 1;
  color: rgb(var(--color-button-text));
  border-radius: 0;
  font-weight: normal;
  padding: 0;
  min-width: 0;
  min-height: calc(2.5rem + var(--buttons-border-width)* 2);
}

.autoship-options .autoship-link:hover {
  background-color: rgba(var(--color-button-text), .3);
}

.autoship-options .autoship-link.selected {
  font-weight: bold;
  background-color: rgba(var(--color-button-text), .3);
  font-weight: bold;
}