﻿/*new page widths using added body class*/
.gift-certificates .formSection,
.gift-certificates h1,
.gift-certificates h1 + div {
    width: 155%;
}

.gift-certificates fieldset .field {
    display: flex;
    flex-direction: column;
}

.gift-certificates #imgPreview {
    width: 65%;
    padding-right: 10px;
}

/*spacing adjustments*/
.gift-certificates .large-12 {
    padding-left: 0;
}

.gift-certificates p.lead {
    margin-bottom: 20px;
    margin-top: 0;
}

.gift-certificates .gift-cert-preview p.lead {
    margin-bottom: 0;
    margin-top: 40px;
}

.customizeGiftCert .field span {
    display: none;
}

.giftCertificateDesigns {
    margin-bottom: 30px;
}

.gift-certificates .field + fieldset > .field > label {
    padding-bottom: 0;
    margin-bottom: 20px;
}

/*carousel*/
.gift-certificates .experience-carousel {
    background: none !important;
}

.gift-certificates .bx-viewport ul li {
    margin-right: 20px !important;
}

.gift-certificates li .image-link img {
    display: block;
}

.gift-certificates .experience-images .bx-controls a {
    color: gray !important;
}

.gift-certificates .bx-viewport {
    width: 90% !important; /*override inline style*/
    left: 5%;
}

.gift-certificates .active-caption .image-link img {
    border: 8px solid #edf2ff;
}

/*text styles*/
.gift-certificates fieldset label,
.gift-certificates input,
.gift-certificates textarea {
    font-size: 1.3em;
    font-weight: normal;
    color: #383736;
    font-style: normal;
}

.gift-certificates .experience-images h2 {
    background-color: #edf2ff;
    color: #000;
    margin-top: -8px;
    font-size: 14px;
    font-family: 'Source Sans Pro', sans-serif;
}

.gift-certificates p.lead,
.gift-certificates fieldset .gift-certificates-label,
.gift-certificates .experience-carousel .large-12 > h2 {
    text-transform: uppercase;
    color: #383736; /*main gray*/
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: bold;
    font-size: 1.3rem;
    text-align: left;
}

.gift-certificates .experience-images .txt {
    margin: 0;
}

/*form elements*/
.gift-certificates input[type="submit"] {
    float: left;
    box-shadow: none;
    border: none;
    padding: 13px 20px;
    font-size: 1.3em;
    margin-top: 25px;
}

.gift-certificates textarea {
    min-height: 0;
    resize: none;
}

.customizeGiftCert input[type="radio"] {
    margin-bottom: 5px;
    margin-right: 5px;
}

.gift-certificates .delivery-method {
    width: 65%;
    margin-top: 20px;
}

.customizeGiftCert input,
.customizeGiftCert textarea {
    margin-bottom: 15px;
}

.gift-certificates .recipient-name {
    width: 58%;
}

.gift-certificates .input-flex-container {
    display: flex;
    justify-content: space-between;
}

    .gift-certificates .input-flex-container.flex-half > div {
        width: 49%;
    }

    .gift-certificates .input-flex-container.flex-thirdfirst > div:first-child,
    .gift-certificates .input-flex-container.flex-thirdlast > div:last-child {
        width: 32%;
    }

    .gift-certificates .input-flex-container.flex-thirdlast > div:first-child,
    .gift-certificates .input-flex-container.flex-thirdfirst > div:last-child {
        width: 66%;
    }

/*customize section layout*/
.gift-certificates .customize-container {
    display: flex;
    justify-content: space-between;
    width: 65%;
}

.gift-certificates .customize-form {
    width: 58%;
}

.gift-certificates .customize-suggestions {
    background-color: #edf2ff;
    width: 40%;
    padding: 15px;
}

    .gift-certificates .customize-suggestions p {
        font-size: 1em;
        margin: .8em 0;
    }

    .gift-certificates .customize-suggestions span {
        display: block;
    }

/*cart page for gift certificates*/
.packageCart.giftcertificates tr {
    display: flex;
    flex-direction: column;
}

.packageCart.giftcertificates td {
    line-height: 2rem;
}







/*media queries*/
@media (max-width: 768px) {

    /*widths*/
    .gift-certificates .formSection,
    .gift-certificates h1,
    .gift-certificates h1 + div,
    .gift-certificates fieldset input,
    .gift-certificates fieldset textarea,
    .gift-certificates #imgPreview,
    .gift-certificates .field,
    .gift-certificates .input-flex-container.flex-half > div,
    .gift-certificates .input-flex-container.flex-thirdfirst > div:first-child,
    .gift-certificates .input-flex-container.flex-thirdlast > div:first-child,
    .gift-certificates .input-flex-container.flex-thirdfirst > div:last-child,
    .gift-certificates .input-flex-container.flex-thirdlast > div:last-child,
    .gift-certificates .recipient-name,
    .gift-certificates .delivery-method {
        width: 100%;
        max-width: 100%;
    }

    .gift-certificates .customize-container {
        flex-direction: column-reverse;
        width: 100%;
    }

        .gift-certificates .customize-container > * {
            width: 100%;
        }


    /*form elements*/
    .gift-certificates fieldset .field label {
        display: inline;
    }

    .gift-certificates fieldset .field input {
        width: auto;
    }

    .customizeGiftCert input[type="radio"] {
        margin-top: 5px;
    }

    .gift-certificates-options-field td {
        padding-bottom: 10px;
    }

    .gift-certificates input[type="submit"] {
        width: 45%;
    }

    .gift-certificates .flex-half,
    .gift-certificates .flex-thirdfirst,
    .gift-certificates .flex-thirdlast {
        display: block;
    }

    /*spacing adjustments*/

    .gift-certificates .customize-suggestions {
        margin-bottom: 30px;
    }

    .gift-certificates .customize-form fieldset > .field:first-child {
        margin-top: 40px;
    }

    /*error messaging*/
    .gift-certificates .errorMsg-container {
        position: absolute;
        width: 100%;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
    }

    .gift-certificates .errorMsg {
        border: 3px solid red;
        padding: 20px;
        background-color: #fff;
    }

        .gift-certificates .errorMsg:empty {
            display: none;
            border: 0;
            background-color: transparent;
        }

    /*carousel*/
    .gift-certificates .bx-viewport li {
        display: none;
    }

    .gift-certificates .bx-viewport li.active-caption {
            display: block;
        }

    .gift-certificates .bx-viewport li.active-caption .image-link > img {
        max-width: 184%;
        left: 20px;
     }

    .gift-certificates .experience-images .bx-controls a {
        font-size: 45px;
    }

    .gift-certificates .bx-viewport {
        height: 105% !important; /*overriding inline style*/
    }

    .gift-certificates .experience-images .bx-viewport .active-caption .txt {
        width: 100%;
        margin: 0;
    }

    .gift-certificates .experience-images h2 {
        font-size: 1.1rem;
        margin-top: -8px;
    }
}
