.site-main .sms_local {
    margin-bottom: calc(var(--wp--custom--gutter) * 2);
}

.entry-content .wp-block-button__link {
    font-size: 1.125em;
}

.entry-content .wp-block-buttons {
    margin-top: calc(var(--wp--custom--gutter) * 1.5);
}

.single-area-sidebar {
    margin-top: calc(var(--wp--custom--gutter) * 2);
}

.parent-page a {
	background: var(--wp--custom--color--accent);
	color: #fff;
	display: inline-block;
	font-family: var(--wp--preset--font-family--alternative);
	font-size: var(--wp--preset--font-size--xx-small);
	padding: 0.25em 6px;
	text-decoration: none;
	text-transform: uppercase;
}

.parent-page a:hover,
.parent-page a:focus,
.parent-page a:active {
    background: var(--wp--preset--color--contrast-2);
}

.sms-prices {
    margin-bottom: var(--wp--custom--gutter);
    margin-top: calc(var(--wp--custom--gutter) * 2);
}

.sms-prices table {
    border-collapse: collapse;
    width: 100%;
}

.sms-prices thead {
	border-bottom: 2px solid var(--wp--preset--color--contrast-2);
}

.sms-prices caption {
    color: var(--wp--preset--color--alternative);
    font-weight: 700;
    margin-bottom: 0.25em;
    text-align: left;
}

.sms-prices th {
    border-color: transparent;
    color: var(--wp--preset--color--alternative-2);
    font-weight: 700;
    line-height: 1.15;
    padding: 0.5em;
}

.sms-prices th:first-child {
    padding-left: 0.25em;
    text-align: left;
}

.sms-prices tbody td {
    padding: 0.4em 0.2em;
}

.sms-prices tbody tr:nth-child(odd) td {
    background-color: var(--wp--preset--color--background-light);
}

.sms-prices tbody td:not(:first-child) {
    text-align: center;
}

.sms-prices tbody td:first-child {
    font-size: 1.125em;
    font-weight: 500;
}

.sms-prices .price-value {
    color: var(--wp--preset--color--alternative-2);
    font-size: 1.75em;
    font-weight: bold;
}

.sms-prices .price-per-sms .price-value {
    color: var(--wp--preset--color--highlight);
}

.sms-prices .price-footnote {
    display: inline-block;
}

.sms-prices tfoot {
    border-top: 2px solid var(--wp--preset--color--contrast-2);
}

.sms-prices tfoot td {
    padding: 0.5em 0 0;
    text-align: center;
}

.sms-prices .wp-block-button__link {
    font-size: 1.125em;
}

.sms-national .sms-prices p {
    margin: 0;
}

.sms-national .sms-prices .old-price {
    font-size: 1.125rem;
}

.sms-national .sms-prices .price {
    color: var(--wp--preset--color--highlight);
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.1;
}

.sms-national .sms-prices .price-footnote {
    display: block;
    font-size: 1rem;
    font-weight: 400;
}

.area-footer {
    background-color: var(--wp--preset--color--background-light);
    margin-left: calc(var(--wp--custom--gutter) * -1);
    padding: var(--wp--custom--gutter);
    width: calc(100% + (var(--wp--custom--gutter) * 2));
}

.area-children h3:first-child {
    margin-top: 0;
}

.area-children > ul {
    list-style: none;
    margin-top: var(--wp--custom--gutter);
    padding-left: 0;
}

.area-children > ul li {
    font-size: 1.5em;
    font-weight: 500;
    margin-bottom: 0.25em;
}

.area-children > ul li::marker {
	color: var(--wp--preset--color--alternative-2);
}

.area-children > ul li a {
    text-decoration: underline dotted;
}

.country-selection {
    margin-top: 1em;
}

.country-selection label {
    display: block;
}

#country-select {
    display: inline-block;
    margin-right: 0.5em;
}

@media (max-width: 768px) {
    #country-select {
        margin-bottom: 0.5em;
        width: 100%;
    }
}

.single-area-widgets hr {
    margin-bottom: calc(var(--wp--custom--gutter) * 2);
    margin-top: 0;
}

@media (min-width: 320px) {
    
    .area-children > ul {
        columns: 2;
        column-gap: calc(var(--wp--custom--gutter) / 1.5);
    }

    .area-children > ul li:nth-child(odd) {
        border-right: 1px solid #fff;
    }
}

@media (min-width: 600px) {

    .area-children > ul {
        columns: 3;
    }

    .area-children > ul li {
        border-right: 1px solid #fff;
    }

    .area-children > ul li:nth-child(3n) {
        border-right-width: 0;
    }
}

@media (min-width: 1024px) {

    .site-main {
        margin-top: calc(var(--wp--custom--gutter) * 2);
    }

    .area-footer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 calc( var(--wp--custom--gutter) * 3 );
    }

    .area-children {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .area-children > ul {
        columns: 3;
    }

    .area-children > ul li:nth-child(3n) {
        border-right: 1px solid #fff;
    }

    .area-children > ul li:nth-child(4n) {
        border-right-width: 0;
    }

    .single-area-sidebar {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        margin-top: 0;
    }
    
    .sms_local {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 calc( var(--wp--custom--gutter) * 3 );
    }

    .sms_local .parent-page {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    .sms_local .entry-title {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .sms_local .entry-content {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
    
    .sms_local.sms-national .entry-content {
        grid-column: 1 / 3;
    }

    .sms_local .sms-prices {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
        margin-bottom: 0;
        margin-top: 0;
    }

    .has-prices-table .sms-prices {
        align-self: center;
        grid-row: 2 / 4;
    }
}

@media (min-width: 1280px) {

    .site-main {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 0 var(--wp--custom--gutter);
    }

    .sms_local {
        grid-column: 1 / 13;
        grid-row: 1 / 2;
        grid-template-columns: repeat(12, 1fr);
        gap: 0 var(--wp--custom--gutter);
    }

    .area-footer {
        grid-column: 2 / 12;
        grid-row: 2 / 3;
        grid-template-columns: repeat(10, 1fr);
        gap: 0 var(--wp--custom--gutter);
    }

    .area-children {
        grid-column: 1 / 6;
    }

    .sms-national + .area-footer .area-children {
        grid-column: 1 / 7;
    }


    .single-area-sidebar {
        grid-column: 7 / 11;
    }

    .sms-national + .area-footer .single-area-sidebar {
        grid-column: 8 / 11;
    }

    .entry-content h2 {
        font-size: 1.75em;
    }

    .sms_local .parent-page,
    .sms_local .entry-title {
        grid-column: 2 / 12;
    }

    .sms_local .entry-content {
        grid-column: 2 / 8;
    }

    .sms_local.sms-national .entry-content {
        grid-column: 2 / 12;
    }

    .sms_local .sms-prices {
        grid-column: 9 / 12;
    }

    .has-prices-table .entry-title {
        grid-column: 2 / 6;
    }

    .has-prices-table .entry-content {
        grid-column: 2 / 7;
    }

    .has-prices-table .sms-prices {
        grid-column: 8 / 12;
        grid-row: 3 / 4;
    }

}
