/*
Theme Name: OVIS Managment
Author: Quest Marketing Ltd
Description: A theme for OVIS Management.
Version: 1.0.0
Template: dt-the7
*/

.infobox-border {
    border-image: url('//www.sheepmeasles.co.nz/wp-content/themes/ovis/img/infobox-border.png') 90 90 90 90 stretch stretch; 
    border-color: #92C13D;
    border-style: inset;
    border-width: 60px;
}
.infobox-border .wpb_column {
    margin-top: -40px;
    margin-bottom: -40px;
}
@media all and (max-width: 500px) {
    .infobox-border { 
        border-width: 0px;
    }
    .infobox-border .wpb_column {
        margin-top: unset;
        margin-bottom: unset;
    }
}

.infobox-fancy {
    border-image: url('//www.sheepmeasles.co.nz/wp-content/themes/ovis/img/infobox-border.png') 90 90 90 90 stretch stretch; 
    border-color: #92C13D;
    border-style: inset;
    border-width: 60px;
	background: #92C13D;
	margin-right: -16px;
	margin-left: -16px;
}
.infobox-fancy-blue {
    border-image: url('//www.sheepmeasles.co.nz/wp-content/themes/ovis/img/infobox-border-blue.png') 90 90 90 90 stretch stretch; 
    border-color: #20384F;
    border-style: inset;
    border-width: 60px;
    background: #20384F;
    margin-right: -16px;
    margin-left: -16px;
}
.infobox-fancy-red {
    border-image: url('//www.sheepmeasles.co.nz/wp-content/themes/ovis/img/infobox-border-red.png') 90 90 90 90 stretch stretch; 
    border-color: #ed2924;
    border-style: inset;
    border-width: 60px;
    background: #ed2924;
    margin-right: -16px;
    margin-left: -16px;
}
.infobox-fancy .aio-icon-box.left-icon,
.infobox-fancy-blue .aio-icon-box.left-icon,
.infobox-fancy-red .aio-icon-box.left-icon {
    display: block;
}
.infobox-fancy .aio-icon-description > p,
.infobox-fancy-blue .aio-icon-description > p,
.infobox-fancy-red .aio-icon-description > p {
    margin: 0;
}


/* HEADER */
.mini-contacts.phone a {
    color: #20384F;
    text-decoration: none;
}
.sticky-on .mini-contacts.phone.show-on-desktop.in-top-bar-right,
.sticky-on .microwidget-btn.mini-button.header-elements-button-1.show-on-desktop {
    display: none;
}

/* DOWNLOAD BUTTON */
#download-button-main {
    display: block;
}
.download-button {
    background-color: #20384F;
    background-image: linear-gradient(#20384F, #20384F, #20384F);
    border: 0 none;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 1em;
    line-height: 1em;
    padding: 0.75em 1em;
    text-align: left;
    text-decoration: none;
    text-shadow: unset;
}
.download-button:hover {
    background-color: #92C13D;
    background-image: linear-gradient(#92C13D, #92C13D, #92C13D);
    color: #fff;
}
.download-button-desc > p {
    color: #fff;
    font-size: 12px;
    margin: 0 0 0 20px;
    text-align: left;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
}
.download-button-icon.fa.fa-cloud-download {
    float: left;
    font-size: 36px;
    margin-right: 5px;
}

/* WPDM */
.wpdm-tile {
    box-shadow: 0 3px 6px 0px rgba(0,0,0,0.2);
}
.wpdm-tile .list-group-item.wpdm_feat_image {
    padding: 0;
    border-top: 0px solid #dddddd !important;
}
.wpdm-tile .wpdm_feat_image img {
    width: 100%;
    height: auto;
}
.wpdm-tile .list-group-item {
    border-top: 0px solid #ddd !important;
}
.wpdm-tile .list-group-item {
    border: 0px;
}
.wpdm-tile .wpdm-download-link.btn {
    width: 100%;
}
/** WPDM - Resources Page **/
.page-id-79 #wpdm-all-packages .__dt_col_title strong,
.page-id-21 #wpdm-all-packages .__dt_col_title strong {
    font-size: 18px !important;
}
.page-id-79 #wpdm-all-packages .__dt_post_content.small-txt,
.page-id-21 #wpdm-all-packages .__dt_post_content.small-txt {
    font-size: 14px !important;
    line-height: 1.4;
}
.page-id-79 #wpdm-all-packages td.__dt_col_0,
.page-id-21 #wpdm-all-packages td.__dt_col_0 {
    background-size: 80px !important;
    padding-left: 90px !important;
    min-height: 80px !important;
    display: block;
}
.page-id-79 #wpdm-all-packages select.custom-select,
.page-id-21 #wpdm-all-packages select.custom-select {
    width: 76px !important;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="rgba(119,119,119,0.5)" x="0px" y="0px" width="8px" height="8px" viewBox="0 0 386.257 386.257" style="enable-background:new 0 0 386.257 386.257;" xml:space="preserve"><polygon points="0,96.879 193.129,289.379 386.257,96.879 "/></svg>');
}

.wpdm-link-tpl.well.c2a3.wpdm-tile2 {
	border-top: 1px solid #dddddd !important;
    /*box-shadow: 0 3px 6px 0px rgba(0,0,0,0.2) !important;*/
	background: #fff !important;
	padding: 0;
    margin-bottom: 20px;
    padding-top: 20px;
}
.wpdm-link-tpl.well.c2a3.wpdm-tile2 .media-body {
    padding: 10px;
}
.wpdm-link-tpl.well.c2a3.wpdm-tile2 .media-description {
    margin-top: 10px;
}
.wpdm-link-tpl.well.c2a3.wpdm-tile2 .wpdm-download-link.btn.btn-primary::before {
    content: "\f019";
    margin-right: 8px;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}
.page-id-79 .w3eden .col-md-3 {
	width: 100% !important;
}
.page-id-79 .wpdm-link-tpl.well.c2a3.wpdm-tile2 .media-body p {
    font-size: 16px;
    margin-bottom: 0;
    line-height: 1.7;
}
.page-id-79 .wpdm-link-tpl.well.c2a3.wpdm-tile2 .media > .pull-left {
    width: 140px;
}
.page-id-79 .wpdm-link-tpl.well.c2a3.wpdm-tile2 .media > .pull-right {
    padding: 14px;
}
.page-id-79 .wpdm-link-tpl.well.c2a3.wpdm-tile2 img {
    width: 100%;
    height: auto;
}
@media only screen and (max-width: 540px) {
    .page-id-79 .wpdm-link-tpl.well.c2a3.wpdm-tile2 .media > .pull-left {
        width: 100% !important;
    }
    .page-id-79 .wpdm-link-tpl.well.c2a3.wpdm-tile2 .media > .pull-right {
        width: 100% !important;
    }
    .well.c2a3 .btn.wpdm-download-link {
        width: 100% !important;
    }
}
/** WPDM - Sidebar **/
.wpdm-link-tpl.well.c2a3.wpdmtile-page {
	border-top: 0px solid #dddddd !important;
    box-shadow: 0 3px 6px 0px rgba(0,0,0,0.2) !important;
	background: #fff !important;
}
.wpdm-link-tpl.well.c2a3.wpdmtile-page .pull-left {
    width: 40%;
	margin-right: 10px;
}
.wpdm-link-tpl.well.c2a3.wpdmtile-page .pull-left > img {
    width: 100%;
    height: auto;
}

/* STORE LOCATOR */
.wpsl-input label, #wpsl-radius label, #wpsl-category label {
    width: 120px !important;
}
#wpsl-search-wrap div label {
    line-height: 42px;
}
.wpsl-search.wpsl-checkboxes-enabled {
    padding: 12px 12px 2px 12px;
}
#wpsl-search-btn {
    border: 0 !important;
    color: #fff;
    text-transform: uppercase !important;
    padding: 8px 20px;
    background-color: #20384F;
    background-image: unset;
}

/* EVENTS */
.tribe-events-list .type-tribe_events .tribe-events-list-event-title {
    max-width: 70%;
}
.events-list .tribe-events-loop {
    max-width: 100%;
}
.tribe-events-list-separator-month + .type-tribe_events.tribe-events-first {
    padding-top: 0;
}
.tribe-events-list .type-tribe_events:first-of-type {
    margin-top: 0;
}
.event_attending {
    width: 190px;
    display: block;
    position: absolute;
	top: 0;
    right: 0;
}
@media only screen and (max-width: 690px) {
    .event_attending {
        width: 120px;
    }
}
@media only screen and (max-width: 540px) {
    .tribe-events-list .type-tribe_events .tribe-events-list-event-title {
        max-width: 100%;
    }
    .event_attending {
        position: relative;
        margin-top: 20px;
    }
}
.single-tribe_events .event_attending {
    position: relative;
    margin-top: 10px;
    margin-bottom: 10px;
}
.event_attending img {
	width: 100%;
    height: auto;
}

/* STICKY SIDEBAR */
.ult-sticky-anchor.ult_stick_to_row {
    z-index: 99 !important;
}

/* COMPETITION PAGE */
.page-id-1511 #gform_3 .gfield_label {
    color: #21384F;
}
.page-id-1511 #gform_3 .gfield_required {
    color: #E8EFDB;
}
.page-id-1511 #gform_3 .ginput_container_checkbox {
	color: #21384F;
}
.page-id-1511 #gform_3 .ginput_container_checkbox input {
	margin-top: 0;
}
.page-id-1511 .small {
    font-size: 14px;
    line-height: 1.8;
}

/* HEAT MAP PAGE */
.page-id-1608 .wpb_row {
    display: flex;
}
.page-id-1608 .vc_col-sm-6 {
    width: 50%;
}
.page-id-1608 .map-intro-col {
    width: 100%;
}
@media only screen and (max-width: 768px) {
    .page-id-1608 .wpb_row {
        display: block;
    }
    .page-id-1608 .vc_col-md-12 {
        width: 100%;
    }
}
.page-id-1608 .high-prev-intro {
    margin-bottom: 40px;
}
.page-id-1608 .map-south-island {
    margin-top: 30px;
}
.nat-percent {
    padding: 6px 10px;
    background: #e06565;
    color: #fff;
    border-radius: 4px;
}
@media only screen and (min-width:991px) {
    .map-key {
        position: absolute;
        right: 50px;
        top: -100px;
        width: 100px;
    }
}
@media only screen and (max-width:768px) {
    .page-id-1608 .map-south-island {
        margin-top: 0px;
    }
}
@media only screen and (min-width: 471px) and (max-width:990px) {
    .map-key {
        display: flex;
    }
    .map-key span {
        margin-right: 20px;
    }
    .map-low, .map-medium, .map-key p {
        margin-bottom: 0 !important;
    }
}
@media only screen and (max-width:470px) {
    .map-key p {
        display: block;
        width: 100%;
        margin-right: 0 !important;
    }
    .map-key span {
        margin-right: 10px;
    }
}

.map-key {
    background: #f7f7f7;
    padding: 12px 20px;
    border: 2px solid #d9d9d9;
    border-radius: 4px;
    font-size: 16px;
}
.map-key p {
    margin-right: 30px;
}
.map-low::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #64B346;
    margin-right: 10px;
    border-radius: 50px;
}
.map-medium::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #EEAB1E;
    margin-right: 10px;
    border-radius: 50px;
}
.map-high::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: rgb(224, 101, 101);
    margin-right: 10px;
    border-radius: 50px;
}
.map-low,
.map-medium,
.map-high {
    display: inline-flex;
    height: 30px;
}
.map-low,
.map-medium {
    margin-bottom: 10px;
}

/* ON THE FARM ICON IMAGES */
.style_2 .aio-icon-box .aio-icon, .style_2 .aio-icon-box .img-icon {
    height: auto;
}

/* REVERSE COLUMNS */
@media only screen and (max-width: 990px) {
    .vc_row.reverse {
        flex-direction: column-reverse;
    }
}

/* TABLES MOBILE FIX */
@media only screen and (max-width: 768px) {
    .table-overflow .wpb_wrapper {
        overflow-x: scroll;
    }
}