/* ===============================
   Main Wrapper
=============================== */
#kl-psc-wrapper {
    height: 100%;
    line-height: 0px;
    margin-top: 60px;
	margin-bottom: 10px;
	
}
   
#kl-psc-wrapper {
    clear: both;
}


.kl-psc-wrapper{
    pointer-events:auto !important;
    position:relative;
    z-index:9999;
}

.kl-psc-wrapper *{
    pointer-events:auto !important;
}



/* ===============================
   Flip Card Container
=============================== */
.kl-psc-card {
    position: relative;
    width: 100%;
	margin-top: 25px;
	

    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.kl-psc-card.flipped {
    transform: rotateY(180deg);
}
.kl-psc-card-back{
	display:none;
}

/* ==============================
   Both Sides of the Card
=============================== */
.kl-psc-card-front,
.kl-psc-card-back {
/*     position: absolute; */
    /* top: 50px; */
    /* align perfectly */
    left: 0;
    width: 99%;
    height: auto;
    backface-visibility: hidden;
    background: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    border-radius: 10px !important;
	border: 1px solid black;
}

/* Front Side */
.kl-psc-card-front {
    padding: 24px;
}

/* Back Side */
.kl-psc-card-back {
    padding: 16px;
    transform: rotateY(180deg);
    justify-content: flex-start;
    text-align: left;
    /* overflow-y: auto; */
    /* overflow-x: hidden; */
	
}

/* ===============================
   Buttons
=============================== */
#kl_psc_shipping_calculate {
    padding: 15px 24px;
    color: black;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    margin-top: 27px;
}

#kl_psc_box {
    font-size: 12px !important;
}

#kl-psc-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1d4ed8;
    border: none !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: none !important;
    box-shadow: none !important;
	padding: 0px;
}



/* ===============================
   Validation Message
=============================== */
/* #kl-psc-validation-message {
    margin-bottom: 4px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

#kl-psc-validation-message:not(:empty) {
    display: block;
} */

/* ===============================
   Header Section
=============================== */
.kl-psc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 17px;
}

.kl-psc-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}




.kl-psc-reset-btn-div {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* padding: 14px 13px 14px 11px; */
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    user-select: none;
}



#kl-psc-reset-btn {
    border: none;
    cursor: pointer;
    background: none;
    display: flex;
    align-items: center;
    font-weight: bold;
}

/* ===============================
   Subtitle
=============================== */
#kl-psc-fedex-form-title {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 20px;
}

/* ===============================
   Form Fields
=============================== */
#kl-psc-fedex-form {
    width: 100%;
    box-sizing: border-box;
	 margin-bottom: 0px !important;
}

.kl-psc-field {
    width: 100%;
    margin-bottom: 1px;
	line-height: 14px;
}

.kl-psc-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

/* Inputs and Selects */
.kl-psc-field select,
.kl-psc-field input[type="text"] {
    width: 100%;
    font-size: 15px;
    color: #1f2937;
    background-color: #e7e7e7;
    border: 2px solid #c7c7c7;
    border-radius: 10px !important;
    transition: all 0.2s ease;
    box-sizing: border-box;
    padding: 10px;
}

.kl-psc-field select:focus,
.kl-psc-field input[type="text"]:focus {
    outline: none;
    border-color: #6366f1;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    border-radius: 10px;
}

body.theme-storefront #kl-psc-wrapper,#kl-psc-result {
    margin-top: 45px;
}


body.theme-storefront .kl-psc-field {
    margin-bottom: 8px;
}

body.theme-storefront .kl-psc-row {
    margin-bottom: 11px;
}


body.theme-storefront #kl_psc_shipping_calculate {
    padding: 11px 24px;
}


/* ===============================
   City & Postal Code Row
=============================== */
.kl-psc-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.kl-psc-field.half {
    flex: 1;
}

/* ===============================
   Checkboxes
=============================== */
.kl-psc-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.kl-psc-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #6366f1;
}

/* ===============================
   Submit Button
=============================== */
.kl-psc-submit {
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    /* background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
}

/* .quantity{
    display: inline-block;
} */


.kl-psc-submit img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* ===============================
   Back Side (Results)
=============================== */
#kl-psc-result {
    /* width: 100%;
    font-size: 16px;
    color: #111;
    overflow-x: auto;
    overflow-y: auto;
    white-space: nowrap;
    max-height: 80vh;
    padding: 0px 10px;
    box-sizing: border-box; */

    width: 100%;
    font-size: 16px;
    color: #111;
    /* overflow-x: auto; */
    /* overflow-y: auto; */
    white-space: nowrap;
    /* max-height: 10vh; */
    padding: 0px 10px;
    box-sizing: border-box;
}

#kl-psc-result h2 {
    color: #4f46e5;
    font-size: 22px;
    /* margin-bottom: 10px; */
}

.kl-psc-form-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 3px;

}




/* Loader */

/* Loader container */
.kl-loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* Glowing main circle */
.kl-loader-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 5px solid transparent;
    border-top: 5px solid #000000;
    border-right: 5px solid #cdccd3;
    animation: kl-spin 1s linear infinite;
    /* filter: drop-shadow(0px 0px 8px #ffffff); */
}

/* Smooth rotating animation */
@keyframes kl-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Pulse wave behind circle */
.kl-loader-wave {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: kl-pulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes kl-pulse {
    0% {
        transform: scale(0.6);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* Loader text */

/* NEW BLACK PREMIUM LOADER */
.loader {
    width: 55px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid #000;
    /* BLACK COLOR */
    animation:
        l20-1 0.8s infinite linear alternate,
        l20-2 1.6s infinite linear;
}

@keyframes l20-1 {
    0% {
        clip-path: polygon(50% 50%, 0 0, 50% 0, 50% 0, 50% 0, 50% 0, 50% 0)
    }

    12.5% {
        clip-path: polygon(50% 50%, 0 0, 50% 0, 100% 0, 100% 0, 100% 0, 100% 0)
    }

    25% {
        clip-path: polygon(50% 50%, 0 0, 50% 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)
    }

    50% {
        clip-path: polygon(50% 50%, 0 0, 50% 0, 100% 0, 100% 100%, 50% 100%, 0 100%)
    }

    62.5% {
        clip-path: polygon(50% 50%, 100% 0, 100% 0, 100% 0, 100% 100%, 50% 100%, 0 100%)
    }

    75% {
        clip-path: polygon(50% 50%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 50% 100%, 0 100%)
    }

    100% {
        clip-path: polygon(50% 50%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 0 100%)
    }
}

@keyframes l20-2 {
    0% {
        transform: scaleY(1) rotate(0deg)
    }

    49.99% {
        transform: scaleY(1) rotate(135deg)
    }

    50% {
        transform: scaleY(-1) rotate(0deg)
    }

    100% {
        transform: scaleY(-1) rotate(-135deg)
    }
}





#kl-psc-open-popup {
    justify-content: center;
    text-align: center;
    
    margin-top: 10px;
    display: flex;
    padding: 10px 18px !important;
    /* margin-left: 38px; */
    color: white;
    background-color: #4d4de9 !important;
    border-radius: 4px;
    margin-bottom: 10px;
}






@keyframes kl-loader-slide {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#kl-psc-card {
    position: relative;

}
#kl-shipping-loader {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

@media (max-width: 480px) {

	#kl-psc-fedex-form{
    margin-bottom: 0px !important;
}
}



.kl-psc-close-btn {
    font-size: 22px;
    cursor: pointer;
    margin-right: 10px;
    opacity: 0.3;             
    color: #000;              
    transition: opacity 0.3s ease, transform 0.2s ease;
    float: right;
    margin-bottom: 15px;
    font-size: 20px;
}

.kl-psc-close-btn:hover {
    opacity: 1;                
    color: #000;               
    transform: scale(1.1);    
}


.kl-psc-close-btn-container{
	width: 100%;
    margin-left: 24px;
    margin-bottom: 10px;
}

@media (min-width: 911px) and (max-width: 912px) {
	#kl-psc-fedex-form-title {
		
		font-size:13px;
	}
}




@media (min-width: 768px) and (max-width: 768px) {
		
	#kl-psc-fedex-form-title {
		font-size: 10px;
		color: #6b7280;
		margin-bottom: 20px;
	}
	.kl-psc-header h3{
		font-size: 15px;
	}
	
	.kl-psc-checkbox-title{
		font-size:15px;
	
	}	

	}

/* ===============================
   Back Button & Header - Smallest Devices
   max-width: 390px
=============================== */
@media (max-width: 390px) {

    /* Container for back button + title */
    #kl-psc-result > div:first-child {
        flex-direction: column !important; /* stack vertically */
        align-items: flex-start !important;
        gap: 6px !important;
    }

    /* Shipping title smaller */
    #kl-psc-result h2 {
        font-size: 16px !important;
        margin-top: 6px !important;
        margin-bottom: 6px !important;
    }

    /* Back button smaller */
    #kl-psc-back-btn {
        font-size: 11px !important;
        padding: 4px 6px !important;
        gap: 4px !important;
    }

    /* SVG arrow smaller */
    #kl-psc-back-btn svg {
        width: 10px !important;
        height: 12px !important;
    }
	
	#kl-psc-fedex-form-title {
    font-size: 10px;
    color: #6b7280;
    margin-bottom: 20px;   
    }

    .kl-psc-checkbox {
        font-size: 14px !important;
    }

    .kl-psc-field select,
        .kl-psc-field input[type="text"] {
            font-size: 13px;
    }
    .kl-psc-reset-btn-div {
        font-size: 10px;
    }

    /* Table responsive: allow horizontal scroll */
    #kl-psc-result table {
        /* display: block; */
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Reduce table cell padding for tiny devices */
    #kl-psc-result .kl-psc-table-cell,
    #kl-psc-result .kl-psc-table-header {
        padding: 6px 8px !important;
        font-size: 11px !important;
    }

    /* Truck icon smaller */
    #kl-psc-result .kl-psc-truck-icon {
        width: 12px !important;
        height: 12px !important;
    }
}

@media (min-width: 1024px) {
    #kl-psc-wrapper, #kl-psc-result {
        max-width: 900px;
        margin: 5px auto; /* center the card */
    }
}
	
@media only screen 
and (device-width: 375px) 
and (device-height: 667px) {
    #kl-psc-fedex-form-title {
        font-size: 11px;
    }
}

@media only screen 
and (device-width: 375px) 
and (device-height: 667px) {
 body.et_divi_theme   #kl-psc-fedex-form-title {
        font-size: 10px;
    }
}

@media only screen 
and (device-width: 414px) 
and (device-height: 896px) {
 body.et_divi_theme   #kl-psc-fedex-form-title {
        font-size: 11px;
    }
}

@media only screen 
and (device-width: 390px) 
and (device-height: 844px) {
 body.et_divi_theme   #kl-psc-fedex-form-title {
        font-size: 11px;
    }
}

@media only screen 
and (device-width: 430px) 
and (device-height: 932px) {
 body.et_divi_theme   #kl-psc-fedex-form-title {
        font-size: 12px;
    }
    .wp-theme-twentytwentyfour .kl-psc-card-back {
        width: auto !important;
    }
    .wp-theme-twentytwentyfour .kl-psc-header {
        margin-bottom: 6px;
    }
}

@media only screen 
and (device-width: 430px) 
and (device-height: 932px) {
 body.et_divi_theme  .kl-psc-field select, .kl-psc-field input[type="text"] {
        font-size: 13px;
    }
}

@media only screen 
and (device-width: 375px) 
and (device-height: 667px) {
 body.theme-twentytwentyfive   .kl-psc-field select, .kl-psc-field input[type="text"] {
        font-size: 11px;
    }
    .wp-theme-twentytwentyfour .kl-psc-card-back {
        width: auto !important;
    }
}

@media only screen 
and (device-width: 375px) 
and (device-height: 667px) {
 body.theme-twentytwentyfive   .kl-psc-card-front  {
        padding: 23px;
    }
}


@media only screen 
and (device-width: 414px) 
and (device-height: 896px) {
 body.theme-twentytwentyfive #kl-psc-fedex-form-title   {
        font-size:13px;
    }
 .wp-theme-twentytwentyfour .kl-psc-card-back {
     width: auto !important;
 }
}




#kl-psc-wrapper, #kl-psc-result {
    max-width: 450px;
    margin: 5px auto;
}



@media only screen 
and (device-width: 414px) 
and (device-height: 896px) {
 body.theme-twentytwentyfive #kl-psc-wrapper, #kl-psc-result {
    max-width: 350px;
    margin: 5px auto;
}
}

 body.theme-twentytwentyfive .kl-psc-checkbox-title{
	margin-top: 10px;
    font-size: 16px;
}


@media only screen 
and (device-width: 430px) 
and (device-height: 932px) {
 body.theme-twentytwentyfive #kl-psc-wrapper, #kl-psc-result {
    max-width: 350px;
    margin: 5px auto;
}

}

@media only screen 
and (device-width: 390px) 
and (device-height: 844px) {
 body.theme-twentytwentyfive #kl-psc-wrapper, #kl-psc-result {
    max-width: 335px;
    margin: 5px auto;
}
 .wp-theme-twentytwentyfour .kl-psc-card-back {
    width: auto !important;
 }
}


@media only screen 
and (device-width: 375px) 
and (device-height: 667px) {
 body.theme-twentytwentyfive #kl-psc-wrapper, #kl-psc-result {
    max-width: 310px;
    margin: 5px auto;
}
}


@media only screen 
and (device-width: 430px) 
and (device-height: 932px) {
 body.theme-twentytwentyfive #kl-psc-fedex-form-title {
   font-size: 13px;
}

}


@media only screen 
and (device-width: 375px) 
and (device-height: 667px) {
 body.theme-twentytwentyfive .kl-psc-reset-btn-div {
    width: 89px;
	padding: 9px 13px 9px 11px;
}
}



.wp-theme-twentytwentyfour .kl-psc-card-front{
    width: 100%;
}

.wp-theme-twentytwentyfour  #kl-psc-wrapper {
    padding: 20px !important;
    height: 98%;
    margin-top: 5px;
    margin: 0px auto;
}

.wp-theme-twentytwentyfour #kl-psc-card {
    height: auto;
    margin-top: 0px;

}


.wp-theme-twentytwentyfour .kl-psc-card-front,
.kl-psc-card-back {
    border-radius: 0px !important;
}

.wp-theme-twentytwentyfour .kl-psc-checkbox-title {
    margin-bottom: 0px !important;
}

.wp-theme-twentytwentyfour .kl-psc-card-back {
    display: none;
}


.wp-theme-twentytwentyfour .kl-psc-card-back {
    width: 100%;
}
   
.wp-theme-twentytwentyfour #kl-shipping-loader {
    margin-left: 193px;
    position: static !important;
   
}



.wp-theme-twentytwentythree .kl-psc-checkbox-title {
    margin-bottom: 0px !important;
}


.wp-theme-twentytwentythree  #kl-psc-card {
    width: 400px;
}


.wp-theme-twentytwentyfour .kl-psc-card-back{
    width: 400px;
}


.wp-theme-twentytwentyfour .quantity {
    margin-bottom: 9px !important;
}
 
.wp-theme-twentytwentyfour .single_add_to_cart_button {
    margin-bottom: 9px !important;
    margin-right: 240px;
}


.wp-theme-twentytwentyfour #kl-psc-open-popup {
    border: none;
}


body.theme-astra .kl-psc-field {
    margin-top: 8px;  
}



body.theme-astra .kl-psc-row {
    margin-bottom: 10px;
}


body.et_divi_theme #kl-shipping-loader {
        margin-bottom: 0px;
        margin-top: 24px;
        margin-left: 180px;
        position: static;
}

body.et_divi_theme #kl-psc-wrapper {
    margin-top: 35px;
}

body.et_divi_theme #kl_psc_shipping_calculate {
    padding: 12px 24px;
}


body.theme-woodmart #kl-psc-reset-btn {
    margin: 0px 6px !important;
}

body.theme-woodmart .kl-psc-field {
    margin-bottom: 10px;
}


body.theme-astra #kl-psc-fedex-form-title {margin-bottom: 2px; font-size: 12px;}

.wp-theme-twentytwentyfive #kl-psc-reset-btn{font-size: 12px !important;}

.wp-theme-twentytwentyfour .kl-psc-field.half {margin-top:10px;}

.wp-theme-twentytwentyfour .kl-psc-field label {font-size: 13px;}

.wp-theme-twentytwentyfour #kl-psc-reset-btn {font-size:12px;}

.wp-theme-twentytwentyfour .kl-psc-field {margin-bottom:5px;}

.wp-theme-twentytwentyfour #kl_psc_shipping_calculate { 
    padding: 13px 24px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    margin-top: 27px;
}
