/* Customer storefront, matched to instantpharmacy.uk */

html, body {
    background: #fff !important;
    color: #212121;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
}

.ip-store-wrap {
    width: min(1820px, calc(100% - 100px));
    margin: 0 auto;
    padding: 10px 0 48px;
}

.ip-announce {
    background: #4bc7c9;
    color: #fff;
    text-align: center;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
}

.ip-announce p {
    margin: 0;
}

.ip-header {
    background: #fff;
    border-bottom: 1px solid #f2f2f2;
    position: relative;
    z-index: 40;
}

.ip-header__bar {
    width: min(1820px, calc(100% - 80px));
    margin: 0 auto;
    min-height: 79px;
    display: grid;
    grid-template-columns: 160px 1fr auto;
    align-items: center;
    gap: 16px;
}

.ip-header__logo { grid-column: 1; }
.ip-menu { grid-column: 2; }
.ip-header__tools { grid-column: 3; }

.ip-header__logo img {
    width: 120px;
    height: auto;
    display: block;
}

.ip-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.ip-nav-item {
    position: relative;
}

.ip-nav-toggle,
.ip-header__tools a {
    list-style: none;
    cursor: pointer;
    color: #212121;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    background: none;
    border: 0;
    padding: 15px;
}

.ip-nav-toggle span,
.ip-dropdown a span {
    position: relative;
    display: inline-block;
}

.ip-nav-toggle span::after,
.ip-dropdown a span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #212121;
    transition: width 0.3s cubic-bezier(0.39, 0.575, 0.565, 1);
}

.ip-nav-item:hover .ip-nav-toggle span::after,
.ip-nav-item:focus-within .ip-nav-toggle span::after,
.ip-dropdown a:hover span::after {
    width: 100%;
}

.ip-dropdown {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fcfbf9;
    border: 0;
    box-shadow: none;
    padding: 15px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.215, 0.61, 0.355, 1), visibility 0.2s;
}

.ip-dropdown a {
    display: block;
    padding: 5px 0;
    color: #212121;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
}

.ip-dropdown a:hover {
    color: rgba(33, 33, 33, 0.7);
}

.ip-header__tools a:hover {
    color: #212121;
}

@media (min-width: 992px) {
    .ip-nav-item:hover .ip-dropdown,
    .ip-nav-item:focus-within .ip-dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .ip-burger {
        display: none;
    }
}

.ip-header__tools {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ip-header__tools a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    position: relative;
}

.ip-header__tools svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
}

.ip-cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 16px;
    height: 16px;
    border-radius: 99px;
    background: #212121;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}

.ip-burger {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    padding: 8px;
}

.ip-burger span {
    display: block;
    height: 1.5px;
    background: #212121;
    margin: 6px 0;
}

.ip-collection-title {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    color: #212121;
    text-align: center;
    text-transform: uppercase;
    margin: 28px 0 34px;
}

.ip-collection .ip-responsive-grid {
    gap: 32px;
}

.ip-product-card {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    text-align: center;
    height: auto !important;
}

.ip-product-card:hover {
    transform: none;
    box-shadow: none !important;
}

.ip-product-card__media {
    position: relative;
    aspect-ratio: 1;
    background: #fff;
    border: 0;
    padding: 0;
    margin-bottom: 12px;
}

.ip-product-card__media-link,
.ip-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ip-product-card:hover .ip-product-card__image {
    transform: none;
}

.ip-product-card__save {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: #f7e9de;
    color: #212121;
    border-radius: 999px;
    font-family: Karla, "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 1;
    padding: 8px 12px;
}

.ip-product-card__title {
    display: block;
    color: #000;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    margin: 0 0 4px;
}

.ip-product-card__title:hover {
    color: #000;
}

.ip-product-card__rating {
    color: #3aaa35;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.ip-product-card__rating .is-off {
    color: #d5d5d5;
}

.ip-product-card__score {
    color: #212121;
    letter-spacing: 0;
    margin-left: 4px;
    font-size: 16px;
}

.ip-product-card__price {
    color: #636262;
    font-size: 16px;
    line-height: 1.4;
}

.ip-product-card__price .is-new {
    color: #212121;
}

.ip-product-card__price .is-old {
    color: #636262;
    text-decoration: line-through;
    margin-left: 6px;
}

.ip-collection-copy {
    width: 100%;
    max-width: none;
    margin-top: 48px;
    color: #212121;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.ip-collection-copy h2,
.category-description h2 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #212121;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.ip-collection-copy h3,
.category-description h3 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #212121;
    margin: 18px 0;
}

.ip-collection-copy h4,
.category-description h4 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #212121;
    margin: 16px 0 8px;
}

.ip-collection-copy p,
.category-description p,
.ip-collection-copy li,
.category-description li {
    font-size: 16px;
    color: #212121;
    margin: 8px 0;
}

.ip-collection-copy a,
.category-description a {
    color: #212121;
}

.category-description.is-collapsed {
    max-height: 9.5rem;
    overflow: hidden;
    position: relative;
}

.category-description.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3.25rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}

.category-description-toggle {
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #212121;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-decoration: underline;
}

.ip-footer {
    background: #212121;
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
}

.ip-footer__grid {
    width: min(1820px, calc(100% - 100px));
    margin: 0 auto;
    padding: 19px 0 8px;
    display: flex;
    align-items: flex-start;
}

.ip-footer__logo img {
    width: 150px;
    height: auto;
}

.ip-footer__brand { flex: 1.7; padding: 0 16px; }
.ip-footer__col { flex: 1; padding: 0 16px; }
.ip-footer__news { flex: 1.55; padding: 0 16px; }

.ip-footer__badges {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 12px 0 0;
}

.ip-footer__badges img {
    width: 70px;
    height: 53px;
    object-fit: contain;
}

.ip-footer h2,
.ip-footer h3 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #fff;
    margin: 8px 0 16px;
    line-height: 1.2;
}

.ip-footer p,
.ip-footer a,
.ip-footer li {
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
}

.ip-footer p {
    margin: 8px 0;
    line-height: 1.35;
}

.ip-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ip-footer__col li {
    margin: 0 0 20px;
}

.ip-footer a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.ip-footer__social {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 8px 0 0;
    padding: 12px 0;
}

.ip-footer__social a {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.ip-footer__social svg {
    width: 20px;
    height: 20px;
    display: block;
}

.ip-footer form {
    display: grid;
    gap: 0;
}

.ip-footer input {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #4bc7c9;
    color: #fff;
    padding: 16px 0;
    margin: 7px 0;
    border-radius: 0;
    font-size: 16px;
}

.ip-footer input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.ip-footer button {
    width: 100%;
    margin-top: 8px;
    background: #fff;
    color: #000;
    border: 1px solid #fff;
    border-radius: 300px;
    padding: 7px 12px;
    font-family: Karla, sans-serif;
    font-size: 14px;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    line-height: 1.35;
}

.ip-footer__base {
    background: #f5f2ec;
    width: 100%;
    margin: 0;
    padding: 8px 50px;
    min-height: 39px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.ip-footer__base a {
    color: #212121;
    font-size: 14px;
}

.ip-footer__base a:hover {
    color: #212121;
}

.ip-pay {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 4px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ip-pay li {
    margin: 0;
}

.ip-pay svg {
    width: 38px;
    height: 24px;
    display: block;
}

@media (max-width: 991.98px) {
    .ip-store-wrap,
    .ip-header__bar,
    .ip-footer__grid {
        width: calc(100% - 32px);
    }

    .ip-header__bar {
        grid-template-columns: auto 1fr auto;
        min-height: 64px;
    }

    .ip-burger { grid-column: 1; }
    .ip-header__logo { grid-column: 2; justify-self: center; }
    .ip-header__tools { grid-column: 3; }
    .ip-menu { grid-column: 1 / -1; }

    .ip-burger {
        display: block;
    }

    .ip-menu {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 16px 20px;
        border-bottom: 1px solid #eee;
        z-index: 30;
    }

    .ip-header.is-open .ip-menu {
        display: flex;
    }

    .ip-nav-item .ip-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: none;
        display: none;
        box-shadow: none;
        border: 0;
        padding: 0 0 8px 12px;
        background: transparent;
    }

    .ip-nav-item.is-open .ip-dropdown {
        display: block;
        pointer-events: auto;
    }

    .ip-dropdown a span::after {
        background: #212121;
    }

    .ip-collection-title,
    .ip-collection-copy h2,
    .category-description h2 {
        font-size: 32px;
    }

    .ip-footer__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ip-footer__base {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .ip-collection .ip-responsive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px;
    }
}

@media (min-width: 992px) {
    .ip-collection .ip-responsive-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
