.bw-sticky-buy-bar[hidden] {
    display: none;
}

.bw-header-search form {
    position: relative;
}

.bw-header-search input {
    min-width: 0;
}

.bw-header-search #bw-search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100% !important;
    margin: 0;
    z-index: 30;
    text-align: left;
}

.bw-header-search #bw-search-suggestions ul {
    max-height: 45vh;
    margin: 0;
    padding: 0;
    overflow: auto;
    list-style: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}

#bw-search-suggestions li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 12px 14px;
    cursor: pointer;
}

#bw-search-suggestions li:hover,
#bw-search-suggestions li.selected {
    background: #fff1a6;
}

@media (max-width: 768px) {
    .bw-header .bw-header-main {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 4px;
        padding: 6px 10px 10px;
    }

    .bw-header-main .bw-header-main-top {
        justify-content: flex-start;
    }

    .bw-header-main .bw-header-logo {
        justify-content: flex-start;
        width: auto;
        min-width: 0;
    }

    .bw-header-main .bw-header-logo a {
        display: block;
        min-width: 0;
    }

    .bw-header-main .bw-header-logo img {
        display: block;
        width: 112px;
        height: auto;
        max-width: 100%;
    }

    .bw-header-main .bw-header-call,
    .bw-header-main .bw-header-help {
        display: none;
    }

    .bw-header-main .bw-burger {
        flex: 0 0 44px;
        height: 44px;
    }

    .bw-header-main .bw-burger:focus-visible {
        outline: 2px solid #111 !important;
    }

    .bw-header-main .bw-header-right {
        grid-column: 2;
        grid-row: 1;
        gap: 0;
        margin: 0;
    }

    .bw-header-main .bw-header-right > a {
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    .bw-header-main .bw-header-right .bw-label {
        display: none;
    }

    .bw-header-main .bw-header-search {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(100% - 12px);
        max-width: 440px;
    }

    .bw-header-main .bw-header-search form {
        align-items: center;
        border-radius: 24px;
        background: #fff;
    }

    .bw-header-main .bw-header-search input[type="text"] {
        height: 44px !important;
        line-height: 44px !important;
        font-size: 16px !important;
        border: 0 !important;
    }

    .bw-header-main .bw-header-search button {
        flex: 0 0 44px;
        height: 44px !important;
        width: 44px !important;
        margin: 0 !important;
        border: 0;
        background: #fff;
    }

    .bw-header-main .bw-header-search form:focus-within {
        outline: 2px solid #111;
        outline-offset: 2px;
    }

    .bw-pdp-v2-active .bw-pdp-v2__heading {
        margin: 4px 0 8px;
    }

    .bw-pdp-mobile-price {
        margin: 0;
    }

    .bw-pdp-mobile-price .bw-price {
        margin: 0;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
    }

    .bw-sticky-buy-bar:not([hidden]) {
        position: fixed;
        z-index: 40;
        inset: auto 0 0;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 12px max(8px, env(safe-area-inset-bottom));
        background: #fff;
        color: #111;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, .16);
    }

    .bw-sticky-buy-price {
        font-size: clamp(17px, 5.8vw, 26px);
        font-weight: 800;
        white-space: nowrap;
    }

    .bw-sticky-buy-bar .bw-sticky-buy-button.action.primary {
        flex: 1;
        min-width: 0;
        min-height: 48px;
        margin: 0;
        padding: 8px;
        border: 1px solid #e9b900;
        border-radius: 12px;
        background: #ffd814;
        color: #111;
        font-size: 16px;
    }

    .bw-sticky-buy-button:focus-visible {
        outline: 2px solid #111;
        outline-offset: 2px;
    }

    body.bw-sticky-buy-active {
        padding-bottom: calc(68px + env(safe-area-inset-bottom));
        scroll-padding-bottom: calc(68px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 768px) {
    .bw-pdp-v2__hero > .bw-pdp-mobile-price {
        grid-column: 1 / -1;
    }
}

.bw-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

@media (max-width: 768px) {
    .bw-header-main .bw-burger {
        margin-right: 2px;
    }
}

@media (max-width: 768px) {
    .catalog-product-view .breadcrumbs .items {
        display: flex;
        align-items: baseline;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 12px;
        line-height: 1.5;
        color: #333;
    }

    .catalog-product-view .breadcrumbs .item {
        flex: 0 0 auto;
    }

    .catalog-product-view .breadcrumbs .item.product {
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .catalog-product-view .breadcrumbs .items a,
    .catalog-product-view .breadcrumbs .items strong,
    .catalog-product-view .breadcrumbs .item::after {
        color: inherit;
    }

    .catalog-product-view .bw-pdp-v2 .bw-pdp-v2-heading__title {
        font-size: 19px !important;
        line-height: 1.2 !important;
    }
}

.bw-pdp-trustpilot,
.bw-pdp-payment-methods {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #222;
    font-size: 14px;
}

.bw-pdp-trustpilot,
.bw-pdp-trustpilot:visited,
.bw-pdp-trustpilot:hover,
.bw-pdp-trustpilot:active {
    width: fit-content;
    max-width: 100%;
    margin: 6px 0;
    padding: 6px 10px;
    box-sizing: border-box;
    border-radius: 6px;
    background: #00b67a;
    color: #111;
}

.bw-pdp-trustpilot__star {
    color: #111;
    font-size: 20px;
    line-height: 1;
}

.bw-pdp-trustpilot:focus-visible {
    outline: 2px solid #00583e;
    outline-offset: 3px;
}

.bw-pdp-top-dimensions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 10px 0;
}

.bw-pdp-top-dimensions dt {
    margin: 0;
    color: #444;
    font-size: 12px;
    font-weight: 500;
}

.bw-pdp-top-dimensions dd {
    margin: 0;
    color: #111;
    font-weight: 700;
}

.bw-pdp-payment-methods {
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
}

.bw-pdp-payment-methods img {
    object-fit: contain;
}

@media (max-width: 768px) {
    .catalog-product-view .breadcrumbs {
        margin-bottom: 6px;
    }

    .catalog-product-view .breadcrumbs .items {
        margin-bottom: 0;
    }

    .bw-pdp-v2-active .bw-pdp-v2-heading__brand-name {
        margin-bottom: 4px;
        font-size: 11px;
    }

    .bw-pdp-v2-heading .bw-pdp-trustpilot {
        gap: 5px;
        margin: 6px 0 0;
        padding: 4px 7px;
        border-radius: 4px;
        font-size: 11px;
        line-height: 1.3;
    }

    .bw-pdp-trustpilot__star {
        font-size: 14px;
    }

    .bw-pdp-v2-active .bw-pdp-v2-heading .bw-pdp-v2-heading__meta {
        gap: 4px 10px !important;
        margin-top: 6px;
        font-size: 11px !important;
    }

    .bw-pdp-v2-active .bw-pdp-v2-heading .bw-pdp-v2-heading__facts {
        gap: 5px;
        margin-top: 6px !important;
    }

    .bw-pdp-v2-active .bw-pdp-v2-heading .bw-pdp-v2-heading__fact {
        padding: 3px 8px !important;
        font-size: 12px;
    }

    .bw-pdp-v2__hero > .bw-pdp-mobile-price + .bw-pdp-v2__gallery {
        margin-top: -8px;
    }
}

.checkout-index-index .bw-local-delivery-summary {
    margin: 0 0 8px;
    padding: 10px 12px;
    border: 1px solid #e6c852;
    border-radius: 8px;
    background: #fff9df;
    color: #222;
}

.checkout-index-index .bw-local-delivery-summary p {
    margin: 2px 0 0;
    font-weight: 400;
}

@media (max-width: 600px) {
    .checkout-index-index .bw-delivery-wrapper {
        min-width: 0;
    }

    .checkout-index-index .bw-fulfilment-cards {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }

    .checkout-index-index .bw-fulfilment-cards .bw-card {
        box-sizing: border-box;
        min-width: 0;
        padding: 9px 12px;
        gap: 10px;
        overflow-wrap: normal;
        word-break: normal;
    }

    .checkout-index-index .bw-fulfilment-cards .bw-card-icon {
        flex: none;
        font-size: 20px;
    }

    .checkout-index-index .bw-delivery-wrapper .delivery-dates {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin: 8px 0 12px;
        padding: 0;
    }

    .checkout-index-index .bw-delivery-wrapper .delivery-dates label {
        box-sizing: border-box;
        height: auto;
        min-height: 44px;
        padding: 9px 32px 9px 12px;
        overflow-wrap: normal;
        word-break: normal;
    }

    .checkout-index-index .bw-delivery-wrapper .delivery-dates label:focus-within {
        outline: 2px solid #222;
        outline-offset: 2px;
    }
}

@media (max-width: 768px) {
    .catalog-product-view .bw-pdp-postcode,
    .catalog-product-view .bw-pdp-postcode__form {
        box-sizing: border-box;
        min-width: 0;
        max-width: 100%;
    }

    .catalog-product-view .bw-pdp-postcode__form #buywise-postcode,
    .checkout-index-index .checkout-shipping-address input[name="postcode"] {
        font-size: 16px;
    }

    .catalog-product-view .bw-pdp-postcode__message {
        overflow-wrap: anywhere;
    }
}

.bw-mobile-services-dialog {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 20px 16px max(16px, env(safe-area-inset-bottom));
    border: 0;
    background: #fff;
    color: #111;
    overflow-y: auto;
}

.bw-mobile-services-dialog h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
}

.bw-mobile-services-dialog .bw-service-options__title {
    display: none;
}

.bw-mobile-services-actions {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.bw-mobile-services-actions button {
    min-height: 44px;
}

.bw-mobile-services-actions button:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}
