:root {
    --grid-gap: 16px;
}
.d-coverage {
    background-color: #f8fafa;
    padding: 30px 0 80px 0;
}
.d-content {
    width: 1100px;
    margin: 0 auto;
}
.d-content h1 {
    font-weight: 900;
    max-width: 95%;
    margin: 0 auto;
    text-align: center;
    font-size: 2rem;
    margin-top: 20px;
}
.d-content p {
    font-family: "Aeonik", sans-serif;
    color: rgba(43, 42, 46, 0.85);
    max-width: 95%;
    width: 768px;
    line-height: 1.6;
    text-align: center;
    margin: 20px auto 50px auto;
}
.updated-container {
    width: 100%;
    overflow: hidden;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 0.9rem;
    color: rgba(43, 42, 46, 0.7);
    margin-top: 12px;
}
.updated-container a {
    color: var(--color-teal);
    text-decoration: underline;
}
.updated-container .updated-docs {
    float: left;
    width: -webkit-calc(100% - 230px);
    width: calc(100% - 230px);
    max-width: 680px;
}
.updated-container .last-updated {
    float: right;
}
#filters {
    margin-bottom: var(--grid-gap);
    display: -webkit-box;
    display: flex;
}
#filters label {
    cursor: pointer;
}
.filters--speed {
    margin-left: auto;
}
.filters--radio {
    display: -webkit-inline-box;
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    margin-left: 4px;
}
.filters--radio [type="radio"] {
    display: none;
}
.filters--radio [type="radio"]:checked + label {
    background-color: var(--color-teal);
    color: #fff;
}
.filters--radio label {
    background-color: #fff;
    font-family: "Aeonik", sans-serif;
    border: none;
    padding: 0.955rem 0.9rem;
    border: 1px solid rgba(43, 42, 46, 0.1);
    font-size: 0.95rem;
    border-radius: 4px;
    box-sizing: border-box;
    color: rgba(43, 42, 46, 0.85);
    -webkit-transition: background-color 0.15s, color 0.15s;
    transition: background-color 0.15s, color 0.15s;
}
#country-filter {
    width: 270px;
    padding: 1.05rem;
    box-sizing: border-box;
    color: rgba(43, 42, 46, 0.95);
    border: 1px solid rgba(43, 42, 46, 0.1);
    font-size: 0.95rem;
    border-radius: 4px;
    font-family: "Aeonik", sans-serif;
    font-weight: 400;
    background: url(/wp-content/themes/soracom/assets/img/connectivity/country-search.svg) no-repeat scroll 14px 15px;
    background-size: 20px;
    background-color: #fff;
    padding-left: 42px;
}
#filters input:focus {
    outline: none;
}
#filters select {
    background-color: #fff;
    background-image: url(/wp-content/themes/soracom/assets/img/connectivity/option-select.svg);
    background-repeat: no-repeat;
    background-position: right 16px top 50%;
    background-size: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0.99rem;
    box-sizing: border-box;
    color: rgba(43, 42, 46, 0.95);
    border: 1px solid rgba(43, 42, 46, 0.1);
    font-size: 0.95rem;
    border-radius: 4px;
    font-family: "Aeonik", sans-serif;
    margin-left: 0.4rem;
    width: 160px;
}
#filters select:focus {
    outline: none;
}
.country-container {
    display: grid;
    grid-column-gap: var(--grid-gap);
    grid-template-columns: repeat(4, 1fr);
    margin-top: 2rem;
}
.country-item {
    background-color: #fff;
    border: 1px solid rgba(43, 42, 46, 0.1);
    padding: 20px;
    border-radius: 24px;
    box-shadow: 0px 10px 25px 0px rgba(43, 42, 46, 0.16);
    -webkit-transition: box-shadow 0.2s, -webkit-transform 0.2s;
    transition: box-shadow 0.2s, -webkit-transform 0.2s;
    transition: transform 0.2s, box-shadow 0.2s;
    transition: transform 0.2s, box-shadow 0.2s, -webkit-transform 0.2s;
    border-bottom: solid 6px var(--color-teal);
    margin-bottom: -webkit-calc(var(--grid-gap) * 2);
    margin-bottom: calc(var(--grid-gap) * 2);
    display: -webkit-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
}
.country-item:hover {
    -webkit-transform: translate(0px, 2px);
    transform: translate(0px, 2px);
    box-shadow: none;
}
.country-item h3 {
    font-size: 1.45rem;
    border-bottom: solid 1px rgba(43, 42, 46, 0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 400;
}
.country-item .flag-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}
.country-item .country-flag {
    height: 46px;
    float: left;
    display: inline-block;
    box-shadow: 0px 1px 3px 1px rgba(43, 42, 46, 0.12);
    position: absolute;
    border-radius: 3px;
    opacity: 0.9;
}
.country-item .country-soracom {
    float: right;
    width: 40px;
    opacity: 0.6;
    display: inline-block;
}
.speed-cov {
    margin-bottom: 1.2rem;
    line-height: 1.65;
}
.speed-cov .speed-tag {
    font-size: 0.75rem;
    border-radius: 4px;
    margin-bottom: 5px;
    padding: 1px 8px;
    margin-right: 3px;
    display: inline-block;
}
.speed-cov .speed-tag--2g {
    background-color: rgba(35, 108, 255, 0.1);
    color: #236cff;
    border: solid 2px #236cff;
    text-transform: uppercase;
}
.speed-cov .speed-tag--3g {
    background-color: rgba(52, 205, 215, 0.1);
    color: #34cdd7;
    border: solid 2px #34cdd7;
    text-transform: uppercase;
}
.speed-cov .speed-tag--4g {
    background-color: rgba(142, 68, 173, 0.1);
    color: #8e44ad;
    border: solid 2px #8e44ad;
}
.speed-cov .speed-tag--cat {
    background-color: rgba(26, 188, 156, 0.1);
    color: #1abc9c;
    border: solid 2px #1abc9c;
}
.speed-cov .speed-tag--nb {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: solid 2px #e74c3c;
}
.carrier-coverage {
    margin-top: auto;
}
.carrier-coverage img {
    float: left;
    display: inline-block;
    margin-right: 0.7rem;
    width: 1.25rem;
    -webkit-transform: translate(0px, 2px);
    transform: translate(0px, 2px);
}
.carrier-coverage span {
    float: left;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 0.9rem;
    color: rgba(43, 42, 46, 0.7);
    width: -webkit-calc(100% - 2rem);
    width: calc(100% - 2rem);
    border-radius: 4px;
    margin-bottom: 5px;
}

.coverage-map { 
    padding: 0 0 2rem 0;
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 64%;
    height: 0;
    overflow: hidden;
    border-radius: 0.4rem;
}
  
.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media only screen and (max-width: 1180px) {
    .d-content {
        width: 95%;
    }
}
@media only screen and (max-width: 1080px) {
    .country-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
@media only screen and (max-width: 950px) {
    #filters {
        flex-wrap: wrap;
    }
}
@media only screen and (max-width: 868px) {
    #filters input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
    }
    #filters select {
        margin-left: 0;
        width: -webkit-calc(100% - 380px);
        width: calc(100% - 380px);
    }
    .country-container {
        grid-template-columns: 1fr 1fr;
    }
}
@media only screen and (max-width: 768px) {
    .d-content h1 {
        font-size: 1.75rem;
        margin-top: 5px;
    }
    .d-content p {
        font-size: 0.95rem;
        margin: 20px auto;
    }
}
@media only screen and (max-width: 620px) {
    .updated-docs {
        width: 100%;
    }
    .last-updated {
        float: left;
        margin-top: 1rem;
    }
}
@media only screen and (max-width: 550px) {
    .country-container {
        grid-template-columns: 1fr;
    }
    .filters--speed {
        width: 100%;
    }
    #filters select {
        margin-bottom: 10px;
        width: 100%;
        font-size: 0.89rem;
    }
    :-ms-input-placeholder {
        font-size: 0.89rem;
    }
    #filters input[type="text"],
    ::placeholder,
    :-ms-input-placeholder,
    ::-ms-input-placeholder {
        font-size: 0.89rem;
    }
}
