/*------------------------------------------------------------------
[Addons Table of contents]

1. Heading & description
2. Buttons
3. Addons list
4. Addons Details (img/h3/text)
5. Addons Action (upgrade/status/activate/deactivate)
6. Unlock message (only shown on Personal and Plus license between the addon categories)

-------------------------------------------------------------------*/

/* ---------- 1. Heading & description ---------- */

#affwp-addons h2 {
	margin: 0 0 15px;
}

/* Page description */
#affwp-addons > p {
	margin: 0 0;
}

/* 2. Buttons */
#affwp-addons .button {
	border: 1px;
	border-style: solid;
	border-radius: 3px;
	cursor: pointer;
	text-align: center;
	line-height: 1.4em;
}

#affwp-addons .affwp-addon-page-actions {
	display: flex;
	justify-content: right;
	gap: 16px;
	margin: 1.33em 0;
}

#affwp-addons .affwp-addon-page-actions a.button-primary {
	font-weight: 600;
	width: 140px;
	text-align: center;
	padding: 8px 5px;
	background: #E34F43;
}

#affwp-addons .affwp-addon-page-actions a.button-primary:hover {
	box-shadow: inset 0 -10em 0 0 rgba(255, 255, 255, 0.13)
}

#affwp-addons .affwp-addon-page-actions a.button-secondary {
	font-weight: 600;
	width: 140px;
	text-align: center;
	padding: 8px 5px;
	border-color: #E34F43;
	color: #E34F43;
}

/* ---------- 3. Addons list ---------- */
#affwp-addons .affwp-addons-list {
	display: grid;
	grid:  auto auto / 1fr 1fr 1fr 1fr;
	gap: 20px 20px;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	margin-top: 1.33em;
}

#affwp-addons .affwp-addon {
	display: inline-grid;
	align-content: space-between;
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 3px;
}

/* ---------- 4. Addons Details (img/h3/text) ---------- */
.affwp-addon-details {
	display: flex;
	background-color: #ffffff;
	padding: 30px 20px;
	min-height: 100px;
	border-radius: 3px 3px 0 0;
}

#affwp-addons .affwp-addon-img {
	background: #ED6D62;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 80px;
}

#affwp-addons .affwp-addon-img img {
	width: 80px;
	object-fit: scale-down;
}

#affwp-addons .affwp-addon-text {
	margin-left: 20px;
}

#affwp-addons .affwp-addon h3 {
	margin: 0 0 8px;
	font-size: 16px;
}

#affwp-addons .affwp-addon h3 a {
	color: #444;
}

/* ---------- 5. Addons Action (upgrade/status/activate/deactivate) ---------- */
#affwp-addons .affwp-addon-action {
	background-color: #f7f7f7;
	padding: 20px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	border-radius: 0 0 3px 3px;
}

#affwp-addons .affwp-status {
	font-weight: bold;
}

#affwp-addons .affwp-status-active {
	color: #00a32a;
}

#affwp-addons .affwp-status-installed {
	color: #d63638;
}

#affwp-addons .affwp-status-missing {
	color: #666;
}

#affwp-addons .affwp-addon .button-primary {
	background-color: #44A2A7;
	border-color: #44A2A7;
	padding: 8px 5px;
	width: 140px;
	line-height: 1.4em;
	text-align: center;
	font-weight: 600;
}

#affwp-addons .affwp-addon .button-primary:hover {
	background-color: #3c9196;
}

#affwp-addons button {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
	background: none;
	border: 1px solid #ddd;
	border-radius: 3px;
	padding: 8px 5px;
	width:  140px;
	cursor: pointer;
}

#affwp-addons .affwp-styled-checkbox input{
	width: 18px;
	height: 11px;
	position: relative;
	display: inline-block;
	border-radius: 10px;
	background-color: #d63638;
	float: right;
	cursor: pointer;
	border: none;
	margin-top: 0;
}

#affwp-addons .affwp-styled-checkbox input.checked {
	background-color: #00a32a;
}

#affwp-addons .affwp-styled-checkbox input:after {
	left: 2px;
	top: 2px;
	bottom: 2px;
	width: 7px;
	position: absolute;
	content: "";
	background: #fff;
	display: block;
	border-radius: 50%;
}

#affwp-addons .affwp-styled-checkbox input.checked:after {
	right: 2px;
	left: auto;
}

#affwp-addons input[type="checkbox"]:checked::before {
	content: none;
}

/* ---------- 6. Unlock message ---------- */
#affwp-addons .unlock-msg h4 {
	font-size: 17px;
	margin: 1.5em 0 8px;
}
