@import './colors';
@import './mixins';

$modal-padding: 15px 25px;
$header-footer-height: 55px;
$modal-border: 1px solid $gray-200;

.hc-modal {
    border-top: 4px solid #ba160a;
    border-radius: 4px;
    border-bottom: 4px solid white;
    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.16);
}

.hc-modal-header {
    min-height: $header-footer-height;
    border-bottom: $modal-border;
    color: $wcf-blue;
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: calculateRem(24px);
    padding-bottom: 6.5px;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    border-bottom: 1px solid rgba(112,112,112,.5);
}

.hc-modal-body {
    overflow: auto;
    padding-top: 24px;
    box-sizing: content-box;
    overflow: unset;
    flex-grow: 1;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

.hc-modal-close-button {
    background-color: transparent;
    font-weight: bold;
    padding: 0;
    cursor: pointer;
    border: 0;
    -webkit-appearance: none;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    color: $text;
    text-shadow: 0 1px 0 $white;
    opacity: 0.5;
    &:focus,
    &:hover {
        color: $text;
        text-decoration: none;
        opacity: 0.75;
    }
}

.hc-modal-footer {
    min-height: $header-footer-height;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 0 0 0;
}

.hc-modal-content {
    background-color: $white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 100%;
    padding: 14px 24px 24px 24px;
    min-height: 246px;
    @media (max-width: 425px)  {
        padding: 14px 16px 24px 16px;
    }
}

.hc-modal-open {
    overflow: hidden;
}

.hc-modal-center-component {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
