html,
body,
.view {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

:root {
    --checkout-dark: #1f1f1f;
    --checkout-green: #5b6b49;
    --checkout-green-dark: #4e5f3f;
    --checkout-page-bg: #eeeeee;
    --checkout-text: #171717;
    --checkout-muted: #69727c;
    --checkout-border: #c6ccd1;
}

body.grey.lighten-3 {
    background-color: var(--checkout-page-bg) !important;
    color: var(--checkout-text);
}

main {
    flex: 1 0 auto;
}

main.mt-5.pt-4 {
    margin-top: 6rem !important;
}

.navbar-custom {
    background-color: var(--checkout-dark);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
    min-height: 98px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.navbar-brand img {
    max-height: 70px;
    width: auto;
}

.secure-payment-banner {
    background-color: var(--checkout-green);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    line-height: 1.2;
    min-height: 55px;
    padding: 10px 16px;
    text-align: center;
}

.secure-payment-banner i {
    display: none;
}

.card {
    border: 0;
    border-radius: 3px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.card-body {
    background-color: #ffffff;
    padding: 2rem 1.6rem 1.55rem;
}

.md-form {
    margin-bottom: 2.25rem;
}

.md-form label {
    color: var(--checkout-muted);
    font-size: 1rem;
}

.md-form .form-control,
.form-control {
    border-bottom: 1px solid var(--checkout-border);
    color: var(--checkout-muted);
    font-size: 1.25rem;
    height: auto;
    padding-bottom: 0.45rem;
}

.md-form .form-control:focus,
.form-control:focus {
    border-bottom: 1px solid var(--checkout-green);
    box-shadow: 0 1px 0 0 var(--checkout-green);
}

.form-control::placeholder {
    color: #586b7e;
    opacity: 1;
}

.btn-danger,
.btn-danger:active,
.btn-danger:focus,
.btn-danger:hover {
    background-color: var(--checkout-green) !important;
    border-color: var(--checkout-green) !important;
    color: #ffffff !important;
}

.btn-danger:hover,
.btn-danger:focus {
    background-color: var(--checkout-green-dark) !important;
    border-color: var(--checkout-green-dark) !important;
}

.btn.btn-lg {
    border-radius: 0;
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.22);
    font-weight: 700;
    letter-spacing: 0;
    margin-top: 0.55rem;
    padding: 1rem 1.5rem;
    text-transform: uppercase;
}

#payment_method {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    border: 1px solid var(--checkout-border);
    border-radius: 4px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    color: var(--checkout-text);
    padding: 10px;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--checkout-text);
}

.list-group {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

.list-group-item {
    background-color: #ffffff;
    border-color: #b8c0c7;
    color: var(--checkout-text);
    padding: 0.58rem 1.4rem;
}

.list-group-item h6 {
    color: var(--checkout-text);
    font-weight: 400;
}

.list-group-item span {
    color: var(--checkout-muted);
    font-weight: 400;
}

.product-image-container {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 414px;
    text-align: center;
}

.product-image-container h4 {
    color: #000000;
    font-weight: bold;
    line-height: 1.18;
    margin: 0 auto 2.25rem;
    max-width: 330px;
}

.product-image-container small {
    display: block;
    margin-bottom: 10px;
}

.product-image-container img {
    max-height: 230px;
    object-fit: contain;
}

.list-group-item.bg-warning {
    background-color: #ffffff !important;
    color: var(--checkout-text) !important;
}

.list-group-item.bg-warning .text-white,
.list-group-item.bg-warning h6 {
    color: var(--checkout-text) !important;
}

.list-group-item.bg-warning span {
    color: var(--checkout-muted) !important;
}

.list-group-item.bg-danger {
    background-color: var(--checkout-green) !important;
    border-color: var(--checkout-green) !important;
    color: #ffffff !important;
}

.list-group-item.bg-danger .text-white,
.list-group-item.bg-danger h6,
.list-group-item.bg-danger span {
    color: #ffffff !important;
}

.footer-custom {
    background-color: var(--checkout-dark);
    color: #ffffff;
    flex-shrink: 0;
    padding: 46px 0;
}

.footer-custom a {
    color: #ffffff;
}

.footer-custom a:hover {
    text-decoration: underline;
}

.footer-custom .social-icons i {
    font-size: 1.5rem;
    margin-right: 10px;
}

@media (max-width: 991.98px) {
    main.mt-5.pt-4 {
        margin-top: 5.6rem !important;
    }

    .navbar-custom {
        min-height: 88px;
    }

    .navbar-brand img {
        max-height: 62px;
    }

    .secure-payment-banner {
        font-size: 1.35rem;
    }

    .product-image-container {
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    main.mt-5.pt-4 {
        margin-top: 5.25rem !important;
    }

    .card-body {
        padding: 1.6rem 1.1rem 1.35rem;
    }

    .md-form {
        margin-bottom: 1.8rem;
    }

    .md-form .form-control,
    .form-control,
    .list-group-item h6,
    .list-group-item span {
        font-size: 1.15rem;
    }

    .product-image-container h4 {
        font-size: 1.45rem;
        margin-bottom: 1.5rem;
    }

    .product-image-container img {
        max-height: 190px;
    }

    .footer-custom {
        padding: 34px 0;
    }
}
