/**
 * Copyright (c) 2014-2024 Alexandru Boia and Contributors
 *
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 *	1. Redistributions of source code must retain the above copyright notice, 
 *		this list of conditions and the following disclaimer.
 *
 * 	2. Redistributions in binary form must reproduce the above copyright notice, 
 *		this list of conditions and the following disclaimer in the documentation 
 *		and/or other materials provided with the distribution.
 *
 *	3. Neither the name of the copyright holder nor the names of its contributors 
 *		may be used to endorse or promote products derived from this software without 
 *		specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
 * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY 
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE.
 */

.abp01-clear {
    clear: both;
    width: 0;
    height: 0;
}

/* Top and bottom teasers */

.abp01-techbox-teaser, 
.abp01-techbox-content-skip-teaser {
    background-color: #fffb91;
    border: 1px solid #ffea00;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    color: #868445;
    padding: 5px;
    font-size: 12px;
}

.abp01-techbox-teaser {
    width: calc(100% - 12px);
    margin-bottom: 10px;
}

.abp01-techbox-content-skip-teaser {
    width: calc(100%-22px);
    margin: 0px 5px 5px 5px;
}

.abp01-techbox-teaser a, 
.abp01-techbox-content-skip-teaser a {
    color: #868445 !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
}

.abp01-techbox-teaser a:hover, 
.abp01-techbox-content-skip-teaser a:hover {
    text-decoration: underline !important;
    border: none !important;
}

/* Actual frontend viewer elements */

/* Generic frontend viewer structure */

.abp01-techbox-frontend {
    width: calc(100% - 12px);
    padding: 5px;
    background-color: #f7f7f7;
    margin-bottom: 15px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    border: 1px solid #e6e6e6;
    box-sizing: content-box;
}

.abp01-techbox-title {
    margin-bottom: 5px;
    font-size: 13px;
    color: #808080 !important;
    font-weight: 500;
}

.abp01-techbox-icon {
    margin-top: 1px;
    margin-left: 3px;
    margin-right: 5px;
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: text-top;
}

.abp01-techbox-icon:before {
    content: "\f319";
    font: 400 16px/1 dashicons;
    color: #808080;
}

.abp01-techbox-wrapper {
    background-color: #fff;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    border: 1px solid #e6e6e6;
}

/* Frontend viewer tabs - map and info */

ul.abp01-techbox-tabs, 
ul.abp01-techbox-tabs li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    list-style-type: none;
}

ul.abp01-techbox-tabs {
    width: 100%;
    height: 40px;
    border-bottom: 1px solid #e6e6e6;
}

.abp01-tab {
    height: 40px;
    line-height: 40px;
    text-align: center;
    vertical-align: middle;
    color: #555;
    float: left;
    font-size: 13px;
    font-weight: normal;
}

.abp01-tab .dashicons {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
    font-size: 15px;
    color: #808080;
}

.abp01-tab a, 
.abp01-tab a:hover {
    width: 100%;
    display: inline-block;
    text-decoration: none !important;
    color: rgb(33,117,155) !important;
    height: 40px;
    font-weight: 600;
    border: none !important;
    box-shadow: none !important;
}

.abp01-tab a,
.abp01-tab a:hover,
.abp01-tab a:visited, 
.abp01-tab a:focus {
    outline: 0;
    box-shadow: none;
    border: none !important;
    text-decoration: none !important;
}

.abp01-tab {
    border-right: 1px solid #e6e6e6;
}

.abp01-tab:last-of-type {
    border-right: 0px none;
}

.abp01-tab-info.abp01-full-tab {
    width: 100% !important;
    border-radius: 0px !important;
}

.abp01-tab-map.abp01-full-tab {
    width: 100% !important;
}

.abp01-tab-active {
    height: 40px;
    background-color: #fff;
}

/* Frontend viewer - track information panel */

.abp01-techbox-info {
    padding: 5px;
}

.abp01-techbox-info ul, 
.abp01-techbox-info ul li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    list-style-type: none;
}

.abp01-techbox-info ul li {
    padding: 5px !important;
    color: #515151 !important;
}

.abp01-techbox-info ul li:last-of-type {
    margin-bottom: 0;
}

.abp01-item-even {
    background-color: #f7f7f7;
}

.abp01-info-label {
    margin-right: 5px;
    font-weight: 600;
    width: 200px;
    display: block;
    text-align: right;
    float: left;
}

.abp01-info-value {
    display: block;
    float: left;
    width: calc(100% - 210px);
}

.abp01-info-value .abp01-field-value-multi {
    margin-right: 2px;
}

.abp01-info-value .abp01-field-value-multi.abp01-item-layout-vertical {
    display: block;
}

.abp01-info-value .abp01-field-value-multi.abp01-item-layout-horizontal {
    display: inline;
}

.abp01-info-value .abp01-field-value-show-more-txt {
    margin-right: 2px;
}

/* Frontend viewer - map panel */

.abp01-techbox-map,
.abp01-map-container,
.abp01-map {
    -moz-box-sizing: content-box !important;
    -webkit-box-sizing: content-box !important;
    box-sizing:content-box !important;
}

.abp01-map-container {
    width: calc(100% - 10px);
    padding: 0px 5px 0px 5px;
    height: 350px;
    position: relative;
}

.abp01-map {
    width: 100%;
    height: calc(100% - 5px);
    margin: 5px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
    position: relative;
}

.abp01-map-container img {
    border-radius: 0px !important;
    box-shadow: none !important;
}

.abp01-map-progress {
    width: 220px;
    height: 19px;
    position: absolute;
    left: calc(50% - 110px);
    top: 170px;
}

.abp01-map-retry-container {
    position: absolute;
    width: 100%;
    height: 65px;
    z-index: 10001;
    top: 35%;
    left: 0;
}

.abp01-map-retry-message {
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
    color: #808080 !important;
}

.abp01-map-retry {
    width: 200px;
    height: 45px;
    text-align: center;
    border: 1px solid #e6e6e6;
    background-color: #f7f7f7;
    color: #808080 !important;
    display: block;
    z-index: 10002;
    line-height: 45px;
    box-shadow: 0 1px 0 #fff inset, 0 1px 0 rgba(0, 0, 0, 0.08);
    text-decoration: none;
    margin-left: auto;
    margin-right: auto;
}

.abp01-map-retry:hover {
    text-decoration: underline;
}

/* Frontend viewer - map controls and widgets */

.abp01-track-minmaxalt-btn,
.abp01-map-altitude-profile-btn,
.abp01-map-recenter-btn {
    margin-top: 3px;
}

.abp01-track-download-link,
.leaflet-touch .abp01-track-minmaxalt-btn,
.leaflet-touch .abp01-map-altitude-profile-btn,
.leaflet-touch .abp01-map-recenter-btn {
    margin-top: 5px;
}

.leaflet-touch .abp01-map-recenter-btn {
    margin-left: 1px;
}

.abp01-map .leaflet-control-container .leaflet-control a {
    text-decoration: none !important;
}

.abp01-min-max-altitude-box {
    width: 210px;
    height: 60px;
    background-color: #515151;
    opacity: 0.80;
    color: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 2px rgba(0,0,0,.06);
}

.abp01-min-max-altitude-box-line {
    width: 100%;
    height: 30px;
    line-height: 20px;
    padding: 5px;
    box-sizing: border-box;
    vertical-align: middle;
    font-size: 12px;
    display: inline-block;
    overflow: hidden;
}

.abp01-min-max-altitude-box-line-spacer {
    width: calc(100% - 10px);
    height: 1px;
    border-bottom: 1px solid #fff;
    box-sizing: border-box;
    margin: 0px 5px 0px 5px;
    opacity: 0.25;
}

.abp01-min-max-altitude-lbl,
.abp01-min-max-altitude-val {
    overflow: hidden;
    white-space: nowrap;
    -ms-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    box-sizing: border-box;
    display: inline-block;
}

.abp01-min-max-altitude-lbl {
    width: 65%;
    padding-right: 5px;
    text-align: right;
    font-weight: bold;
}

.abp01-min-max-altitude-val {
    width: 35%;
    text-align: left;
}