/* Brick Calculator – frontend styles (Bricks Megastore branding) */
/* Palette: red #E1251B / hover #B81E15 / dark #1f1f1f / heading #1a1a1a */
/* !important used liberally to override aggressive theme styles */

.bc-wrap {
    font-family: inherit;
    color: #1a1a1a;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
}
.bc-crumbs {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}
.bc-crumbs a { color: #6b7280; text-decoration: none; }
.bc-crumbs a:hover { color: #E1251B; }
.bc-crumbs .bc-current { color: #1a1a1a; font-weight: 500; }
.bc-title {
    margin: 0 0 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
}
.bc-form-card {
    border: 1px solid #E5E5E5;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.bc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1rem;
}
@media (max-width: 700px) {
    .bc-row { grid-template-columns: 1fr; }
}
.bc-field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}
.bc-wrap .bc-input,
.bc-wrap select.bc-input,
.bc-wrap input.bc-input {
    width: 100% !important;
    padding: 0.75rem 0.95rem !important;
    border: 1px solid #E5E5E5 !important;
    border-radius: 8px !important;
    background: #fff !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
    color: #1a1a1a !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}
.bc-wrap .bc-input:focus,
.bc-wrap select.bc-input:focus,
.bc-wrap input.bc-input:focus {
    outline: none !important;
    border-color: #E1251B !important;
    box-shadow: 0 0 0 3px rgba(225, 37, 27, 0.18) !important;
}
.bc-wrap select.bc-input { appearance: auto !important; }

.bc-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

/* Buttons – red, darker-red hover, !important to beat theme styles */
.bc-wrap .bc-btn,
.bc-wrap a.bc-btn,
.bc-wrap button.bc-btn {
    display: inline-block !important;
    padding: 0.85rem 2rem !important;
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
    box-shadow: none !important;
    text-transform: none !important;
}
.bc-wrap .bc-btn-primary,
.bc-wrap a.bc-btn-primary,
.bc-wrap button.bc-btn-primary,
.bc-wrap button#bc-calculate {
    background: #E1251B !important;
    background-color: #E1251B !important;
    color: #ffffff !important;
    border-color: #E1251B !important;
}
.bc-wrap .bc-btn-primary:hover,
.bc-wrap .bc-btn-primary:focus,
.bc-wrap a.bc-btn-primary:hover,
.bc-wrap a.bc-btn-primary:focus,
.bc-wrap button.bc-btn-primary:hover,
.bc-wrap button.bc-btn-primary:focus,
.bc-wrap button#bc-calculate:hover,
.bc-wrap button#bc-calculate:focus {
    background: #B81E15 !important;
    background-color: #B81E15 !important;
    border-color: #B81E15 !important;
    color: #ffffff !important;
}

.bc-result-summary { font-size: 1rem; color: #1a1a1a; }
.bc-result-summary strong { font-weight: 700; }

.bc-error {
    color: #b91c1c;
    margin-top: 0.75rem;
    padding: 0.6rem 0.8rem;
    background: #FEF2F2;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Results */
.bc-results-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    color: #1a1a1a;
}
.bc-card {
    display: grid;
    grid-template-columns: 110px 1fr 220px;
    gap: 1.25rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eef0f3;
}
.bc-card:last-child { border-bottom: none; }
@media (max-width: 700px) {
    .bc-card { grid-template-columns: 80px 1fr; }
    .bc-card-side { grid-column: 1 / -1; text-align: left; }
}
.bc-card-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}
.bc-card-name {
    font-weight: 600;
    color: #1a1a1a !important;
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.98rem;
}
.bc-card-name:hover { color: #E1251B !important; }
.bc-card-sku {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}
.bc-card-meta { font-size: 0.9rem; color: #4b5563; }
.bc-card-side { text-align: right; }
.bc-card-qty { font-size: 0.9rem; color: #6b7280; }
.bc-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.25rem 0;
}
/* Force dark on WooCommerce price spans (override theme colour) */
.bc-card-price,
.bc-card-price .woocommerce-Price-amount,
.bc-card-price .amount,
.bc-card-price bdi { color: #1a1a1a !important; }
.bc-card-vat { font-size: 0.8rem; color: #6b7280; margin-bottom: 0.6rem; }
.bc-btn-cart {
    padding: 0.6rem 1.4rem !important;
    font-size: 0.9rem !important;
}

.bc-loading { padding: 1rem; text-align: center; color: #6b7280; }
.bc-empty { padding: 1rem; color: #6b7280; font-style: italic; }

/* Info / FAQ */
.bc-info { margin-top: 2.5rem; max-width: 900px; }
.bc-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.75rem 0 0.75rem;
    color: #1a1a1a;
}
.bc-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.1rem 0 0.4rem;
    color: #1a1a1a;
}
.bc-info p,
.bc-info ul,
.bc-info li { line-height: 1.65; color: #374151; }
.bc-info ul { padding-left: 1.5rem; }
.bc-info a { color: #E1251B !important; text-decoration: underline; font-weight: 500; }
.bc-info a:hover { color: #B81E15 !important; }
