.attribute-list {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 10px;
}

.attribute-list__item {
    grid-column: 1;
    align-items: baseline;
    min-height: 44px;
}

.attribute-list__item--btn {
    grid-column: 2;
}


#page .page__product .product__details .details__inner ul:not(.variable-items-wrapper) li.attribute-list__item--btn::after {
    display: none;
}

.btn-calc-open {
    min-width: 240px;
    min-height: 44px;
    background: #E4F0EA;
    border-radius: 8px;
    color: #2A292B;
    border: none;
    font-size: 14.5px;
    padding: 0 20px 0 29px;
    cursor: pointer;
}

.btn-calc-open__icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    max-height: 13.5px;
}

.btn-calc-open:hover {
    background: #D6E9DF;
}

.icon {
	flex: none;
}

.calculator {
	background: #ffffff;
	border: 1px solid #ecedee;
	border-radius: 12px;
	position: fixed;
	right: 0;
	bottom: 0;
	z-index: 1000;
	padding: 0;
	transition: transform 0.5s, opacity 0.5s;
    transform: translateX(100%);
    opacity: 0;
    max-height: calc(100vh - 300px);
    overflow-y: scroll;
}

.calculator--open {
	transform: translateX(0);
    opacity: 1;
}


.calculator__btn-close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
}

.calculator--paint {
	width: 700px;
}

.calculator--floor {
	width: 460px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.calculator__header {
	display: flex;
	align-items: center;
	gap: 12px;
}

.calculator--paint .calculator__header {
	padding: 22px 40px 28px 22px;
}

.calculator__title {
	font-size: 20px;
	line-height: 28px;
	font-weight: 700;
	color: #101413;
}

.calculator__icon {
	color: #012d2c;
}

.calculator__subtitle {
	font-size: 13.5px;
	line-height: 20px;
	color: #7c8481;
	margin-top: -8px;
}

.calculator__band {
	background: #012d2c;
	padding: 14px 20px;
	text-align: center;
}

.calculator__band-title {
	display: block;
	font-size: 19px;
	line-height: 26px;
	color: #fff;
}

.calculator__band-text {
	display: block;
	font-size: 12.5px;
	line-height: 18px;
	color: #a9bdb6;
	margin-top: 4px;
}

.calculator__body {
	padding: 22px 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.calculator__dimensions {
	display: flex;
	align-items: flex-end;
	gap: 8px;
}

.calculator__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 104px;
}

.calculator__field--grow {
	flex: 1;
	width: auto;
}

.calculator__field--stacked {
	width: 100%;
}

.calculator__field-label {
	font-size: 13px;
	line-height: 18px;
	color: #7c8481;
}

.calculator__unit {
	font: 500 14px Inter, Arial;
	color: #3a403e;
	padding-bottom: 14px;
	font-style: normal;
}

.calculator__sign {
	font-style: normal;
	font-size: 16px;
	color: #7c8481;
	padding-bottom: 13px;
}

.calculator__input,
.calculator__output {
	height: 48px;
	border: 1px solid #e2e4e5;
	border-radius: 8px;
	background: #ffffff;
	padding: 0 14px;
	font: 400 15px Inter, Arial;
	color: #101413;
	outline: none;
	width: 100%;
	transition: 0.15s;
}

.calculator__input::placeholder {
	color: #7c8481;
}

.calculator__input:focus {
	border-color: #012d2c;
	box-shadow: 0 0 0 3px rgba(1, 45, 44, 0.08);
}

.calculator__output {
	background: #eaf3ee;
	font-weight: 700;
	display: flex;
	align-items: center;
}

.calculator__actions {
	display: flex;
	gap: 12px;
}

.calculator__button {
	flex-shrink: 0;
    flex-grow: 1;
	height: 48px;
	border: 1px solid #e2e4e5;
	background: #ffffff;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font: 500 15px Inter, Arial;
	color: #101413;
	transition: 0.15s;
}

.calculator__button:hover {
	border-color: #101413;
}

.calculator__button--primary {
	background: #012d2c;
	border-color: #012d2c;
	color: #fff;
}

.calculator__button--primary:hover {
	background: #01423f;
	border-color: #01423f;
}

.calculator__button--full {
	width: 100%;
}

.calculator__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 136px;
	overflow-y: scroll;
}

.calculator__item {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f6f6f6;
	border-radius: 8px;
	height: 40px;
	padding: 0 12px 0 14px;
	flex-shrink: 0;
}

.calculator__item-text {
	flex: 1;
	font-size: 13.5px;
	color: #101413;
}

.calculator__item-value {
	font-size: 13.5px;
}

.calculator__item-value--plus {
	color: #2f7a57;
}

.calculator__item-value--minus {
	color: #b4453c;
}

.calculator__item-remove {
	border: 0;
	background: none;
	cursor: pointer;
	color: #7c8481;
	display: grid;
	place-items: center;
	padding: 2px;
}

.calculator__item-remove:hover {
	color: #101413;
}

.calculator__empty {
	background: #f6f6f6;
	border-radius: 8px;
	height: 40px;
	display: grid;
	place-items: center;
	font-size: 13.5px;
	color: #7c8481;
}

.calculator__row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.calculator__row-label {
	flex: 1;
	font-size: 14.5px;
}

.calculator__row .calculator__input {
	width: 96px;
	flex: none;
}

.calculator__row-unit {
	width: 64px;
	font: 500 14px Inter, Arial;
	font-style: normal;
	color: #3a403e;
}

.calculator__result {
	background: #eaf3ee;
	border-radius: 10px;
	padding: 0 20px;
	height: 68px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.calculator__result-text {
	font: 500 15px Inter, Arial;
}

.calculator__result-value {
	font-size: 24px;
	line-height: 32px;
	color: #2f7a57;
}

.calculator__result--column {
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	height: auto;
	padding: 16px 20px;
	gap: 4px;
}

.calculator__result--column .calculator__result-text {
	font-size: 13.5px;
}

.calculator__hint {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12.5px;
	line-height: 17px;
	color: #7c8481;
}

@media (max-width: 1200px) {
    
    body:has(.calculator--open) {
        overflow: hidden;
    }
}

@media (max-width: 767px) {
    
    .attribute-list__item--btn {
        grid-column: 1;
    }
    
    .calculator.calculator--paint {
        max-height: 100vh;
        height: 100vh;
    }
    
	.calculator--paint,
	.calculator--floor {
		width: 100%;
	}
	
	.calculator__dimensions {
		flex-wrap: wrap;
	}
}

@media (max-height: 767px) {
    
    .calculator.calculator--paint {
        max-height: 100vh;
        height: 100vh;
        width: 100vw;
    }
}

@media (max-height: 530px) {
    
    .calculator.calculator--floor {
        max-height: 100vh;
        height: 100vh;
    }
}