/* ***********************************************************
 * MONNIEBOX
 *
 * Bootstrap 5 does the work; this file only gives it the
 * colours of the piggy bank and a warmer font.
 * ***********************************************************/

:root {
    --mb-orange:       #e8892b;
    --mb-orange-dark:  #c2661a;
    --mb-brown:        #5a3e28;
    --mb-cream:        #fbf3ea;
    --mb-pink:         #f6d5cf;

    --bs-primary:            #e8892b;
    --bs-primary-rgb:        232, 137, 43;
    --bs-link-color:         #c2661a;
    --bs-link-color-rgb:     194, 102, 26;
    --bs-link-hover-color:   #8f4a12;
    --bs-body-font-family:   'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-color:         #3b2f25;
    --bs-body-bg:            #ffffff;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4, .h5, .display-5, .display-6 {
    font-weight: 800;
    color: var(--mb-brown);
}

/* ---------- Buttons in the colours of the pig ---------- */
.btn-primary {
    --bs-btn-bg:                 var(--mb-orange);
    --bs-btn-border-color:       var(--mb-orange);
    --bs-btn-hover-bg:           var(--mb-orange-dark);
    --bs-btn-hover-border-color: var(--mb-orange-dark);
    --bs-btn-active-bg:          var(--mb-orange-dark);
    --bs-btn-active-border-color:var(--mb-orange-dark);
    --bs-btn-disabled-bg:        var(--mb-orange);
    --bs-btn-disabled-border-color: var(--mb-orange);
    font-weight: 700;
}

.btn-outline-primary {
    --bs-btn-color:              var(--mb-orange-dark);
    --bs-btn-border-color:       var(--mb-orange);
    --bs-btn-hover-bg:           var(--mb-orange);
    --bs-btn-hover-border-color: var(--mb-orange);
    --bs-btn-active-bg:          var(--mb-orange-dark);
    --bs-btn-active-border-color:var(--mb-orange-dark);
    font-weight: 700;
}

.text-bg-primary {
    background-color: var(--mb-orange) !important;
}

.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: #f2b77a;
    box-shadow: 0 0 0 .25rem rgba(232, 137, 43, .25);
}

.form-check-input:checked {
    background-color: var(--mb-orange);
    border-color: var(--mb-orange);
}

/* ---------- Menu ---------- */
.mb-navbar .nav-link {
    font-weight: 700;
    color: var(--mb-brown);
}

.mb-navbar .nav-link.active,
.mb-navbar .nav-link:hover {
    color: var(--mb-orange-dark);
}

/* ---------- Sections ---------- */
.bg-cream {
    background-color: var(--mb-cream);
}

.hero {
    background-color: var(--mb-cream);
    padding: 4rem 0;
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 .5rem 2rem rgba(90, 62, 40, .15);
}

@media (max-width: 767.98px) {
    .hero {
        padding: 2.5rem 0;
    }
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--mb-orange);
    color: #fff;
    font-weight: 800;
    font-size: 1.4rem;
}

.card-mb {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 .25rem 1rem rgba(90, 62, 40, .08);
}

.page-header {
    background-color: var(--mb-cream);
    padding: 2.5rem 0 2rem 0;
    margin-bottom: 2rem;
}

/* ---------- Public page of a monniebox ---------- */
.box-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--mb-orange-dark);
    line-height: 1.1;
}

.quick-amounts .btn {
    min-width: 4.5rem;
}

.deposit-message {
    border-left: 4px solid var(--mb-orange);
    padding-left: .75rem;
    white-space: pre-line;
}

/* ---------- Legal texts ---------- */
.legal h2, .legal h5 {
    margin-top: 1.5rem;
}

.legal table td {
    padding: .25rem .75rem .25rem 0;
    vertical-align: top;
}

/* ---------- Footer ---------- */
.footer-link {
    color: inherit;
    text-decoration: none;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .footer-col {
        border-right: 1px solid rgba(255, 255, 255, .15);
    }
}

/* ---------- Waiting for a payment ---------- */
.spinner-mb {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--mb-orange);
}
