body {
    margin: 0 auto;
    font-family: open-sans, sans-serif;
}

p {
    font-weight: 400;
    font-size: 15px;
    line-height: 1.8;
    font-style: normal;
}

h1, h2, h3, h4, h5 {
    font-family: adrianna-extended, sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    font-size: 1.333em;
    line-height: 1.4em;
    color: #333333;
}

span {
    font-size: 12px;
    margin: 0;
    color: #888;
}

a {
    text-decoration: none;
    color: #222;
}

label {
    position: relative;
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

input {
    position: relative;
    display: block;
    background: #f4f4f4;
    border: none;
    border-radius: 3px;
    height: 40px;
    width: 200px;
    font-size: 16px;
    text-indent: 10px;
    outline: none;
}

button {
    position: relative;
    display: inline-block;
    width: 180px;
    background: transparent;
    color: #e31936;
    border: solid 1px #e31936;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 400;
    height: 40px;
    cursor: pointer;
    opacity: 1;
    transition: 0.2s;
    outline: none;
}

button:hover {
    background: #e31936;
    color: #fff;
}

.order-btn {
    position: relative;
    display: inline-block;
    border: solid 1px #e31936;
    color: #e31936;
    margin-right: 10px;
    height: 35px;
    width: 150px;
}

@media screen and (max-width: 1000px) {
    .order-btn {
        margin-bottom: 12px;
        width: 100%;
        height: 40px;
    }
    .press-enter {
        display: none;
    }
}

select {
    position: relative;
    display: block;
    background: #f4f4f4;
    border: none;
    border-radius: 3px;
    height: 40px;
    width: 190px;
    font-size: 14px;
    outline: none;
    text-indent: 10px;
}

/****** Custom Styles ******/

.calculator {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: top;
    width: 1300px;
    margin: 50px auto;
}

.inputs {
    position: inherit;
    display: inline-block;
    width: 500px;
    padding: 40px;
}

.outputs {
    position: inherit;
    display: inline-block;
    width: 700px;
    padding: 40px;
}

.header {
    height: 40px;
}

@media screen and (max-width: 1000px) {
    .header {
        height: 100%;
        padding: 0 !important;
    }
}

.col-full {
    position: relative;
    display: block;
    width: 100%;
    margin: 20px 0;
}

.col-half {
    position: relative;
    display: inline-block;
    width: 49%;
    margin: 20px 0;
    margin-top: 0;
}

.row {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    background: #fff;
    border-bottom: solid 1px #eee;
    transition: 0.2s;
}

.row:hover {
    background: linear-gradient(to left, #ffff, #f7f7f7, #fff);
}

.product-img {
    margin-right: 30px;
    margin-left: 10px;
}

.product-img img {
    position: relative;
    display: block;
    width: 40px;
}

.product-name {
    width: 250px;
}

.product-name p {
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

@media screen and (max-width: 1000px) {
    .product-name {
        max-width: 170px;
        word-break: break-word;
    }
}

.product-qty {
    width: 100px;
}

.product-qty p {
    display: inline-block;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
}

.product-unit {
    width: 100px;
}

@media screen and (max-width: 1000px) {
    .product-unit p {
        font-size: 12px;
    }
}

.info-icon {
    text-align: right;
    display: inline-block;
    margin-right: 10px;
}

.dropdown {
    position: relative;
    display: block;
    background: #f4f4f4;
    border: none;
    height: 40px;
    width: 200px;
    border-radius: 3px;
}

.icon {
    color: #888;
    opacity: 1;
    cursor: pointer;
    outline: none;
    transition: 0.2s;
}

.icon:hover {
    color: #e31936;
}

/* Tooltips */

.tooltip .tooltip-text {
    position: absolute;
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    font-size: 0.8em;
    border-radius: 5px;
    left: 390px;
    top: 15px;
    opacity: 0;
    transform: translateX(-10px);
    visibility: hidden;
    transition: 0.1s ease-out;
    cursor: default;
    text-align: left;
    z-index: 999;
}

.tooltip-text::before {
    content: "";
    position: absolute;
    border: solid 8px transparent;
    border-right: solid 8px #333;
    left: -15px;
    top: 12px;
}

.tooltip:hover .tooltip-text {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.tooltip-result {
    top: -6px!important;
}

.exchange {
    position: relative;
    display: block;
    padding: 10px;
    transition: .3s;
    cursor: pointer;
}

.exchange:hover {
    color: #e31936;
    transform: rotateX(180deg);
}

@media screen and (max-width: 1000px) {
    .exchange {
        position: absolute;
        right: -10px;
        font-size: 20px;
    }
}

/* Mobile Optimisation */

@media screen and (max-width: 1000px) {

    input {
        width: 100%;
    }

    select {
        width: 100%;
    }

    button {
        width: 100%;
    }

    .dropdown {
        width: 100%;
    }

    .calculator {
        position: relative;
        display: block;
        margin: 0 auto;
        padding: 0;
        width: 90%;
    }

    .inputs {
        display: block;
        padding: 0;
        width: 100%;
    }

    .outputs {
        display: block;
        padding: 0;
        width: 100%;
    }

    .col-half {
        display: block;
        width: 100%;
    }

    .tooltip .tooltip-text {
        left: 280px;
    }
}