#ts-bookmark-pagination button:disabled {
	display: none;
}

.control-tab {
	margin: 20px 0;
	border-bottom: 1px solid #ccd0d4;
	overflow-x: auto;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
}

.control-tab div {
	display: inline-block;
	padding: 8px 12px;
	margin-bottom: -1px;
	font-size: 14px;
	cursor: pointer;
	border: 1px solid transparent;
	user-select: none;
}

.control-tab div.active {
	border: 1px solid #ccd0d4;
	border-bottom-color: #fff;
	background: #fff;
}

.control-tab-content {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
}

.control-tab-content table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
	background: #fff;
	border: 1px solid #ccd0d4;
	min-width: 600px;
}

.control-tab-content th {
	text-align: left;
	padding: 10px;
	border-bottom: 1px solid #ccd0d4;
	font-weight: 600;
	color: #23282d;
	background: #f5f5f5;
}

.control-tab-content td {
	padding: 12px 10px;
	border-bottom: 1px solid #f0f0f1;
	vertical-align: middle;
}

.control-tab-content tr:hover {
	background: #f9f9f9;
}

.wp-core-ui .button {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 3px;
	cursor: pointer;
	font-size: 13px;
	line-height: 2;
	border: 1px solid;
	margin: 2px;
	white-space: nowrap;
}

.wp-core-ui .button-primary {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.wp-core-ui .button-primary:hover {
	background: #135e96;
	border-color: #135e96;
}

.wp-core-ui .button-danger {
	background: #dc3232;
	border-color: #dc3232;
	color: #fff;
}

.wp-core-ui .button-danger:hover {
	background: #b32d2d;
	border-color: #b32d2d;
	color: white;
}

.dropdown-extend {
	display: inline-block;
	position: relative;
}

.dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border: 1px solid #ccd0d4;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	z-index: 100;
	min-width: 120px;
}

.dropdown-extend:hover .dropdown-menu {
	display: block;
}

.dropdown-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dropdown-menu li a {
	display: block;
	padding: 8px 12px;
	text-decoration: none;
	color: #3c434a;
}

.dropdown-menu li a:hover {
	background: #f0f0f1;
}

.control-tab-content {
	display: none;
}

.control-tab-content.active {
	display: block;
}

.control-tab-content .pagination {
	width: 100%;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	margin-block: 1rem;
	display: flex;
}

.control-tab-content .pagination div {
	display: none;
	min-width: 112px;
	text-align: center;
}
.control-tab-content .pagination div.show {
	display: inline-block;
}

@media screen and (max-width: 782px) {
	.wp-core-ui .button {
		padding: 6px 14px;
		font-size: 14px;
	}

	.control-tab-content td,
	.control-tab-content th {
		padding: 15px 10px;
	}

	.wp-core-ui td .button + .button {
		margin-top: 8px;
	}

	.dropdown-menu {
		right: 0;
		left: auto;
	}
}

@media screen and (max-width: 480px) {
	.wp-core-ui td .button {
		display: block;
		width: 100%;
		text-align: center;
		margin: 5px 0;
	}

	.control-tab-content td,
	.control-tab-content th {
		padding: 12px 8px;
	}

	.dropdown-extend {
		display: block;
		margin-bottom: 5px;
	}

	.dropdown-menu {
		width: 100%;
	}
}

.premium-box {
	max-width: 400px;
	margin: 20px auto;
	padding: 24px;
	font-family: system-ui, -apple-system, sans-serif;
}

.premium-title {
	text-align: center;
	font-size: 24px;
	font-weight: bold;
	background: linear-gradient(to right, var(--tktm-color), #0bd143);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 24px;
}

.price {
	text-align: center;
	font-size: 28px;
	font-weight: bold;
	margin-bottom: 24px;
}

.order-info {
	text-align: center;
	font-size: 14px;
	margin-bottom: 12px;
}

.order-id {
	background: rgba(255, 255, 255, 0.1);
	padding: 12px;
	border-radius: 8px;
	text-align: center;
	font-family: monospace;
	font-size: 18px;
	color: var(--tktm-color);
	margin-bottom: 24px;
}

.lightmode .order-id {
	background: #222;
}

.email-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--tktm-color);
	color: white;
	padding: 12px 24px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: background-color 0.2s;
	margin-block-end: 1rem;
	cursor: pointer;
}

.email-button img {
	height: 24px;
}

.email-button:hover {
	color: white;
	filter: brightness(90%);
}

.email-icon {
	width: 24px;
	height: 24px;
}

/* order-data */
.order-data {
	max-width: 400px;
	margin: 20px auto;
	padding: 24px;
	border-radius: 12px;
	font-family: system-ui, -apple-system, sans-serif;
}

.order-data.show {
	display: none;
}

.order-data h2 {
	text-align: center;
	font-size: 24px;
	font-weight: bold;
	margin: 0 0 24px 0;
	background: linear-gradient(to right, var(--tktm-color), #0bd143);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

#order-data-id {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

#order-data-id select {
	padding: 12px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.05);
	color: white;
	font-size: 16px;
	cursor: pointer;
	appearance: none;
	width: 100%;
	position: relative;
	transition: border-color 0.2s, background-color 0.2s;
}

#order-data-id select:hover,
#order-data-id select:focus {
	border-color: var(--tktm-color);
	background: rgba(255, 255, 255, 0.1);
	outline: none;
}

.lightmode #order-data-id select {
	background: rgba(0, 0, 0, 0.1);
	color: #1a1a1a;
	border-color: rgba(0, 0, 0, 0.1);
}
.lightmode #order-data-id select:hover,
.lightmode #order-data-id select:focus {
	background: rgba(0, 0, 0, 0.1);
	color: #1a1a1a;
	border-color: rgba(0, 0, 0, 0.1);
}

#order-data-id {
	position: relative;
}

#order-data-id::after {
	content: '▼';
	font-size: 12px;
	color: var(--tktm-color);
	position: absolute;
	right: 16px;
	top: 16px;
	pointer-events: none;
}

.lightmode #order-data-id::after {
	color: #1a1a1a;
}

.expired {
	background: rgba(255, 255, 255, 0.1);
	padding: 12px;
	border-radius: 8px;
	text-align: center;
	font-family: monospace;
	font-size: 18px;
	color: var(--tktm-color);
	margin-bottom: 24px;
}

.lightmode .expired {
	background: rgba(0, 0, 0, 0.1);
	color: #1a1a1a;
}

#premium-pool button {
	padding: 14px 24px;
	border-radius: 8px;
	border: none;
	background: var(--tktm-color);
	color: white;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s;
	width: 100%;
}

#premium-pool button:hover {
	filter: brightness(90%);
}

#premium-pool option {
	background: #2d2d2d;
	color: white;
	padding: 8px;
}

/* auth area */

.auth-area {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-block: 1rem;
	padding-inline: 1rem;
	height: auto;
	min-height: min(100svh, 500px);
}

.auth-area #login-form,
.auth-area #register-form,
.auth-area #recovery-form,
.auth-area #reset-form {
	min-width: 20rem;
	width: 100%;
	max-width: min(30rem, 50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.auth-area #login-form.hidden,
.auth-area #register-form.hidden,
.auth-area #recovery-form.hidden,
.auth-area #reset-form.hidden {
	display: none;
}

.auth-area .login-form {
	width: 100%;
	padding: 1rem;
}

.auth-area .form-group {
	margin-bottom: 1rem;
}

.auth-area label {
	display: block;
	font-size: 0.875rem;
	color: #e5e5e5;
	margin-bottom: 0.5rem;
}

.auth-area input {
	width: 100%;
	padding: 0.625rem;
	background-color: #27272a;
	color: white;
	border: none;
	border-radius: 0.25rem;
	font-size: 0.875rem;
}

.auth-area input::placeholder {
	color: #9ca3af;
}

.auth-area input:focus {
	outline: none;
	box-shadow: 0 0 0 2px var(--tktm-color);
}

.auth-area button {
	width: 100%;
	padding: 0.625rem;
	background-color: var(--tktm-color);
	color: white;
	border: none;
	border-radius: 0.25rem;
	font-size: 0.875rem;
	cursor: pointer;
	transition: background-color 0.2s;
}

.auth-area button:hover {
	filter: brightness(90%);
}

.auth-area button:focus {
	outline: none;
	box-shadow: 0 0 0 2px var(--tktm-color), 0 0 0 4px #27272a;
}

.lightmode .auth-area label {
	color: #1a1a1a;
}
.lightmode .auth-area input {
	background: rgba(39, 39, 42, 0.2);
	color: #1a1a1a;
}
.auth-area .change-reset {
	display: flex;
	margin-block: 1rem;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

#bookmarked-pool {
	min-height: min(100svh, 500px);
}
#bookmarked-pool ~ #ts-bookmark-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
}

#bookmarked-pool ~ #ts-bookmark-pagination a {
	width: 100px;
	padding: 0.5rem 0.3rem;
	background-color: var(--tktm-color);
	color: white;
	border: none;
	border-radius: 0.25rem;
	font-size: 0.875rem;
	cursor: pointer;
	transition: background-color 0.2s;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}
#bookmarked-pool ~ #ts-bookmark-pagination a:hover {
	filter: brightness(90%);
}
#bookmarked-pool .series h3 {
	text-align: start;
}
