.fc-calc__row{
    display:flex;
    gap:20px;
    align-items:center;
    flex-wrap:wrap;
    justify-content:space-between;
    margin-bottom: 18px;
}
.fc{
    display:flex;
    gap:20px;
    align-items:flex-start;
    flex-wrap:wrap;
    font-family: var(--wp--preset--font-family--fira-sans);
    isolation:isolate;
    justify-content: space-between;
}
.fc, .fc *{
    box-sizing:border-box;
    font-family: 'Fira Sans', sans-serif !important;
}
.fc .wpcf7,
.fc .wpcf7 form,
.fc .wpcf7-form,
.fc .wpcf7-form p,
.fc .wpcf7-form span{
    margin:0;
}
.fc .wpcf7,
.fc .wpcf7 form,
.fc .wpcf7-form-control-wrap{
    display:block;
    width:100%;
}
.fc input,
.fc select,
.fc textarea,
.fc button{
    font:inherit;
}
.fc input,
.fc select,
.fc textarea{
    margin:0;
}
.fc button{
    margin:0;
    box-shadow:none;
}

.fc-card{
    box-sizing:border-box;
    max-width:785px;
    background:linear-gradient(to right,#ECF2FF,#E4E1FF);
    border-radius:40px;
    padding: 55px 48px;
}
.fc-title{
    font-size:40px;
    line-height: 1;
    font-weight:500;
    color:#000;
    font-family: var(--wp--preset--font-family--taylor-sans);
}
.fc-route{
    display: flex;
    flex-wrap:wrap;
    gap:11px;
    margin-bottom:24px;
    width: 100%;
}
.fc-route > div {
    width: calc(100% / 2 - 11px);
    position: relative;
}
.fc-route > div input.fc-input {
    max-width: 100%;
    width: 100%;
}
.fc-tabs{
    display:inline-flex;
    background:#fff;
    border-radius:50px;
    gap:0
}
.fc-tab{
    padding:4px 40px;
    border:none;
    border-radius:50px;
    background:transparent;
    color:#000;
    font-size:16px;
    font-weight:500;
    cursor:pointer;
    transition:all .15s
}
.fc-tab.fc-tab--on{
    background:#4A1DFF;
    color:#fff
}
.fc-panel-title{
    font-size:20px;
    font-weight:400;
    color:rgba(4,0,76,0.6);
    margin-bottom:27px;
    line-height:100%;
    font-family: var(--wp--preset--font-family--taylor-sans);
    display: flex;
    align-items: center;
    gap: 12px;
}
.fc-add-form{
    margin-bottom:20px
}
.fc-add-inputs{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:center;
    gap: 10px;
    margin-bottom: 24px;
}
.fc .fc-input,
.fc input.fc-input,
.fc select.fc-input,
.fc textarea.fc-input{
    height:56px !important;
    min-height:56px;
    padding:12px 21px !important;
    border:1px solid rgba(44,50,255,0.3) !important;
    border-radius:10px !important;
    font-size:14px !important;
    line-height:1.2 !important;
    color:#1f2937 !important;
    box-sizing:border-box;
    outline:none !important;
    transition:border-color .15s;
    background:#fff !important;
    box-shadow:none !important;
    text-transform:none !important;
    letter-spacing:normal !important;
    appearance: textfield;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
}
.fc select.fc-input {
    color: rgba(4,0,76,0.6) !important;
}
.fc .fc-add-inputs > * {
    width: calc(100% / 3 - 10px);
}
.fc .fc-input:focus,
.fc input.fc-input:focus,
.fc select.fc-input:focus,
.fc textarea.fc-input:focus{
    border-color:#4A1DFF !important
}
.fc textarea.fc-input,
.fc .fc-textarea{
    min-height:56px !important;
    height: auto !important;
}
.fc .wpcf7-form-control-wrap > .fc-input{
    max-width:100% !important;
}
.fc-table-wrap{
    overflow:auto;
    border-radius:20px;
    background:#fff;
    padding:0 10px 35px;
    max-height:188px;
    box-sizing:border-box
}
.fc-result .fc-card{
    background: transparent;
    padding: 0;
}
.fc-result {
    max-width: 554px;
    width: calc(100% - 785px - 20px);
    min-width: 375px;
}
.fc-summary-wrap{
    background:#E6E6FF;
    padding: 50px 56px 80px;
    border-radius:40px 40px 0 0;
    margin-bottom: -40px;
}
.fc .fc-table{
    width:100%;
    border-collapse:collapse;
    font-size:13px;
    margin:0 !important;
    background:transparent !important
}
.fc .fc-table th{
    text-align:left;
    padding:13px 8px 11px;
    color:rgba(4,0,76,0.6);
    font-weight:400;
    border-bottom:1px solid #e5e7eb;
    white-space:nowrap;
    font-size:14px;
    line-height:100%
}
.fc .fc-table td{
    padding:10px 8px;
    border-top:1px solid #E8EAFF;
    vertical-align:middle;
    color:rgba(4,0,76,0.6)
}
.fc .fc-table--sm th,.fc .fc-table--sm td{
    padding:6px 8px;
    font-size:12px
}
.fc-qty{
    display:flex;
    align-items:center;
    gap:4px
}
.fc-qty-btn{
    width:26px;
    height:26px;
    border:1.5px solid #dde3f0;
    border-radius:6px;
    background:#fff;
    cursor:pointer;
    font-size:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    line-height:1
}
.fc-qty-val{
    min-width:22px;
    text-align:center;
    font-size:13px;
    font-weight:600
}
.fc-act-btn{
    border:none;
    background:none;
    cursor:pointer;
    padding:3px 5px;
    font-size: 20px;
    transition:color .15s;
    width: 30px;
    display: inline-flex;
    font-size: 20px !important;
    align-items: center;
    justify-content: center;
}
.fc-act-btn:hover{
    color:#4A1DFF
}
.fc-act-btn--del:hover{
    color:#ef4444
}
.fc-act-btn--save{
    color:#16a34a;
    font-size:16px
}
.fc-act-btn--save:hover{
    color:#15803d
}
.fc-inline-inputs{
    display:flex;
    gap:4px;
    flex-wrap:nowrap
}
.fc-inline-inputs input.fc-input {
    padding: 12px 12px !important;
}
.fc-input--sm{
    padding:5px 7px;
    font-size:12px;
    width:60px;
    min-width:0;
    height:auto
}
.fc-footer{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap: 27px;
    margin-top:30px;
}
.fc .fc-btn-primary,
.fc button.fc-btn-primary,
.fc input.fc-btn-primary{
    max-width: 225px !important;
    min-height:50px !important;
    height:50px !important;
    background:#04004C !important;
    color:#fff !important;
    border:none !important;
    border-radius:50px !important;
    padding:15px !important;
    font-size:14px !important;
    font-weight:600 !important;
    text-decoration:none !important;
    text-transform:none !important;
    box-shadow:none !important;
    cursor:pointer !important;
    transition:background .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.fc button.fc-btn-primary.js-calc {
    max-width: calc(100% - 182px - 27px) !important;
    background: #4A1DFF;
}
.fc .fc-btn-primary:hover,
.fc button.fc-btn-primary:hover,
.fc input.fc-btn-primary:hover{
    background:#1e2d58 !important;
}
.fc button.fc-btn-primary.js-calc:hover {
    background: #E9FF7A !important;
    color: #04004C !important;
}
.fc .fc-btn-ghost,
.fc button.fc-btn-ghost,
.fc input.fc-btn-ghost{
    width:182px !important;
    min-height:50px !important;
    height:50px !important;
    background:#fff !important;
    color:#000 !important;
    border:1px solid #fff !important;
    border-radius:50px !important;
    padding:15px !important;
    font-size:16px !important;
    font-weight:500 !important;
    text-decoration:none !important;
    text-transform:none !important;
    box-shadow:none !important;
    cursor:pointer !important;
    transition:all .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.fc .fc-btn-ghost:hover,
.fc button.fc-btn-ghost:hover,
.fc input.fc-btn-ghost:hover{
    background:#edf0f7 !important;
}
.fc .fc-btn-add,
.fc button.fc-btn-add,
.fc input.fc-btn-add{
    min-height:50px !important;
    height:50px !important;
    background:#4A1DFF !important;
    color:#fff !important;
    border:none !important;
    border-radius:50px !important;
    padding:15px !important;
    font-size:16px !important;
    font-weight:500 !important;
    text-decoration:none !important;
    text-transform:none !important;
    box-shadow:none !important;
    cursor:pointer !important;
    white-space:nowrap !important;
    transition:background .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.fc .fc-btn-add:hover,
.fc button.fc-btn-add:hover,
.fc input.fc-btn-add:hover{
    background: #E9FF7A !important;
    color: #000 !important;
}
.fc-btn-add--save{
    background:#2563eb
}
.fc-btn-add--save:hover{
    background:#1d4ed8
}
.fc-summary-row{
    display:flex;
    gap:6px;
    margin-bottom:11px;
    font-size:14px;
    align-items:baseline;
    line-height: 1;
    color: #000;
}
.fc-summary .fc-table-wrap {
    margin-top: 32px;
}
.fc-lbl{
    font-weight:500;
    font-size:16px;
    line-height:20px;
    color:#000;
    margin-bottom:11px
}
.fc-price-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:35px 0 8px;
    padding:0 0 10px;
    flex-wrap:wrap;
    gap:10px;
    border-bottom:2px solid #fff
}
.fc-price-label{
    font-weight:500;
    font-size:24px;
    line-height:20px;
    color:#000;
}
.fc-price{
    font-weight:500;
    font-size:24px;
    line-height:20px;
    color:#000
}
.fc-includes{
    font-weight:400;
    font-size:14px;
    line-height:100%;
    color:#000;
    gap: 24px;
    justify-content: space-between;
    display: flex;
    flex-wrap: wrap;
}
.fc-includes span {
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    color: #000;
}
.fc-includes ul{
    margin:0;
    padding:0;
    list-style-type:none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    display: inline-flex;
}
.fc-includes ul li {
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    color: #000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.fc-includes p {
    font-weight: 500;
    font-size: 13px;
    line-height: 100%;
    color: #000;
}
.fc-custom-msg{
    --fc-msg-radius: 40px;
    --fc-msg-cut-size: 68px;
    --fc-msg-cut-top: -8px;
    --fc-msg-cut-right: 40px;
    background:#04004C;
    border-radius: 16px;
    padding: 24px 61px 24px 30px;
    margin:0;
    position: relative;
    overflow:visible;
}
.fc-custom-msg p {
    font-size:16px;
    font-weight:400;
    color:#fff;
    line-height:19px;
}
.fc-custom-msg::after{
    content:"";
    position:absolute;
    top: 0px;
    right: 0px;
    width: 66px;
    height: 70px;
    background: url('/wp-content/plugins/freight-calculator/images/form-after.svg');
    pointer-events:none;
}
.fc-form-title{
    font-weight:500;
    font-size:40px;
    line-height: 1;
    color:#fff;
    margin:0 0 30px;
    text-align:center;
    font-family: var(--wp--preset--font-family--taylor-sans);
}
.fc-form-fields{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:space-between;
    margin-bottom:10px;
}
.fc .fc-form-fields > .wpcf7-form-control-wrap {
    width:calc(100% / 3 - 10px);
    max-width:100%;
    display:block;
    position: relative;
}
.fc .fc-form-fields > .wpcf7-form-control-wrap:nth-last-child(-n+2){
    width:calc(100% / 2 - 10px)
}
.fc .fc-form-wrap textarea{
    resize:vertical;
    margin-bottom:10px;
    width:100%;
    max-width:100%
}
.fc .fc-form-wrap input:not([type="checkbox"]),
.fc .fc-form-wrap textarea{
    width:100%;
    max-width:100%;
}
.fc-form-wrap {
    background: #4A1DFF;
    padding: 55px 32px 47px;
    border-radius: 40px;
}
.fc-form-row {
    display:flex;
    gap:10px;
    justify-content:space-between;
    align-items:center;
}
.fc-form-row .agreement-wrap a {
    color: #fff;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
}
.fc-btn-submit{
    width:100%;
    padding:15px;
    font-size:16px;
    border-radius:50px
}
.fc-success{
    background:#d1fae5;
    border:1px solid #6ee7b7;
    border-radius:8px;
    padding:12px 16px;
    font-size:14px;
    color:#065f46;
    margin-top:12px
}
.fc .fc-input.fc-err,
.fc input.fc-input.fc-err,
.fc select.fc-input.fc-err,
.fc textarea.fc-input.fc-err{
    border:1px solid #ef4444 !important
}
.fc-row-route{
    font-size:10px;
    color:#9ca3af;
    margin-bottom:2px;
    white-space:nowrap
}

.fc-calc .fc-card {
    width: 785px;
}

/* Suggest dropdown */
.fc-suggest-drop{
    position:absolute;
    top:calc(100% + 3px);
    left:0;
    right:0;
    background:#fff;
    border:1.5px solid #dde3f0;
    border-radius:8px;
    box-shadow:0 8px 24px rgba(0,0,0,.13);
    z-index:9999;
    overflow:hidden;
    max-height:260px;
    overflow-y:auto
}
.fc-suggest-item{
    padding:9px 13px;
    cursor:pointer;
    border-bottom:1px solid #f3f4f6;
    transition:background .1s
}
.fc-suggest-item:last-child{
    border-bottom:none
}
.fc-suggest-item:hover{
    background:#f0f5ff
}
.fc-suggest-name{
    display:block;
    font-size:13px;
    font-weight:600;
    color:#1f2937
}
.fc-suggest-desc{
    display:block;
    font-size:11px;
    color:#6b7280;
    margin-top:1px
}

/* Confirm popup */
.fc-confirm-popup{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999
}
.fc-confirm-content{
    background:#04004C;
    border-radius:20px;
    padding:32px;
    max-width:387px;
    width:90%;
    box-sizing: border-box;
    position: relative;
}
.fc-confirm-content::after {
    content: '';
    display: block;
    background: url('/wp-content/plugins/freight-calculator/images/Image.svg') center no-repeat;
    position: absolute;
    top: -43px;
    right: 0;
    width: 355px;
    height: 70px;
    z-index: -1;
}
.fc-confirm-message{
    margin-bottom:25px;
    font-weight: 400;
    font-size: 18px;
    line-height: 20px;
    color: #fff;
}
.fc-confirm-buttons{
    display:flex;
    flex-wrap: wrap;
    gap:10px;
    justify-content:space-between;
}
.js-confirm-cancel, 
.js-confirm-accept {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #000;
    padding: 6.5px;
    height: 33px;
    border-radius: 50px;
    text-align: center;
    border: 0;
    cursor: pointer;
    
}
.js-confirm-cancel {
    width: 134px;
    background: #fff;
}
.js-confirm-accept {
    width: 179px;
    background: #E9FF7A;
}
.js-confirm-cancel:hover, 
.js-confirm-accept:hover {
    background: #4A1DFF;
    color: #fff;
}

/* Scrollbar */
.fc-table-wrap::-webkit-scrollbar{
    height:18px;
    width:18px
}
.fc-table-wrap::-webkit-scrollbar-track{
    background:#E3E3E3;
    border-radius:50px
}
.fc-table-wrap::-webkit-scrollbar-thumb{
    background:#4A1DFF;
    border-radius:50px
}
.fc-table-wrap::-webkit-scrollbar-thumb:hover{
    background:#0a0099
}
.fc-table-wrap{
    scrollbar-width:thin;
    scrollbar-color:#4A1DFF #E3E3E3
}

.fc-custom-msg-icon {
    position: absolute;
    top: -3px;
    right: -7px;
    width: 52px;
    height: 52px;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:2;
}
.fc-custom-msg-icon svg{
    width:100%;
    height:100%;
}
.js-r-custom {
    position: relative;
}
.fc-overlimit-notice {
    background: #04004C;
    border-radius: 12px;
    padding: 14px 20px;
    margin-top: 16px;
}
.fc-overlimit-notice p {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

body .fc-result .wpcf7-not-valid-tip {
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 5px 0 0 5px;
}

body .fc-result .wpcf7 form .wpcf7-response-output {
    border: 0;
    padding: 0;
    margin: 20px 0 0;
    line-height: 1;
}

@media(max-width:1180px){
    .fc-calc .fc-card,
    .fc-calc {
        width: 100%;
    }
    .fc-result {
        max-width: 100%;
        width: 100%;
        min-width: 100%;
    }
    .fc-card {
        max-width: 100%;
    }
}

@media(max-width:580px){
    .fc-calc,.fc-result{
        width:100%
    }
    .fc-add-inputs{
        gap:10px
    }
    .fc-card,
    .fc-summary-wrap {
        padding:50px 20px
    }
    .fc .fc-form-fields input,.fc .fc-form-fields input:nth-last-child(-n+2),.fc .fc-form-fields .wpcf7-form-control-wrap,.fc .fc-form-fields .wpcf7-form-control-wrap:nth-last-child(-n+2),.fc .fc-btn-ghost,.fc .fc-btn-primary{
        width:100%
    }
    .fc .fc-input{
        max-width:100%
    }
    .fc .fc-add-inputs > * {
        width: calc(100% / 2 - 10px);
    }
    .fc button.fc-btn-primary.js-calc {
        max-width: 100% !important;
    }
    .fc-form-row {
        flex-direction: column;
        gap: 30px;
    }
    .fc-form-title {
        font-size: 27px;
    }
}
