﻿/*--Форма выбора опций товара и отправки в корзину--*/
.productOptions {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 13px;
}

.fieldLabel {
    margin-bottom: 8px;
    font-size: 15px;
}

/*--Кнопка "В корзину"--*/
.buttonAddCart {
    align-self: end;
    width: 100%;
    height: 35px;
    text-decoration: none;
    display: inline-block;
    border: none;
    background: #3b7eb2;
    cursor: pointer;
    font-size: 16px;
    color: white;
    text-align: center;
    outline: none;
}

.buttonAddCart:hover {
    background: #0880AE;
}

.buttonAddCart:disabled,
.buttonAddCart[disabled] {
    color: #B1B5BF;
    background: #DBE2EA;
    cursor: default;
}

/*------DropDoun element------*/
.dropDownWrapper {
    position: relative;
    width: 100%;
    height: 30px;               /*dynamic height switch*/
    border: 1px solid #b9b9b9; /*dynamic color switch*/
    box-sizing: border-box;
    outline: none;
    margin: 0;
    padding: 0;
    appearance: none;
    background: #FFFFFF;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.dropDownStyle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    position: relative;
    margin: 0;
    outline: none;
}

.dropDownListWrapper {
    position: absolute;
    z-index: 100;
    width: 100%;
}

.dropDownList {
    position: relative;
    border: 1px solid #b9b9b9;
    box-sizing: border-box;
    margin: 5px 0;
    padding: 0;
    padding-inline-start: 0;
    background: #FFFFFF;
}

.dropDownListItem {
  height: 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  outline: none;
  list-style-type: none;
  list-style-position: inside;
  appearance: none;
}

.dropDownListItem:hover {
    background-color: #EBF4F8;
}

.dropDownArrowStyle {
    cursor: pointer;
    position: absolute;
    top: 9px;
    right: 7px;
    display: block;
    width: 10px;
    height: 10px;
    pointer-events: none;
}

.inputCountWrapper {
    position: relative;
    display: grid;
    grid-template-columns: 31px 1fr 30px; /*dynamic prop*/
    place-items: center;
    -webkit-box-align: center;
    user-select: none;
    box-sizing: border-box;
}

.inputCounter {
    display: flex;
    -webkit-box-align: center;
    place-items: center;
    width: 31px;
    height: 30px;
    border: 1px solid rgb(185, 185, 185);
    box-sizing: border-box;
    cursor: pointer;
}

.inputCounter img {
    margin: auto;
    width: 15px;
}

.inputCounter:hover {
    background-color: #f4f6f6;
}

.inputCounter:active {
    background-color: #d0d4d4;
    border-color: #d0d4d4;
}

    /* Media
==================== */
@media (max-width: 1024px) {
        .productOptions {
        grid-template-columns: 1fr;
        grid-row-gap: 12px;
    }

    .buttonAddCart {
        justify-self: center;
        width: 50%;
    }
}

@media (max-width: 768px) {
    .productOptions {
        height: 150px;
    }
}
