.prescription-modal {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -20%);
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 20px;
    z-index: 1000;
    border-radius: 10px;
    width: 50%;
}

@media (max-width: 800px) {
    .prescription-modal {
        width: 80%;
    }
}

#buyNowModal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 9999;
}

#buyNowModal .modal-content {
    background: #fff;
    max-width: 400px;
    height: auto;
    margin: 100px auto;
    padding: 20px;
    text-align: center;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 0 50px 10px rgba(0, 0, 0, 0.12);
}

#buyNowModal .modal-content .btn-login {
    background-color: var(--e-global-color-primary);
    color: #fff;
    padding: 7px 12px;
}


.no-prescriptions{
    text-align: center;
    padding: 10px;
    color: #888;
}

.prescription-date {
    flex: 1;
}

.new-prescription-form{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prescription-actions {
    display: flex;
    align-items: center; /* vertically center the content */
    justify-content: center;
}

.prescription-actions.create{
    padding: 16px;
}


.prescription-row-upper{
    display: flex;
    flex-direction: row;
}

.new-patient-modal-mid-text{
    text-align: center;
}


@media (max-width: 768px) {
    .prescription-actions {
        justify-content: flex-start !important;
    }
}

.dashboard-create-prescription-button {
    text-align: center;
    padding: 20px 0;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}
.dashboard-button{
    background-color: #39b4ff !important;
    border: 1px solid #39b4ff !important;
    padding: 8px 16px !important;
    color: #fff !important;
    line-height: 15px !important;
}
.woocommerce-MyAccount-content-wrapper{
    border-radius: 0 !important;
}
.dashboard-box {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 0;
    text-align: center;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 300px;
}
.dashboard-box-content{
    padding: 10px 0;
}

.dashboard-box h3 {
    margin: 0px;
}


.dashboard-box .button:hover {
    background: #005f87;
}

.e-my-account-tab__dashboard .woocommerce-MyAccount-content-wrapper p:nth-child(-n + 3) {
    display: none;
}
/* Responsive styles for mobile devices */
@media screen and (max-width: 900px) {
    .dashboard-sections {
        grid-template-columns: 1fr !important;
    }
    .woocommerce-MyAccount-content{
        padding: 0 !important;

    }
    .woocommerce-MyAccount-navigation ul{
        margin: 0 0 10px 0 !important;
    }
    .woocommerce-MyAccount-content-wrapper{
        border: none !important;
    }
}


/* Responsive styles for mobile devices */
@media screen and (max-width: 768px) {
    .dashboard-sections {
        grid-template-columns: 1fr;
    }

    .dashboard-box {
        height: auto; /* Remove fixed height for flexibility */
        padding: 15px; /* Slightly reduce padding */
    }

    .dashboard-box .button {
        padding: 10px 15px;
        font-size: 16px;
    }
}
.dashboard-box-title{
    margin: 0 !important;
    line-height: 35px;
}

.custom-my-account-dropdown select{
    background-color: lightgrey !important;
    color: black !important;
}

.refresh-dashboard-wrapper{
    display:flex;
    align-items: center;
    flex-direction: row;
    gap: 4px;
    font-size: 10px !important;
    color: grey;
    font-weight: 400;
}

#dash-last-updated-container {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
#refresh-dashboard-btn{
    background: unset;
    border: none;
    color: grey !important;
    text-decoration: underline;
    padding: 0 !important;
    font-size: 10px !important;
    height: min-content;
    font-weight: 400;

}

#dash-last-updated {
    font-weight: 400;
}

.account-toggle-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.account-toggle-buttons button,
.account-toggle-buttons a{
    background-color:  var(--pharmawp-color-blue) ;
    border: 1px solid #ccc;
    padding: 10px 20px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: white;
}
.account-toggle-buttons button:hover,
.account-toggle-buttons a:hover{
    background-color: var(--pharmawp-color-blue) !important;
    color: white;
}

.account-toggle-buttons button.active,
.account-toggle-buttons a.active {
    background-color: #0071a1 !important;
    color: #fff;
}
.account-toggle-button{
    height: 40px !important;
}


.linked-patient-row, .linked-prescriber-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid #ddd;
    flex-wrap: wrap;
    margin: 10px 0 ;
}
.linked-patient-cell, .linked-prescriber-cell {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 150px;
}

.my-partners-save-changes{
    padding: 8px 16px !important;
    width: 35%;
}
.add-prescriber{
    padding: 8px 16px !important;
}
/* Stack cells vertically on mobile */
@media (max-width: 768px) {
    .linked-patient-row, .linked-prescriber-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
.my-partners-save-changes-wrapper{
    padding-top: 10px !important;
}
.linked-patients-container, .linked-prescribers-container {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}


.my-partners-save-changes-wrapper{
    padding-top: 10px !important;
}


.add-prescriber{
    padding: 8px 16px !important;
}
.my-partners-save-changes{
    width: 35%;
    padding: 8px 16px !important;
}

.status-actions {
    margin-top: 5px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    width: 100%;
}
.status-actions .status-btn {
    font-size: 14px;
    cursor: pointer;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.status-btn-approve{
    background-color: #28a745 !important;
    border: 1px solid #28a745 !important;
}
.status-btn-reject{
    background-color: #dc3545 !important;
    border: 1px solid #dc3545 !important;
}

.referral-field-wrapper{
    padding: 0 0 30px 0;
}

.referrals-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.create-patient-button-wrapper{
    text-align: center;
    padding-top: 20px;
}
.patient-modal-header{
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 10px 0;
}
.patient-modal-header h2{
    color: var(--pharmawp-color-blue) !important;
    font-weight: 600 !important;
    text-align: center;
}
.patient-modal-header button {
    width: auto !important;
}

.close-button {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.patient-dob{
    border-radius: 0;
    border: 1px solid black;
    padding: 5px 10px;
}

.delete-patient-button{
    padding: 8px 16px !important;
}



.custom-patient-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropbtn {
    background-color: lightgrey;
    color: black;
    padding: 10px;
    font-size: 14px;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropbtn:hover, .dropbtn:focus {
    background-color: #3e8e41;
}

.dropdown-content {
    position: absolute;
    background-color: #f6f6f6;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    border: 1px solid #ddd;
    z-index: 1;
}
.dropdown-content {
    display: none;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: black;
    padding: 10px;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown-search {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 1px solid #ccc;
}

.dropdown-content.show {
    display: block;
}

.myorders-wrap {
    display: block
}

.myorders-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 0 0 16px;
    background: #fff
}

.myorders-h {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f4
}

.myorders-h .muted {
    opacity: .7
}

.myorders-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px
}

.myorders-actions a {
    margin-left: 8px;
    text-decoration: none
}

.myorders-items {
    padding: 12px 14px
}

.myorders-details {
    margin: 8px 0 0
}

.myorders-details summary {
    cursor: pointer;
    font-weight: 600
}

.myorders-group {
    border: 1px solid #eef1f4;
    border-radius: 6px;
    margin: 10px 0;
    padding: 10px
}

.myorders-group-h {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px
}

.myorders-line {
    display: grid;
    grid-template-columns: 56px 1fr 80px 120px;
    gap: 12px;
    align-items: center;
    border-top: 1px solid #f3f4f6;
    padding: 8px 0
}

.myorders-line:first-child {
    border-top: none
}

.myorders-thumb img {
    max-width: 56px;
    height: auto;
    display: block;
    width: 100%;
}

.myorders-total {
    font-weight: 600
}



.myorders-details summary {
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.myorders-details summary .toggle-icon::before {
    content: "+";
    display: inline-block;
    width: 16px;
    text-align: center;
    font-weight: 700;
}

.myorders-details[open] summary .toggle-icon::before {
    content: "−";
    /* en dash (minus-like) */
}

.trigger-add-patient-form{
    background-color: #39b4ff !important;
    border: 1px solid #39b4ff !important;
    padding: 8px 16px !important;
    color: #fff !important;
    width: 100%;
    margin-bottom: 10px;
}
.patient-cards{
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}


@media (max-width: 1000px) {
    .patient-cards{
        grid-template-columns: 1fr 1fr;
    }
    .patient-details-box{
        width: 100%;
    }
}
@media (max-width: 600px) {
    .patient-cards{
        grid-template-columns: 1fr;
    }
}
.patient-details-box{
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 15px;
}
.patient-details-top{
    display: grid;
    grid-template-columns: 1fr min-content min-content;
    gap: 4px;
    align-items: center;
}
.patient-details-bottom{
    display: grid;
    grid-template-columns: 1fr;
}
.patient-detail-action{
    background-color: #39b4ff !important;
    border: 1px solid #39b4ff !important;
    padding: 8px 16px !important;
    color: #fff !important;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}


.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.25rem;
    cursor: pointer;
    background: none;
    border: none;
}



.form-actions {
    text-align: right;
    margin-top: 1.5rem;
}

.submit-edit-patient {
    background-color: #39b4ff !important;
    border: 1px solid #39b4ff !important;
    padding: 8px 16px !important;
    color: #fff !important;
    width: 100%;
}

.patient-search-form{
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 10px !important;
    gap: 10px;
}



.prescription-list {
    list-style: none;
    padding-left: 0;
    margin: 0 !important;
}


.duplicate-prescription-button{
    background-color: #39b4ff !important;
    border: 1px solid #39b4ff !important;
    padding: 8px 16px !important;
    color: #fff !important;
    width: 100%;
}

.patient-tab-create-prescription {
    background-color: #39b4ff !important;
    border: 1px solid #39b4ff !important;
    padding: 8px 16px !important;
    color: #fff !important;
    height: 40px;
    margin-top: 15px;

}

.patient-detail-view,
.patient-detail-edit{
    background-color: #39b4ff !important;
    border: 1px solid #39b4ff !important;
    color: #fff !important;
    font-size: 13px;
    border-radius: 30px;
    padding: 0 !important;
    height: 35px;
    width: 35px;
}

.patient-detail-view svg,
.patient-detail-edit svg{
    height: 15px;
    width: 15px;
}

.icon-pencil,
.icon-eye{
    align-items: center;
}
.delete-patient-button{
    background-color: red !important;
    border: 1px solid red !important;
    color: #fff !important;
    font-size: 13px;
    border-radius: 30px;
    width: 100%;
    margin: 0 !important;
}
footer{
    display: none;
}

.view-patient-heading, .edit-patient-heading{
    margin: 0 0 15px 0 !important;
    font-weight: 500 !important;
}

.view-patient-prescriptions-heading{
    font-weight: 500 !important;
    font-size: 25px;
}

input[type="number"] {
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: auto !important;
    appearance: auto !important;
    margin: 0;
}
.category-select {
    background-color: grey !important;
    color: white !important;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-color: grey !important;
}
#category-filter-form {
    position: relative;
    width: 100%;
    background: white;
    padding: 10px;
    box-shadow: none;
}
#category-filter-form.fixed {
    position: fixed;
    top: 0;
    right: 60px;
    width: 65%;
    z-index: 1000;
    background: white;
}
.tag-checkbox-label {
    display: inline-block;
    cursor: pointer;
}
.tag-checkbox-wrapper{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
@media (max-width: 900px) {

    .apply-filters-button,
    .clear-tag-button {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        height: 50px;
    }
    .tag-filter-actions{
        width: 100%;
        grid-template-columns: 1fr !important;
    }
}
.tag-checkbox {
    width: 100%;
    font-weight: 600;
    height: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 15px;
    background-color: #A0A4B2 !important;
    color: white;
}
.tag-filter-actions{
    width: 50%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 0;
}
input[type="checkbox"] + .tag-checkbox {
    opacity: 1;
    filter: brightness(95%);
}

input[type="checkbox"]:checked + .tag-checkbox {
    opacity: 1;
    filter: none;
}

input[type="checkbox"]:checked + .tag-checkbox,
.tag-checkbox.active {
    background-color: var(--pharmawp-color-blue) !important;
    color: #fff;
    background-color: var(--pharmawp-color-blue) !important;
}

.tag-checkbox-label input[type="checkbox"] {
    display: none;
}

.apply-filters-button,
.clear-tag-button {
    font-weight: 600 !important;
    padding: 8px 16px !important;
    color: white;
    border: none;
    text-decoration: none;
}
.apply-filters-button:hover{
    background-color: var(--pharmawp-color-blue) !important;
}



.prescription-shop-out-of-stock {
    padding-bottom: 10px;
}
.you-may-also-need-title {
    text-align: center;
    padding-top: 30px !important;
}
.prescription-modal {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -20%);
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 20px;
    z-index: 1000;
    border-radius: 10px;
    height: min-content;
    max-height: 75vh;
    width: 75%;
}
.hentry .entry-content .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link a {
    color: #69727d !important;
}
.hentry .entry-content .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link.is-active a {
    color: #5bc0de !important;
}
.product-quantity {
    text-align: center;
    margin-bottom: 6px;
}

@media (max-width: 900px) {
    .prescription-modal {
        width: 80%;
        overflow-y: scroll;
    }
    .custom-product-grid {
        grid-template-columns:  1fr 1fr !important;
    }
    #category-filter-form.fixed {
        width: 100%;
        right: 0;
    }
    .you-may-also-need-title {
        font-size: 24px;
        line-height: 1.2;
    }
}
@media (max-width: 768px) {
    .woocommerce-MyAccount-content-wrapper {
        flex-direction: column;
        padding: 0px !important;
    }
    .woocommerce-MyAccount-navigation,
    .woocommerce-MyAccount-content {
        width: 100%;
    }
    .custom-product-grid {
        padding: 0 !important;
        gap: 10px !important;
        grid-template-columns: 1fr !important;
    }
    #category-filter-form {
        padding: 0 !important;
        margin-bottom: 24px !important;
    }
}
.product-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.custom-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}
.custom-product-item {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}
.custom-pagination {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 20px;
}
.custom-pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background: #0073aa;
    color: white;
    text-decoration: none;
}
.custom-pagination a:hover {
    background: #005a87;
}
.custom-product-item {
    padding: 10px !important;
}
.custom-product-item .product-thumbnail {
    justify-items: center;
}
.custom-product-item .product-thumbnail img {
    height: 200px;
    width: 200px;
    object-fit: cover;
}
.custom-product-item .product-title {
    font-size: 16px;
    line-height: 20px;
}



.prescription-shop-search{
    display: flex;
    flex-direction: column;
    gap: 5px ;
}

.prescriptions-to-authorise-container {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
}

.prescription-cell {
    display: flex;
    flex-direction: row;
    gap: 4px;
    flex: 1;
    min-width: 150px;
    padding: 0 16px ;
}
.prescription-cell-alt {
    flex: 1;
    min-width: 150px;
    padding: 0 16px ;
}
.prescription-label {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;

}
/* On mobile devices, stack cells vertically */
@media (max-width: 768px) {
    .prescriptions-to-authorise-container{
        grid-template-columns: 1fr;
    }
}
.download-pdf-button{
    padding: 0 !important;
    background-color: unset !important;
    margin-right: 8px !important;
    color: black !important;
    width: max-content;
    text-decoration: underline !important;
}





.add-items-button{
    padding:  8px 16px !important;
    margin-bottom: 10px;
}




.my-prescriptions-create-prescription{
    padding: 8px 16px !important;
    width: 100% !important;
    color: white !important;
    text-align: center;
}
.my-prescriptions-create-prescription:hover{
    background-color: var(--pharmawp-color-blue) !important;
    border: none !important;

}
.prescription-label {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

/* On mobile devices, stack cells vertically */
@media (max-width: 768px) {

    .open-prescriptions-heading, .prescription-requests-heading, .legacy-prescriptions-heading{
        grid-template-columns: 1fr !important;
    }

    #prescriber-requests-filter-form, #prescription-sort-filter-form, #legacy-sort-form {
        align-items: start;
    }
}
/* Optional: Button styling adjustments */
.add-all-to-cart, .lock-prescription-button, .script-in-cart {
    padding: 8px 16px !important;
    cursor: pointer;
    width: 100%;
}
.prescription-items li{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 4px
}
.prescription-items{
    width: 100%;
    margin: 0;
}

.my-prescriptions-in-stock{
    color: green !important;
}
.my-prescriptions-not-in-stock{
    color: red !important;
}
.my-prescriptions-not-in-stock,
.my-prescriptions-in-stock{
    padding-left: 6px;
    font-size: 12px;
}
.my-prescriptions-item{
    display: flex;
    flex-direction: row;

}





.legacy-prescriptions-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.prescription-row.legacy {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid #ddd;
    flex-wrap: wrap;
}
.prescription-label {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}
/* On mobile devices, stack cells vertically */
@media (max-width: 768px) {
    .prescription-row.legacy {
        flex-direction: column;
    }
    .legacy-prescriptions-container {
        grid-template-columns: 1fr;
    }
}
.hidden {
    display: none;
}

#fulfilled-prescriptions{
    padding: 10px 0 !important;
}
#toggle-fulfilled{
    margin-bottom: 10px !important;
}
.active-prescription-row{
    height: 100%;
}

.active-prescription-row .prescription-id{
    display: flex;
    flex-direction: row;
    justify-content: space-between !important;
    align-items: flex-start !important;
}

.active-prescription-row .prescription-add-to-cart{
    display: flex;
    flex-direction: column;
}

.active-prescription-row .prescription-add-to-cart{
    margin: 0 !important;
}
.prescription-add-to-cart, .prescription-duplicate{
    padding: 16px !important;
}

.active-prescription-row .prescription-id-text{
    display: flex;
    gap: 5px;
}

.prescription-status{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px !important;
}

.prescription-status-text{
    display: flex;
    gap: 5px;
}


.prescription-status-bar {
    width: 100%;
    padding: 6px 16px !important;
    color: #fff;
    font-weight: bold;
    text-align: center;
    display: grid;
    grid-template-columns: 1fr min-content;
    align-items: center;
}

/* Example status colors */
.status-bar-approved {
    background-color: #28a745 !important; /* green */
}

.status-bar-pending {
    background-color: #ffc107; /* yellow */
}

.status-bar-rejected {
    background-color: #dc3545 !important; /* red */
}
.status-bar-legacy {
    background-color: lightgrey !important; /* red */
    color: black !important;
}

.prescription-pdf{
    padding: 0 !important;
    text-decoration: underline;
}
.prescription-pdf a{
    color: white !important;
    width: 100%;
    text-align: right;
}

#toggle-approved-prescriptions, #toggle-rejected-prescriptions, #toggle-approved-requests, #toggle-rejected-requests{
    padding: 8px 16px !important;
    margin: 10px 0;
}
.prescriptions-to-authorise-container{
    display: flex;
    flex-direction: column;
    gap: 6px;
}


.prescription-sort-filter-form label {
    margin: 0;
}


#sort_date{
    width: 100%;
}

#prescriber-requests-filter-form, #legacy-sort-form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.prescription-requests-heading,
.legacy-prescriptions-heading {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.prescription-requests-heading-inner{
    padding: 0 !important;
}

.prescription-add-to-cart{
    justify-content: flex-end;
}

#prescription-list{
    overflow-y: scroll;
    max-height: 50vh;
}

.prescription-container .prescriptions-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.prescription-container .prescriptions-actions .prescriptions-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-section {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
    padding: 8px;
}

.my-profile-id-image {
    width: 50%;
    max-height: 300px;
    object-fit: cover;
    margin: 10px 0 !important;
}

.signature-wrapper {
    padding: 0 0 20px 0 !important;
}

.my-profile-certificate-input-label {
    /* the button to select file */
    background-color: var(--pharmawp-color-blue) !important;
    width: 100%;
    text-align: center;
    height: 100%;
    color: white;
    padding: 8px 16px;
    border: 0;
}

.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .login .button,
.elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .register .button {
    background-color: var(--color-primary) !important;
    border-radius: 10px !important;
}


/* Certificate Row Styling */
.certificate-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    background: #ffffff !important;
}



/* Insurance documents section */
#insurance-documents {
    width: 100%;
    border-collapse: collapse;
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}
#insurance-documents th{
    color: white !important;
}

#insurance-documents th:last-child,
#insurance-documents td:last-child {
    width: 1%; /* Keep the column as narrow as possible */
    white-space: nowrap; /* Prevent text from wrapping */
    text-align: center; /* Center the button */
}

#insurance-documents th,
#insurance-documents td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#insurance-documents thead {
    background: var(--pharmawp-color-blue);
    color: #ffffff;
}
#insurance-documents th{
    color:black ;
}

#insurance-documents tbody tr td {
    vertical-align: middle;
}

#insurance-documents tbody tr:nth-child(even) {
    background: #f9f9f9;
}

#insurance-documents tbody tr:hover {
    background: #f1f1f1;
}


/* Responsive */
@media (max-width: 768px) {
    .my-profile-certificate-input-label {
        width: 45%;
    }

    .my-profile-id-image {
        width: 100%;
    }

    .profile-section {
        grid-template-columns: 1fr;
    }

}

#profile_completion {
    position: fixed;
    max-width: 100%;
    width: 1000px;
    height: 60%;
    top: 50%;
    left: 50%;
    background-color: #fff;
    z-index: 99;
    transition: all 1s ease-in-out;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 10px 20px;
}

#profile_completion form,
#profile_completion .container {
    height: 100%;
}

#profile_completion .profile-completion-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

#profile_completion .profile-completion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    border-bottom: 1px solid #d5d5d5;
}

#profile_completion .profile-completion-header > * {
    margin: 0;
}

#profile_completion .profile-completion-header button {
    display: flex;
    padding: 10px;
}

#profile_completion .profile-completion-header button svg {
    width: 20px;
    fill: #fff;
}

#profile_completion .profile-completion-body {
    display: flex;
    flex-direction: column;
    gap: 50px;
    overflow-y: auto;
    padding: 30px 0;
}

#profile_completion .profile-completion-body .profile-completion {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#profile_completion .profile-completion-body .postcode-lookup {
    position: relative;
}

#profile_completion .profile-completion-body .postcode-lookup input {
    width: 100%;
}

#profile_completion .profile-completion-body .postcode-lookup button {
    position: absolute;
    top: 50%;
    right: 0;
    font-size: 12px;
    padding: 5px;
    transform: translateY(-50%);
}

#profile_completion .profile-completion-body #signature_wrapper .form-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#profile_completion .profile-completion-body #signature_wrapper .form-field-label button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 400;
}

#profile_completion .profile-completion-body #signature_wrapper .form-field-label button svg {
    width: 10px;
    fill: #fff;
}

#profile_completion .profile-completion-body .insurance-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

#profile_completion .profile-completion-body .insurance-header > * {
    margin: 0;
}

#profile_completion .profile-completion-body .insurance-header button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 400;
}

#profile_completion .profile-completion-body .insurance-header button svg {
    width: 10px;
    fill: #fff;
}

#profile_completion .profile-completion-body .profile-completion-personal .lookup-suggestion-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background-color: #f8fafc;
    padding: 10px;
}

#profile_completion .profile-completion-body .profile-completion-personal .lookup-suggestion-list .lookup-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 17px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#profile_completion .profile-completion-body .profile-completion-personal .lookup-suggestion-list .lookup-suggestion:hover {
    background-color: #e5f1fd;
}


#profile_completion .profile-completion-body .profile-completion-personal .lookup-suggestion-list .lookup-suggestion .lookup-suggestion-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

#profile_completion .profile-completion-body .profile-completion-personal .lookup-suggestion-list .lookup-suggestion svg {
    width: 15px;
}

#profile_completion .profile-completion-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #d5d5d5;
    padding: 30px 0;
}

#profile_completion .profile-completion-footer .actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

#profile_completion .profile-completion-footer .actions .loader {
    background-color: var(--color-primary);
    border-radius: 50%;
    width: 20px;
}

#profile_completion_role_identifier .step-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#profile_completion_role_identifier .step-selection > div {
    font-weight: 700;
    background-color: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    padding: 12px 24px;
    cursor: pointer;
}

#profile_completion_role_identifier .step-selection > div.active {
    background-color: var(--color-primary);
    color: #fff;
}

.about-you-form-one-modal,
.about-you-form-two-modal{
    overflow-y: auto;
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: white;
    padding: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 !important;
    max-width: 750px;
    width: 100%;
    height: 60%;
}

#skip-onboarding-btn{
    background-color: unset !important;
    border: none !important;
    color: white;
    text-decoration: underline;
}

.skip-onboarding-wrapper {
    position: fixed;
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    padding-top: 10px;
    text-align: center;
    min-width: 200px;
}

.skip-onboarding-wrapper button{
    width: 100%;
}

.insurance-file-row{
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 8px 0;
}


.training-certificates-container {
    padding-bottom: 10px;
}

.certificate-input-label {
    /* the button to select file */
    background-color: var(--pharmawp-color-blue) !important;
    width: 35%;
    text-align: center;
    height: 100%;
    color: white;
    padding: 8px 16px;
    border: 0;
}

.about-you-two-header h3 {
    margin: 0 !important;
}

.about-you-two-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.about-you-two-blurb {
    padding-top: 15px;
}

.back-to-step-one {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    color: black !important;
}


/* Certificate Row Styling */
.certificate-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    background: #ffffff !important;
}

/* Custom File Upload Button */
.custom-file-upload {
    display: inline-block;
    padding: 8px 12px;
    background: #007bff !important;
    color: white;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    width: 150px;
    text-transform: uppercase;
    font-weight: bold;
}

.custom-file-upload:hover {
    background: #0056b3 !important;
}

/* Hide default file input */
.custom-file-upload input[type="file"] {
    display: none;
}

/* Input and Select Styling */
.certificate-select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 65%;
}

/* Delete Button */
.delete-certificate {
    background: #ff4d4d !important;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 11px !important;
}

.delete-certificate:hover {
    background: #cc0000 !important;
}

/* Add Button */
.add-certificate {
    display: block;
    width: 100%;
    padding: 8px 16px !important;
    background: var(--pharmawp-color-blue) !important;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.add-certificate:hover {
    background: var(--pharmawp-color-blue) !important;
}



/* Responsive */
@media (max-width: 767px) {
    #profile_completion {
        height: 90%;
        padding: 0;
    }

    #profile_completion .profile-completion-body {
        gap: 30px;
    }

    #profile_completion .profile-completion-body .profile-completion {
        gap: 20px;
    }

    #profile_completion .profile-completion-footer {
        flex-wrap: wrap;
    }

    #profile_completion .profile-completion-footer .actions,
    #profile_completion .profile-completion-footer .actions button {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .certificate-input-label {
        width: 45%;
    }
    .skip-onboarding-wrapper{
        width: 100%;
        padding: 0;
    }

}

.tutor-course-details-instructors{
    display: none;
}
#tutor-dashboard-footer-mobile{
    display: none !important;
}
.tutor-topbar-complete-btn form{
    margin: 0 !important
}
.tutor-topbar-complete-btn form button{
    padding: 6px 16px;
}
.tutor-dashboard-header-avatar, .tutor-user-info{
    display: none !important;
}
.tutor-dashboard-permalinks{
    list-style: none;
    margin: 0;
}
.tutor-download-certificate .tutor-dc-button-group {
    position: initial !important;
    flex-direction: row !important;
    display: flex !important;
    gap: 20px !important;
}
.tutor-dc-download-button button,
.tutor-dc-copy-button button,
.tutor-dc-print-button button,
.tutor-dc-share-button  button{
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
}

.tutor-dashboard-left-menu, .tutor-dashboard-title{
    display: none !important;
}

.tutor-frontend-dashboard-maincontent .tutor-col-md-8{
    width: 100% !important;
}

.tutor-frontend-dashboard{
    padding: 0 !important;
}

.tutor-dashboard-content{
    margin: 0 0 10px 0 !important;
}

.tutor-frontend-dashboard .tutor-col-12,
.tutor-frontend-dashboard .tutor-courses-wrap,
.tutor-courses-wrap   {
    padding: 0 !important;
}

@media (min-width: 1200px) {
    .tutor-g-xl-5, .tutor-gx-xl-5 {
        --tutor-gutter-x: 0 !important;
    }
}

.tutor-avatar{
    display: none !important;
}
.tutor-card-body .tutor-meta.tutor-mt-auto{
    display: block;
}

.tutor-category-recommendation .tutor-course-filter{
    display: none !important;
}

.custom-course-card a img{
    width: 100% !important;
    max-height: 250px;
    object-fit: cover;
}
.custom-course-card {
    border: 1px solid #ddd;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    background-color: #fff;
}


.custom-course-content{
    padding: 15px 10px;
}

.custom-course-content h4 a{
    color: black !important;
    font-weight: 400;
}
.custom-course-content h4{
    font-size: 18px;
    line-height: 22px;
}

.custom-course-link{
    text-decoration: underline !important;
    color: var(--pharmawp-color-blue) !important;
    display: block;
}

.tutor-single-course-sidebar .tutor-card-footer{
    display: none !important;
}

.tutor-course-progress-item  .tutor-ratings {
    display: none !important;
}

.single-courses .breadcrumb-bar,
.single-lesson .breadcrumb-bar{
    display: none !important;
}

.single-lesson .tutor-topbar-mark-btn {
    display: none;
}
.tutor-sidebar-card{
    border-radius: 0 !important;
}

@media (min-width: 1200px){
    .tutor-sidebar-card{
        opacity: 0;
    }
}


@media (max-width: 767px) {
    .tutor-account-link-banner {
        display: none !important;
    }
}

.tutor-account-link-banner {
    margin-bottom: 16px;
    font-size: 14px;
}

.tutor-account-link-banner a {
    color: var(--pharmawp-color-blue);
    text-decoration: underline;
}


.tutor-course-details-page.tutor-container{
    padding: 0;
    margin: 0;
}
form.tutor-mt-20 .tutor-btn.tutor-btn-outline-primary.tutor-btn-block{
    display: none;
}

.woocommerce-MyAccount-navigation ul{
    margin: 0;
}

.woocommerce .checkout .woocommerce-shipping-fields .shipping_address {
    position: fixed;
    width: 800px;
    max-width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.12);
}

/* Hide the original checkbox container */
.woocommerce-shipping-fields #ship-to-different-address {
    display: none !important;
}
/* Style your new toggle button */
#toggle-shipping-button {
    background-color: #007cba;
    color: #fff;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 15px;
}
#toggle-shipping-button:hover {
    background-color: #005a87;
}

@media (max-width: 1024px) {

    .e-cart__container{
        width: -webkit-fill-available;
    }
    .elementor-widget-woocommerce-cart{
        width: -webkit-fill-available;
    }
}



@media (max-width: 800px) {
    .woocommerce-checkout-review-order,
    .woocommerce-checkout-review-order .e-checkout__order_review,
    #customer_details .col-1,
    #customer_details .col-2 #ship-to-different-address{
        padding: 0 !important;
    }
    .woocommerce-shipping-totals.shipping{
        display: flex !important;
        flex-direction: column;
    }
    .woocommerce-shipping-methods li label{
        display: flex;
        gap: 5px;
        flex-direction: row;
        text-wrap: nowrap;
        align-items: center;
    }
    .checkout-review-order-table-wrapper td,
    .checkout-review-order-table-wrapper th{
        border-top: none !important;
    }
}








.e-cart__column.e-cart__column-start{
    display: grid;
    grid-template-columns: 2fr 0 1fr;
}
.e-cart__container{
    display: block !important;
}
.prescription-card {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin: 16px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    background: #fff;
}

.prescription-card__header {
    background: var(--pharmawp-color-blue);
    color: #fff !important;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    font-weight: 600;
    gap: 10px;
}
.prescription-card__header-left span { margin-right: 12px; }
.prescription-card__remove { color: #fff !important; text-decoration: none; font-weight: 700; }

.prescription-card__items { padding: 12px 14px; }

.prescription-line {
    display: grid;
    grid-template-columns: 56px 1fr auto auto auto;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.prescription-line:last-child { border-bottom: none; }

.prescription-line__thumb img { width: 56px; height: auto; }

.prescription-line__name a { text-decoration: none; }
.prescription-line__qty { min-width: 110px; text-align: right; }
.prescription-line__subtotal { min-width: 110px; text-align: right; }
.prescription-line__remove { min-width: 28px; text-align: right; }

.prescription-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px 14px;
    font-size: 0.95em;
}
.prescription-card__edit { text-decoration: none; }
.prescription-card__subtotal { font-weight: 600; }
.prescription-card__remove.is-removing {
    opacity: 0.7;
    cursor: not-allowed;
}


@media (max-width: 800px) {
    .prescription-card{
        width: min-content;
    }
    .prescription-card__header,
    .prescription-card__items,
    .prescription-card__footer{
        width: 90vw;
    }
    .cart_totals {
        padding: 0 !important;
    }
    .prescription-card__header-left{
        display: flex;
        flex-direction: column;
    }
}