/* =============================================================================
   Pricing Calculator — pricing-calculator.css
   Plugin: Pricing Calculator v1.0.0
   ============================================================================= */

.pricecalc-wrap {
    --pc-green:         #16A34A;
    --pc-green-light:   #e8f5ed;
    --pc-green-mid:     #2ea66b;
    --pc-green-dark:    #155e38;
    --pc-orange:        #e07020;
    --pc-orange-light:  #fef3e8;
    --pc-text:          #1c2b3a;
    --pc-text-muted:    #6b7c8d;
    --pc-border:        #e3e8ee;
    --pc-bg:            #f4f6f9;
    --pc-card-bg:       #ffffff;
    --pc-radius:        16px;
    --pc-radius-sm:     8px;
    --pc-shadow:        0 2px 16px rgba(28, 43, 58, 0.07);
    --pc-shadow-lg:     0 8px 32px rgba(28, 43, 58, 0.12);

    font-size: 15px;
    color: var(--pc-text);
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px 32px;
    box-sizing: border-box;
}

.pricecalc-wrap *,
.pricecalc-wrap *::before,
.pricecalc-wrap *::after {
    box-sizing: inherit;
}

.pricecalc-card {
    background: var(--pc-card-bg);
    border-radius: var(--pc-radius);
    box-shadow: var(--pc-shadow);
    padding: 28px 32px 20px;
    margin-bottom: 20px;
    border: 1px solid var(--pc-border);
}

.pricecalc-card_title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--pc-text);
    margin: 0 0 24px;
    padding: 0;
}

.pricecalc-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--pc-orange);
    flex-shrink: 0;
}

.pricecalc-card_title-sub {
    font-weight: 500;
    color: var(--pc-text-muted);
}

.pricecalc-table {
    width: 100%;
}

.pricecalc-row {
    display: grid;
    grid-template-columns: 2.4fr 1.4fr 1.5fr 1.5fr;
    align-items: center;
    gap: 0;
    transition: background 0.15s ease;
}

/* col Headings*/
.pc-col {
    padding: 14px 12px;
}

.pc-col--type  { padding-left: 0; }
.pc-col--qty   { text-align: center; }
.pc-col--payg  { text-align: right; }
.pc-col--res   { text-align: right; }

/* header Row */
.pricecalc-row--head {
    border-bottom: 2px solid var(--pc-border);
    margin-bottom: 4px;
}

.pricecalc-row--head .pc-col {
    padding-bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--pc-text-muted);
}

.pricecalc-row--head .pc-col--type { color: var(--pc-text-muted); }

/* header Badges */
.pricecalc-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.pricecalc-badge--payg {
    background: var(--pc-orange-light);
    color: #92400E;
    border: 1.5px solid #f5c49a;
}

.pricecalc-badge--res {
    background: var(--pc-green-light);
    color: #166534;
    border: 1.5px solid #9dd4b6;
}

.pricecalc-row--head small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--pc-text-muted);
    margin-top: 2px;
}

/* tablee rows  */
.pricecalc-row--body {
    border-bottom: 1px solid var(--pc-border);
}

.pricecalc-row--body:last-child {
    border-bottom: none;
}


.pricecalc-row--body .pc-col--type strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--pc-text);
    margin-bottom: 3px;
}

.pricecalc-row--body .pc-col--type span {
    display: block;
    font-size: 12.5px;
    color: var(--pc-text-muted);
}

.pricecalc-row--body .pc-col--payg strong,
.pricecalc-row--body .pc-col--res  strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.pricecalc-row--body .pc-col--payg small,
.pricecalc-row--body .pc-col--res  small {
    font-size: 12px;
    color: var(--pc-text-muted);
}

/* Price colours */
.pricecalc-price--payg { color: var(--pc-text); }
.pricecalc-price--res  { color: var(--pc-green) !important; }


.pricecalc-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--pc-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.pricecalc-stepper_btn {
    background: #F8F8FC;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 36px;
    flex-shrink: 0;
    outline: none;
}

.pricecalc-stepper_btn:hover {
    background: #fef3e8;
}


.pricecalc-stepper:focus-within {
    border: 1px solid #e07020;
}

.pricecalc-stepper_btn:focus-visible {
    box-shadow: 0 0 0 2px var(--pc-green-mid) inset;
}

.pricecalc-stepper_input {
    width: 42px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    padding: 6px 0;
    -moz-appearance: textfield;
    outline: none;
    background: #F8F8FC;
    cursor: default;
}

.pricecalc-stepper_input::-webkit-inner-spin-button,
.pricecalc-stepper_input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Allow direct typing */
.pricecalc-stepper_input:focus {
    cursor: text;
}

/* total part  */
.pricecalc-tfoot {
    border-top: 2px solid var(--pc-border);
    margin-top: 4px;
    padding: 10px;
    background-color: #F8F8FC;
}


.pricecalc-row--totals .pc-col--type strong {
    font-size: 16px;
    font-weight: 700;
}

.pricecalc-row--totals .pc-col--qty {
    font-size: 14px;
    color: var(--pc-text-muted);
    font-weight: 500;
    text-align: center;
}

.pricecalc-row--totals .pc-col--payg strong,
.pricecalc-row--totals .pc-col--res  strong {
    font-size: 20px;
    font-weight: 800;
}

.pricecalc-row--totals .pc-col--res strong {
    color: var(--pc-green);
}


.pricecalc-avg-label {
    font-size: 13px;
    color: var(--pc-text-muted);
}

.pricecalc-row--avg .pc-col--payg span,
.pricecalc-row--avg .pc-col--res  span {
    font-size: 14px;
    font-weight: 600;
    color: var(--pc-text-muted);
}

.pricecalc-row--avg .pc-col--res span {
    color: var(--pc-green);
}

/* table ui  footer  */
.pricecalc-footnotes {
    margin: 18px 0 0;
    padding-left: 18px;
    list-style: decimal;
}

.pricecalc-footnotes li {
    font-size: 12px;
    color: var(--pc-text-muted);
    line-height: 1.6;
    margin-bottom: 4px;
}


.pricecalc-savings {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #e8f5ed 0%, #d0eedf 100%);
    border: 1.5px solid #9dd4b6;
    border-radius: var(--pc-radius);
    padding: 22px 28px;
    transition: opacity 0.3s ease;
}

.pricecalc-savings.is-hidden {
    opacity: 0.35;
    pointer-events: none;
}

.pricecalc-savings_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--pc-green);
    border-radius: var(--pc-radius-sm);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26, 122, 74, 0.3);
}

.pricecalc-savings_body {
    flex: 1;
    min-width: 0;
    color: var(--pc-green);
}

.pricecalc-savings_label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--pc-green-dark);
    margin: 0 0 4px;
}

.pricecalc-savings_amount {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 2px;
    line-height: 1.1;
    transition: all 0.25s ease;
}

.pricecalc-savings_sub {
    font-size: 13px;
    color: var(--pc-green);
    margin: 0;
}

.pricecalc-savings_badge {
    text-align: right;
    flex-shrink: 0;
}

.pricecalc-savings_badge span {
    display: block;
    font-size: 40px;
    font-weight: 900;
    color: var(--pc-green);
    line-height: 1;
    transition: all 0.25s ease;
}

.pricecalc-savings_badge small {
    font-size: 13px;
    font-weight: 600;
    color: var(--pc-green);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pc-updating {
    animation: pc-pulse 0.28s ease-out;
}

.pricecalc-tfoot .pc-col{
    padding: 6px 0px;
}

/* responsive  */
@media (max-width: 680px) {
    .pricecalc-card {
        padding: 20px 16px 16px;
    }

    .pricecalc-row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 0;
    }

    .pc-col--type {
        grid-column: 1 / 3;
        padding-bottom: 0;
    }

    .pc-col--qty {
        grid-column: 1 / 3;
        text-align: left;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .pc-col--payg,
    .pc-col--res {
        text-align: left;
    }

    .pricecalc-row--head .pc-col--type {
        display: none;
    }

    .pricecalc-row--head {
        grid-template-columns: 1fr 1fr;
    }

    .pricecalc-row--head .pc-col--qty  { display: none; }
    .pricecalc-row--head .pc-col--payg { grid-column: 1; }
    .pricecalc-row--head .pc-col--res  { grid-column: 2; }

    .pricecalc-savings {
        flex-wrap: wrap;
        gap: 14px;
    }

    .pricecalc-savings_badge span {
        font-size: 30px;
    }
}


/* capcity estimator  //////////////////////////////////////////////////////////////////*/

.cucalc-wrap {
    --cc-green:         #16A34A;
    --cc-green-light:   #F0FDF4;
    --cc-green-mid:     #2ea66b;
    --cc-green-dark:    #155e38;
    --cc-orange:        #e07020;
    --cc-orange-light:  #fef3e8;
    --cc-text:          #1c2b3a;
    --cc-text-muted:    #6b7c8d;
    --cc-border:        #e3e8ee;
    --cc-bg:            #f4f6f9;
    --cc-card-bg:       #ffffff;
    --cc-radius:        16px;
    --cc-radius-sm:     8px;
    --cc-shadow:        0 2px 16px rgba(28, 43, 58, 0.07);

    font-size:   15px;
    color:       var(--cc-text);
    max-width:   1080px;
    margin:      0 auto;
    padding:     0 16px 32px;
    box-sizing:  border-box;
}

.cucalc-wrap *,
.cucalc-wrap *::before,
.cucalc-wrap *::after {
    box-sizing: inherit;
}


.cucalc-card {
    background:    var(--cc-card-bg);
    border-radius: var(--cc-radius);
    box-shadow:    var(--cc-shadow);
    padding:       28px 32px 20px;
    margin-bottom: 20px;
    border:        1px solid var(--cc-border);
}

.cucc--session { text-align: right; }

.cucalc-badge--session {
    background: #f0f0f5;
    color:      #444;
    border:     1.5px solid #d0d0e0;
}

.cucalc-row--body .cucc--session strong {
    display:     block;
    font-size:   15px;
    font-weight: 550;
    color:       var(--cc-green);
    margin-bottom: 2px;
}

.cucalc-row--subtotal .cucc--session strong {
    font-size:   20px;
    font-weight: 550;
    color:       var(--cc-text);
}

.cucalc-row--overhead .cucc--session .cucalc-price--total {
    font-size:   16px;
    font-weight: 700;
    color:       var(--cc-green);
}

.cucalc-card_title {
    display:     flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
    align-items: center;
    gap:         10px;
    font-size:   18px;
    color:       var(--cc-text);
    margin:      0 0 24px;
    padding:     0;
    position: relative;
}
.cucalc-card_title sup {
  display: inline-block;
  position: absolute;
  top: 20%;
  left: -10px;
  font-size: 0.6em;
  position: relative;
  top: -0.45em;   /* move upward */
  margin-left: 2px;
}

.cucalc-table { width: 100%;margin-bottom: 20px; }

.cucalc-row {
    display:               grid;
    grid-template-columns: 2.4fr 1.4fr 1.2fr 1.6fr;
    align-items:           center;
    transition:            background 0.15s ease;
    padding: 0 16px;
}

.cucc          { padding: 14px 12px; }
.cucc--type    { padding-left: 0; }
.cucc--qty     { text-align: end; }
.cucc--cu      { text-align: right; }


.cucalc-row--head {
    border-bottom: 2px solid var(--cc-border);
    margin-bottom: 4px;
}
.cucalc-row--head .cucc {
    padding-bottom: 12px;
    font-size:      11px;
    font-weight:    700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color:          var(--cc-text-muted);
}

.cucalc-badge {
    display:        inline-block;
    padding:        5px 12px;
    border-radius:  20px;
    font-size:      11px;
    font-weight:    700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.cucalc-badge--cu {
    background: var(--cc-green-light);
    color:      #166534;
    border:     1.5px solid #9dd4b6;
}


.cucalc-row--body {
    border-bottom: 1px solid var(--cc-border);
}
.cucalc-row--body:last-child {
    border-bottom: none;
}
.cucalc-row--body .cucc--type strong {
    display:       block;
    font-size:     15px;
    font-weight:   600;
    color:         var(--cc-text);
    margin-bottom: 3px;
}
.cucalc-row--body .cucc--type span {
    display:   block;
    font-size: 12.5px;
    color:     var(--cc-text-muted);
}
.cucalc-row--body .cucc--cu strong {
    display:       block;
    font-size:     15px;
    font-weight:   550;
    color:         var(--cc-green);
    margin-bottom: 2px;
}
.cucalc-row--body .cucc--cu small {
    display:   block;
    font-size: 12px;
    color:     var(--cc-text-muted);
}


.cucalc-stepper {
    display:      inline-flex;
    align-items:  center;
    border:       1.5px solid var(--cc-border);
    border-radius: 10px;
    overflow:     hidden;
    background:   #fff;
    box-shadow:   0 1px 4px rgba(0, 0, 0, 0.06);
    transition:   border-color 0.15s;
}
.cucalc-stepper:focus-within {
    border-color: var(--cc-green);
}
.cucalc-stepper_btn {
    background: #f8f8fc;
    border:     none;
    cursor:     pointer;
    display:    flex;
    align-items: center;
    justify-content: center;
    width:      32px;
    height:     36px;
    flex-shrink: 0;
    outline:    none;
    color:      var(--cc-text-muted);
    transition: background 0.15s, color 0.15s;
}
.cucalc-stepper_btn:hover {
    background: var(--cc-green-light);
    color:      var(--cc-green);
}
.cucalc-stepper_btn:focus-visible {
    box-shadow: 0 0 0 2px var(--cc-green-mid) inset;
}
.cucalc-stepper_input {
    width:        42px;
    border:       none;
    text-align:   center;
    font-size:    15px;
    font-weight:  600;
    font-family: inherit;
    padding:      6px 0;
    background:   #f8f8fc;
    outline:      none;
    cursor:       default;
    -moz-appearance: textfield;
}
.cucalc-stepper_input::-webkit-inner-spin-button,
.cucalc-stepper_input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cucalc-stepper_input:focus { cursor: text; }


.cucalc-tfoot {
    border-top:       2px solid var(--cc-border);
    margin-top:       4px;
    border-radius:    0 0 var(--cc-radius-sm) var(--cc-radius-sm);
}

.cucalc-row--subtotal{
    background-color: #F0FDF4;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 10px;
}
.cucalc-row--subtotal .cucc--type strong {
    font-size:   16px;
    font-weight: 700;
}
.cucalc-row--subtotal .cucc--qty {
    font-size:   16px;
    color:       var(--cc-text-muted);
    font-weight: 500;
    text-align:  end;
}
.cucalc-row--subtotal .cucc--cu strong {
    font-size:   20px;
    font-weight: 700;
    color:       var(--cc-text);
}

.cucalc-overhead-label {
    display:     flex;
    align-items: center;
    gap:         6px;
    font-size:   14px;
    color:       var(--cc-text);
    font-weight: 500;
    cursor:      default;
    flex-wrap:   wrap;
}
.cucalc-overhead-label sup {
    font-size: 10px;
    color:     var(--cc-text-muted);
}
.cucalc-overhead-input {
    width:        48px;
    padding:      4px 6px;
    border:       1.5px solid var(--cc-border);
    border-radius: 6px;
    font-size:    14px;
    font-weight:  600;
    color:        var(--cc-text);
    text-align:   center;
    background:   #fff;
    outline:      none;
    -moz-appearance: textfield;
    transition:   border-color 0.15s;
}
.cucalc-overhead-input:focus {
    border-color: var(--cc-green);
}
.cucalc-overhead-input::-webkit-inner-spin-button,
.cucalc-overhead-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.cucalc-row--overhead .cucc--cu .cucalc-price--total {
    font-size:   16px;
    font-weight: 700;
    color:       var(--cc-green);
}

#cucalc-total-users{
    font-weight: 600;
}


.cucalc-tfoot .cucc { padding: 8px 12px; }
.cucalc-tfoot .cucc--type { padding-left: 0; }

@keyframes cucalc-pulse {
    0%   { opacity: 1;    transform: scale(1);    }
    40%  { opacity: 0.55; transform: scale(0.97); }
    100% { opacity: 1;    transform: scale(1);    }
}
.cucalc-updating {
    animation: cucalc-pulse 0.3s ease-out;
}


.cucalc-footnotes {
    margin:       18px 0 0;
    padding-left: 18px;
    list-style:   decimal;
}
.cucalc-footnotes li {
    font-size:     12px;
    color:         var(--cc-text-muted);
    line-height:   1.6;
    margin-bottom: 4px;
}
.cucalc-footnotes a {
    color:           #00B294;
    text-decoration: underline;
}
.cucalc-footnotes a:hover {
    color: #00B294;
}

.cucalc-recommendation {
    display:       flex;
    align-items:   center;
    gap:           16px;
    background:    #F5F5F7;
    border-radius: var(--cc-radius);
    padding:       20px 24px;
    border : 1px solid #E8E8F0;
}
.cucalc-recommendation_icon {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           36px;
    height:          36px;
    background:      var(--cc-green);
    border-radius:   var(--cc-radius-sm);
    flex-shrink:     0;
}
.cucalc-recommendation_body {
    flex:     1;
    min-width: 0;
}
.cucalc-recommendation_body > p:first-child {
    font-size:   15px;
    font-weight: 600;
    color:       var(--cc-text);
    margin:      0 0 3px;
}
.cucalc-sku-tag {
    display:       inline-block;
    font-size:     15px;
    font-weight:   800;
    color:         var(--cc-green);
    border-radius: 5px;
}
.cucalc-recommendation_sub {
    font-size:  13px;
    color:      var(--cc-green-dark);
    margin:     0;
    opacity:    0.85;
}

@media (max-width: 680px) {
    .cucalc-card {
        padding: 20px 16px 16px;
    }

    /* Stack type full-width, then qty + cu side-by-side */
    .cucalc-row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows:    auto auto auto;
    }

    .cucc--type {
        grid-column:    1 / 3;
        padding-bottom: 0;
    }

    .cucc--qty {
        grid-column: 1;
        text-align:  left;
        padding-top: 8px;
    }

    .cucc--cu {
        grid-column: 2;
        text-align:  right;
        padding-top: 8px;
    }

    .cucalc-row--head .cucc--type { display: none; }
    .cucalc-row--head {
        grid-template-columns: 1fr 1fr;
    }
    .cucalc-row--head .cucc--qty { grid-column: 1; text-align: left; }
    .cucalc-row--head .cucc--cu  { grid-column: 2; }

    .cucalc-recommendation {
        flex-wrap: wrap;
        gap:       12px;
    }

    .cucalc-overhead-label {
        flex-wrap: wrap;
    }

    .cucc--type {
            grid-column: 1 / 3;
            padding-bottom: 0;
        }
    
        .cucc--qty {
            grid-column: 1;
            text-align: left;
            padding-top: 8px;
        }
    
        .cucc--cu {
            grid-column: 2;
            text-align: right;
            padding-top: 8px;
        }
    
        .cucc--session {
            grid-column: 1 / 3;
            text-align: right;
            padding-top: 4px;
        }
    
        .cucalc-row--head .cucc--type {
            display: none;
        }
    
        .cucalc-row--head .cucc--session {
            grid-column: 1 / 3;
        }
    
        .cucalc-row--head {
            grid-template-columns: 1fr 1fr;
        }
}
