
/* = wc_confirm
-------------------------------------------------------------- */
#amount_each_time {
	width: 100%;
	margin: 2em 0;
}

#amount_each_time th,
#amount_each_time td {
	padding: .357143em;
	border: 1px solid #ccc;
}

#amount_each_time tr {
	display: -ms-grid;
	-ms-grid-columns: 1fr 1fr !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 0;
}

#amount_each_time th {
	display: none;
	font-weight: normal;
	text-align: center;
}

#amount_each_time td {
	display: block;
}

#amount_each_time td.times::before,
#amount_each_time td.quantity::before,
#amount_each_time td.price::before {
	content: attr(data-label);
	margin-right: 1em;
}

#amount_each_time td.item-description {
	grid-column: 1 / 3;
}

#amount_each_time td.times {
	grid-column: 1/2;
	grid-row: 1/2;
	border-width: 0 0 0 1px;
}

#amount_each_time td.scheduled-date {
	grid-column: 2/3;
	grid-row: 1/2;
	border-width: 0 1px 0 0;
}

#amount_each_time td.quantity {
	grid-column: 1/3;
	grid-row: 2/3;
	border-width: 0 1px;
}

#amount_each_time td.price {
	grid-column: 1/3;
	grid-row: 3/4;
	border-width: 0 1px 1px;
}

#amount_each_time td.continue-description {
	grid-column: 1/3;
	border-width: 0 1px 1px;
}

@media screen and (min-width: 768px) {

	/* = wc_confirm
	-------------------------------------------------------------- */

	#amount_each_time tr {
		display: table-row;
	}

	#amount_each_time th,
	#amount_each_time td {
		display: table-cell;
	}

	#amount_each_time td::before {
		display: none;
	}

	#amount_each_time td.times,
	#amount_each_time td.scheduled-date,
	#amount_each_time td.quantity,
	#amount_each_time td.price,
	#amount_each_time td.continue-description {
		border-width: 1px;
	}

	#amount_each_time td.times,
	#amount_each_time td.price {
		text-align: right;
	}

	#amount_each_time td.scheduled-date,
	#amount_each_time td.quantity {
		text-align: center;
	}
}

/* = wc_member_auto_billing_info
-------------------------------------------------------------- */

#wc_member_auto_billing_info .currency_code {
	margin-bottom: .625rem;
}

#wc_member_auto_billing_info #memberinfo h2 {
	margin: 0;
	padding: 1em .625em;
	background-color: #1d2327;
	color: #fff;
	font-size: 18px;
	font-weight: bold;
}

/* .auto_billing_contents */
.auto_billing_contents .subscription_block {
	margin-bottom: 30px;
	border: 1px solid #777;
	border-radius: 6px;
	background-color: #fff;
	color: #333;
}

.auto_billing_contents .subscription_block:last-child {
	margin-bottom: 10px;
}

.auto_billing_contents dl {
	display: grid;
	grid-template-columns: auto 1fr;
	margin: 0;
	font-size: 16px;
}

.auto_billing_contents dt,
.auto_billing_contents dd {
	border-bottom: 1px solid #777;
}

.auto_billing_contents dt {
	padding: 1em 3em 1em 1em;
	padding-right: 3em;
	padding-left: 1em;
	font-weight: bold;
}

.auto_billing_contents dd {
	margin: 0;
	padding: 1em 1em 1em 0;
}

.auto_billing_contents .data-table-wrap {
	position: relative;
}

.auto_billing_contents .billing-year-select {
	position: absolute;
	top: .5em;
	right: 1em;
	margin: 0;
	font-size: 16px;
}

.auto_billing_contents .billing-year-select select {
	border-radius: 4px;
	background-color: #fff;
}

#memberinfo .auto_billing_contents table {
	margin: 0;
	border: none;
	font-size: 16px;
}

#memberinfo .auto_billing_contents table thead {
	display: none;
}

#memberinfo .auto_billing_contents table tbody {
	border-top: 1px solid #777;
}

#memberinfo .auto_billing_contents table tbody tr {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

#memberinfo .auto_billing_contents table tbody td {
	padding: 16px;
	border: none;
	border-bottom: 1px solid #ccc;
}

#memberinfo .auto_billing_contents table tbody td:nth-child(even) {
	border-left: 1px solid #ccc;
}

#memberinfo .auto_billing_contents table tbody td:last-child {
	grid-column: 1/3;
	border-bottom: none;
}

#memberinfo .auto_billing_contents table tbody td a {
	display: inline-block;
	margin: 2px;
	padding: 6px 24px;
	-webkit-transition: .3s ease all;
	-moz-transition: .3s ease all;
	-o-transition: .3s ease all;
	transition: .3s ease all;
	border-radius: 50px;
	background-color: #0f9abb;
	color: #fff;
}

#memberinfo .auto_billing_contents table tbody td a:hover {
	background-color: rgba(15, 154, 187, .6);
	color: #fff;
	text-decoration: none;
}

#memberinfo .auto_billing_contents table tbody td a:hover {
	text-decoration: none;
}

#memberinfo .auto_billing_contents table tbody td::before {
	content: attr(data-label);
	display: block;
	margin-bottom: .3rem;
	font-weight: bold;
}

#memberinfo .auto_billing_contents p.nodata {
	margin: 0;
	padding: 1.5em 1em;
	border-top: 1px solid #ccc;
	text-align: center;
}

@media screen and (min-width: 38.75em) {

	/* = wc_member_auto_billing_info
	-------------------------------------------------------------- */

	.auto_billing_contents dl {
		position: relative;
		grid-template-columns: auto 1fr auto 1fr;
	}

	.auto_billing_contents dl::after {
		content: "";
		display: block;
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 1px;
		background-color: #777;
	}

	.auto_billing_contents dd:nth-of-type(odd) {
		border-right: 1px solid #777;
	}

	#memberinfo .auto_billing_contents table tbody tr {
		grid-template-columns: repeat(4, 1fr);
	}

	#memberinfo .auto_billing_contents table tbody td {
		display: block;
		border-top: none;
		border-right: none;
		border-left: none;
	}
}

@media screen and (min-width: 46.25em) {

	/* = wc_member_auto_billing_info
	-------------------------------------------------------------- */

	.auto_billing_contents .subscription_block {
		margin-bottom: 40px;
	}

	.auto_billing_contents .subscription_block:last-child {
		margin-bottom: 20px;
	}

	#wc_member_auto_billing_info #memberinfo h2 {
		padding: 2em 1em 1em;
		background: none;
		color: #333;
	}

	.auto_billing_contents .billing-year-select {
		top: 1.25em;
	}

	#memberinfo .auto_billing_contents table {
		width: calc(100% - 32px);
		margin: 0 auto 24px;
	}

	#memberinfo .auto_billing_contents table thead {
		display: table-header-group;
	}

	#memberinfo .auto_billing_contents table tbody tr {
		display: table-row;
	}

	#memberinfo .auto_billing_contents table thead th,
	#memberinfo .auto_billing_contents table tbody td,
	#memberinfo .auto_billing_contents table tbody td:last-child {
		border: 1px solid #ccc;
	}

	#memberinfo .auto_billing_contents table thead th,
	#memberinfo .auto_billing_contents table tbody td {
		text-align: center;
	}

	#memberinfo .auto_billing_contents table tbody td {
		display: table-cell;
	}

	#memberinfo .auto_billing_contents table tbody td::before,
	#memberinfo .auto_billing_contents table tbody td:last-child::before {
		display: none;
	}

	#memberinfo .auto_billing_contents p.nodata {
		padding: 1rem 1rem 3rem 2rem;
		border: none;
	}
}
