#capsq-camera-box {
	position: relative;
	margin-bottom: 8px;
}

.capsq-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba( 0, 0, 0, 0.6 );
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 0;
}

.capsq-modal-inner {
	background: #fff;
	border-radius: 8px;
	padding: 24px;
	width: 520px;
	max-width: 90vw;
	box-sizing: border-box;
	position: relative;
	text-align: center;
}

.capsq-camera-wrap {
	width: 100%;
}

.capsq-camera-wrap video {
	width: 100%;
	height: auto;
	max-width: 100%;
	display: block;
	border-radius: 6px;
	background: #000;
}

.capsq-modal-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
}

.capsq-pin-input {
	font-size: 22px;
	letter-spacing: 6px;
	text-align: center;
	width: 160px;
	padding: 8px;
	margin: 12px auto;
	display: block;
}

#capsq-login-status {
	font-weight: 500;
	min-height: 20px;
	transition: color 0.15s ease;
}

#capsq-login-status.capsq-status-idle    { color: #555; }
#capsq-login-status.capsq-status-warn    { color: #b26a00; }
#capsq-login-status.capsq-status-busy    { color: #2271b1; }
#capsq-login-status.capsq-status-error   { color: #a00; }
#capsq-login-status.capsq-status-success { color: #008a20; }

.capsq-error {
	color: #a00;
	min-height: 18px;
}

#capsq-login-camera-wrap,#capsq-sc-camera-wrap{position:relative;display:inline-block; overflow: hidden;}
#capsq-confirm-face{float: none;}
#capsq-confirm-user{font-weight: 700;margin: 10px 0;font-size: 20px;}
#capsq-open-login{margin-bottom: 15px;}
#capsq-login-camera-wrap svg{position: absolute; top: 0; left:0;}
#capsq-login-video,#capsq-sc-video{height: 200px !important; width: 275px !important;}

#capsq-model-loader{
    text-align:center;
    padding:10px;
    font-size:14px;
}


.capsq-spinner{
    display:inline-block;
    width:16px;
    height:16px;
    border:2px solid #ccc;
    border-top-color:#000;
    border-radius:50%;
    animation:flspin .7s linear infinite;
    margin-right:8px;
}


@keyframes flspin{
    to{
        transform:rotate(360deg);
    }
}
/* ---- Shortcode button ---- */
.capsq-shortcode-wrap {
    display: inline-block;
    width: 100%;
}

.capsq-sc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    background: #fff;
    color: #0a7c9e;
    border: 1px solid #0a7c9e;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}
#capsq-sc-confirm-yes, #capsq-sc-confirm-no, #capsq-sc-submit-pin{
    padding: 10px 20px;
    background: #fff;
    color: #0a7c9e;
    border: 1px solid #0a7c9e;
}

/* Shortcode status element color states — mirrors #capsq-login-status rules */
#capsq-sc-status {
    font-weight: 500;
    min-height: 20px;
    transition: color 0.15s ease;
}
#capsq-sc-status.capsq-status-idle    { color: #555; }
#capsq-sc-status.capsq-status-warn    { color: #b26a00; }
#capsq-sc-status.capsq-status-busy    { color: #2271b1; }
#capsq-sc-status.capsq-status-error   { color: #a00; }
#capsq-sc-status.capsq-status-success { color: #008a20; }

.capsq-sc-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    padding: 8px 0;
}

#capsq-step-pin h3{
	text-align: left;
	margin-bottom: 5px;
}
#capsq-step-pin #capsq-login-pin{
	width: fit-content;
	padding: 5px;
    margin: 0 6px 3px 0;
    text-align: left;
    padding-left: 10px;
    max-width: 270px;
}
#capsq-login-modal .capsq-modal-inner{
	width: fit-content;
	max-width: 320px;
}
#capsq-login-modal #capsq-submit-pin{
	width: 100%;
}
#capsq-login-modal .capsq-error{
	text-align: left;
    margin-bottom: 5px;
}
#capsq-login-modal #capsq_pin_varify{
    border: none;
    padding: 0;
}

/* Reuse .capsq-spinner from existing CSS */
@media only screen and (max-width: 768px) {
	#capsq-sc-login-modal h3{
		font-size: 20px;
	}
}
