#add-on-switch {
    height: 27px;
}

#card-address-form .cake-row div,
.cake-container,
form#card-custom-setup-form .cake-row div {
    position: relative;
}

#cake-front-card-image,
.download-template {
    float: right;
}

.button.button--fileinput,
.location-disclaimer,
.page-header .cake-container .header-title h1,
.page-header .cake-container .header-title p,
.preview-back-text,
ul.choices {
    text-align: center;
}

.pdf-link,
p {
    font-size: 16px;
}

.cake-container,
ul {
    max-width: 1200px;
}

#giftcard-background-form::after,
.cake-container::after,
ul::after {
    content: "";
}

.cake-container {
    margin-left: auto;
    margin-right: auto;
    padding: 0 1em;
}

.cake-container::after {
    clear: both;
    display: table;
}

.page-header .cake-container {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.page-header .cake-container .header-title {
    padding: 5.3125rem 0;
    overflow: hidden;
}

#card-address-form .cake-row,
#card-custom-setup-form .cake-row,
form#card-custom-setup-form .cake-row {
    padding: 45px 0 29px;
    border-bottom: 1px solid #e5e5e5;
    overflow: hidden;
}

form#card-custom-setup-form .row {
    padding: 0;
    border-bottom: none;
    overflow: visible;
}

form#card-custom-setup-form .row div {
    position: static;
}

button:hover {
    text-shadow: none!important;
}

#backToSetupButton:hover {
    background-color: #e6e6e6!important;
}

/* #addOnSection {
    padding-top: 80px!important;
}

#customAddOnSection {
    padding-top: 25px!important;
} */

/* #addOnSection select,
#customAddOnSection select {
    padding: 0 0 0 10px!important;
} */

#uploadBtn {
    display: none;
}

.cake-card-image {
    border: 1px solid #9da2a6;
    border-radius: 10px;
}

.card-separator {
    position: relative!important;
}

.preview-back-text {
    font-style: normal;
    width: 352px;
    color: #000;
    position: absolute;
    font-size: 17px;
    left: auto;
    right: auto;
    bottom: 0;
}

#preview-back-line-1 {
    top: 55px;
}

#preview-back-line-2 {
    top: 75px;
}

@media screen and (max-width:407px) {
    #cake-front-card-image {
        float: none;
    }
    .cake-card-image {
        width: 250px;
        margin: auto;
    }
    .card-separator {
        position: relative!important;
        padding-top: 15px;
    }
    .preview-back-text {
        position: absolute;
        font-size: 12px;
        width: 100%;
        left: 0;
        right: 0;
    }
    #preview-back-line-1 {
        top: 57px;
    }
    #preview-back-line-2 {
        top: 71px;
    }
}

#custom-envelopes-image-row,
.add-on-title {
    margin-bottom: 0;
}

.add-on-subtitle,
.add-on-title {
    font-size: 13px;
}

@media screen and (min-width:408px) and (max-width:767px) {
    #cake-back-card-image,
    #cake-front-card-image {
        margin: 0 auto;
        float: none;
    }
    .card-separator {
        position: relative!important;
        padding-top: 25px;
    }
    .preview-back-text {
        position: absolute;
        width: 100%;
        left: 0;
        right: 0;
    }
    #preview-back-line-1 {
        top: 80px;
    }
    #preview-back-line-2 {
        top: 100px;
    }
}

/* Stock Accessories --> */
#addOnProductRow {
    margin: auto;
    padding-top: 16px;
    background: white;
}

.add-on-div {
    /* max-width: 280px; */
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 249px;
    padding-bottom: 50px;
}

.add-on-img-outer-div {
    border: 1px solid lightgrey;
    height: 200px;
    display: flex;
    align-items: center;
    background: white;
}

.add-on-topfold-img, .add-on-sidefold-img, .add-on-display-img {
    height: 152px;
}

.add-on-title {
    /* padding: 15px 0 15px 30px; */
    height: 46px;
    align-items: flex-start;
    display: flex;
    /* font-weight: 400; */
    /* max-height: 45px; */
    font-weight: 600;
    font-size: 19px;
    line-height: 24px;
    color: #333333;
    flex: 1 1 auto;
}

.add-on-title > span {
    flex: 1;
}

.add-on-select {
    color: #000b0b;
    /* margin-left: 28px;
    height: auto;
    width: 80%; */
    width: 100%;
    font-weight: 400;
    border-color: #ccc;
    font-size: 16px!important;
}

/* <-- Stock Accessories */

.page-header {
    margin: 0;
}

input[name=countryDropdown]:disabled {
    cursor: default!important;
}

.col-xs-12>.generic-sleeve-disclaimer {
    padding-bottom: 0;
}

.title-paragraph {
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 1px;
}

.custom-add-on-title-row:nth-child(1) {
    padding-top: 55px !important;
}

.custom-add-on-title-row h2 {
    font-size: 21px;
    line-height: 30px;
    font-weight: 600;
}

.custom-add-on-title-row:nth-child(1) h2 {
    padding-bottom: 10px;
}

.custom-section-paragraph {
    margin-top: 20px;
}

.template-link > a {
    font-family: 'Proxima Nova';
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    color: #2A90D6;
}

@media screen and (max-width: 360px) {
    .design-section .template-link > a {
        font-size: 12px;
    }
}

.download-template>a {
    color: #72A0FF;
    font-weight: 600;
    border-bottom: none!important;
}

#custom-envelope-link {
    font-weight: 400;
}

.form-control {
    font-size: 16px;
    height: 40px;
    font-weight: 300;
    border-color: #e0e0e0;
}

#custom-envelope-file-selector-info,
#custom-sleeve-file-selector-info,
input[name=customEnvelopePantoneColor],
select[name=CustomEnvelopeQuantity],
select[name=CustomSleeveQuantity],
select[name=PrintingSide] {
    width: 100%;
    border-color: #e0e0e0;
}

.file-upload-row {
    padding-top: 20px!important;
}

#custom-envelope-file-selector-info,
#custom-sleeve-file-selector-info {
    background-color: #fff;
}

#customEnvelopeFileUploadButton,
#customSleeveFileUploadButton {
    margin: auto;
    box-sizing: border-box;
    float: right;
    width: 163.75px;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 400;
    box-shadow: none;
    font-family: SQMarket, Helvetica, Arial, sans-serif;
    border: 1px solid #CC4744;
    background-color: #CC4744;
    color: #EBEBEB;
}

.paper-color-title,
.printing-title {
    font-size: 15px;
    letter-spacing: 1px;
    font-weight: 400;
}

#continue-button-two:hover,
#customEnvelopeFileUploadButton:hover,
#customSleeveFileUploadButton:hover {
    background-color: #333333;
    color: #EBEBEB;
    text-shadow: none;
}

#customEnvelopeFileUploadButton:focus,
#customEnvelopeFileUploadButton.focus,
#customSleeveFileUploadButton:focus,
#customSleeveFileUploadButton.focus {
  color: #EBEBEB;
  background-color: #333333;
  border-color: #333333;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
}

#customEnvelopeFileUploadButton:active,
#customEnvelopeFileUploadButton.active,
#customSleeveFileUploadButton:active,
#customSleeveFileUploadButton.active {
  color: #EBEBEB !important;
  background-color: #456367 !important;
  border-color: #456367 !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
}

hr {
    border-top: 1px solid #CC4744;
    margin: 35px 0;
}

#go-back-button:hover {
    text-shadow: none;
}

.printing-title {
    padding-top: 36px;
    font-weight: 600;
}

#continue-button-two,
#go-back-button {
    font-size: 11px;
    letter-spacing: 1.15px;
    width: 524px;
    height: 40px;
}

.pantone-color-input-row {
    margin-top: 10px;
    margin-bottom: 65px;
}

.go-back-button-row {
    padding-bottom: 12px !important;
}

#continue-button-two-row {
    margin-bottom: 0;
}

#continue-button-two {
    background-color: #72A0FF;
    border-color: #72A0FF;
    font-weight: 400;
    margin: 0;
}

#backToSetupButton {
    box-sizing: border-box;
    width: 223px;
    background-color: #fff;
    color: #72A0FF;
    border: 1px solid #72A0FF;
    margin-bottom: 12px;
}

#go-back-button {
    margin-top: 15px;
    color: #72A0FF;
    border: 1px solid #72A0FF;
}

.location-disclaimer {
    font-size: 13px;
    font-style: italic;
    padding-bottom: 32px;
}

#error-section,
#thank-you-section {
    padding-top: 60px;
}

/* Drag & Drop */
/* Container for the entire upload section */
.upload-container {
    width: 100%;
    height: 100%;
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
  }

  /* Title text */
  .upload-title {
    align-self: stretch;
    color: #333333;
    font-size: 15px;
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 500;
    line-height: 20px;
    word-wrap: break-word;
  }

  /* Container for the upload box */
  .upload-box {
    max-width: 320px;
    width: 100%;
    height: 100px;
    padding: 16px;
    background: #F8F8F8;
    border-radius: 5px;
    border: 1px dotted #CDCDCD;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  /* Flex container for the content inside the upload box */
  .upload-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
  }

  /* Container for the upload icon */
  .upload-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .upload-icon > img {
    width: 42px;
    height: auto;
  }

  @media screen and (max-width: 320px) {
    .upload-icon {
        align-items: flex-start;
    }
  }

  /* Container for the upload text */
  .upload-text {
    width: 204px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Instruction text */
  .upload-instruction {
    text-align: center;
    color: #A2A0A2;
    font-size: 15px;
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 500;
    line-height: 20px;
    word-wrap: break-word;
  }

  /* Button for choosing files */
  .choose-file-button {
    padding: 4px 8px;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Text inside the choose file button */
  .choose-file-text {
    cursor: pointer;
    text-align: center;
    color: #2A90D6;
    font-size: 15px;
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 500;
    line-height: 20px;
    word-wrap: break-word;
  }

  /* Hover effect for the upload box */
  .upload-box:hover, .drag-upload {
    border-color: #2A90D6;
    background-color: #EAF4FB;
  }

  /* Active state for the upload box (when being clicked) */
  /* .upload-box:active {
    border-color: #2179B5;
    background-color: #D2E8F6;
  } */

  /* Styling when a file is selected */
  /* .upload-box.selected {
    border-color: #2A90D6;
    background-color: #EAF4FB;
  } */

  /* Hover effect for the choose file text */
  .choose-file-text:hover {
    text-decoration: underline;
  }

  .imageIcon {
    padding-right: 2px;
  }

  .imageDeleteButton {
    cursor: pointer;
    color: red;
  }

  /*Image List Entries*/
  .imageList > div:nth-child(1){
    padding-top: 5px;
  }

  .imageList div {
    padding-bottom: 5px;
  }
  /* Drag & Drop */

/* Stock & Custom Accessories --> */
.stock-and-custom-accessories-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stock-and-custom-accessories-main-body,
.stock-and-custom-accessories-nav-section {
    max-width: 850px;
    width: 100%;
    margin: auto;
}

.stock-and-custom-accessories-nav-section {
    padding-bottom: 100px;
}
/* <-- Stock & Custom Accessories */

/* Accessories Title Section --> */
.accessories-title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.accessories-main-title {
    font-family: 'Proxima Nova';
    font-style: normal;
    font-weight: 600;
    font-size: 32px;
    line-height: 36px;
    text-align: center;
    color: #333333;
}

.accessories-subtitle {
    font-family: 'Proxima Nova';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    color: #6D6E6F;
}

#accessories-switch > div {
    font-family: 'Proxima Nova';
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    text-align: center;
    color: #2A90D6;
    cursor: pointer;
}
/* <-- Accessories Title Section */

/* Custom Accessories Section --> */
.custom-es-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: auto;
    max-width: 900px;
    padding: 16px;
    background: white;
}

.custom-es-subtitle-envelope-section {
    display: flex;
    flex-direction: column;
    /* margin: auto; */
    gap: 24px;
}

.custom-es-subtitle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.custom-es-subtitle > div:first-child {
    font-family: 'Proxima Nova';
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    color: #000000;
}

.custom-es-subtitle > div:last-child{
    font-family: 'Proxima Nova';
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
    color: #000000;
}

.custom-es-envelope,
.custom-es-sleeve {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-es-template-section {
    display: flex;
    justify-content: space-between;
}

@media screen and (max-width: 450px) {
    .custom-es-template-section {
        display: flex;
        flex-direction: column;
        justify-content: normal;
        gap: 5px;
    }
}

.custom-es-template-section > div:first-child {
    font-family: 'Proxima Nova';
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    color: #000000;
}


.custom-es-template-section > div:last-child {
    display: flex;
    gap: 8px;
}

.custom-es-description-section > div:first-child {
    font-family: 'Proxima Nova';
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
    color: #6D6E6F;
}

.custom-es-quantity-and-upload-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.custom-es-quantity-section,
.custom-es-quantity-section,
.custom-es-sleeve-printing {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.custom-es-quantity-section > div:first-child,
.custom-es-sleeve-printing > div:first-child,
.custom-es-sleeve-paper-colors > div:first-child {
    font-family: 'Proxima Nova';
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    color: #333333;
}

.custom-es-quantity-section select,
.custom-es-sleeve-printing select {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px;
    gap: 10px;
    max-width: 320px;
    width: 100%;
    height: 40px;
    background: #FFFFFF;
    border: 1px solid #CDCDCD;
    border-radius: 3px;
}

.custom-es-upload-section {
    display: flex;
    flex-direction: column;
}

.custom-es-upload-section > div:first-child {
    font-family: 'Proxima Nova';
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    color: #333333;
}

/* Paper Color Section -->*/
.custom-es-sleeve-paper-colors {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.custom-es-sleeve-paper-color-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.paper-color-title {
    padding-top: 45px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
}

.kraft-paper-color-row {
    margin-bottom: 0;
}

.paper-color-box-div {
    text-align: center;
    cursor: pointer;
}

.paper-color-checkbox {
    margin: auto;
    /* position: relative!important; */
    top: 0;
    width: 0;
    height: 0;
}

.paper-color-border {
    position: relative;
    width: 100%;
    padding: 3px;
    display: inline-block;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.color-box {
    vertical-align: middle;
    display: inline-block;
    /* width: 83px; */
    width: 100%;
    height: 58px;
}

.text-color-activated::after,
.text-color-activated::before {
    content: "";
    position: absolute!important;
    display: block;
}

#natural-paper-color-box {
    background-color: #F0EAD6;
}

.text-color-activated::before {
    border-radius: 50%;
    bottom: -12px;
    right: -10px;
    /* left: 95.25%;
    top: 64%; */
    /* left: 24px;
    top: 43px;
    float: left; */
    background-color: #CC4744;
    width: 32px;
    height: 32px;
    margin: 0 auto;
    border: 3px solid #fff;
}

.text-color-activated::after {
    height: 14px;
    width: 18px;
    bottom: -3px;
    right: -3px;
    /* left: 97%;
    top: 78%; */
    /* left: 32px;
    top: 53px; */
    background: url(../img/check.svg);
}

.text-color-label {
    margin-bottom: 10px;
    padding-top: 4px;
    color: #6E7889;
    letter-spacing: 1px;
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
}
/* <-- Paper Color Section */

/* .paper-color-border-test {
    position: relative;
    width: 100%;
    padding: 3px;
    display: inline-block;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
} */

.paper-color-checkbox-test {
    margin: auto;
    /* position: absolute !important; */
    top: 0;
    width: 0;
    height: 0;
}

.text-color-activated-test::after,
.text-color-activated-test::before {
    content: "";
    position: absolute!important;
    display: block;
}

.text-color-activated-test::before {
    border-radius: 50%;
    /* left: 24px;
    top: 43px; */
    left: 95.25%;
    top: 64%;
    /* float: left; */
    background-color: #CC4744;
    width: 32px;
    height: 32px;
    margin: 0 auto;
    border: 3px solid #fff;
}

.text-color-activated-test::after {
    height: 14px;
    width: 18px;
    /* left: 32px;
    top: 53px; */
    left: 97%;
    top: 78%;
    background: url(../img/check.svg);
}
/* <-- Custom Accessories Section */

@media screen and (max-width:675px) {
    .download-template {
        float: none!important;
        display: block;
    }
}

@media screen and (max-width:479px) {
    @media screen and (max-width: 353px) {
        .page-title {
            font-size: 29px;
        }
    }
    #custom-envelope-file-selector-info,
    #custom-sleeve-file-selector-info {
        margin-bottom: 0;
    }
    #customEnvelopeFileUploadButton,
    #customSleeveFileUploadButton {
        width: 100%;
    }
    .left-color-div {
        float: none;
    }
    .right-color-div {
        float: none;
    }
    #continue-button-two,
    #go-back-button {
        width: 80%;
        height: 55px;
    }
}

@media screen and (min-width:480px) and (max-width:767px) {
    .file-info-col {
        padding-right: 0;
    }
    #custom-envelope-file-selector-info,
    #custom-sleeve-file-selector-info {
        width: 101%;
    }
    #customEnvelopeFileUploadButton,
    #customSleeveFileUploadButton {
        width: 100%;
    }
    #silver-paper-color-div,
    #white-paper-color-div {
        float: right;
    }
    #kraft-paper-color-div,
    #red-paper-color-div {
        float: left;
    }
    #continue-button-two,
    #go-back-button {
        width: 74%;
    }
}

@media screen and (min-width:768px) and (max-width:991px) {
    #custom-envelope-file-selector-info,
    #custom-sleeve-file-selector-info {
        width: 103%;
    }
}

@media screen and (min-width:992px) and (max-width:1199px) {
    #custom-envelope-file-selector-info,
    #custom-sleeve-file-selector-info {
        width: 98%;
    }
}

@media screen and (min-width:1200px) {
    #custom-envelope-file-selector-info,
    #custom-sleeve-file-selector-info {
        width: 104%;
    }
}