/*
Plugin Name: Coderra :: Edit Subscriptions Styles
Description: Stylesheet for the Coderra Edit Subscriptions plugin.
Version: 1.0
Author: David Proctor
Author URI: https://coderra.co.uk
*/

.card .product-price del {
    text-decoration: line-through !important;
    text-decoration-color: inherit !important; /* or specify a color if needed */
}

.card:hover .product-price del {
    text-decoration: line-through !important;
    text-decoration-color: inherit !important; /* or specify a color if needed */
}

.woocommerce table.shop_table td ul {
	margin-bottom: 0;
}
.woocommerce table.shop_table td ul li {
	font-size: 0.8rem;
}

#coderra-filtarable-products-table .table .table-inner tr {
	border: none;
    border-color: transparent;
    border-width: 0;
}

#coderra-filtarable-products-table .coderra-filter-products-table th.thumbnail-fixed-width,
#coderra_subscription_box .coderra-filter-products-table th.thumbnail-fixed-width {
	width: 100px;
}

#coderra-filtarable-products-table .coderra-filter-products-table .table-inner tr td,
#coderra_subscription_box .coderra-filter-products-table .table-inner tr td,
#coderra_subscription_box .table td,
#coderra-filtarable-products-table .table td {
	border-top: none;
	border-bottom: none;
}


#coderra-filtarable-products-table .coderra-filter-products-table .table-inner {
	border-top: 1px solid rgba(0, 0, 0, .1) !important;
	border-right: 1px solid rgba(0, 0, 0, .1) !important;
	border-left: 1px solid rgba(0, 0, 0, .1) !important;
}

#coderra_subscription_box .table {
	border-collapse: collapse;
}

#coderra_subscription_box .table tr,
#coderra-filtarable-products-table .coderra-filter-products-table .table-inner tr {
	padding: 5px 10px;
	border-bottom: 1px solid rgba(0, 0, 0, .1) !important;
}

#coderra-filtarable-products-table h5 .btn {
	text-transform: unset;
}

.form-select-mini {
	font-size: 0.8rem;
	padding: 0.275rem 2.25rem 0.275rem 0.75rem;
	margin-bottom: 4px;
}

.coderra-mini-hr {
	margin: 1rem 0;
}

.woocommerce table.shop_table td.coderra-product-thumb span {
	border: 10px solid #fff;
    float: left;
    border-radius: 1.6rem;
}

td.vertical-align-top {
	vertical-align: top !important;
}

#coderra_subscription_box.disabled,
#coderra-filtarable-products-table tr.disabled,
#coderra-filter-products-table.disabled {
	opacity: 0.6 !important;
	pointer-events: none;
	cursor: not-allowed !important;
}

#coderra-filter-products-select {
	line-height: 1.5;
}

#coderra-filter-products-form .btn-outline-secondary {
	border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background: #fff;
    border: none;
}

#coderra-filter-products-form .btn-outline-secondary:active,
#coderra-filter-products-form .btn-outline-secondary:focus,
#coderra-filter-products-form .btn-outline-secondary:visited,
#coderra-filter-products-form .btn-outline-secondary:hover {
	color: #00693b;
}

#coderra-subscription-intervals-form {
	padding: 15px 0;
}

#coderra-filtarable-products-table .card-body {
	padding: 30px 0 !important;
}

.coderra-subscriptions-description {
	padding:15px;
}

@media (max-width: 575.98px) {
	th.thumbnail-fixed-width,
	td.coderra-product-thumb {
		display: none;
	}

	#coderra-filter-products-form select {
		margin-bottom:10px;
	}

}

@media (max-width: 991px){

	/* Force table to not be like tables anymore */
	#coderra_select_subscription .no-more-tables table {
		padding: 0;
		border: none;
		background-color: transparent;
	}

	#coderra_select_subscription .no-more-tables table,
	#coderra_select_subscription .no-more-tables thead,
	#coderra_select_subscription .no-more-tables tbody,
	#coderra_select_subscription .no-more-tables th,
	#coderra_select_subscription .no-more-tables td,
	#coderra_select_subscription .no-more-tables tr {
		display: block;
	}

	/* Hide table headers (but not display: none;, for accessibility) */
	#coderra_select_subscription .no-more-tables thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}

	#coderra_select_subscription .no-more-tables tr {
		border: 1px solid #ccc;
		margin-bottom: 5px;
		background-color: #f2f0e4;
		padding: 10px;
	}

	#coderra_select_subscription .no-more-tables td { /* Behave  like a "row" */
		border: none !important;
		border-bottom: 1px solid #eee !important;
		position: relative;
		padding: 2px;
		padding-left: 40% !important;
		white-space: normal;
		text-align:left;
	}

	#coderra_select_subscription .no-more-tables td:before { /* Now like a table header */
		position: absolute;/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		width: 35%;
		padding-right: 10px;
		white-space: nowrap;
		text-align:left;
		font-weight: bold;
		font-family: "Franklin ITC W01 Medium";
	}

	/* Label the data */
	#coderra_select_subscription .no-more-tables td:before {
		content: attr(data-title);
		font-weight: normal;
	}
}