@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --fbb-blue: #1a3c8f;
    --fbb-blue-dark: #0d2460;
    --fbb-red: #cc0000;
    --fbb-white: #ffffff;
    --fbb-light: #f0f4ff;
    --fbb-border: #d0d8f0;
    --fbb-text: #1a1a2e;
    --fbb-muted: #666;
    --fbb-radius: 10px;
    --fbb-shadow: 0 4px 16px rgba(26,60,143,0.12);
}

.fbb-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    font-family: 'Open Sans', sans-serif;
    color: var(--fbb-text);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.fbb-builder-col {
    flex: 1;
    min-width: 0;
    background: white;
    border-radius: var(--fbb-radius);
    padding: 30px;
    box-shadow: var(--fbb-shadow);
    border: 1px solid var(--fbb-border);
}

.fbb-summary-col {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.fbb-title {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--fbb-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--fbb-red);
}

/* Progress */
.fbb-progress-bar-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.fbb-progress-bar {
    flex: 1;
    height: 14px;
    background: var(--fbb-light);
    border-radius: 99px;
    overflow: hidden;
    border: 1px solid var(--fbb-border);
}

.fbb-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--fbb-blue), var(--fbb-red));
    border-radius: 99px;
    transition: width 0.3s ease;
    width: 0%;
}

.fbb-progress-label {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--fbb-blue);
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}

.fbb-full-msg {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    color: var(--fbb-red);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}

/* Grid */
.fbb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.fbb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--fbb-light);
    border: 1.5px solid var(--fbb-border);
    border-radius: var(--fbb-radius);
    padding: 10px 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fbb-item.has-qty {
    border-color: var(--fbb-blue);
    background: #eef2ff;
    box-shadow: 0 2px 10px rgba(26,60,143,0.1);
}

.fbb-item-img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fbb-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.fbb-no-img { font-size: 26px; }

.fbb-item-name {
    flex: 1;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--fbb-text);
    line-height: 1.3;
}

.fbb-item-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.fbb-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 4px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.1s;
    line-height: 1;
    padding: 0;
}

.fbb-minus { background: var(--fbb-border); color: var(--fbb-text); }
.fbb-minus:hover { background: #c0c8d8; }
.fbb-plus  { background: var(--fbb-blue); color: white; }
.fbb-plus:hover { background: var(--fbb-blue-dark); }
.fbb-plus:active, .fbb-minus:active { transform: scale(0.9); }
.fbb-plus:disabled { background: #ccc; cursor: not-allowed; }

.fbb-qty {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--fbb-blue);
    min-width: 22px;
    text-align: center;
    background: white;
    border-radius: 4px;
    padding: 2px 4px;
    border: 1px solid var(--fbb-border);
}

.fbb-qty.has-qty {
    background: var(--fbb-blue);
    color: white;
    border-color: var(--fbb-blue);
}

/* Submit */
.fbb-submit-wrap { margin-top: 25px; text-align: center; padding-top: 20px; border-top: 2px dashed var(--fbb-border); }

.fbb-submit-btn {
    background: linear-gradient(135deg, var(--fbb-red), #a80000);
    color: white;
    border: none;
    padding: 14px 36px;
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 15px rgba(204,0,0,0.3);
}

.fbb-submit-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(204,0,0,0.4); }
.fbb-submit-btn:disabled { background: #ccc; box-shadow: none; cursor: not-allowed; }

/* Summary */
.fbb-summary-box {
    background: white;
    border: 2px solid var(--fbb-blue);
    border-radius: var(--fbb-radius);
    overflow: hidden;
    box-shadow: var(--fbb-shadow);
}

.fbb-summary-header {
    background: linear-gradient(135deg, var(--fbb-blue), var(--fbb-blue-dark));
    color: white;
    padding: 14px 18px;
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fbb-star-icon { color: gold; font-size: 18px; }

.fbb-summary-list {
    padding: 12px 18px;
    min-height: 100px;
    max-height: 380px;
    overflow-y: auto;
}

.fbb-summary-empty { color: var(--fbb-muted); font-size: 13px; text-align: center; padding: 20px 0; font-style: italic; }

.fbb-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid var(--fbb-border);
    font-size: 12px;
}
.fbb-summary-row:last-child { border-bottom: none; }

.fbb-summary-item-name { color: var(--fbb-text); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 0.3px; }
.fbb-summary-item-qty  { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 15px; color: var(--fbb-blue); }

.fbb-summary-footer {
    background: var(--fbb-light);
    border-top: 2px solid var(--fbb-border);
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fbb-summary-status { font-size: 13px; font-weight: 600; color: var(--fbb-red); }
.fbb-summary-count  { font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 700; color: var(--fbb-blue); }

.fbb-no-items { color: var(--fbb-muted); font-style: italic; padding: 20px 0; }

@media (max-width: 900px) {
    .fbb-wrapper { flex-direction: column; }
    .fbb-summary-col { width: 100%; position: static; }
}
@media (max-width: 600px) {
    .fbb-grid { grid-template-columns: 1fr; }
    .fbb-builder-col { padding: 20px 15px; }
}

/* ---- Summary submit button ---- */
.fbb-summary-submit {
    padding: 16px 18px;
    border-top: 2px solid var(--fbb-border);
    background: white;
}

.fbb-summary-submit .fbb-submit-btn {
    width: 100%;
    padding: 14px 10px;
    font-size: 15px;
}

/* ---- Sticky summary with padding ---- */
.fbb-summary-col {
    padding-top: 4px;
}

.fbb-summary-box {
    position: sticky;
    top: 30px;
}

/* Remove old left-col submit wrap */
.fbb-submit-wrap { display: none; }

/* Box quantity selector */
.fbb-box-qty-wrap {
    padding: 12px 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fbb-box-qty-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--fbb-text);
}
.fbb-box-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fbb-box-qty-btn {
    width: 30px;
    height: 30px;
    border: 2px solid var(--fbb-blue);
    background: white;
    color: var(--fbb-blue);
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
    padding: 0;
}
.fbb-box-qty-btn:hover {
    background: var(--fbb-blue);
    color: white;
}
.fbb-box-qty-num {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--fbb-blue);
    min-width: 28px;
    text-align: center;
}

/* Notice */
.fbb-notice {
    margin-top: 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
}
.fbb-notice p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #856404;
}
