/* ============================================================
   FloorPlan Checkout — Frontend Styles
   ============================================================ */

/* ── Preserve Elementor element styling when plugin writes price ── */
#fpc-price,
#fpc-price .elementor-heading-title,
#fpc-price span,
#fpc-price strong,
#fpc-price a {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    font-family: inherit !important;
    text-align: inherit !important;
    text-decoration: none !important;
}

/* ── Shortcode Centering (all screen sizes) ── */
.fpc-price-wrap,
.fpc-toggle-wrap,
.fpc-wishlist-btn,
.fpc-buy-btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.fpc-price-wrap {
    font-weight: 700;
    text-align: center;
    width: 100%;
}
.fpc-shortcode-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

/* ── Currency Toggle ── */
.fpc-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    margin-left: auto;
    margin-right: auto;
}
.fpc-toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}
.fpc-toggle-switch input { opacity: 0; width: 0; height: 0; }
.fpc-toggle-slider {
    position: absolute;
    inset: 0;
    background: #c8c8c8;
    border-radius: 28px;
    transition: background .3s;
}
.fpc-toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px; height: 22px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .3s;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.fpc-toggle-switch input:checked + .fpc-toggle-slider { background: #2271b1; }
.fpc-toggle-switch input:checked + .fpc-toggle-slider::before { transform: translateX(24px); }
.fpc-toggle-label { font-size: 14px; color: #444; }

/* ── Wishlist Button ── */
.fpc-wishlist-btn {
    background: none;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: border-color .2s, color .2s;
    margin-left: auto;
    margin-right: auto;
}
.fpc-wishlist-btn:hover { border-color: #e74c3c; color: #e74c3c; }
.fpc-wishlist-btn.fpc-wishlisted { border-color: #e74c3c; color: #e74c3c; }
.fpc-wishlist-btn.fpc-wishlisted .fpc-heart::before { content: '♥'; }
.fpc-heart { font-size: 18px; }
.fpc-wishlist-nav-count {
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    width: 20px; height: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Buy Button ── */
.fpc-buy-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}
.fpc-buy-btn:hover { background: #1a5c94; transform: translateY(-1px); }
.fpc-buy-btn:active { transform: translateY(0); }

/* ── Modal Overlay ── */
.fpc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fpcFadeIn .2s ease;
}
@keyframes fpcFadeIn { from { opacity:0 } to { opacity:1 } }

/* ── Modal Box ── */
.fpc-modal {
    background: #fff;
    border-radius: 14px;
    padding: 0;
    width: 100%;
    max-width: 460px;
    position: relative;
    box-shadow: 0 12px 48px rgba(0,0,0,.25);
    animation: fpcSlideUp .22s ease;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
}
@keyframes fpcSlideUp { from { transform: translateY(24px); opacity:0 } to { transform: translateY(0); opacity:1 } }

/* ── Modal Header Band (grey) ── */
.fpc-modal-header {
    background: #f0f2f5;
    border-bottom: 2px solid #dde0e5;
    border-radius: 14px 14px 0 0;
    padding: 22px 26px 18px;
}
.fpc-modal-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin: 0 0 5px;
}
.fpc-modal-plan-name {
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #111;
    padding-right: 32px;
    line-height: 1.2;
}
.fpc-modal-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid #dde0e5;
    border-radius: 8px;
    padding: 10px 14px;
    display: inline-flex;
}
.fpc-modal-price-label {
    color: #777;
    font-size: 13px;
    font-weight: 500;
}
.fpc-modal-price-value {
    font-size: 22px;
    font-weight: 700;
    color: #2271b1;
}

/* ── Close Button ── */
.fpc-modal-close {
    position: absolute;
    top: 16px; right: 18px;
    background: #dde0e5;
    border: none;
    border-radius: 50%;
    width: 30px; height: 30px;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
    line-height: 1;
}
.fpc-modal-close:hover { background: #bfc3ca; color: #111; }

/* ── Modal Form Body ── */
.fpc-modal-body {
    padding: 22px 26px 26px;
    background: #fff;
}

/* ── Form fields ── */
.fpc-form-group { margin-bottom: 16px; }
.fpc-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.fpc-form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e2e5ea;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    background: #f7f8fa;
    color: #111;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.fpc-form-group input::placeholder { color: #bbb; }
.fpc-form-group input:focus {
    outline: none;
    border-color: #2271b1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(34,113,177,.1);
}

/* ── Coupon row ── */
.fpc-coupon-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-bottom: 6px;
}
.fpc-coupon-input-wrap { flex: 1; margin-bottom: 0; }
.fpc-btn-secondary {
    background: #f0f2f4;
    border: 2px solid #e2e5ea;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, border-color .2s;
    height: 44px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.fpc-btn-secondary:hover { background: #e0e4e8; border-color: #c8cdd4; }
.fpc-coupon-message {
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 18px;
    font-weight: 500;
}
.fpc-coupon-message.fpc-success { color: #1a7a34; }
.fpc-coupon-message.fpc-error   { color: #c0392b; }

/* ── Total row ── */
.fpc-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    margin: 16px 0 18px;
    padding: 14px 18px;
    background: #f0f2f5;
    border-radius: 9px;
    border: 2px solid #dde0e5;
}
.fpc-total-row strong {
    font-size: 20px;
    color: #2271b1;
}

/* ── Pay button ── */
.fpc-btn-primary {
    width: 100%;
    background: #1a3a5c;
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.fpc-btn-primary:hover { background: #142d48; transform: translateY(-1px); }
.fpc-btn-primary:active { transform: translateY(0); }
.fpc-btn-primary:disabled { background: #999; cursor: not-allowed; transform: none; }
.fpc-error-msg { color: #c0392b; font-size: 13px; margin-top: 10px; min-height: 18px; font-weight: 500; }

/* ── Success Screen ── */
.fpc-success-screen { text-align: center; padding: 32px 24px; }
.fpc-success-icon {
    width: 64px; height: 64px;
    background: #e6f4ea;
    color: #1e7e34;
    border-radius: 50%;
    font-size: 32px;
    line-height: 64px;
    margin: 0 auto 16px;
}
.fpc-success-screen h2 { font-size: 22px; margin-bottom: 8px; }
.fpc-success-msg { color: #555; margin-bottom: 8px; }
.fpc-success-ref { font-size: 13px; color: #777; margin-bottom: 24px; }
.fpc-modal-close-btn { max-width: 200px; margin: 0 auto; }

/* ── Wishlist Page Grid ── */
.fpc-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 16px;
}
.fpc-wishlist-card {
    border: 1.5px solid #e2e4e7;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
}
.fpc-wishlist-card h3 { margin: 0 0 8px; font-size: 17px; }
.fpc-wishlist-card .fpc-wl-price { font-size: 18px; font-weight: 700; color: #2271b1; margin-bottom: 12px; }
.fpc-wishlist-card .fpc-wl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fpc-wishlist-card .fpc-buy-btn { flex:1; text-align:center; font-size:14px; padding:10px 12px; }
.fpc-wishlist-card .fpc-remove-wishlist {
    background: none;
    border: 1.5px solid #e74c3c;
    color: #e74c3c;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: background .2s, color .2s;
}
.fpc-wishlist-card .fpc-remove-wishlist:hover { background: #e74c3c; color: #fff; }
.fpc-wishlist-empty { font-size: 16px; color: #666; text-align: center; padding: 40px 0; }

/* ── Responsive ── */
@media (max-width: 500px) {
    .fpc-modal-header { padding: 16px 18px 14px; }
    .fpc-modal-body { padding: 16px 18px 20px; }
    .fpc-coupon-row { flex-direction: column; }
    .fpc-btn-secondary { width: 100%; }
}

/* ============================================================
   Combined Pricing Block — [plan_pricing]
   Fully fluid — auto-adjusts to any screen size
   ============================================================ */

/* Outer card — fluid, takes full width of Elementor column */
.fpc-pricing-block {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1.5px solid #e2e4e7;
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

/* Toggle row */
.fpc-pb-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}
.fpc-pb-lbl {
    font-size: clamp(12px, 1.5vw, 14px);
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

/* Price */
.fpc-pb-price {
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 700;
    color: #2271b1;
    margin: 0;
    font-size: clamp(18px, 4vw, 28px);
    line-height: 1.15;
    word-break: break-word;
}

/* Action buttons row */
.fpc-pb-actions {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;
}

/* Buy button inside block */
.fpc-pb-buy {
    margin: 0;
    flex: 1 1 120px;
    min-width: 0;
    text-align: center;
    padding: 11px 16px;
    font-size: clamp(13px, 1.8vw, 16px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Wishlist button inside block */
.fpc-pb-wl {
    margin: 0;
    flex: 1 1 100px;
    min-width: 0;
    justify-content: center;
    padding: 10px 14px;
    font-size: clamp(12px, 1.6vw, 15px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Tablet (601px – 768px) ── */
@media (min-width: 601px) and (max-width: 768px) {
    .fpc-pricing-block {
        padding: 20px 16px;
        gap: 12px;
        border-radius: 10px;
    }
    .fpc-pb-buy {
        flex: 1 1 90px;
        padding: 10px 12px;
    }
    .fpc-pb-wl {
        flex: 1 1 80px;
        padding: 9px 12px;
    }
}

/* ── Mobile (max 600px) ── */
@media (max-width: 600px) {
    .fpc-pricing-block {
        padding: 18px 14px;
        gap: 10px;
        border-radius: 10px;
    }
    .fpc-pb-actions {
        flex-direction: column;
        gap: 8px;
    }
    .fpc-pb-buy,
    .fpc-pb-wl {
        width: 100%;
        flex: none;
        min-width: 0;
        padding: 11px 16px;
        text-align: center;
        justify-content: center;
    }
}

/* ── Pricing block without buy button (show_buy="no") ── */
.fpc-pb-actions-nobuy {
    justify-content: center;
}
.fpc-pb-actions-nobuy .fpc-pb-wl {
    flex: 0 0 auto;
    min-width: 160px;
    max-width: 240px;
    justify-content: center;
    padding: 10px 20px;
    font-size: 15px;
}
@media (max-width: 600px) {
    .fpc-pb-actions-nobuy .fpc-pb-wl {
        width: 100%;
        max-width: 100%;
    }
}
