/* Toolbar / Navigation */

#wpcontent .wafcf-admin-toolbar {
	position: sticky;
	box-sizing: border-box;
	margin-left: -20px;
	padding-top: 5px;
	padding-right: 32px;
	padding-bottom: 5px;
	padding-left: 32px;
}

.wafcf-admin-toolbar {
	position: sticky;
	top: 32px;
	height: 56px;
	z-index: 800;
	background: #295a85;
	color: #dddddd;
	margin-bottom: 20px;
}

.wafcf-admin-toolbar .wafcf-admin-toolbar-inner {
	display: flex;
	justify-content: space-between;
	align-content: center;
	align-items: center;
	max-width: 100%;
}

.wafcf-admin-toolbar .wafcf-admin-toolbar-inner .wafcf-nav-wrap {
	display: flex;
	align-items: center;
    gap: 8px;
}

.wafcf-admin-toolbar .wafcf-nav-main {
    display: flex;
    align-items: center;
}

.wafcf-admin-toolbar .wafcf-nav-tabs {
    display: flex;
    align-items: center;
}

.wafcf-admin-toolbar .wafcf-logo {
	display: flex;
	margin-right: 24px;
	text-decoration: none;
}

.wafcf-admin-toolbar .wafcf-logo img {
	display: block;
	height: 40px;
	max-height: 40px;
	width: auto;
	line-height: 0%;
}

.wafcf-admin-toolbar .wafcf-admin-toolbar-inner .wafcf-nav-promo-wrap {
	display: block;
	align-items: center;
	width: 140px;
}

.wafcf-nav-promo-wrap img {
	display: block;
	opacity: 0.9;
	max-height: 40px;
	width: auto;
	height: auto;
}

.wafcf-nav-row-logo:hover img {
	opacity: 1;
}

.wafcf-admin-toolbar .wafcf-admin-toolbar-inner .wafcf-nav-row-logo {
	display: block;
	margin-left: 24px;
	max-height: 40px;
	height: auto;
}

.wafcf-admin-toolbar .wafcf-admin-toolbar-inner .wafcf-nav-wrap {
	display: flex;
	align-items: center;
}

.wafcf-admin-toolbar .wafcf-logo {
	display: flex;
	margin-right: 24px;
	text-decoration: none;
}

.wafcf-admin-toolbar h2 {
	margin: 0 1.5em 0 0em;
	color: #f9fafb;
}

.wafcf-admin-toolbar .wafcf-nav-toggle {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(37, 57, 87, 0.35);
    color: #f9fafb;
    cursor: pointer;
}

.wafcf-admin-toolbar .wafcf-nav-toggle:hover,
.wafcf-admin-toolbar .wafcf-nav-toggle:focus {
    background: rgba(37, 57, 87, 0.55);
    outline: none;
}

.wafcf-admin-toolbar .wafcf-nav-toggle-icon,
.wafcf-admin-toolbar .wafcf-nav-toggle-icon::before,
.wafcf-admin-toolbar .wafcf-nav-toggle-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    background: #f9fafb;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.wafcf-admin-toolbar .wafcf-nav-toggle-icon {
    position: relative;
}

.wafcf-admin-toolbar .wafcf-nav-toggle-icon::before,
.wafcf-admin-toolbar .wafcf-nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.wafcf-admin-toolbar .wafcf-nav-toggle-icon::before {
    top: -6px;
}

.wafcf-admin-toolbar .wafcf-nav-toggle-icon::after {
    top: 6px;
}

.wafcf-admin-toolbar .wafcf-nav-wrap.is-open .wafcf-nav-toggle-icon {
    background: transparent;
}

.wafcf-admin-toolbar .wafcf-nav-wrap.is-open .wafcf-nav-toggle-icon::before {
    transform: translateY(6px) rotate(45deg);
}

.wafcf-admin-toolbar .wafcf-nav-wrap.is-open .wafcf-nav-toggle-icon::after {
    transform: translateY(-6px) rotate(-45deg);
}

.wafcf-admin-page .wafcf-admin-toolbar .wafcf-tab {
	font-size: 13px;
}

.wafcf-admin-toolbar .wafcf-tab {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 40px;
	margin-right: 8px;
	padding-top: 8px;
	padding-right: 16px;
	padding-bottom: 8px;
	padding-left: 16px;
	border-width: 1px;
	border-style: solid;
	border-color: transparent;
	border-radius: 6px;
	color: #dddddd;
	text-decoration: none;
}

.wafcf-admin-toolbar .wafcf-tab.is-active {
	background-color: #253957;
	color: #fff;
}

.wafcf-admin-toolbar .wafcf-tab:hover {
	background-color: #253957;
	color: #f9fafb;
}

.wafcf-admin-toolbar + .notice {
    margin-left: 0;
}
.wafcf-box + .notice {
    margin-left: 0;
}
.notice + .notice {
    margin-left: 0;
}
.notice + .wafcf-box {
    margin-top: 20px;
}

.notice + .wafcf-settings-container {
    margin-top: 20px;
}

@media (max-width: 375px) {
	#wpcontent .wafcf-admin-toolbar {
        height: auto;
		padding-top: 14px;
		padding-bottom: 14px;
		margin-left: -30px;
	}

	.wafcf-admin-toolbar .wafcf-logo {
		margin-right: 14px;
	}

	.wafcf-admin-toolbar .wafcf-logo img {
		height: 26px;
		max-height: 26px;
		width: auto;
	}

	.wafcf-admin-toolbar .wafcf-nav-wrap {
		overflow: hidden;
	}

	.wafcf-admin-toolbar div.wafcf-nav-wrap>h2,
	.wafcf-admin-toolbar .wafcf-nav-promo-wrap {
		display: none !important;
	}

	.wafcf-admin-toolbar .wafcf-tab {
		font-size: 12px;
		padding-left: 8px;
		padding-right: 8px;
		padding-top: 6px;
		padding-bottom: 6px;
		min-height: 30px;
	}
}

@media (max-width: 900px) {
    #wpcontent .wafcf-admin-toolbar {
        padding-right: 16px;
        padding-left: 16px;
    }

    .wafcf-admin-toolbar {
        height: auto;
        min-height: 56px;
    }

    .wafcf-admin-toolbar .wafcf-admin-toolbar-inner {
        align-items: flex-start;
    }

    .wafcf-admin-toolbar .wafcf-nav-wrap {
        flex: 1 1 auto;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .wafcf-admin-toolbar .wafcf-nav-main {
        min-width: 0;
    }

    .wafcf-admin-toolbar h2 {
        margin-right: 0;
        font-size: 18px;
    }

    .wafcf-admin-toolbar .wafcf-nav-toggle {
        display: inline-flex;
    }

    .wafcf-admin-toolbar .wafcf-nav-tabs {
        display: none;
        width: 100%;
        padding-top: 2px;
    }

    .wafcf-admin-toolbar .wafcf-nav-wrap.is-open .wafcf-nav-tabs {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .wafcf-admin-toolbar .wafcf-nav-wrap.is-open .wafcf-tab {
        justify-content: flex-start;
        margin-right: 0;
        width: 100%;
    }

    .wafcf-admin-toolbar .wafcf-nav-promo-wrap {
        display: none !important;
    }
}

@media (max-width: 768px) {
	.wafcf-admin-toolbar .wafcf-tab.external,
	.wafcf-admin-toolbar .wafcf-tab.upgrade,
	.wafcf-nav-promo-wrap {
		display: none !important;
	}
}

/* Settings Layout */
.wafcf-settings-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    max-width: 1176px;
}

.wafcf-settings-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.wafcf-settings-column {
    flex: 1;
    max-width: 856px;
}

.wafcf-settings-content {
    max-width: 856px;
}

.wafcf-sidebar-column {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 110px;
    margin-right: 20px;
}

/* IP Rules Page */
.wafcf-settings-column.ip-rules-page {
    max-width: 100%;
    margin-right: 20px;
}

/* DNS Manager Page */
.wafcf-dns-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.wafcf-dns-search-form input[type="search"] {
    min-width: 320px;
    max-width: 460px;
    width: 100%;
}

.wafcf-dns-search-count {
    margin: 8px 0 0;
    color: #646970;
    font-size: 13px;
}

.wafcf-dns-edit-form input[type="text"] {
    max-width: 620px;
    width: 100%;
}

.wafcf-dns-table td,
.wafcf-dns-table th {
    vertical-align: middle;
}

.wafcf-dns-domain-row td {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #1f2937;
    padding: 9px 10px;
}

.wafcf-dns-domain-count {
    margin-left: 6px;
    color: #6b7280;
    font-weight: 500;
}

.wafcf-dns-domain-row-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wafcf-dns-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.wafcf-dns-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

.wafcf-dns-table th:nth-child(5),
.wafcf-dns-table td:nth-child(5) {
    width: 150px;
}

.wafcf-dns-table th:nth-child(6),
.wafcf-dns-table td:nth-child(6) {
    width: 30px;
}

.wafcf-dns-table th:nth-child(7),
.wafcf-dns-table td:nth-child(7) {
    width: 25px;
}

.wafcf-dns-col-host {
    width: 220px;
}

.wafcf-dns-col-content {
    width: 320px;
}

@media (min-width: 890px) and (max-width: 1200px) {
    .wafcf-dns-col-host {
        width: 190px;
    }

    .wafcf-dns-col-content {
        width: 260px;
    }

    .wafcf-dns-table th:nth-child(5),
    .wafcf-dns-table td:nth-child(5) {
        width: 136px;
    }

    .wafcf-dns-table th:nth-child(6),
    .wafcf-dns-table td:nth-child(6) {
        width: 25px;
    }

    .wafcf-dns-table th:nth-child(7),
    .wafcf-dns-table td:nth-child(7) {
        width: 25px;
    }
}

@media (min-width: 1025px) and (max-width: 1305px) {
    .wafcf-dns-col-host {
        width: 180px;
    }

    .wafcf-dns-col-content {
        width: 230px;
    }

    .wafcf-dns-table th:nth-child(2),
    .wafcf-dns-table td:nth-child(2) {
        width: 72px;
        min-width: 72px;
    }

    .wafcf-dns-table th:nth-child(5),
    .wafcf-dns-table td:nth-child(5) {
        width: 130px;
    }

    .wafcf-dns-table th:nth-child(6),
    .wafcf-dns-table td:nth-child(6) {
        width: 25px;
    }

    .wafcf-dns-table th:nth-child(7),
    .wafcf-dns-table td:nth-child(7) {
        width: 25px;
    }
}

.wafcf-dns-ellipsis {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.wafcf-dns-ellipsis:hover::after,
.wafcf-dns-ellipsis:focus::after {
    content: attr(data-full);
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 30;
    min-width: 220px;
    max-width: min(68vw, 560px);
    padding: 8px 10px;
    border-radius: 6px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.wafcf-dns-table td code {
    font-size: 12px;
}

.wafcf-dns-proxy-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 1159px) {
    .wafcf-dns-table th:nth-child(5),
    .wafcf-dns-table td:nth-child(5) {
        width: 50px;
        min-width: 50px;
        white-space: nowrap;
    }

    .wafcf-dns-table th:nth-child(6),
    .wafcf-dns-table td:nth-child(6) {
        width: 30px;
        min-width: 30px;
    }

    .wafcf-dns-table th:nth-child(7),
    .wafcf-dns-table td:nth-child(7) {
        width: 25px;
        min-width: 25px;
    }

    .wafcf-dns-table .wafcf-dns-proxy-indicator {
        gap: 0;
        justify-content: center;
    }

    .wafcf-dns-table .wafcf-dns-proxy-icon {
        width: 40px;
        flex: 0 0 40px;
    }

    .wafcf-dns-table .wafcf-dns-proxy-indicator span:not(.wafcf-dns-proxy-icon) {
        display: none;
    }
}

.wafcf-dns-proxy-icon {
    width: 18px;
    height: 20px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex: 0 0 40px;
}

.wafcf-dns-proxy-indicator.is-on .wafcf-dns-proxy-icon,
.wafcf-dns-proxied-toggle.is-on .wafcf-dns-proxy-icon {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDQgMzkuNSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiM5OTk7fS5jbHMtMntmaWxsOiNmNjhhMWQ7fS5jbHMtM3tmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5Bc3NldCAxPC90aXRsZT48ZyBpZD0iTGF5ZXJfMiIgZGF0YS1uYW1lPSJMYXllciAyIj48ZyBpZD0iTGF5ZXJfMS0yIiBkYXRhLW5hbWU9IkxheWVyIDEiPjxwb2x5Z29uIGNsYXNzPSJjbHMtMSIgcG9pbnRzPSIxMDQgMjAuMTIgOTQgMTAuNjIgOTQgMTYuMTIgMCAxNi4xMiAwIDI0LjEyIDk0IDI0LjEyIDk0IDI5LjYyIDEwNCAyMC4xMiIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTc0LjUsMzljLTIuMDgsMC0xNS40My0uMTMtMjguMzQtLjI1LTEyLjYyLS4xMi0yNS42OC0uMjUtMjcuNjYtLjI1YTgsOCwwLDAsMS0xLTE1LjkzYzAtLjE5LDAtLjM4LDAtLjU3YTkuNDksOS40OSwwLDAsMSwxNC45LTcuODEsMTkuNDgsMTkuNDgsMCwwLDEsMzguMDUsNC42M0ExMC41LDEwLjUsMCwxLDEsNzQuNSwzOVoiLz48cGF0aCBjbGFzcz0iY2xzLTMiIGQ9Ik01MSwxQTE5LDE5LDAsMCwxLDcwLDE5LjU5LDEwLDEwLDAsMSwxLDc0LjUsMzguNWMtNC4xMSwwLTUyLS41LTU2LS41YTcuNSw3LjUsMCwwLDEtLjQ0LTE1QTguNDcsOC40NywwLDAsMSwxOCwyMmE5LDksMCwwLDEsMTQuNjgtN0ExOSwxOSwwLDAsMSw1MSwxbTAtMUEyMCwyMCwwLDAsMCwzMi4xMywxMy40MiwxMCwxMCwwLDAsMCwxNywyMnYuMTRBOC41LDguNSwwLDAsMCwxOC41LDM5YzIsMCwxNSwuMTMsMjcuNjYuMjUsMTIuOTEuMTIsMjYuMjYuMjUsMjguMzQuMjVhMTEsMTEsMCwxLDAtMy42MS0yMS4zOUEyMC4xLDIwLjEsMCwwLDAsNTEsMFoiLz48L2c+PC9nPjwvc3ZnPg==");
}

.wafcf-dns-proxy-indicator.is-off .wafcf-dns-proxy-icon,
.wafcf-dns-proxied-toggle.is-off .wafcf-dns-proxy-icon {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5MC41IDU5Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzkyOTc5Yjt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPkFzc2V0IDI8L3RpdGxlPjxnIGlkPSJMYXllcl8yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxnIGlkPSJMYXllcl8xLTIiIGRhdGEtbmFtZT0iTGF5ZXIgMSI+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNDksMTMuNVYxOUw1OSw5LjUsNDksMFY1LjVINDAuNzhhMTIuNDMsMTIuNDMsMCwwLDAtOS41LDQuNDJMMTcuNjUsMjcuMTZhOC44Myw4LjgzLDAsMCwxLTYuOTEsMy4zNEg1bC01LDhIMTMuMzlhMTEuMjcsMTEuMjcsMCwwLDAsOS00LjQ4TDM1LjA1LDE3LjE4YTkuODEsOS44MSwwLDAsMSw3LjY2LTMuNjhaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNODAuNSwzOUExMCwxMCwwLDAsMCw3Niw0MC4wOWExOSwxOSwwLDAsMC0zNy4zLTQuNTdBOSw5LDAsMCwwLDI0LDQyLjVhOC40Nyw4LjQ3LDAsMCwwLC4wNiwxLDcuNSw3LjUsMCwwLDAsLjQ0LDE1YzQsMCw1MS44OS41LDU2LC41YTEwLDEwLDAsMCwwLDAtMjBaIi8+PC9nPjwvZz48L3N2Zz4=");
}

/* Proxied toggle button in the Edit DNS Record form */
.wafcf-dns-proxied-toggle {
    background: none;
    border: none;
    padding: 6px 10px;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.15s;
    line-height: 1;
}

.wafcf-dns-proxied-toggle:hover,
.wafcf-dns-proxied-toggle:focus {
    background: rgba(0, 0, 0, 0.06);
    outline: none;
}

.wafcf-dns-proxied-toggle .wafcf-dns-proxy-icon {
    width: 24px;
    height: 16px;
    flex: 0 0 24px;
}

.wafcf-dns-proxied-toggle.is-on {
    color: #f48120;
}

.wafcf-dns-proxied-toggle.is-off {
    color: #929799;
}

.wafcf-dns-bulk-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
}

.wafcf-dns-bulk-action {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.wafcf-dns-bulk-action input[type="text"] {
    min-width: 280px;
    max-width: 460px;
    width: 100%;
}

.wafcf-dns-bulk-action--trio {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 6px 10px;
    flex-wrap: unset;
}

.wafcf-dns-bulk-action--trio input[type="text"] {
    min-width: 0;
    max-width: none;
    width: 100%;
}

/* Keep Bulk Migrate fields on a single row for longer on mid-size viewports */
.wafcf-dns-bulk-migrate-form .wafcf-dns-bulk-action {
    display: grid;
    grid-template-columns: auto minmax(200px, 1fr) auto minmax(200px, 1fr);
    align-items: center;
    gap: 6px 10px;
}

.wafcf-dns-bulk-migrate-form .wafcf-dns-bulk-action label {
    white-space: nowrap;
}

.wafcf-dns-bulk-migrate-form .wafcf-dns-bulk-action input[type="text"] {
    min-width: 0;
    max-width: none;
    width: 100%;
}

.wafcf-dns-bulk-migrate-form .wafcf-dns-bulk-action.wafcf-dns-bulk-action--trio {
    grid-template-columns: auto minmax(130px, 1fr) auto minmax(130px, 1fr) auto minmax(130px, 1fr);
}

@media (max-width: 1350px) {
    .wafcf-dns-bulk-migrate-form .wafcf-dns-bulk-action {
        grid-template-columns: auto minmax(160px, 1fr) auto minmax(160px, 1fr);
        gap: 6px 8px;
    }

    .wafcf-dns-bulk-migrate-form .wafcf-dns-bulk-action.wafcf-dns-bulk-action--trio {
        grid-template-columns: auto minmax(110px, 1fr) auto minmax(110px, 1fr) auto minmax(110px, 1fr);
    }
}

@media (max-width: 1180px) {
    .wafcf-dns-bulk-migrate-form .wafcf-dns-bulk-action,
    .wafcf-dns-bulk-migrate-form .wafcf-dns-bulk-action.wafcf-dns-bulk-action--trio {
        grid-template-columns: 1fr;
    }

    .wafcf-dns-bulk-migrate-form .wafcf-dns-bulk-action label {
        margin-top: 6px;
    }
}

@media (max-width: 1024px) {
    .wafcf-dns-table-wrap {
        overflow-x: hidden;
    }

    .wafcf-dns-table {
        min-width: 0;
        table-layout: auto;
        padding: 3px;
    }

    .wafcf-dns-table thead {
        display: none;
    }

    .wafcf-dns-table,
    .wafcf-dns-table tbody,
    .wafcf-dns-table tr,
    .wafcf-dns-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .wafcf-dns-table tr {
        margin-bottom: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #ffffff;
        overflow: hidden;
    }

    .wafcf-dns-table td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 10px;
        border-bottom: 1px solid #f1f5f9;
    }

    .wafcf-dns-table th:nth-child(5),
    .wafcf-dns-table td:nth-child(5),
    .wafcf-dns-table th:nth-child(6),
    .wafcf-dns-table td:nth-child(6),
    .wafcf-dns-table th:nth-child(7),
    .wafcf-dns-table td:nth-child(7) {
        width: 100%;
    }

    .wafcf-dns-table td:last-child {
        border-bottom: none;
    }

    .wafcf-dns-table td::before {
        content: attr(data-label);
        flex: 0 0 76px;
        color: #4b5563;
        font-weight: 600;
        font-size: 12px;
        line-height: 1.4;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .wafcf-dns-table td > * {
        max-width: calc(100% - 84px);
    }

    .wafcf-dns-table td:first-child {
        align-items: center;
    }

    .wafcf-dns-table td:first-child::before {
        margin-top: 2px;
    }

    .wafcf-dns-domain-row {
        display: block;
        margin-bottom: 6px;
        border: none;
        background: transparent;
    }

    .wafcf-dns-domain-row td {
        display: block;
        width: 100%;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #f8fafc;
        padding: 10px;
    }

    .wafcf-dns-domain-row-inner {
        flex-wrap: wrap;
    }

    .wafcf-dns-domain-row td::before {
        display: none;
    }

    .wafcf-dns-ellipsis {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .wafcf-dns-ellipsis:hover::after,
    .wafcf-dns-ellipsis:focus::after {
        display: none;
    }

    .wafcf-dns-bulk-action {
        align-items: flex-start;
    }

    .wafcf-dns-bulk-action label {
        width: 100%;
    }

    .wafcf-dns-search-form input[type="search"],
    .wafcf-dns-bulk-action input[type="text"] {
        min-width: 100%;
        max-width: 100%;
    }

    .wafcf-dns-bulk-action--trio {
        grid-template-columns: 1fr;
    }

    .wafcf-dns-bulk-action--trio label {
        width: auto;
        margin-top: 6px;
    }
}

/* Form boxes/sections */
.wafcf-box {
    border: none;
    border-radius: 8px;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.1);
    margin: 0 0 20px 0;
    background: #ffffff;
    border: 1px solid #ddd;
    position: relative;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    padding: 0 20px 20px;
}

.wafcf-box.wafcf-page-title {
    padding: 0 20px;
}

/* Form sections */
.wafcf-admin-page .form-table {
    width: 100%;
    border-collapse: collapse;
    margin: 5px auto;
}

.wafcf-admin-page .form-table th {
    font-weight: 600;
    text-align: left;
    padding: 12px 0;
    border-bottom: 1px solid #eaecf0;
    font-size: 14px;
}

.wafcf-admin-page .form-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wafcf-admin-page .form-table th, 
.wafcf-admin-page .form-table td {
    vertical-align: top;
}

/* Form elements */
.wafcf-admin-page input[type="text"]:read-only {
    background-color: #f9fafb;
    color: #98a2b3;
}

.wafcf-admin-page input[type="text"],
.wafcf-admin-page input[type="search"],
.wafcf-admin-page input[type="number"],
.wafcf-admin-page input[type="password"],
.wafcf-admin-page input[type="email"],
.wafcf-admin-page textarea,
.wafcf-admin-page select {
    box-sizing: border-box;
    padding-right: 8px;
    padding-left: 8px;
    background-color: #fff;
    border-color: #d0d5dd;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.1);
    border-radius: 6px;
    color: #344054;
}

.wafcf-admin-page select {
    padding-right: 25px;
    min-width: 120px;
    height: 32px;
}

.wafcf-admin-page textarea {
    line-height: 1.8em;
}

.wafcf-admin-page input[type="checkbox"] {
    margin: -3px 5px 0 0;
}

.wafcf-settings-column input.button.button-primary[name="submit"] {
    margin: 0 0 20px;
}

.wafcf-headerbar .button {
    background-color: rgba(255, 255, 255, 0.2);
    color: #dddddd;
    border-color: rgba(255, 255, 255, 0.3);
}

.wafcf-headerbar .button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Tables */
.wafcf-admin-page .wp-list-table {
    margin: 20px 0 0 0;
    border-radius: 8px;
    border: none;
    overflow: hidden;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.1);
}

.wafcf-admin-page .tablenav {
    height: auto;
    padding: 0;
    clear: unset;
}

.wafcf-admin-page .wp-list-table thead th,
.wafcf-admin-page .wp-list-table thead td {
    height: 48px;
    padding-right: 24px;
    padding-left: 24px;
    box-sizing: border-box;
    background-color: #f9fafb;
    border-color: #eaecf0;
    font-weight: 500;
}

.wafcf-admin-page .wp-list-table thead th {
    padding-left: 12px;
}

.wafcf-admin-page .wp-list-table td.check-column {
    vertical-align: middle;
    padding: 11px 0 0 3px;
}

.wafcf-admin-page .wp-list-table input[type="checkbox"] {
    margin: 0 0 10px 12px;
}

/* Header Bar - DEPRECATED: Use .wafcf-admin-toolbar instead */
#wpcontent .wafcf-headerbar {
    display: none;
}


/* Upgrade Banner */
.wafcf-upgrade-banner {
    position: relative;
    background: linear-gradient(135deg, #295a85 0%, #1e3f5a 100%);
    border-radius: 8px;
    padding: 20px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    text-align: center;
}

.wafcf-upgrade-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: white;
}

.wafcf-upgrade-content p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

.wafcf-upgrade-content ul {
    margin: 10px 0;
    padding-left: 20px;
    list-style-type: none;
}

.wafcf-upgrade-content ul li {
    margin: 5px 0;
    font-size: 13px;
    position: relative;
    padding-left: 20px;
    text-align: left;
}

.wafcf-upgrade-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.wafcf-upgrade-button {
    display: inline-block;
    background-color: #B7CB61;
    color: #103250 !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin: 15px auto 10px auto;
    transition: all 0.3s ease;
}

.wafcf-upgrade-button:hover {
    opacity: 0.9;
}

.wafcf-trial-link {
    text-align: center;
    margin-top: 10px !important;
}

.wafcf-trial-link a {
    color: white;
    text-decoration: underline;
    font-size: 13px;
}

.wafcf-trial-link a:hover {
    opacity: 0.8;
}

.wafcf-box .wafcf-trial-link {
    text-align: left;
}

.wafcf-box .wafcf-trial-link a {
    color: #295a85;
    text-decoration: underline;
}

.wafcf-box .wafcf-trial-link a:hover {
    color: #1e3f5a;
    opacity: 1;
}

/* Plugins Banner */
.wafcf-plugins-banner {
    position: relative;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    color: #344054;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    text-align: center;
}
.wafcf-upgrade-banner + .wafcf-plugins-banner {
	margin-top: 20px;
}

.wafcf-plugins-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #295a85;
}

.wafcf-plugins-content ul {
    margin: 15px 0;
    padding-left: 20px;
    list-style-type: none;
}

.wafcf-plugins-content ul li {
    margin: 8px 0;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
    text-align: left;
}

.wafcf-plugins-content ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #295a85;
}

.wafcf-plugins-content ul li a {
    color: #295a85;
    text-decoration: none;
    font-weight: 500;
}

.wafcf-plugins-content ul li a:hover {
    color: #1e3f5a;
    text-decoration: underline;
}

.wafcf-plugins-button {
    display: inline-block;
    background-color: #295a85;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin: 15px auto 10px auto;
    transition: all 0.3s ease;
}

.wafcf-plugins-button:hover {
    background-color: #1e3f5a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* User Agents field - make label appear above content */
.wafcf-admin-page .form-table tr:has(.wafcf-user-agents-field) th,
.wafcf-admin-page .form-table tr:has(.wafcf-user-agents-field) td {
    display: block;
    width: 100%;
}

.wafcf-admin-page .form-table tr:has(.wafcf-user-agents-field) th {
    padding-bottom: 8px;
    font-size: 15px;
}

.wafcf-user-agents-field {
    display: block;
}

@media (max-width: 1200px) {
    .wafcf-settings-wrapper,
    .wafcf-settings-container {
        flex-direction: column;
        margin-right: 20px;
    }
    .wafcf-sidebar-column {
        width: 100%;
        max-width: 856px;
    }
    .wafcf-upgrade-banner,
    .wafcf-plugins-banner {
        position: relative;
    }
}

/* List styling for Add Allowed Bots and other pages */
.wafcf-box ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 15px 0;
}

.wafcf-box ul li {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.wafcf-box h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 20px 0;
    color: #344054;
}

.wafcf-box > h3:first-of-type {
    margin-top: 0;
}
