/* region icon basket */
.header__basket {
    position: relative;
}

.header__basket-icon {
    cursor: pointer;
    position: relative;
}

.header__basket-count {
    display: flex;
    position: absolute;
    left: 12px;
    bottom: 20px;

    background-color: #D22518;
    color: #FFF;
    font-weight: 400;

    border: 2px solid #002855;
    border-radius: 12px;
    padding: 2px 6px;
}

.header_main .header__basket-count {
    border-color: #FFF;
}
/* endregion icon basket */

/* region basket container */
.header__basket-content {
    display: none;

    width: 360px;
    max-height: 700px;
    transform: translateY(100%);
    position: absolute;
    bottom: -21px;
    right: 0;

    border-radius: 16px;
    background-color: #fff;

    box-shadow: 0 5px 5px #00000040;

    transition: all .5s;
}

.header__basket-content::before {
    content: "";
    position: absolute;
    right: 24px;
    border: 4px solid transparent;
    border-bottom: 4px solid #fff;
    border-right: 4px solid #fff;
    top: -7px;
}
/* endregion basket container */

/* region header basket */
.header__basket-header {
    padding: 16px 24px;
    font-weight: 400;
}

.header__basket-title {
    color: #272727;
    font-size: 22px;
    letter-spacing: 0.1em;
    text-transform: uppercase;

}

.header__basket-sub-title {
    color: #52565B;
    font-size: 14px;
    text-transform: capitalize;
}
/* endregion header basket */

/* region basket products */
.header__basket-products-wrapper {
    padding-left: 24px;
    max-height: 45vh;
    margin-right: 8px;

    overflow-y: auto;
}

.header__basket-products-wrapper::-webkit-scrollbar {
    width: 6px;
}

.header__basket-products-wrapper::-webkit-scrollbar-track {
    border-radius: 4px;
    background: #EFEFEF;
}

.header__basket-products-wrapper::-webkit-scrollbar-thumb {
    background-color: #BBBEC3; 
    border-radius: 4px;
}

.header__basket-products-content {
    width: 312px;
    padding-top: 16px;
}

.header__basket-products-title {
    color: #426DA9;
    text-transform: uppercase;
    text-decoration: underline;
    font-weight: 400;
    font-size: 14px;
}

.header__basket-products {
    display: flex;
    flex-direction: column;
}

.header__basket-product {
    
    display: grid;
    grid-template-columns: 1fr minmax(auto, 150px);
    align-items: center;

    padding: 16px 0;
}

.header__basket-product_addition {
    padding: 0 0 16px 16px;
}

.header__basket-product-name {
    font-size: 12px;
    font-weight: 400;
    color: #272727;
    text-transform: none;

    word-break: break-word;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.header__basket-product-name_addition {
    color: #52565B;
}

/* region basket info */
.header__basket-product-info {
    height: 100%;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 16px;
}

.header__basket-product-count {
    font-size: 12px;
    font-weight: 400;
    color: #272727;
    text-transform: lowercase;
}

.header__basket-product-count_addition {
    color: #BBBEC3;
}

.header__basket-product-price {
    font-size: 12px;
    font-weight: 500;
    text-align: right;
    color: #272727;
}

.header__basket-product-delete {
    cursor: pointer;
    fill: #DA291C;
}

.header__basket-product-delete:hover {
    fill: #DA291C;
}
/* endregion basket info */
/* endregion basket products */

/* region basket footer */
.header__basket-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;

    padding: 16px 24px;
    background-color: #FAFAFA;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.header__basket-total-wrapper {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: right;
    align-items: end;

    font-weight: 400;
}

.header__basket-total-label {
    font-size: 12px;
    line-height: 16px;
    color: #272727;
}

.header__basket-total-price {
    font-size: 20px;
    letter-spacing: 0.1em;
    line-height: 22px;
    color: #272727;
}

.header__basket-btn {
    cursor: pointer;
    height: 40px;
    padding: 0 20px;

    border: #256BCD solid 2px;
    border-radius: 8px;
    background-color: transparent;

    color: #256BCD;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;

    transition: color .5s, border .5s;
}

.header__basket-btn:hover {
    border: #0A51B5 solid 2px;
    color: #002855;
}

.header__basket-btn:focus {
    border: #003C92 solid 2px;
    color: #002855;
}
/* endregion basket footer */
/* endregion basket */