/* --- Poppins font used inside popup and buttons (enqueue from PHP) --- */

/* General popup */
.pc-calculator-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.6);
    z-index: 2147483646;
    padding: 20px;
    overflow-y: auto;
}
.pc-calculator-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 900px;
    
    max-height: 85%;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}
.pc-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    cursor: pointer;
    color: #444;
}

/* Popup header */
.pc-calculator-content h2 {
    font-family: Poppins, sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
    border-bottom: 2px solid #f37226;
    padding-bottom: 10px;
}

/* Form labels & inputs */
#pc-calculator-form label {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 500;
    margin: 12px 0 6px;
    color: #444;
}
#pc-calculator-form input,
#pc-calculator-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}
#pc-calculator-form input:focus,
#pc-calculator-form select:focus {
    border-color: #f37226;
    outline: none;
    box-shadow: 0 0 6px rgba(243, 114, 38, 0.2);
}

/* Submit button (popup) */
#pc-calculator-form button {
    margin-top: 18px;
    width: 100%;
    background: #f37226;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: Poppins, sans-serif;
    transition: background 0.3s ease, transform 0.2s ease;
}
#pc-calculator-form button:hover {
    background: #d95e1c;
    transform: translateY(-2px);
}

/* Results section */
#pc-result {
    margin-top: 25px;
    padding: 15px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #eee;
    font-family: Poppins, sans-serif;
    display: none;
}
#pc-result h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}
#pc-result p { font-size: 14px; color: #555; margin-bottom: 10px; }

/* Breakdown table */
.pc-breakdown-container {
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}
.pc-breakdown {
    width:100%;
    border-collapse: collapse;
    font-family: Poppins, sans-serif;
    font-size: 15px;
}
.pc-breakdown th {
    padding: 12px;
    background: #f37226;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}
.pc-breakdown td {
    padding: 10px;
    font-size: 14px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}
/* hover effect for rows */
.pc-breakdown tbody tr:hover td { background: #fff7f1; }

/* Responsive */
@media (max-width: 600px) {


    .pc-calculator-content { width: 95%; padding: 15px; }
    .pc-breakdown th, .pc-breakdown td { font-size: 13px; padding: 8px; }
}

/* --- Animated Shortcode Button (from v3.2) --- */
.pc-animated-btn {
    position: relative;
    overflow: hidden;
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-family: Poppins, sans-serif;
    cursor: pointer;
    z-index: 1;
    transition: color 0.4s ease;
    border-radius: 8px;
}
.pc-animated-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: -1;
    transition: left 0.4s ease;
}
.pc-animated-btn:hover::before { left: 0; }
.pc-animated-btn:not(:hover)::before { left: 100%; transition: left 0.4s ease; }
.pc-animated-btn:hover { color: #000; }

/* --- Floating wrapper & button (v2.9) --- */
.pc-float-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}
.pc-float-button {
    pointer-events: auto;
    background: #000 !important;
    color: #fff !important;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    border: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    font-family: Poppins, sans-serif;
}
.pc-float-button:hover { transform: translateY(-3px); }

/* Bubble tooltip */
.pc-float-bubble {
    pointer-events: none;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateX(12px) translateY(6px) scale(.98);
    transform-origin: right center;
    transition: opacity .28s ease, transform .28s ease;
    max-width: 220px;
    white-space: normal;
}
.pc-float-bubble.show {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

/* small screens for float */
@media (max-width: 600px) {
    .pc-float-wrapper { bottom: 16px; right: 12px; }
    .pc-float-bubble { max-width: 160px; font-size: 13px; padding: 8px 12px; }
    .pc-float-button { padding: 10px 14px; font-size: 14px; }
}