@font-face {
    font-family: "MM Text Pro";
    src: url("fonts/MMTextProTTF-Regular.ttf");
    font-weight: 400;
}
html,
body {
    /* height: 100%; */
    margin: 0;
    padding: 0;
    font-family: "MM Text Pro", Arial, Helvetica, sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}
.item-info {
    max-width: 1100px;
    margin: 0 auto 40px;
}
.item-info h2 {
    color: #df0000;
    font-style: italic;
    font-size: 35px;
    margin: 0;
}
.item-info h3 {
    font-size: 24px;
    font-family: "MM Text Pro";
    font-weight: 600;
    font-style: italic;
    color: #000;
    margin-top: 6px;
}
.item-info h3 span {
    color: #df0000;
}
.map-content {
    height: 500px;
    display: flex;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}
.stores {
    flex: 1;
    border: 1px solid #ddd;
    max-height: 100%;
    overflow: auto;
    min-width: 350px;
    scrollbar-color: #888 hsl(0, 0%, 94%);
    scrollbar-width: thin;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    overflow: hidden;
    overflow-y: scroll;
}
#map {
    flex: 3;
    min-height: 500px;
    min-width: 800px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
.store-filter {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.store-list {
    max-height: calc(100% - 65px);
    overflow: auto;
}
.store-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
.store-item + .store-item {
    border-top: 1px solid #ddd;
}
.store-item h3 {
    font-family: "MM Text Pro", Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 14px;
    margin: 0;
    text-decoration: underline;
    cursor: pointer;
}
span.stock {
    font-size: 12px;
    position: relative;
    min-width: 60px;
    padding-top: 30px;
    text-align: center;
    margin: 0 10px;
}
span.stock:before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -18px;
}
span.stock.stokta-var {
    color: #2c961d;
}
span.stock.tukenmek-uzere {
    color: #df0000;
}
span.stock.sinirli-stok {
    color: #efb73a;
}
.stokta-var:before {
    background: url(img/in-stock.png);
    width: 35px;
    height: 24px;
}
.tukenmek-uzere:before {
    background: url(img/low-stock.png);
    width: 35px;
    height: 24px;
}
.sinirli-stok:before {
    background: url(img/limited-stock.png);
    width: 35px;
    height: 24px;
}
.store-info {
    font-size: 12px;
}
.store-info a {
    display: block;
}
.tariff {
    position: relative;
    padding-top: 30px;
    font-size: 12px;
    text-align: center;
    color: #1a73e8;
    text-decoration: none;
    min-width: 60px;
}
.tariff:before {
    content: "";
    background: url(img/route.png) no-repeat center;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -13px;
    padding: 3px;
    border: 1px solid #ddd;
    border-radius: 100%;
}
.tariff:hover::before {
    background: url(img/route-hover.png) no-repeat center;
    background-color: #1a73e8;
    border: 1px solid #1a73e8;
}
.filter-area {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.online-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.online-icon {
    flex: 1;
    text-align: center;
    position: relative;
    padding-top: 40px;
}
.online-icon:before {
    content: "";
    display: inline-block;
    background: url(img/web_app_icon.png);
    width: 47px;
    height: 30px;
    position: absolute;
    top: 8px;
    left: 50%;
    margin-left: -24px;
}

.online-item button {
    white-space: nowrap;
    background: #090;
    font-size: 11px;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
    width: 60px;
}
.online-item button:hover {
    background: #61b361;
}
.btn-stokta-yok {
    visibility: hidden;
}

.input-output-container {
    display: flex;
    flex-direction: column;
}

.output-container {
    display: flex;
    width: 100%;
    min-height: 40px;
    justify-content: space-evenly;
    padding-top: 15px;
}

.input-container {
    position: relative;
    background: #090;
    text-shadow: none;
    text-transform: none;
    font-family: mm-text-bold, Arial;
    font-weight: 400 !important;
    text-align: center;
    padding: 10px;
    color: #fff;
    font-size: 20px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 18px;
    border-radius: 24px;
    outline: none;
    border: none;
    font-weight: 700 !important;
    width: 180px;
    margin: 20px 0;
    min-height: 45px;
}

.input-container:before {
    position: absolute;
    content: " ";
    background: url("https://csscdn.redblue.de/MediaTR/skins/102021/tr/images/general/spritescd.png") no-repeat scroll -160px -41px;
    background-position-x: -223px;
    background-position-y: -18px;
    width: 20px;
    height: 20px;
    transform: translateX(-10px);
}

.input-container.loading {
    pointer-events: none;
    cursor: default;
}

.input-container.loading:before {
    background-image: url(img/loading.gif);
    background-size: 36px;
    background-repeat: no-repeat;
    background-position: center;
    width: 36px;
    height: 36px;
    transform: translate(-13px, -17px);
    filter: brightness(1.5);
}

.scaled {
    transform: scale(0.8);
    margin: 10px 0;
}

.info-wn {
    display: flex;
    flex-direction: column;
}

.info-wn span {
    margin: 5px 0;
}

@media screen and (max-width: 992px) {
    .item-info {
        margin-bottom: 0;
    }
    .item-info h2 {
        font-size: 20px;
        text-align: center;
        font-style: normal;
        font-weight: normal;
        box-sizing: border-box;
        padding: 10px;
    }
    
    .item-info h3 {
        padding: 0 10px 10px;
        font-weight: normal;
        text-align: center;
        font-size: 18px;
        font-style: normal;
    }

    .map-content {
        flex-direction: column-reverse;
        height: auto;
    }

    #map {
        min-height: 50vh;
        min-width: 100vw;
    }

    .store-info {
        font-size: 3.1vw;
        flex: 1;
    }

    .store-item {
        position: relative;
        align-items: unset;
    }

    .input-output-container {
        min-height: 150px;
    }

    .input-container {
        position: absolute;
        left: 10px;
        bottom: -10px;
        width: calc(100% - 20px);
    }

    .gm-style-iw .input-container.scaled {
        transform: scale(0.8);
        margin: 0 0 15px;
        bottom: 0;
        position: relative;
        z-index: 12;
    }

    .scaled {
        transform: scale(1);
        margin: 20px 0;
    }

    .output-container {
        min-height: 40px;
        justify-content: initial;
        padding-top: 0px;
    }
    .stores {
        max-height: 500px;
    }
}

@media screen and (max-width: 400px) {
    .info-wn {
        font-size: 12px;
    }
    .info-wn .input-container{
        min-height: 0;
    }
}
