








#wp-color-contrast-checker .color-contrast-panel-header{
    padding:15px;
    background:#e2e8f0;
    color:#000;
    font-weight:bold;
	width: 100%;
}


#wp-color-contrast-checker .cc-sample-cb {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}


/* custom checkbox */
#wp-color-contrast-checker .cc-sample-cb input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;

    border: 2px solid var(--fg, #000);
    background: var(--fg, #000); /* FG controls checkbox bg */

    border-radius: 4px;
    display: grid;
    place-content: center;
    margin: 0;
}

/* tick */
#wp-color-contrast-checker .cc-sample-cb input::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 0.12s ease-in-out;

    background: var(--bg, #fff); /* BG controls check mark */
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
}

/* checked */
#wp-color-contrast-checker .cc-sample-cb input:checked::before {
    transform: scale(1);
}



.down {
    display: inline-block;
    transform: rotate(90deg);
	margin-right: -3px;
}

.up {
    display: inline-block;
    transform: rotate(-90deg);
	margin-left: -3px;
}

.swap-icon {
    font-size: 0;
	font-weight: 700;
}

.swap-icon span {
    font-size: 18px !important;
}

/* ==========================
   Color Contrast Checker
========================== */

#wp-color-contrast-checker{
    max-width:1200px;
    margin:0 auto;
    font-family:inherit;
    color:#213051;
}

#wp-color-contrast-checker *{
    box-sizing:border-box;
}

#wp-color-contrast-checker .wrap{
    width:100%;
}

#wp-color-contrast-checker .contrast-checker-row{
    display:flex;
    gap:24px;
    margin-bottom:24px;
    flex-wrap:wrap;
}

#wp-color-contrast-checker .contrast-checker-col{
    flex:1;
    min-width:320px;
}

/* ==========================
   Panels
========================== */

#wp-color-contrast-checker .cc-panel{
    background:#fff;
    border:1px solid #dbe3ee;
    border-radius:14px;
    overflow:hidden;
}

#wp-color-contrast-checker .cc-panel__i > :not(.color-contrast-panel-header) {
    padding: 10px;
}


#wp-color-contrast-checker .cc-panel-title{
    margin-bottom:16px;
}

#wp-color-contrast-checker .cc-panel-title__label{
    display:block;
    font-size:15px !important;
    font-weight:700;
    margin:0;
}

#wp-color-contrast-checker .cc-panel-title__sub-title{
    margin:0;
    font-size:18px;
    font-weight:700;
}

/* ==========================
   Color Inputs
========================== */

#wp-color-contrast-checker .cc-panel_color .cc-panel__i{
    display:flex;
    gap:24px;
    flex-wrap:wrap;
	align-items:center;
}

#wp-color-contrast-checker .swap-center{
    flex: 0 0 100%;
    display:flex;
    justify-content:center;
}

#wp-color-contrast-checker .swap-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: -10px;
}

#wp-color-contrast-checker .btn-swap-color{
    width:80px;
    height:48px;
    flex-shrink:0;
	font-size:23px !important;
	padding: 0 !important;
	font-weight: 500 !important;
}

#wp-color-contrast-checker .cc-panel_color .col{
    flex:1;
    min-width:260px;
}

#wp-color-contrast-checker .field-wr{
    display:flex;
    align-items:center;
    gap:10px;
}

#wp-color-contrast-checker .uw-form-field{
    flex:1;
}

#wp-color-contrast-checker .uw-form-control{
    width:100%;
    height:48px;
    border:1px solid #ddd;
    border-radius:10px;
    padding:0 14px;
    font-size: 16px;
	font-weight: 600;
	color: #555;
}

#wp-color-contrast-checker .uw-form-control:focus{
    outline:none;
    border-color:#1b6997;
}

/* ==========================
   Buttons
========================== */

#wp-color-contrast-checker button{
    cursor:pointer;
    transition:.2s ease;
}

#wp-color-contrast-checker .btn-colorpicker {
    width: 48px !important;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: #f5f7fb;
    display: grid;
    text-align: center;
    place-items: center;
    justify-content: center;
    align-items: center;
    align-content: center;
    padding: 0;
    line-height: 0;
}

#wp-color-contrast-checker .btn-colorpicker:hover{
    opacity:.9;
}

#wp-color-contrast-checker .color-preview {
    width: 24px;
    height: 24px;
    margin: 0;
    border-radius: 50%;
    border: 2px solid rgb(0 0 0 / .15);
    box-sizing: border-box;
    display: block;
}

What do you mean currentcolor,  should I use it like that



#wp-color-contrast-checker .fg-preview{
    background:#000000;
}

#wp-color-contrast-checker .bg-preview{
    background:#ffffff;
}

#wp-color-contrast-checker .btn-copy,
#wp-color-contrast-checker .btn-swap-color{
    border:none;
    background:#fff;
    color:#1b6997;
	padding: 0 !important;
    
    height:48px;
    border-radius:10px;
    font-size:14px;
    font-weight:600;
}

#wp-color-contrast-checker .btn-copy:hover,
#wp-color-contrast-checker .btn-swap-color:hover{
    transform:translateY(-1px);
}

/* ==========================
   Contrast Ratio
========================== */

#wp-color-contrast-checker .cc-panel_ratio{
    height:100%;
}

#wp-color-contrast-checker .cc-ratio{
    border-radius:12px;
    text-align:center;
    padding:28px;
    margin-top:12px;
}

#wp-color-contrast-checker .cc-ratio__value{
    font-size:48px;
    font-weight:800;
    line-height:1;
}

#wp-color-contrast-checker .cc-ratio__status{
    margin-top:12px;
    font-size:18px;
    font-weight:700;
    text-transform:capitalize;
}

#wp-color-contrast-checker .cc-ratio.perfect{
    background:#e8fff0;
    color:#1b6997;
}

#wp-color-contrast-checker .cc-ratio.good{
    background:#eef7ff;
    color:#0067d8;
}

#wp-color-contrast-checker .cc-ratio.fair{
    background:#fff6e6;
    color:#d88a00;
}

#wp-color-contrast-checker .cc-ratio.poor{
    background:#ffeaea;
    color:#d62828;
}

/* ==========================
   Results Table
========================== */

#wp-color-contrast-checker .table-results{
    border:1px solid #e5e7eb;
    border-radius:12px;
    overflow:hidden;
}

#wp-color-contrast-checker .table-results__row{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
}

#wp-color-contrast-checker .table-results__row:not(:last-child){
    border-bottom:1px solid #e5e7eb;
}

#wp-color-contrast-checker .table-results__row.header{
    background:#f8fafc;
    font-weight:700;
}

#wp-color-contrast-checker .table-results__col{
    padding:16px;
    display:flex;
    align-items:center;
}

#wp-color-contrast-checker .table-results__col:not(:last-child){
    border-right:1px solid #e5e7eb;
}

/* ==========================
   Pass / Fail
========================== */

#wp-color-contrast-checker .pass{
    color:#0f8f44;
    font-weight:700;
}

#wp-color-contrast-checker .fail{
    color:#d62828;
    font-weight:700;
}

/* ==========================
   Preview Panel
========================== */

#wp-color-contrast-checker .preview-box{
    min-height:340px;
    border:2px solid #000;
    border-radius:12px;
    transition:.2s ease;
}

#wp-color-contrast-checker .cc-sample-lt{
    font-size:32px;
    font-weight:700;
    margin:0 0 16px;
}

#wp-color-contrast-checker .cc-sample-st{
    margin:0 0 24px;
    line-height:1.7;
}

#wp-color-contrast-checker .cc-samples__elements{
    display:flex;
    flex-direction:column;
    gap:16px;
}

#wp-color-contrast-checker .cc-sample-input{
    width:100%;
    height:48px;
    border:1px solid currentColor;
    background:transparent;
    color:inherit;
    border-radius:10px;
    padding:0 14px;
}

#wp-color-contrast-checker .cc-sample-cb{
    display:flex;
    align-items:center;
    gap:10px;
}

#wp-color-contrast-checker .cc-sample-btn{
    border:none;
    padding:12px 22px;
    border-radius:10px;
    font-weight:700;
    width:max-content;
}

/* ==========================
   Grayscale
========================== */

#wp-color-contrast-checker .grayscale-mode{
    filter:grayscale(100%);
}

#wp-color-contrast-checker .uw-switcher{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:600;
}

#wp-color-contrast-checker .uw-switcher input{
    width:18px;
    height:18px;
}

/* ==========================
   Mobile
========================== */

@media (max-width:768px){

    #wp-color-contrast-checker .contrast-checker-row{
        flex-direction:column;
    }

    

    #wp-color-contrast-checker .cc-ratio__value{
        font-size:38px;
    }

    #wp-color-contrast-checker .table-results__row{
        grid-template-columns:1.6fr 1fr 1fr;
    }

    #wp-color-contrast-checker .table-results__col{
        padding:12px;
        font-size:14px;
    }

    #wp-color-contrast-checker .cc-sample-lt{
        font-size:26px;
    }

}