/* DadsFam Login Security Pro — WooCommerce account 2FA tab */

.dflsp-acc {
	border: 1px solid #e6eaf1;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
	background: #fff;
}
.dflsp-acc-head {
	display: flex; align-items: center; gap: 14px;
	padding: 20px 22px; color: #fff;
	background: linear-gradient(120deg, #0a0f1a, #1a4fa0);
}
.dflsp-acc-icon {
	font-size: 24px; width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto;
	display: grid; place-items: center; background: rgba(255, 255, 255, .14);
}
.dflsp-acc-head h3,
.dflsp-acc .dflsp-acc-head h3 { margin: 0 0 2px !important; color: #ffffff !important; font-size: 18px; font-weight: 700; line-height: 1.3; }
.dflsp-acc-head p,
.dflsp-acc .dflsp-acc-head p { margin: 0 !important; color: #dbe7ff !important; font-size: 13px; line-height: 1.4; }
.dflsp-acc-head .dflsp-acc-icon { color: #fff; }
.dflsp-acc-body { padding: 22px; }

.dflsp-acc-body .button { cursor: pointer; }
.dflsp-acc-body .button-link-delete {
	background: transparent; border: 1px solid #fca5a5; color: #b91c1c;
}

/* Setup box (shared look with admin) */
.dflsp-setup-box {
	background: linear-gradient(180deg, #f8fafc, #f1f5f9);
	border: 1px solid #e2e8f0; border-radius: 14px; padding: 22px; max-width: 480px; margin-top: 6px;
}
.dflsp-setup-box h3 { margin: 0 0 8px; font-size: 15px; color: #0f172a; }
.dflsp-setup-box p { color: #5b6470; font-size: 13px; margin: 0 0 14px; }
.dflsp-qr { background: #fff; padding: 14px; border-radius: 12px; display: inline-block; border: 1px solid #e6eaf1; box-shadow: 0 8px 20px -12px rgba(16, 24, 40, .4); }
.dflsp-qr canvas, .dflsp-qr img { display: block; }
.dflsp-secret { font-family: monospace; font-size: 13px; background: #fff; border: 1px dashed #cbd5e1; padding: 10px 13px; border-radius: 10px; word-break: break-all; margin: 12px 0; letter-spacing: 1px; }
.dflsp-confirm { width: 170px; font-size: 19px; letter-spacing: 5px; text-align: center; padding: 9px; border: 2px solid #cbd5e1; border-radius: 10px; }
.dflsp-confirm:focus { border-color: #1a4fa0; outline: none; box-shadow: 0 0 0 3px rgba(26, 79, 160, .18); }

.dflsp-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 14px 0; }
.dflsp-codes code { background: #fff; border: 1px solid #d8dee8; border-radius: 8px; padding: 9px 10px; font-size: 14px; text-align: center; letter-spacing: 1px; }
.dflsp-codes-actions { display: flex; gap: 8px; }

@media (max-width: 480px) {
	.dflsp-codes { grid-template-columns: 1fr; }
}

/* ── Trusted devices + activity cards ── */
.dflsp-acc-mt { margin-top: 18px; }
.dflsp-acc-head-alt { background: linear-gradient(120deg, #11203b, #1a4fa0); }
.dflsp-acc-head .button { margin-left: auto; }
.dflsp-acc-revoke-all,
.dflsp-acc-head .button {
	background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; cursor: pointer;
}
.dflsp-acc-empty { color: #8a93a0; font-style: italic; margin: 0; }

.dflsp-dev-list { list-style: none; margin: 0; padding: 0; }
.dflsp-dev {
	display: flex; align-items: center; gap: 12px;
	padding: 13px 0; border-bottom: 1px solid #eef1f6;
}
.dflsp-dev:last-child { border-bottom: 0; }
.dflsp-dev-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.dflsp-dev-name { font-weight: 700; color: #0f172a; font-size: 14px; }
.dflsp-dev-this { background: #dcfce7; color: #15803d; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; margin-left: 4px; }
.dflsp-dev-meta { color: #8a93a0; font-size: 12px; }
.dflsp-dev-revoke { flex: 0 0 auto; background: transparent !important; border: 1px solid #fca5a5 !important; color: #b91c1c !important; cursor: pointer; }
.dflsp-dev-revoke:hover { background: #fef2f2 !important; }

.dflsp-act { width: 100%; border-collapse: collapse; font-size: 13px; }
.dflsp-act thead th { text-align: left; color: #6b7280; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; padding: 0 10px 8px; border-bottom: 2px solid #eef1f6; }
.dflsp-act tbody td { padding: 10px; border-bottom: 1px solid #f1f4f9; color: #334155; vertical-align: middle; }
.dflsp-act tbody tr:last-child td { border-bottom: 0; }
.dflsp-act code { background: #f1f4f9; padding: 2px 7px; border-radius: 5px; font-size: 12px; }
.dflsp-act-pill { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }

@media (max-width: 480px) {
	.dflsp-act thead { display: none; }
	.dflsp-act tbody td { display: block; padding: 4px 0; border: 0; }
	.dflsp-act tbody tr { display: block; padding: 10px 0; border-bottom: 1px solid #f1f4f9; }
}

/* ── Remove-all toolbar ── */
.dflsp-dev-toolbar { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.dflsp-dev-revoke-all { background: transparent !important; border: 1px solid #fca5a5 !important; color: #b91c1c !important; cursor: pointer; }
.dflsp-dev-revoke-all:hover { background: #fef2f2 !important; }

/* ── Fancy framed QR (corner brackets) ── */
.dflsp-qr { position: relative; padding: 16px; border-radius: 14px; border: 1px solid #e6eaf1; }
.dflsp-qr::before {
	content: ""; position: absolute; inset: 7px; pointer-events: none;
	background:
		linear-gradient(#1a4fa0, #1a4fa0) top left / 20px 3px no-repeat,
		linear-gradient(#1a4fa0, #1a4fa0) top left / 3px 20px no-repeat,
		linear-gradient(#1a4fa0, #1a4fa0) top right / 20px 3px no-repeat,
		linear-gradient(#1a4fa0, #1a4fa0) top right / 3px 20px no-repeat,
		linear-gradient(#1a4fa0, #1a4fa0) bottom left / 20px 3px no-repeat,
		linear-gradient(#1a4fa0, #1a4fa0) bottom left / 3px 20px no-repeat,
		linear-gradient(#1a4fa0, #1a4fa0) bottom right / 20px 3px no-repeat,
		linear-gradient(#1a4fa0, #1a4fa0) bottom right / 3px 20px no-repeat;
}

/* Trust-this-device button */
.dflsp-dev-trust { background: #15803d !important; border-color: #15803d !important; color: #fff !important; cursor: pointer; }
.dflsp-dev-trust:hover { background: #166534 !important; }
.dflsp-dev-toolbar { gap: 8px; }

/* QR square sizing */
.dflsp-qr { min-width: 200px; min-height: 200px; display: inline-flex; align-items: center; justify-content: center; }
.dflsp-qr canvas, .dflsp-qr img, .dflsp-qr table { display: block; margin: 0 auto; }
.dflsp-codes-actions { flex-wrap: wrap; }

/* Passkeys */
.dflsp-pk-toolbar { margin-bottom: 12px; }
.dflsp-pk-status { margin: 6px 0 12px; font-size: 13px; }
.dflsp-passkeys .dflsp-dev-meta { display: block; color: #7a8494; font-size: 12px; margin-top: 2px; }

/* Passkey set-up prompt */
.dflsp-pk-promo { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: linear-gradient(135deg, #eef4ff, #f7faff); border: 1px solid #d6e2fb; }
.dflsp-pk-promo-icon { font-size: 26px; line-height: 1; flex: 0 0 auto; }
.dflsp-pk-promo-body { flex: 1 1 auto; }
.dflsp-pk-promo-body h4 { margin: 0 0 4px; font-size: 15px; color: #0a0f1a; }
.dflsp-pk-promo-body p { margin: 0 0 12px; color: #4a5568; font-size: 13px; line-height: 1.55; }

/* Force readable contrast on the storefront theme (was inheriting theme colours) */
.dflsp-acc .dflsp-dev-name { color: #0f172a !important; }
.dflsp-acc .dflsp-dev-meta { color: #6b7280 !important; }
.dflsp-acc .dflsp-dev-this { background: #dcfce7 !important; color: #15803d !important; }
.dflsp-acc .dflsp-acc-empty { color: #4a5568 !important; }
/* Current-device banner */
.dflsp-cur-device { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 13px; }
.dflsp-cur-label { color: #0f172a !important; }
.dflsp-cur-ok { background: #dcfce7; color: #15803d !important; font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.dflsp-cur-no { background: #fef3c7; color: #b45309 !important; font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 10px; }

/* Current (untrusted) device row */
.dflsp-dev-current { background: #f8fafc; }
.dflsp-dev-untrusted { background: #fef3c7; color: #b45309 !important; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; margin-left: 4px; }
