.wpec-product-box {
    border: 2px solid #2271b1;
    border-radius: 12px;
    margin: 24px 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.wpec-product-box-header {
    background: #2271b1;
    color: #fff;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wpec-product-box-header h3 { margin: 0; color: #fff; font-size: 17px; }
.wpec-product-box-body { padding: 18px; }
.wpec-product-box-desc { color: #666; margin: 0 0 14px; }
.wpec-form-group { margin-bottom: 14px; }
.wpec-form-group label { display: block; margin-bottom: 6px; font-weight: 600; }
.wpec-front-select,
.wpec-front-input {
    width: 100%;
    border: 1px solid #d5d9dc;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fff;
}
.wpec-front-select:focus,
.wpec-front-input:focus { border-color: #2271b1; outline: none; box-shadow: 0 0 0 1px #2271b1; }
.wpec-front-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.wpec-front-table td { padding: 8px 10px; border-bottom: 1px solid #f0f0f1; font-size: 14px; }
.wpec-front-table td:last-child { text-align: left; font-weight: 700; }
.wpec-front-open-btn { width: 100%; text-align: center; }
.wpec-front-open-btn:disabled { opacity: .55; cursor: not-allowed; }

.wpec-front-modal { position: fixed; inset: 0; z-index: 99999; }
.wpec-front-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.wpec-front-modal-content {
    position: absolute;
    inset: 40px auto auto 50%;
    transform: translateX(-50%);
    width: min(720px, 94vw);
    max-height: calc(100vh - 80px);
    background: #fff;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.wpec-front-modal-header {
    background: #2271b1;
    color: #fff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wpec-front-modal-header h3 { margin: 0; color: #fff; font-size: 17px; }
.wpec-front-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.wpec-front-steps {
    display: flex;
    padding: 14px 20px 0;
    gap: 6px;
    background: #f8f9fa;
    flex-wrap: wrap;
}
.wpec-step {
    font-size: 12.5px;
    padding: 6px 10px;
    border-radius: 20px;
    background: #e6e8ea;
    color: #555;
}
.wpec-step.active { background: #2271b1; color: #fff; font-weight: 700; }
.wpec-front-modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.wpec-front-step-panel h4 { margin: 0 0 14px; color: #1d2327; }
.wpec-front-note { background: #f0f6ff; border: 1px solid #c5d9f2; border-radius: 8px; padding: 10px 14px; color: #1d5b9e; font-size: 13px; margin: 0 0 14px; }
.wpec-fr-row { display: flex; gap: 14px; flex-wrap: wrap; }
.wpec-fr-field { flex: 1; min-width: 200px; margin-bottom: 12px; }
.wpec-fr-field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13.5px; }
.wpec-required { color: #d63638; }
.wpec-front-input[type="date"] { direction: ltr; text-align: right; }
.wpec-front-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 10px; margin: 14px 0; }
.wpec-fs-item { background: #f6f7f7; border: 1px solid #e2e5e7; border-radius: 10px; padding: 10px; text-align: center; }
.wpec-fs-item span { display: block; font-size: 12px; color: #666; margin-bottom: 4px; }
.wpec-fs-item strong { font-size: 15px; color: #2271b1; }
.wpec-front-schedule { width: 100%; border-collapse: collapse; font-size: 13px; }
.wpec-front-schedule th, .wpec-front-schedule td { padding: 7px 10px; border: 1px solid #e2e5e7; text-align: center; }
.wpec-front-schedule thead { background: #f0f6ff; }
.wpec-front-check-item {
    border: 1px solid #e2e5e7;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fcfcfc;
}
.wpec-front-check-item h5 { margin: 0 0 10px; color: #2271b1; font-size: 13.5px; }
.wpec-front-final-summary {
    background: #f0f6ff;
    border: 1px solid #c5d9f2;
    border-radius: 10px;
    padding: 14px;
    font-size: 13.5px;
    line-height: 2;
    margin-bottom: 14px;
}
.wpec-front-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.wpec-front-result { text-align: center; padding: 30px 10px; }
.wpec-front-result .dashicons-yes-alt { font-size: 60px; width: 60px; height: 60px; color: #00a32a; }
.wpec-front-result h4 { margin: 10px 0; color: #00a32a; }
.wpec-front-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    background: #fff;
}
.wpec-front-modal-footer .button { padding: 8px 22px; border-radius: 8px; }
.wpec-front-submit.loading,
.wpec-front-next.loading { opacity: .6; pointer-events: none; }
.wpec-front-err { color: #d63638; font-size: 13px; margin-top: 6px; display: none; }
.wpec-front-err.show { display: block; }

.wpec-my-modal { position: fixed; inset: 0; z-index: 99998; }
.wpec-my-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.wpec-my-modal-content {
    position: absolute;
    top: 60px; left: 50%;
    transform: translateX(-50%);
    width: min(680px, 94vw);
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    max-height: 85vh;
    overflow-y: auto;
}
.wpec-my-modal-content h3 { margin-top: 0; }
.wpec-my-close { position: absolute; top: 12px; left: 16px; background: none; border: none; font-size: 26px; cursor: pointer; }
.wpec-my-installments summary { cursor: pointer; color: #2271b1; }
.wpec-my-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.wpec-my-table th, .wpec-my-table td { padding: 6px 8px; border: 1px solid #e2e5e7; }

@media (max-width: 600px) {
    .wpec-front-modal-content { inset: 10px auto auto 50%; width: 96vw; max-height: calc(100vh - 20px); }
}
