:root {
    --color-grey: #b5b5b5;
    --color-black: #222222;
}

.glue-calculator {
    margin: .75rem 0 2rem;
}

.glue-calculator-app {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;

    @media(max-width: 70rem) {
        grid-template-columns: 1fr;
    }
}

.gc-title,
.gc-subtitle
{
    margin: 0;
    border-bottom: 1px solid var(--color-grey);
    width: 100%;
    padding-bottom: .5rem;
    font-size: 1.5rem;
}

.gc-subtitle--secondary {
    display: inline-block;
    margin: 1rem 0 0;
    font-size: 1.2rem;
    font-weight: normal;
    border-bottom: 1px solid var(--color-grey);
}

.gc-calc-params,
.gc-result
{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    border: 1px solid var(--color-grey);
    padding: 2rem;
    border-radius: .5rem;
    height: max-content;

    @media(max-width: 70rem) {
        padding: 1.5rem;
    }
}

.gc-calc-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
}

.gc-result {
    position: sticky;
    height: max-content;
    top: 8rem;
}

.gc-calc-btn {
    padding: 0.625rem 1.125rem;
    border: 1px solid var(--color-black);
    background-color: transparent;
    cursor: pointer;
    transition: background-color .5s, color .5s;
    margin-left: auto;
    margin-top: 2rem;
}

.gc-add-product-btn {
    padding: 0.5rem 2rem;
    margin: 0 auto;
    border: 1px solid var(--color-black);
    background-color: transparent;
    cursor: pointer;
    transition: background-color .5s, color .5s;
}

.gc-calc-btn:hover,
.gc-calc-btn:focus,
.gc-add-product-btn:hover {
    color: #ffffff;
    background-color: #000000;
}

.gc-product-group {
    position: relative;
    width: 100%;
    border-radius: .5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: inset 0 0 18px 0px #ededed;
}
.gc-product-group.show-animation {
    animation: fadeIn .5s;
}

.gc-product-group.remove-animation {
    animation: fadeOut .3s;
}

.gc-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    width: 100%;
}

.gc-select,
.gc-input {
    width: 100%;
    border: 1px solid var(--color-grey);
    padding: .5rem 1rem;
    color: #777777;
}

.gc-select:focus,
.gc-input:focus {
    border-color: var(--color-black);
}

.gc-select[disabled] {
    color: #b3b3b3;
    border: 1px solid #b3b3b3;
    cursor: not-allowed;
}

.gc-category-group,
.gc-glue-settings,
.gc-row {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: space-between;
    width: 100%;

    @media(max-width: 70rem) {
        flex-direction: column;
    }
}

.gc-result-list {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gc-result-item,
.gc-product-item {
    margin: 0;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px dashed #a6a6a6;
    padding-bottom: 1.5rem;

    @media(max-width: 70rem) {
        gap: .5rem;
        flex-direction: column;
    }
}
.gc-result-product {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0;
}
.gc-product-item {
    width: 100%;
}

.gc-res-price>span {
    font-weight: bold;
    transform: scale(1);
}

.gc-result-item:before,
.gc-product-item:before,
.gc-result-product:before{
    display: none;
}

.gc-result-item>.gc-res-title {
    display: block;
    width: 50%;
    @media(max-width: 70rem) {
        width: 100%;
    }
}

.gc-res-body {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    width: 40%;

    @media(max-width: 70rem) {
        width: 100%;
    }
}

.gc-total-sum {
    display: block;
    background-color: #f3f3f3;
    padding: 1rem;
    width: 100%;
    text-align: center;
    font-weight: 600;
    font-size: 1.5rem;
    border-radius: .5rem;
    margin-top: 2rem;
}

.close-btn-group {
    position: absolute;
    top: -1rem;
    right: -1rem;
    border: none;
    background: var(--color-black);
    color: #ffffff;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    font-size: 1rem;
    transform: scale(1);
    transition: transform .3s;
}

.close-btn-group:hover {
    transform: scale(1.1) rotate(180deg);
}
.close-btn-group:before {
    content: '\2715';
}

.res-total-sum {
    display: inline-block;
}

.gc-link-glue,
.gc-link-product {
    display: flex;
    gap: 1rem;
    align-items: center;
    max-width: 50%;

    @media(max-width: 70rem) {
        max-width: 100%;
    }
}

@keyframes fadeIn {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeOut {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

.res-glue-img.res-glue-img {
    width: 4rem;
    border-radius: .5rem;
    border: 1px solid var(--color-grey);
    margin-left: 0;
    margin-right: 0;
}

.footnote {
    margin: 2rem auto 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}