/**
 * FOUNDATION OVERRIDES
 */
.alert-box ul {
    margin: 0;
}

.alert-box ul li {
    list-style: none;
}

form, .reveal-modal .button {
    margin: 0;
}

form li {
    padding-bottom: 0 !important;
}

textarea {
    height: 5rem !important;
}

.th:hover {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.th {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) !important;
}

.off-canvas-wrap {
    height: 100vh;
    padding-top: env(safe-area-inset-top);
}

.inner-wrap {
    height: 100% !important;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

/** HANDLE NOTCH */
.off-canvas-wrap:before {
    height: env(safe-area-inset-top);
    position: absolute;
    width: 100%;
    background: #333333;
    top: 0;
    left: 0;
    content: "";
}

/** iOS 9 does not support env(safe-area-inset-top)... We need to support it still though */
body.ios.major-9 .off-canvas-wrap {
    height: calc(100vh - 20px);
}

/** REVEAL MODAL */
@media only screen and (max-width: 40em) {

    .reveal-modal > :first-child {
        margin-top: 45px;
    }

    .ios .reveal-modal > :first-child {
        margin-top: calc(env(safe-area-inset-top) + 45px);
    }
}

.reveal-modal {
    -webkit-overflow-scrolling: touch;
}

.reveal-modal h1 {
    width: 100%;
    position: fixed;
    left: 0;
    background: #333;
    top: -4px;
    text-align: center;
    font-size: 1.125rem;
    line-height: 45px;
    z-index: 1000;
    padding-top: constant(safe-area-inset-top);
    padding-top: env(safe-area-inset-top);
}

/* Mobil changes to reveal modal */
body:is(.ios,.android) .reveal-modal h1 {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    padding-left: 35px;
    padding-right: 35px;
}


dialog .close-reveal-modal, .reveal-modal .close-reveal-modal {
    width: 50px;
    height: 50px;
    text-align: center;
    top: 0;
    right: 0;
    position: fixed;
    z-index: 1000;
    margin-top: constant(safe-area-inset-top);
    margin-top: env(safe-area-inset-top);
}

dialog, .reveal-modal {
    border: 0;
    padding: 15px;
}

dialog .row, .reveal-modal .row {
    max-width: none;
}

/** REVEAL MODAL: Android fixes */
body.android .reveal-modal {
    /*width: 100%;*/
    min-height: 100%;
}

body.android .reveal-modal > :first-child {
    width: 100%;
}

.button {
    white-space: nowrap;
}

a.th {
    background: #FFF;
    margin-bottom: 0.9375rem;
}

@media only screen {
    [class*="column"] + [class*="column"]:last-child {
        float: left !important;
    }
}

input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="email"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], textarea {
    font-size: 1rem;
    border-radius: 3px;
    padding: 0.1rem 0.5rem;
    height: 1.8rem;
}

label {
    font-size: 0.975rem;
    text-indent: 0.2em;
}

input.round {
    -webkit-border-radius: 1000px;
    border-radius: 1000px;
}

input, textarea, select {
    -webkit-box-shadow: 0 !important;
    box-shadow: none !important;
}

.left-small, .right-small {
    border: 0;
}

/**
 * GOOGLE
 */
.MapInfoWindow h1 {
    color: #000;
}

.MapInfoWindow #bodyContent h1 {
    font-size: 20px;
    margin: 0;
}

/**
 * FONT AWESOME
 */
.fa-spin {
    -webkit-animation: fa-spin 1.1s infinite linear;
    -moz-animation: fa-spin 1.1s infinite linear;
    -o-animation: fa-spin 1.1s infinite linear;
    animation: fa-spin 1.1s infinite linear;
}

.d-none {
    display: none !important;
}