/*
 * Squash Source Plugin styles.
 *
 * Styles for output from product/player/image shortcodes and blocks,
 * the racket chart, comparer admin tool, and modals. Lives in the plugin
 * rather than the theme so output is styled consistently regardless of
 * which theme is active.
 */

/* -----------------------------------------------
   Affiliate links + special link styling
   ----------------------------------------------- */

.afflink {
	text-decoration: underline;
}

.amazon-aff,
.ebayaff {
	text-decoration: underline;
}

.fakelink {
	color: var(--wp--preset--color--primary);
	cursor: pointer;
	text-decoration: underline;
}

.fakelink:hover,
.fakelink:focus {
	text-decoration: none;
}

.coupons {
	font-style: italic;
	font-size: x-small;
}

.rarr {
	text-decoration: none;
}

.more-links {
	font-size: 0.875rem;
}

/* -----------------------------------------------
   Generic show/hide helpers used by ss.js
   ----------------------------------------------- */

.hidden {
	display: none;
}

.show {
	display: block;
}

.show-inline {
	display: inline;
}

/* -----------------------------------------------
   Admin-only labels (edit links, IDs, copy buttons)
   ----------------------------------------------- */

.admin-text {
	color: var(--wp--preset--color--text);
	font-size: 10px;
	padding-left: 1em;
}

.copy_to_cb {
	cursor: pointer;
}

.ack_copy {
	font-style: italic;
}

/* -----------------------------------------------
   Racket chart + specs
   ----------------------------------------------- */

.chart-info {
	display: none;
	font-size: small;
	font-weight: normal;
}

.chart:hover .chart-info {
	display: inline;
}

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

.racket-table th,
.racket-table td {
	padding: 10px;
	text-align: left;
}

.racket-table tr td:nth-child(odd) {
	background: var(--wp--preset--color--light);
}

.racket-table tr td:nth-child(even) {
	background: var(--wp--preset--color--background);
}

.racket-table tr td:first-child {
	background-color: var(--wp--preset--color--background);
}

/* -----------------------------------------------
   Player detail (used by [player] shortcode)
   ----------------------------------------------- */

.player-detail {
	border-left: 1px solid var(--wp--preset--color--border);
	font-size: small;
	padding-left: 0.5em;
}

/* -----------------------------------------------
   YouTube embed (used by [yt] and recent_youtube)
   ----------------------------------------------- */

.youtube-player {
	background: var(--wp--preset--color--background);
	clear: both;
	height: 0;
	max-width: 100%;
	overflow: hidden;
	padding-bottom: 56.25%;
	position: relative;
}

.youtube-player iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100;
	background: transparent;
}

.youtube-player img {
	bottom: 0;
	display: block;
	left: 0;
	margin: auto;
	width: 100%;
	position: absolute;
	right: 0;
	top: 0;
	border: none;
	height: auto;
	cursor: pointer;
	transition: 0.4s all;
}

.youtube-player img:hover {
	filter: brightness(75%);
}

.youtube-player .play {
	height: 48px;
	width: 68px;
	left: 50%;
	top: 50%;
	margin-left: -34px;
	margin-top: -24px;
	position: absolute;
	cursor: pointer;
	background-color: rgba(0, 0, 0, 0.7);
	border-radius: 12px;
	transition: background-color 0.2s ease;
}

.youtube-player .play::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 55%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 10px 0 10px 20px;
	border-color: transparent transparent transparent var(--wp--preset--color--background);
}

.youtube-player:hover .play {
	background-color: #ff0000; /* YouTube Red */
}

/* -----------------------------------------------
   Headings used by men/women/junior shortcodes
   ----------------------------------------------- */

.slashes::before {
	content: "/// ";
}

.slashes.bars {
	border-top: 1px solid #999; /* Between Background and Medium Backgound */
	border-bottom: 1px solid #999;
	padding: 10px 0;
}

/* -----------------------------------------------
   Misc utility classes used in plugin output
   ----------------------------------------------- */

.bold, a.store, b, strong {
	font-weight: 700;
}

/* -----------------------------------------------
   Comparer admin tool
   ----------------------------------------------- */

.csc_wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

input.csc_input {
    padding: 0 0 0 2px !important;
    line-height: 20px;
    margin: 0;
}

button.csc_submit_btn {
    padding: 2px;
}

/* -----------------------------------------------
   Comment signatures (added by ss_comment_text_filter)
   ----------------------------------------------- */

.comment-signature {
	border-top: 2px dotted var(--wp--preset--color--border);
	font-size: small;
	font-style: italic;
	padding-top: 1em;
	margin-top: 1em;
}

.encourage-login {
	font-style: italic;
	margin-top: 1em;
}

/* -----------------------------------------------
   Product Shortcode Styling
   ----------------------------------------------- */

.feature {
    background-color: var(--wp--preset--color--light);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    padding-bottom: 1px;
}