﻿@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

@font-face {
    font-family: "pipeline-medical";
    src: url("../fonts/pipeline-medical.eot?nywlf8");
    src: url("../fonts/pipeline-medical.eot?nywlf8#iefix") format("embedded-opentype"), url("../fonts/pipeline-medical.ttf?nywlf8") format("truetype"), url("../fonts/pipeline-medical.woff?nywlf8") format("woff"), url("../fonts/pipeline-medical.svg?nywlf8#pipeline-medical") format("svg");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

[class^=icon-], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: "pipeline-medical" !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.footer {
    padding-top: 25px;
}

.loading {
    font-family: Arial;
    font-size: 10pt;
    z-index: 1000;
    align-items: center;
    padding-left: 753px;
    padding-top: 280px;
    background: #e9e9e9;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.5;
}


.navbar-brand.logo-pipeline img {
    min-width: 105px;
    max-width: 105px;
    height: auto;
    max-height: none;
}

.navbar-brand.logo-mrn img {
    min-width: 180px;
    max-width: 180px;
    height: auto;
    max-height: none;
}

@media (max-width:600px) {
    .navbar-brand.logo-mrn img {
        min-width: 105px;
        max-width: 105px;
        height: auto;
        max-height: none;
    }
}

.navbar-brand.logo-usent img {
    min-width: 180px;
    max-width: 180px;
    height: auto;
    max-height: none;
}

@media (max-width:600px) {
    .navbar-brand.logo-usent img {
        min-width: 105px;
        max-width: 105px;
        height: auto;
        max-height: none;
    }
}

.navbar-brand.logo-pkd img {
    min-width: 180px;
    max-width: 180px;
    height: auto;
    max-height: none;
}

@media (max-width:600px) {
    .navbar-brand.logo-pkd img {
        min-width: 120px;
        max-width: 120px;
        height: auto;
        max-height: none;
    }
}

.navbar-brand.logo-tph img {
    min-width: 180px;
    max-width: 180px;
    height: auto;
    max-height: none;
}

@media (max-width:600px) {
    .navbar-brand.logo-tph img {
        min-width: 115px;
        max-width: 115px;
        height: auto;
        max-height: none;
    }
}

.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
    background-color: #007BFF; /* Bootstrap primary blue */
    color: #fff;
}

.ui-autocomplete {
    max-height: 250px; /* or any height you want */
    overflow-y: auto; /* enables vertical scroll */
    overflow-x: hidden; /* disables horizontal scroll */
    z-index: 10000 !important; /* stays on top */
    background-color: white; /* optional, makes list clean */
    border: 1px solid #ccc; /* optional, keeps it consistent */
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

    .ui-autocomplete .ui-menu-item-wrapper {
        padding: 8px 12px;
    }

        .ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
            background-color: #0D9686; /* green hover */
            color: white;
            border-radius: 4px;
            border: none;
            outline: none;
            box-shadow: none;
        }

.person-details-block .hidden {
    display: none;
}

.form-group .extric {
    color: red;
}

.form-group.invalid-card {
    border: 2px solid red !important;
}

/* --- Layout tokens --- */
.product-documents {
    --pd-gap: .5rem; /* grid gap */
    --pd-card-pad: .75rem; /* inner card padding */
    --pd-radius: .5rem; /* card radius */
    --pd-border: 1px solid #e9ecef;
    --pd-shadow: 0 .125rem .5rem rgba(0,0,0,.04);
}

    /* Tighten headings */
    .product-documents h4 {
        margin-bottom: .25rem;
    }

    .product-documents .document-type-group {
        padding: .5rem 0 0;
        border-top: var(--pd-border);
    }

        .product-documents .document-type-group:first-child {
            border-top: 0;
            padding-top: 0;
        }

    .product-documents .group-head {
        line-height: 1;
    }

    /* Badge style */
    .product-documents .doc-count {
        background: #f1f3f5;
        color: #495057;
        font-weight: 500;
        padding: .15rem .45rem;
        border-radius: .4rem;
        font-size: .75rem;
    }

    /* Grid gutters (Bootstrap row already uses gutters; keep them small) */
    .product-documents .documents-list {
        --bs-gutter-x: var(--pd-gap);
        --bs-gutter-y: var(--pd-gap);
    }

    /* Doc card (compact, consistent height) */
    .product-documents .doc-card {
        display: flex;
        align-items: flex-start;
        gap: .5rem;
        padding: var(--pd-card-pad);
        border: var(--pd-border);
        border-radius: var(--pd-radius);
        background: #fff;
        box-shadow: var(--pd-shadow);
        transition: box-shadow .15s ease, transform .06s ease, border-color .15s ease;
        cursor: pointer;
    }

        .product-documents .doc-card:hover,
        .product-documents .doc-card:focus-within {
            box-shadow: 0 .2rem .8rem rgba(0,0,0,.06);
            transform: translateY(-1px);
            border-color: #dee2e6;
        }

    /* Icon and body */
    .product-documents .doc-icon {
        font-size: 1.25rem;
        opacity: .8;
        flex: 0 0 auto;
        line-height: 1;
    }

    .product-documents .doc-body {
        min-width: 0;
    }
    /* enables truncation */

    /* Link & text */
    .product-documents .doc-link {
        font-weight: 500;
        color: #212529;
        text-decoration: none;
        display: inline-block;
        max-width: 100%;
    }

        .product-documents .doc-link:hover {
            text-decoration: underline;
        }

    /* Meta row (label + extension) */
    .product-documents .doc-meta {
        margin-top: .25rem;
        display: flex;
        gap: .4rem;
        align-items: center;
        flex-wrap: wrap;
    }

    .product-documents .doc-label {
        background: #f8f9fa;
        color: #6c757d;
        border: 1px solid #e9ecef;
        font-size: .7rem;
        padding: .1rem .4rem;
        border-radius: 999px;
    }

    .product-documents .doc-ext {
        font-size: .75rem;
        color: #868e96;
        letter-spacing: .02em;
    }

    /* Remove stray outer spacing some themes add to rows/cards */
    .product-documents .documents-group-list > .document-type-group:last-child {
        margin-bottom: .5rem;
    }


/*    MRN Home Page Start*/
.section-tph {
    margin-bottom: 60px;
}

    .section-tph .section-title {
        text-align: center;
        margin: auto auto 10px;
        max-width: 600px;
        color: #212529;
    }

    .section-tph .section-subtitle {
        text-align: center;
        margin: auto auto 60px;
        max-width: 600px;
        color: #212529;
    }

    .section-tph .cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .section-tph .card {
        position: relative;
        border: solid 1px #C8D3DD;
        border-radius: 20px;
        padding: 30px;
        transition: all 350ms ease;
        overflow: hidden;
    }

        .section-tph .card:hover {
            border-color: transparent;
        }

        .section-tph .card:before {
            background: linear-gradient(90deg,rgba(86, 161, 211, 1) 0%, rgba(33, 75, 148, 1) 100%);
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            opacity: 0;
            transition: all 250ms ease;
        }

        .section-tph .card:hover:before {
            opacity: 1;
        }

    .section-tph .card-container {
        transform: translateY(20%);
        transition: transform 250ms ease;
    }

    .section-tph .card:hover .card-container {
        transform: translateY(0%);
    }

    .section-tph .card-icon-wrapper {
        text-align: center;
        margin-bottom: 20px;
    }

    .section-tph .card-icon {
        height: 40px;
        width: auto;
        fill: #3467C3;
        transition: fill 200ms linear;
    }

    .section-tph .card:hover .card-icon {
        fill: #FFFFFF;
    }

    .section-tph .card-title-wrapper {
        margin: 0 0 10px;
        text-align: center;
    }

    .section-tph .card-title {
        max-width: 220px;
        margin: 0 auto;
        color: #212529;
        transition: color 350ms ease;
    }

    .section-tph .card:hover .card-title {
        color: #FFFFFF !important;
    }

    .section-tph .card-description-wrapper {
        text-align: center;
        overflow: hidden;
    }

    .section-tph .card-description {
        margin: 0;
        color: transparent;
        transform: translateY(100%);
        opacity: 0;
        transition: color 250ms ease, transform 250ms ease, opacity 350ms ease-in;
    }

    .section-tph .card:hover .card-description {
        color: #FFFFFF;
        transform: translateY(0%);
        opacity: 1;
    }

@media(max-width:767px) {
    .section-tph .cards {
        grid-template-columns: 1fr;
    }
}
/*    MRN Home Page End*/

#displayCouponMessage {
    background-color: #1DB954; /* Token Green */
    border-radius: 20px;
    display: inline-block;
    padding: 6px 14px;
    text-align: center;
    margin-top: 5px;
}

    #displayCouponMessage span {
        color: #ffffff; /* White text */
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    #displayCouponMessage:hover {
        background-color: #17a94d; /* Slightly darker on hover */
        transform: scale(1.02);
    }

/* ✅ Slide-in + pulse effect for success */
.coupon-animate {
    animation: slideIn 0.6s ease-out, pulse 0.8s ease-in-out 0.6s 1;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.07);
    }

    100% {
        transform: scale(1);
    }
}

/* ❌ Shake effect for invalid coupon */
.error-shake {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }
}

.reg-iframe {
    height: 3000px;
    width: 99%;
    border: none;
}

.selected-item-summary > .summary-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
}

.selected-items-list .selected-items-content .selected-item-block .selected-item-summary .summary-item p {
    color: rgba(0, 0, 0, 0.5);
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 3px;
}

/* CSS for Coupon and Shipping Sections */
/* Coupon Section */
.coupon-section {
    margin: 0.5rem;
}

.coupon-container {
    background-color: #f8f9fa !important; /* bg-light */
    border: 1px solid #dee2e6 !important; /* border */
    border-radius: 0.375rem !important; /* rounded */
    padding: 1rem !important; /* p-3 */
    margin-bottom: 1rem !important; /* mb-3 */
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; /* shadow-sm */
}

.coupon-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0.5rem !important; /* mb-2 */
}

.coupon-summary-text {
    font-size: .875em !important; /* small */
    color: #198754 !important; /* text-success */
    margin-bottom: 0 !important; /* mb-0 */
}

.coupon-toggle {
    color: #0d6efd !important; /* btn-link */
    padding: 0 !important; /* p-0 */
    text-decoration: none !important; /* text-decoration-none */
    border: 0 !important; /* border-0 */
}

.coupon-details-card {
    background-color: #fff !important; /* bg-white */
    border: 1px solid #dee2e6 !important; /* border */
    margin-top: 0.5rem !important; /* mt-2 */
    padding: 1rem !important; /* p-3 */
}

.coupon-item-row {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0.5rem !important; /* mb-2 */
    padding-bottom: 0.5rem !important; /* pb-2 */
    border-bottom: 1px solid #dee2e6 !important; /* border-bottom */
}

.coupon-item-img-wrapper {
    flex-shrink: 0 !important;
}

.coupon-item-image {
    padding: 0.25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    max-width: 100%;
    height: auto;
}

.coupon-item-info {
    flex-grow: 1 !important;
    margin-left: 0.5rem !important; /* ms-2 */
}

    .coupon-item-info p {
        font-size: .875em !important; /* small */
        color: #212529 !important; /* text-dark */
    }

        .coupon-item-info p:first-child {
            margin-bottom: 0.25rem !important; /* mb-1 */
        }

        .coupon-item-info p:last-child {
            margin-bottom: 0 !important; /* mb-0 */
        }

.coupon-total {
    font-size: .875em !important; /* small */
    color: #198754 !important; /* text-success */
    margin-bottom: 0 !important; /* mb-0 */
}

/* Shipping Section */
.shipping-section {
    margin: 0.5rem;
}

.shipping-container {
    background-color: #f8f9fa !important; /* bg-light */
    border: 1px solid #dee2e6 !important; /* border */
    border-radius: 0.375rem !important; /* rounded */
    padding: 1rem !important; /* p-3 */
    margin-bottom: 1rem !important; /* mb-3 */
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; /* shadow-sm */
}

.shipping-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0.5rem !important; /* mb-2 */
}

.shipping-summary-text {
    font-size: .875em !important; /* small */
    color: #212529 !important; /* text-dark */
    margin-bottom: 0 !important; /* mb-0 */
}

.shipping-toggle {
    color: #0d6efd !important; /* btn-link */
    padding: 0 !important; /* p-0 */
    text-decoration: none !important; /* text-decoration-none */
    border: 0 !important; /* border-0 */
}

.shipping-details-card {
    background-color: #fff !important; /* bg-white */
    border: 1px solid #dee2e6 !important; /* border */
    margin-top: 0.5rem !important; /* mt-2 */
    padding: 1rem !important; /* p-3 */
}

.shipping-item-row {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0.5rem !important; /* mb-2 */
    padding-bottom: 0.5rem !important; /* pb-2 */
    border-bottom: 1px solid #dee2e6 !important; /* border-bottom */
}

.shipping-item-img-wrapper {
    flex-shrink: 0 !important;
}

.shipping-item-image {
    padding: 0.25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    max-width: 100%;
    height: auto;
}

.shipping-item-info {
    flex-grow: 1 !important;
    margin-left: 0.5rem !important; /* ms-2 */
}

    .shipping-item-info p {
        font-size: .875em !important; /* small */
        color: #212529 !important; /* text-dark */
    }

        .shipping-item-info p:first-child {
            margin-bottom: 0.25rem !important; /* mb-1 */
        }

        .shipping-item-info p:last-child {
            margin-bottom: 0 !important; /* mb-0 */
        }

.shipping-total {
    font-size: .875em !important; /* small */
    color: #212529 !important; /* text-dark */
    margin-bottom: 0 !important; /* mb-0 */
}


/* This is the lens that moves over the main image */
.zoom-lens {
    position: absolute;
    border: 1px solid #d4d4d4;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none; /* Allows mouse events to pass through to the image */
    display: none; /* Hidden by default */
    z-index: 10;
}

/* This is the result window for the zoomed image */
#zoom-result {
    background-repeat: no-repeat;
    z-index: 10;
    position: absolute;
    display: none; /* Hidden by default, JS will show it */
    top: 10%;
    left: 40%;
    /* Use Bootstrap CSS variables for gutter-aware positioning */
    transform: translateX(calc(var(--bs-gutter-x, 1.5rem) / 2));
    width: calc(50% - (var(--bs-gutter-x, 1.5rem) / 2));
    /* Re-add styles from removed utility classes */
    border-radius: var(--bs-border-radius);
    border: var(--bs-border-width) solid var(--bs-border-color);
    box-shadow: var(--bs-shadow-sm);
}

/* Custom class for the zoom result height */
.zoom-result-height {
    height: 400px;
}

@media (min-width: 992px) { /* lg breakpoint */
    .zoom-result-height {
        height: 500px;
    }
}

.img-container {
    position: relative; /* Crucial for positioning the lens */
    cursor: crosshair;
}

/* Create the scrolling effect for the list */
.account-list {
    max-height: 250px; /* Adjust height as needed */
    overflow-y: auto;
    border: 1px solid #dee2e6; /* Add a light border */
    border-radius: 0.375rem; /* Match Bootstrap's rounded corners */
    width: 100%;
}

    /* Ensure list items don't have their own borders inside the main border */
    .account-list .list-group-item {
        border: none;
        border-bottom: 1px solid #dee2e6; /* Add separator lines */
    }

        .account-list .list-group-item:last-child {
            border-bottom: none; /* Remove last separator */
        }

/* Layout for the account info and deliver to sections */
.account-details {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* Ensure radio button is aligned with the text block */
.form-check {
    display: flex;
    align-items: flex-start;
    padding-left: 0;
}

    .form-check .form-check-input {
        margin-top: 0.3rem; /* Align checkbox with first line */
        margin-left: 0;
        margin-right: 1rem;
        flex-shrink: 0; /* Prevent radio from being squished */
    }

    .form-check .form-check-label {
        width: 100%;
    }

.delivery-info {
    text-align: left;
    /* Adjust flex-basis to give delivery info more or less space if needed */
    flex-basis: 40%;
}