/*
Представляем вашему вниманию раздел,
посвященный пользовательским таблицам
CSS!

Чтобы узнать, как это работает, см.
https://wp.me/PEmnE-Bt
*/


/* Fix for Blockquote color */
.wp-block-quote,
blockquote {
	color: rgba(0, 0, 0, 0.65);
}

/* Everything else */
.type-attachment .entry-title,
.author-description,
.widget,
.entry-content,
.entry-summary,
.page-content,
.comment-content,
code,
kbd,
tt,
var,
samp,
pre,
blockquote,
q {
	-webkit-hyphens: none;
	-moz-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
	word-wrap: none;
}

.entry-content,
.entry-summary,
.page-content,
.comment-content,
blockquote,
q,
p {
	text-align: justify;
}


/* Лучше отображать списки в виджете авторов */
.widget_authors > ul > li {
	list-style: none;
}

.widget_authors > ul > li:first-child {
	margin-bottom: 30px;
}

.widget_authors > ul ul {
	margin-top: 5px;
	list-style-position: outside;
	margin-left: 20px;
}

/* Изменения для таблицы "Купить эту книгу" в новом оформлении */
/* tbooks2 */
.tbooks2 tr {
	border-left: 0;
	border-right: 0;
}

.tbooks2 td {
	border-left: 0;
	border-right: 0;
}

.tbooks2 td:nth-of-type(2) {
	border-right: dashed 1px lightgrey;
	border-left: dashed 1px lightgrey;
	width: 100px;
	text-align: center;
}

.tbooks2 td:nth-of-type(3) {
	border-right: dashed 1px lightgrey;
}

.tbooks2 td:nth-of-type(5) {
	white-space: nowrap;
	border-left: dashed 1px lightgrey;
}

.tbooks2 td:first-child {
	width: 120px;
}

.tbooks2 td a img {
	display: inline-block;
	vertical-align: middle;
}

.tbooks2 td img {
	display: inline-block;
	vertical-align: middle;
}

.tbooks2 {
	font-size: 14px;
	line-height: 1.4em;
}

.tbooks2 table {
	width: auto;
}

/* tbooks3 */
.tbooks3 tr {
	border-left: 0;
	border-right: 0;
}

.tbooks3 td {
	border-left: 0;
	border-right: 0;
}


.tbooks3 td:nth-of-type(2) {
	border-right: dashed 1px lightgrey;
	border-left: dashed 1px lightgrey;
}

.tbooks3 td:nth-of-type(4) {
	white-space: nowrap;
	border-left: dashed 1px lightgrey;
}

.tbooks3 td:first-child {
	width: 120px;
}

.tbooks3 td a img {
	display: inline-block;
	vertical-align: middle;
}

.tbooks3 td img {
	display: inline-block;
	vertical-align: middle;
}

.tbooks3 {
	font-size: 14px;
	line-height: 1.4em;
}

.tbooks3 table {
	width: auto;
}

/* Специальные настройки для таблицы "Купить" для мобилок */
@media (max-width:720px) {
	.tbooks2 td a img {
	}
	
	.tbooks2 {
		font-size: 13px;
		line-height: 1.3em;
	}
}

@media (max-width:720px) {
	.tbooks3 td a img {
	}
	
	.tbooks3 {
		font-size: 13px;
		line-height: 1.3em;
	}
}

@media (max-width:480px) {
	.wp-block-jetpack-layout-grid {
		padding-left: 0;
		padding-right: 0;
		margin-left: -10px;
		margin-right: -10px;
	}
	
	.tbooks td a {
		display: inline-block;
		margin-bottom: 30px;
	}
	
	.tbooks {
		font-size: 12px;
		line-height: 1.2em;
	}
	
	.tbooks2 {
		font-size: 12px;
		line-height: 1.2em;
	}
	
	.tbooks2 td {
		display: inline-block;
		border: none;
		width: 100%;
		text-align: center;
	}
	
	.tbooks2 td:nth-of-type(2) {
		border-right: none;
		border-left: none;
		text-align: center;
		width: 100%;
		padding-top: 10px;
		padding-bottom: 10px;
	}
	
	.tbooks2 td:nth-of-type(3) {
		border-right: none;
		border-left: none;
		border-bottom: dashed 1px lightgrey;
		border-top: dashed 1px lightgrey;
		padding-top: 10px;
		padding-bottom: 10px;
	}
	
	.tbooks2 td:nth-of-type(4) {
		border-left: none;
		border-top: dashed 1px lightgrey;
		padding-top: 10px;
		padding-bottom: 10px;
	}
	
	.tbooks2 td:first-child {
		width: 100%;
		padding-top: 10px;
	}
	
	.tbooks2 tr {
		border-top: solid 1px darkgrey;
		border-bottom: solid 1px darkgrey;
	}
	
.tbooks3 {
		font-size: 12px;
		line-height: 1.2em;
	}
	
	.tbooks3 td {
		display: inline-block;
		border: none;
		width: 100%;
		text-align: center;
	}
	
	.tbooks3 td:nth-of-type(2) {
		border-right: none;
		border-left: none;
		border-bottom: dashed 1px lightgrey;
		border-top: dashed 1px lightgrey;
		padding-top: 10px;
		padding-bottom: 10px;
	}
	
	.tbooks3 td:nth-of-type(3) {
		border-left: none;
		border-top: dashed 1px lightgrey;
		padding-top: 10px;
		padding-bottom: 10px;
	}
	
	.tbooks3 td:first-child {
		width: 100%;
		padding-top: 10px;
	}
	
	.tbooks3 tr {
		border-top: solid 1px darkgrey;
		border-bottom: solid 1px darkgrey;
	}
}


/* tabout */
.tabout td {
	border: 0;
}

.tabout td:first-child {
	width: 100px;
}

.tabout tr:first-child {
	font-size: 24px;
}