/* ARN Directory CSS */

table.ad {
	width: 100%;
	border-width: 1px;
	border-spacing: 0;
	border-style: outset;
	border-color: #000000;
	border-collapse: collapse;
	background-color: #ffffff;
}

table.ad td {
	padding: 0;
	border-width: 1px;
	border-style: inset;
	border-color: #000000;
	background-color: #ffffff;
}

table.teaser td,
table.mapheader td {
	width: 100%;
	padding: 4px;
	border-width: 0;
	background-color: #ffffff;
}

table.secondurltable,
table.shareurltable {
	margin-right: auto;
	margin-left: auto;
}

table.secondurltable tr,
table.shareurltable tr {
	border-width: 0;
}

table.secondurltable tr {
	padding: 0;
}

table.secondurltable td {
	padding: 3px;
	border-width: 0;
}

table.shareurltable td {
	border-width: 0;
}

div.owners-container {
	width: 100%;
	text-align: center;
}

div.owners {
	display: inline-block;
	max-width: 480px;
	padding: 0 4px;
	margin: 0 auto;
	color: #ffffff;
	background-color: #000000;
	border: 1px solid #009966;
}

.paginate {
	padding: 3px;
	margin: 3px;
	font-family: Arial, Helvetica, sans-serif;
}

.paginate a {
	padding: 2px 5px;
	margin: 2px;
	font-weight: bold;
	color: #ffffff;
	text-decoration: none;
	background-color: #003399;
	border: 1px solid #000000;
}

.paginate a:hover,
.paginate a:active {
	font-weight: bold;
	color: #ffffff;
	background-color: #009966;
	border: 1px solid #000000;
}

.paginate span.current {
	padding: 2px 5px;
	margin: 2px;
	font-weight: bold;
	color: #ffffff;
	background-color: #cc0000;
	border: 1px solid #000000;
}

.paginate span.disabled {
	padding: 2px 5px;
	margin: 2px;
	color: #666666;
	background-color: #ffcc33;
	border: 1px solid #000000;
}

.ad-teaser {
	display: flex;
	flex-flow: row nowrap;
	align-content: stretch;
	align-items: normal;
	justify-content: normal;
	padding: 5px;
}

.ad-teaser-string {
	display: block;
	flex: 1 1 auto;
	align-self: flex-start;
	order: 0;
	min-width: 0;
}

.ad-teaser-button {
	display: block;
	flex: 0 1 auto;
	align-self: flex-start;
	order: 0;
	padding-left: 5px;
}

.smartad-banner {
	width: 640px;
	max-width: 100%;
	margin: 0 auto;
	text-align: center;
}

.video-container {
	position: relative;
	height: 0;
	padding-top: 2px;
	padding-bottom: 56.25%;
	overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* -----------------------------------------------------------------
   SmartAd three-column layout

   Desktop target at 640px:
   contact column = calc(50% - 60px)
   website column = 120px
   social column  = calc(50% - 60px)
   ----------------------------------------------------------------- */

.smartad-main {
	display: -webkit-flex;
	display: flex;
	flex-basis: 0;
	flex-direction: row;
	align-items: stretch;
	justify-content: space-between;
	max-width: 640px;
	margin: 0 auto;
}

.smartad-contact {
	display: -webkit-flex;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-around;
	box-sizing: border-box;
	width: calc(50% - 60px);
	padding: 5px;
}

.smartad-contact-text {
	width: 100%;
	min-width: 0;
	overflow-wrap: break-word;
}

.smartad-contact-action {
	text-align: center;
}

.smartad-contact-action img {
	vertical-align: middle;
}

.smartad-conditional-arrow {
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	padding-top: 5px;
}

.smartad-weblinks {
	display: flex !important;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	padding: 5px;
}

.smartad-weblink-corepair {
	min-width: 0;
}

.smartad-social {
	display: -webkit-flex;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: space-between;
	box-sizing: border-box;
	width: calc(50% - 60px);
	padding: 5px;
}

.smartad-addthis-email {
	padding-bottom: 5px;
	text-align: center;
}

.smartad-addtoany {
	padding-top: 0;
	text-align: center;
}

.addtoany_shortcode {
	text-align: right;
}

#addtoany_buttons {
	width: 200px;
	max-width: 100%;
	margin: 0 auto;
}

#a2a_default_style {
	width: 144px;
	margin: 0 auto;
}

.smartad-facebook-likebox {
	width: 100% !important;
	padding: 5px;
}

#smartad-likebox-wrapper * {
	width: 300px !important;
	max-width: 100%;
}

#smartad-website-button {
	display: block;
	width: 120px;
	height: 120px;
	background: url("/commonimages/buttons/smartad-website-large.png") no-repeat 0 0;
}

#smartad-website-button:hover {
	background-position: 0 -120px;
}

/* -----------------------------------------------------------------
   Responsive contact variants

   The PHP intentionally emits:
   - one desktop contact position
   - one mobile contact position

   These rules are deliberately explicit and mutually exclusive so a
   later legacy rule cannot expose both contact controls together.
   ----------------------------------------------------------------- */

.smartad-main .smartad-email-us-1,
.smartad-main .smartad-contact-mobile {
	display: none !important;
	text-align: center;
}

.smartad-main .smartad-email-us-2,
.smartad-main .smartad-contact-desktop {
	display: block !important;
	text-align: center;
}

.smartad-body {
	max-width: 640px;
	padding: 5px;
	margin: 0 auto;
}

.sponsor {
	display: inline-block;
	padding: 2px;
	margin: 2px 0;
	font-family: Arial, Helvetica, sans-serif;
}

.sponsor a {
	padding: 1px 5px;
	color: #000000;
	text-decoration: none;
	background-color: #ffffff;
	border: 1px solid #000000;
}

.sponsor a:link:hover {
	padding: 1px 5px;
	color: #ffffff;
	text-decoration: none;
	background-color: #003399;
	border: 1px solid #000000;
}

.sponsor a:visited:hover {
	padding: 1px 5px;
	color: #ffffff;
	text-decoration: none;
	background-color: #009966;
	border: 1px solid #000000;
}

.sponsor a:link:active,
.sponsor a:visited:active {
	padding: 1px 5px;
	color: #000000;
	text-decoration: none;
	background-color: #ffcc33;
	border: 1px solid #000000;
}

table.minidirectory {
	width: 160px;
	border-width: 1px;
	border-spacing: 0;
	border-style: outset;
	border-color: #000000;
	border-collapse: collapse;
	background-color: #ffffff;
}

table.minidirectory td {
	padding: 4px;
	border-width: 0;
	border-style: inset;
	border-color: #000000;
	background-color: #ffffff;
}

@media (min-width: 481px) {
	.smartad-weblink-left-arrow,
	.smartad-weblink-right-arrow {
		display: none;
	}

	.smartad-main .smartad-email-us-1,
	.smartad-main .smartad-contact-mobile {
		display: none !important;
	}

	.smartad-main .smartad-email-us-2,
	.smartad-main .smartad-contact-desktop {
		display: block !important;
	}
}

@media (max-width: 480px) {
	.smartad-main {
		flex-direction: column;
	}

	.smartad-contact,
	.smartad-weblinks,
	.smartad-social {
		width: 100%;
	}

	.smartad-contact {
		justify-content: space-around;
	}

	.smartad-main .smartad-email-us-1,
	.smartad-main .smartad-contact-mobile {
		display: block !important;
	}

	.smartad-main .smartad-email-us-2,
	.smartad-main .smartad-contact-desktop {
		display: none !important;
	}

	.smartad-conditional-arrow {
		display: none;
	}

	#addtoany_buttons {
		width: 100%;
		max-width: 410px;
		margin: 0 auto;
		text-align: center;
	}
}

@media (max-width: 400px) {
	#smartad-website-button {
		display: block;
		width: 100px;
		height: 100px;
		background: url("/commonimages/buttons/smartad-website-small.png") no-repeat 0 0;
	}

	#smartad-website-button:hover {
		background-position: 0 -100px;
	}
}
