/*===============================
    Nav Tabs
=============================== */
#hl-package-tabs {
	display: flex;
	flex-wrap: wrap;
	border-bottom: none;
	gap: 1.2rem;
	list-style: none;
	margin-bottom: 1.5rem;
}

#hl-package-tabs .nav-item {
  margin-bottom: 20px;
}

#hl-package-tabs .nav-link {
		border: 1px solid #54993D;
		border-radius: 8px;
		color: #1A1A1A;
		font-weight: 500;
		background-color: #fff;
		padding: 0.6rem 1rem;
		transition: all 0.25s ease-in-out;
		font-size: 1rem;
}

#hl-package-tabs .nav-link:hover {
  background-color: #E1F0DC;
  border-color: #54993D;
}

#hl-package-tabs .nav-link.active {
  background-color: #54993D;
  border-color: #54993D;
  color: #fff;
  box-shadow: 0 2px 6px rgba(10,168,158,0.2);
}
@media (max-width:768px){

    #hl-package-tabs{
        display:flex;
        flex-wrap:nowrap;
        overflow-x:auto;
        overflow-y:hidden;
        width:100%;
        gap:8px;
        scrollbar-width:thin;
        scrollbar-color:#54993D #E1F0DC;
		padding: 0 0 0 10px;
    }

    #hl-package-tabs .nav-item{
        flex-shrink:0;
    }

    #hl-package-tabs .nav-link{
        width:max-content;
        white-space:nowrap;
    }

    /* Chrome, Edge, Safari */
    #hl-package-tabs::-webkit-scrollbar{
        height:5px;
    }

    #hl-package-tabs::-webkit-scrollbar-track{
        background:#E1F0DC;
        border-radius:50px;
    }

    #hl-package-tabs::-webkit-scrollbar-thumb{
        background:#54993D;
        border-radius:50px;
    }

    #hl-package-tabs::-webkit-scrollbar-thumb:hover{
        background:#54993D;
    }
}
/*===============================
    accordion
=============================== */
#hl-main-accordion .accordion-header [type=button]:focus, 
#hl-main-accordion .accordion-header [type=button]:hover, 
#hl-main-accordion .accordion-header [type=submit]:focus, 
#hl-main-accordion .accordion-header [type=submit]:hover, 
#hl-main-accordion .accordion-header button:focus,
#hl-main-accordion .accordion-header button:hover {
        background-color: transparent;
        color: #15290F;
}

#hl-main-accordion {
  border: none;
}
.accordion-item {
  border: 1px solid #E1F0DC;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 3px rgba(0,0,0,0.03);
  transition: all 0.25s ease-in-out;
  background-color: #fff;
}
.accordion-item:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.accordion-button {
  font-weight: 600;
  font-size: 1.3rem;
  color: #1A1A1A;
  background-color: #fff;
  border: none;
  box-shadow: none;
  padding: 1rem 1.2rem;
  transition: all 0.2s ease;
}
.accordion-button:not(.collapsed) {
  color: #1A1A1A;
  background-color: transparent;
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: none;
}
.accordion-body {
  background-color: #ffffff;
  padding: 0.1rem 1.5rem 1.5rem;
  color: #4E5266;
  font-size: 1rem;
  line-height: 1.8;
}
.accordion-body h6 {
  color: #15290F;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}
.accordion-body .col-6 p {
  margin: 0.4rem 0;
}
.accordion-body .tests-box {
    margin-top: 2rem;
}
.accordion-body .inner-first {
    border-left: 1px dashed #e1e6e9;
    padding-left: 1rem;
}
.accordion-body .free_txt1 {
  color: #808080;
  font-size: 1.1rem;
  margin-right: 3px;
  margin-left:3px;
}
.accordion-body .free_txt2 {
    color: #164706;
    font-weight: 700;
    font-size: 1.8rem;
    padding: 0 0.5rem 0 0;
}

.btn-package {
    background-color: #54993D;
    border: none;
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 85%;
    margin: 1.5rem auto 0.5rem;
    display: block;
}
.btn-package:hover {
  background-color:#004e9b;
  color:#fff;
}
.price-real .price-real-txt {
    font-size: 1.2rem;
    font-weight: 600;
    color: #808080;
}
.price-ins .priceins-bg {
    background-color: #E1F0DC;
    padding: 0px 6px;
    border-radius: 5px;
    margin: 0 6px;
}

button#hl-load-more {
    color: #297A0F;
    font-size: 1rem;
    font-weight: 600;
    padding: 1.2rem 0;
    border: none;
    width:100%;
    background-color: transparent;
    cursor: pointer;
}
#hl-load-more:hover,#hl-load-more:focus{
    background-color: transparent;
    color:#15290F;
    border:none;
    box-shadow:none;
}
#hl-main-accordion .accordion-header{
    margin-bottom: 0 !important;
}
@media (max-width:768px){
    #hl-main-accordion .price-real {
        margin-top: 1rem;
    }
    #hl-main-accordion .accordion-body .inner-first {
        border-left:0;
        border-bottom: 1px dashed #e1e6e9;
        padding-left: 0rem;
    }
    #hl-main-accordion .accordion-body .free_txt2 {
        font-size: 1.4rem;
    }
    #hl-main-accordion .btn-package {
        font-size: 1.1rem;
    }
    #hl-main-accordion .accordion-body p {
        font-size: 0.9rem;
    }
    #hl-main-accordion .accordion-button {
        font-size: 0.95rem;
        padding: 1rem 1.2rem;
    }

    #hl-load-more {
        font-size: 1rem;
    }
    .accordion-body .tests-box {
        margin-top: 0;
        margin-bottom: 1rem;
    }
    .price-real .price-real-txt {
        font-size: 1rem;
    }
}
/*===============================
    Fade
=============================== */
.fade {
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
}
.fade.show {
  opacity: 1;
}
/*===============================
    Loading
=============================== */
#hl-loading .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
  color: #5788ba;
}
#hl-load-more-loading .spinner-border {
  width: 1.4rem;
  height: 1.4rem;
}
/*===============================
 Modal
 ===============================*/

.select2-container--open,
.select2-container--open .select2-dropdown,
.select2-container--open .select2-dropdown--below,
.select2-container--open .select2-dropdown--above {
    z-index: 99999 !important;
}

#homelabModalPrescription,
#homelabModalNoPrescription {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    padding: 1.25rem;
    overflow-y: auto;
}

#homelabModalPrescription.show,
#homelabModalNoPrescription.show {
    display: flex;
}

#homelabModalPrescription .modal-dialog,
#homelabModalNoPrescription .modal-dialog {
    max-width: 768px;
    width: 100%;
    margin: 0;
}

#homelabModalPrescription .modal-content,
#homelabModalNoPrescription .modal-content {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

#homelabModalPrescription .modal-header,
#homelabModalNoPrescription .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.3rem;
    border-bottom: 1px solid #edeef0;
}
#homelabModalPrescription .modal-header .modal-title,
#homelabModalNoPrescription .modal-header .modal-title{
    margin-bottom:0px !important;
    font-size: 20px !important;
}
#homelabModalPrescription .modal-body,
#homelabModalNoPrescription .modal-body {
    padding: 1.2rem 1.3rem;
    overflow-y: auto !important;
    overflow-x: hidden;
    max-height: calc(100vh - 5rem);
}

#homelabModalPrescription .btn-close,
#homelabModalNoPrescription .btn-close {
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

#homelabModalPrescription .btn-close::before,
#homelabModalNoPrescription .btn-close::before,
#homelabModalPrescription .btn-close::after,
#homelabModalNoPrescription .btn-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1rem;
    height: 2px;
    background: #333;
    transform-origin: center;
}

#homelabModalPrescription .btn-close::before,
#homelabModalNoPrescription .btn-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

#homelabModalPrescription .btn-close::after,
#homelabModalNoPrescription .btn-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

body.homelab-modal-open {
    overflow: hidden;
}

.accordion-collapse {
    display: none;
}

.accordion-collapse.show {
    display: block;
}

/*===============================
 Form
=============================== */
.gform_wrapper.gravity-theme .gform_validation_errors {
    display: none;
}
.drdr-homelab-form .title_section {
    position: relative;
    margin: 30px 0 10px;
}
.drdr-homelab-form .title_section.location:before {
    width: 75%;
}
.drdr-homelab-form .title_section:before {
    content: "";
    width: 82%;
    border-bottom: 2px solid #355171;
    height: 2px;
    position: absolute;
    left: 0%;
    top: 12px;
}
.drdr-homelab-form .title_section.location .title {
    width: 25%;
}
.drdr-homelab-form .title_section .title {
    font-size: 18px;
    font-weight: 700;
    z-index: 99;
    position: relative;
    padding: 0 0px;
    width: 18%;
    display: flex;
}
.gform_required_legend {
    display: none;
}
.drdr-homelab-form .ginput_container.ginput_container_radio {
    line-height: 28px;
    margin-bottom: 20px;
}
.drdr-homelab-form .ginput_container.ginput_container_phone {
    direction: ltr;
    text-align: right;
}
.drdr-homelab-form .ginput_container.ginput_container_select {
    position:relative;   
}
.drdr-homelab-form .gform-body,
.drdr-homelab-form .gform_fields {
    gap: 0 !important;
}
.drdr-homelab-form .gfield {
    margin-bottom: 18px;
}
.drdr-homelab-form input[type="text"],
.drdr-homelab-form input[type="tel"],
.drdr-homelab-form input[type="email"],
.drdr-homelab-form input[type="url"],
.drdr-homelab-form select,
.drdr-homelab-form textarea {
    width: 100% !important;
    height: 48px !important;
    border: 1px solid #297A0F !important;
    border-radius: 12px !important;
    background: #F6FAF5 !important;
    padding: 5px 18px !important;
    font-size: 18px !important;
    color: #122b46 !important;
    box-shadow: none !important;
    transition: all .2s ease;
}
.drdr-homelab-form .ginput_counter.gfield_description.warningTextareaInfo {
    display: none;
}
.drdr-homelab-form input::placeholder,
.drdr-homelab-form textarea::placeholder {
    color: #7c8a96;
    opacity: 1;
    font-size: 17px;
}
.drdr-homelab-form input:focus,
.drdr-homelab-form select:focus,
.drdr-homelab-form textarea:focus {
    border-color: #54993D !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgb(0 103 205 / 8%) !important;
}
.drdr-homelab-form .hidden_label .gfield_label,
.drdr-homelab-form .hidden_label legend {
    display: none !important;
}
.drdr-homelab-form .ginput_counter {
    margin-top: 8px;
    padding-right: 6px;
    font-size: 12px;
    color: #7d8790;
    text-align: left;
}
.drdr-homelab-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 9 9 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 16px;
    padding-left: 44px !important;
}
.drdr-homelab-form .drdr_homelab_base_cities .gfield_radio {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    flex-direction: unset !important;
}
.drdr-homelab-form .drdr_homelab_base_cities input[type="radio"] {
    display: none;
}
.drdr-homelab-form .drdr_homelab_base_cities .gchoice label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1.5px solid #54993D;
    background: #fff;
    color: #122b46;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
}
.drdr-homelab-form .drdr_homelab_base_cities .gchoice label:hover {
    border-color: #54993D;
    transform: translateY(-1px);
}
.drdr-homelab-form .drdr_homelab_base_cities input[type="radio"]:checked + label {
    background: #54993D;
    border-color: #54993D;
    color: #fff;
    box-shadow: 0 6px 20px rgb(0 103 205 / 32%);
}
.drdr-homelab-form .drdr_homelab_base_cities legend {
    display: none !important;
}
.drdr-homelab-form .gform_footer {
    margin-top: 20px !important;
    padding-top: 0 !important;
}
.drdr-homelab-form .gform_button {
    width: 100%;
    height: 62px;
    border: none !important;
    border-radius: 999px !important;
    background: #297A0F;
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: none !important;
}

.drdr-homelab-form_wrapper .drdr-homelab-form input.gform_button:hover,
.drdr-homelab-form_wrapper .drdr-homelab-form input.gform_button:focus {
    background: #54993D !important;
    box-shadow: 0 10px 25px rgba(22, 198, 166, .25) !important;
}
.drdr-homelab-form .gfield_error input,
.drdr-homelab-form .gfield_error select {
    border-color: #ff6b6b !important;
}
.drdr-homelab-form .validation_message {
    margin-top: 8px;
    font-size: 13px;
    color: #ff6b6b;
}
.gform_wrapper.gravity-theme.drdr-homelab-form_wrapper .gfield-choice-input+label{
  max-width: fit-content;  
}
.drdr-homelab-form span.select2.select2-container {
    width: 100% !important;
}

.drdr-homelab-form span.select2.select2-container .select2-selection{
    height: 48px !important;
    border: 1px solid #297A0F !important;
    border-radius: 12px !important;
    background: #F6FAF5 !important;
    padding: 12px 18px !important;
    font-size: 18px !important;
    color: #122b46 !important;
    box-shadow: none !important;
    transition: all .2s ease; 
}
.drdr-homelab-form .select2-search--dropdown .select2-search__field {
    padding: 8px 5px;
}
.drdr-homelab-form .select2-dropdown {
    border: 1px solid #297A0F;
}
.drdr-homelab-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 12px;
    width: 36px;
}
.drdr-homelab-form .gform_confirmation_message{
    text-align: center;  
}
.drdr-homelab-form .confirmation-message.suuccess {
    font-size: 28px;
    margin-bottom: 10px;
    color: #0f7020;
}
.drdr-homelab-form_wrapper h2.gf_submission_error {
    text-align: center !important;
    font-size: 18px !important;
}
.drdr-homelab-form_wrapper.gform_wrapper.gravity-theme .gfield_validation_message,
.drdr-homelab-form_wrapper.gform_wrapper.gravity-theme .validation_message {
    background: none;
    border: none;
    padding: 0px 12px;
    font-size: 14px !important;
}
.select2-dropdown
{
    border: 1px solid #297A0F;
    /*top: 33px;*/
    padding: 5px 10px;
}
.gform-footer.gform_footer.top_label {
    position: relative;
}

.gform_ajax_spinner {
    margin-top: -30px;
    right: 45%;
    width: 24px !important;
    height: 24px !important;
    margin-right: 10px;
    opacity: 1 !important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%235788ba' stroke-width='4' stroke-linecap='round' stroke-dasharray='90 60'/%3E%3C/svg%3E");
}
.drdr-homelab-form .dashicons-trash:before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cc0000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3Cpath d='M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

@media (max-width: 768px) {

	#homelabModalPrescription .modal-header .modal-title, 
	#homelabModalNoPrescription .modal-header .modal-title {
     	font-size: 16px !important;
	}
    .drdr-homelab-form .title_section .title {
        font-size: 15px;
    }
    .drdr-homelab-form input[type="text"],
    .drdr-homelab-form input[type="tel"],
    .drdr-homelab-form select {
        height: 52px;
        font-size: 13px !important;
    }
	.drdr-homelab-form #field_30_29 label {
		font-size: 14px;
	}
	.gform_wrapper.gravity-theme .gfield_label {
    	font-size: 14px;
	}
    .drdr-homelab-form .drdr_homelab_base_cities .gfield_radio {
        gap: 10px;
    }
    .drdr-homelab-form .drdr_homelab_base_cities .gchoice label {
        min-height: auto;
        padding: 8px 8px;
        font-size: 13px !important;
        border-radius: 8px;
    }
    .drdr-homelab-form .gform_button {
        height: 56px;
        font-size: 18px !important;
    }

    .drdr-homelab-form .title_section {
        margin: 10px 0 0px;
    }
    .drdr-homelab-form .title_section .title {
        width: 40%;
    }
    .drdr-homelab-form .title_section.location .title {
        width: 60%;
    }
    .drdr-homelab-form .title_section.location:before {
        width: 50%;
    }
    .drdr-homelab-form .title_section:before {
        width: 60%;
    }
    .drdr-homelab-form input[type=text], .drdr-homelab-form input[type=tel], 
    .drdr-homelab-form input[type=email], .drdr-homelab-form input[type=url], 
    .drdr-homelab-form select, .drdr-homelab-form textarea 
    {
        height: 40px !important;
        border: 1px solid #297A0F !important;
        padding: 6px 10px !important;
        font-size: 14px !important;
    }
    .drdr-homelab-form input[type=text]::placeholder,
    .drdr-homelab-form input[type=tel]::placeholder,
    .drdr-homelab-form input[type=email]::placeholder,
    .drdr-homelab-form input[type=url]::placeholder,
    .drdr-homelab-form textarea::placeholder {
        font-size: 14px;
    }
    .drdr-homelab-form span.select2.select2-container .select2-selection {
        height: 40px !important;
        padding: 6px 10px !important;
        font-size: 14px !important;
    }
    .drdr-homelab-form .select2-container--default .select2-selection--single .select2-selection__arrow
    {
        top: 8px;
    }
    .drdr-homelab-form .drdr_homelab_base_cities .gfield_radio {
        margin-top: 0;
        margin-bottom: 25px;
    }
    .drdr-homelab-form_wrapper.gform_wrapper.gravity-theme .gfield_validation_message,
    .drdr-homelab-form_wrapper.gform_wrapper.gravity-theme .validation_message {
        font-size: 12px !important;
    }
	.select2-container--default .select2-results>.select2-results__options {
        font-size: 13px;
	}
    #homelabModalPrescription .gform_wrapper.gravity-theme .gfield_label {
        font-size: 14px;
	}
	.drdr-homelab-form .confirmation-message.suuccess {
		font-size: 20px;
		font-weight: 700;
	}
	.drdr-homelab-form .gform_confirmation_message {
        font-size: 14px;
	}
	
}

/*===============================
    Responsive
=============================== */
@media (max-width: 768px) {
  #hl-package-tabs .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
	  line-height:48px;
  }

  .accordion-body {
    padding: 1rem;
  }

  .btn-package {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* =====================================================
   Prescription Type
===================================================== */

.drdr-homelab-form #field_30_29 .gfield_radio{
    display:flex;
    gap:20px;
}

.drdr-homelab-form #field_30_29 .gchoice{
    display:flex;
    justify-content:flex-end;
}

.drdr-homelab-form #field_30_29 .gfield-choice-input{
    appearance:none;
    -webkit-appearance:none;
    width:22px;
    height:22px;
    border:2px solid #97a6b0;
    border-radius:50%;
    margin-left:12px;
    cursor:pointer;
    position:relative;
}

.drdr-homelab-form #field_30_29 .gfield-choice-input:checked{
    border-color:#004E9B;
}

.drdr-homelab-form #field_30_29 .gfield-choice-input:checked:before{
    content:"";
    width:12px;
    height:12px;
    background:#004e9b;
    border-radius:50%;
    position:absolute;
    top:3px;
    left:3px;
}

.drdr-homelab-form #field_30_29 label{
    font-size:16px;
    color:#355171;
}
/* =====================================================
   Upload Button
===================================================== */

.drdr-upload-file .gfield_description.gform_fileupload_rules{
    display: none !important;
}


/* =====================================================
   confirmation Button
===================================================== */
#homelabModalPrescription.homelab-confirmed .btn-close,
#homelabModalNoPrescription.homelab-confirmed .btn-close {
    display: none !important;
}

.homelab-confirmation {
    text-align: center;
}

.homelab-confirmation-actions {
    margin-top: 24px;
}

.homelab-confirmation-reload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 46px;
    padding: 10px 28px;
    border: 0;
    border-radius: 8px;
    background: #297a0f;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.homelab-confirmation-reload:hover {
    background: #21630c;
}

.homelab-confirmation-reload:focus-visible {
    outline: 3px solid #297a0f;
    outline-offset: 3px;
}

.homelab-confirmation-reload:disabled {
    opacity: 0.65;
    cursor: wait;
}

/*===============================
 Error popup (form-level error)
=============================== */
.homelab-error-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100001; /* above #homelabModal* (99999) */
}
.homelab-error-popup.show {
    display: flex;
}
.homelab-error-popup__box {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem 1.4rem 1.3rem;
    background: #fff;
    border-radius: 16px;
    border-top: 5px solid #f93568;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.homelab-error-popup__title {
    margin: 0 0 .6rem !important;
    font-size: 18px !important;
    font-weight: 700;
    color: #f93568;
}
.homelab-error-popup__text {
    margin: 0 0 1.2rem;
    font-size: 15px;
    line-height: 1.9;
    color: #333;
    word-break: break-word;
}
.homelab-error-popup__btn {
    min-width: 140px;
    height: 46px;
    padding: 0 1.5rem;
    border: none;
    border-radius: 999px;
    background: #297A0F;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease;
}
.homelab-error-popup__btn:hover,
.homelab-error-popup__btn:focus-visible {
    background: #54993D;
}

/*==fix overflow==*/
:is(#homelabModalPrescription, #homelabModalNoPrescription) {
    box-sizing: border-box;
    overflow-x: hidden !important;
}

:is(#homelabModalPrescription, #homelabModalNoPrescription)
.modal-dialog {
    width: 100%;
    max-width: 768px;
    min-width: 0;
}
:is(#homelabModalPrescription, #homelabModalNoPrescription)
.modal-content {
    position: relative;
    min-width: 0;
    max-width: 100%;
}

:is(#homelabModalPrescription, #homelabModalNoPrescription)
.modal-body {
    position: relative;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden !important;
}
:is(#homelabModalPrescription, #homelabModalNoPrescription)
:is(
    .gform_wrapper,
    form,
    .gform_body,
    .gform-body,
    .gform_fields,
    .gfield,
    .ginput_container,
    span.select2
) {
    min-width: 0;
    max-width: 100%;
}
:is(#homelabModalPrescription, #homelabModalNoPrescription)
select.select2-hidden-accessible {
    width: 1px !important;
    min-width: 0 !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

:is(#homelabModalPrescription, #homelabModalNoPrescription) {
    --homelab-modal-gap: 24px;

    box-sizing: border-box;
    height: 100vh;
    height: 100dvh;
    padding: var(--homelab-modal-gap);
    align-items: center;
    overflow: hidden !important;
}

:is(#homelabModalPrescription, #homelabModalNoPrescription)
:is(.modal-dialog, .modal-content) {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 0;

    max-height: calc(100vh - 2 * var(--homelab-modal-gap));
    max-height: calc(100dvh - 2 * var(--homelab-modal-gap));
}

:is(#homelabModalPrescription, #homelabModalNoPrescription)
.modal-dialog {
    margin: 0;
}
:is(#homelabModalPrescription, #homelabModalNoPrescription)
.modal-header {
    flex: 0 0 auto;
}
:is(#homelabModalPrescription, #homelabModalNoPrescription)
.modal-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
}

@media (max-width: 768px) {
    :is(#homelabModalPrescription, #homelabModalNoPrescription) {
        --homelab-modal-gap: 16px;
    }
}

/* Prevent iPhone auto-zoom when focusing HomeLab fields */
@media (max-width: 1024px) {

    :is(#homelabModalPrescription, #homelabModalNoPrescription)
    :is(
        input:not([type]),
        input[type="text"],
        input[type="tel"],
        input[type="email"],
        input[type="url"],
        input[type="number"],
        input[type="search"],
        input[type="password"],
        select,
        textarea,
        .select2-selection
    ) {
        font-size: 16px !important;
    }

    :is(#homelabModalPrescription, #homelabModalNoPrescription)
    :is(input, textarea)::placeholder {
        font-size: 16px !important;
    }

    /* Select2 search is rendered outside the modal */
    body.homelab-modal-open
    .select2-container
    .select2-search__field {
        font-size: 16px !important;
    }

}

/* HomeLab package accordion */
#hl-main-accordion .accordion-header {
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal;
}
#hl-main-accordion .accordion-header .accordion-button {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    margin: 0;
    padding: 14px 20px;
    border: 0;
    border-radius: 0;
    background-color: #ffffff;
    color: #1A1A1A;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.6;
    cursor: pointer;
}
#hl-main-accordion .accordion-header .accordion-button::after {
    content: "";
    display: block;
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin: 0;
    margin-inline-start: auto;
    padding: 0;
    background: none;
    border: solid #297A0F;
    border-width: 0 2px 2px 0;
    border-radius: 0;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}
#hl-main-accordion .accordion-header
.accordion-button[aria-expanded="true"]::after {
    transform: rotate(225deg);
}

#hl-main-accordion .accordion-header .accordion-button:hover,
#hl-main-accordion .accordion-header .accordion-button:focus,
#hl-main-accordion .accordion-header
.accordion-button[aria-expanded="true"] {
    background-color: #F6FAF5;
    color: #164706;
}

#hl-main-accordion .accordion-header .accordion-button:focus-visible {
    outline: 2px solid #297A0F;
    outline-offset: -4px;
}

@media (max-width: 768px) {
    #hl-main-accordion .accordion-header .accordion-button {
        min-height: 56px;
        padding: 12px 16px;
    }
}