#photo-plugin {
    grid-template-columns: 7fr 3fr;
    display: grid;
    grid-column-gap: 14px;

    font-family: 'Raleway', Arial;
    font-size: 13px;
    color: black;
}

#photo-plugin .container-left,
#photo-plugin .container-right {
    vertical-align: top;
}

#photo-plugin .grey {
    background-color: #ecf2f6;
}

#photo-plugin .white {
    background-color: white;
}

#photo-plugin .orange,
#photo-plugin-preview-container .orange {
    background-color: #fbb040;
}

#canvas-container {
    position: relative;
    border: lightgray 0.5px solid;
}

#photo-plugin .pop-up-msg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#drag-photo-msg h2 {
    width: 100%;
    max-width: 300px;
    text-align: center;
}

#photo-too-large-msg {
    z-index: 1001;
    background-color: white;

    padding: 0 25px;
}

#photo-too-large-msg p {
    text-align: center;
}

#photo-too-large-msg div.button {
    width: auto;
    margin-top: 25px;
    padding: 0 25px;
}

#photo-plugin-upload {
    display: none;
}

#cpp-form>div:first-child {
    padding-top: 33px;
}

#cpp-form>div {
    padding-left: 21px;
    padding-right: 21px;
}

#photo-plugin h2 {
    margin-bottom: 16px;

    text-transform: uppercase;
    font-family: 'Raleway', Arial;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 0.5px;
    color: black;
}

#photo-plugin h2:not(:first-child) {
    margin-top: 45px;
}

#photo-plugin hr {
    height: 0;
    margin: 15px 0;
    border: none;
    border-bottom: 1px solid white;
}

#cpp-wall-dimensions-container {
    width: 100%;
    max-width: 250px;
}

#cpp-wall-dimensions-container input {
    max-width: none;
    min-height: auto;
    width: 120px;
    height: 38px;
    padding: 0;
    padding-left: 11px;
    border: none;
}

#cpp-wall-dimensions-container p {
    margin-top: 10px;
    margin-bottom: 10px;
}

#cpp-wall-dimensions-container input[type=number]::-webkit-inner-spin-button {
    opacity: 1;
}

/* --- Somehow we have to make separate selectors for each or it won't work. --- */

#cpp-wall-dimensions-container input::-webkit-input-placeholder {
    text-align: center;
    color: black;
}
 
#cpp-wall-dimensions-container input:-moz-placeholder { /* Firefox 18- */
    text-align: center;  
    color: black;
}
 
#cpp-wall-dimensions-container input::-moz-placeholder {  /* Firefox 19+ */
    text-align: center;  
    color: black;
}
 
#cpp-wall-dimensions-container input:-ms-input-placeholder {  
    text-align: center; 
    color: black;
}

/* --- end --- */

#photo-plugin #qualitybar-container {
    position: relative;
    width: 100%;
    height: 10px;

    background-color: white;
}

#photo-plugin #qualitybar {
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
}

#photo-plugin #qualitybar-labels {
    margin-top: 19px;

    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    display: grid;
}

#photo-plugin .qualitybar-label {
    text-transform: lowercase;
    text-align: center;
}

#photo-plugin .material-container {
    grid-template-columns: 1fr 9fr;
    display: grid;
}

#photo-plugin input[type='radio'],
#photo-plugin .material-container label {
    margin: 0;
    vertical-align: baseline;
}

#photo-plugin .material-container input[type='radio'] {
    margin-top: 5px;
    transform: scale(1.3);
}

#photo-plugin #bad-quality-photo {
    display: none;
}

#photo-plugin .select-container input {
    display: inline-block;
    margin-top: 3px;

    vertical-align: top;

    width: 16px;
}

#photo-plugin .select-container label {
    display: inline-block;

    width: calc(100% - 30px);
}

#photo-plugin .bottom-row {
    margin-top: 25px;

    height: 60px;
}

#photo-plugin .price-table {
    grid-template-columns: 1fr 3fr 3fr 3fr;
    display: grid;

    margin-top: 21px;
    margin-bottom: 13px;
    padding-bottom: 15px;
}

#photo-plugin .price-table :nth-child(-n+4) {
    margin-bottom: 3px;
    padding-bottom: 5px;
    border-bottom: 1px solid white;
}

#photo-plugin .price-table label {
    margin: 0;
    padding: 0;

    color: gray;
    text-transform: lowercase;
}

#photo-plugin .button,
#photo-plugin-preview-container .button {
    display: inline-block;

    width: 133px;
    height: 43px;
    padding: 0;

    border-radius: 50px;

    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    line-height: 43px;
}

#photo-plugin .button.white,
#photo-plugin-preview-container .button.white {
    color: #fbb040;
}

#photo-plugin .button.orange,
#photo-plugin-preview-container .button.orange {
    color: white;
}

#photo-plugin #tool-container {
    width: 100%;
    
    grid-template-columns: 1fr 2fr 2fr 2fr 2fr 1fr 2fr 7fr 1fr 4fr 7fr 1fr;
    display: grid;
    grid-column-gap: 1px;
    align-items: center;
    justify-items: center;
}

#photo-plugin div.button,
#photo-plugin #tool-container img,
#photo-plugin #tool-container label {
    cursor: pointer;
}

#photo-plugin #tool-container label {
    color: white;
    text-transform: uppercase;
}

#photo-plugin .container-right.bottom-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

#photo-plugin-preview-container {
    display: none;
}

#photo-plugin-preview-container {
    position: fixed;
    max-width: 800px;
    width: 100%;
    max-height: calc(100% - 35px);

    top: 35px;
    left: 50%;
    z-index: 1000;
    
    transform: translateX(-50%);
    border: 1px solid black;
    overflow: hidden;
}

#photo-plugin-preview-container p {
    margin: 0;
    padding: 5px 60px 5px 5px;

    background-color: #fbb040;
}

#photo-plugin-preview-container input {
    position: absolute;
    top: 0;
    right: 0;
    border-left: 1px solid black;
    border-bottom: 1px solid black;
}

#photo-plugin-preview {
    width: 800px;
    height: 533px;
    perspective: 800px;
    overflow: hidden;

    background-color: white;
}

#photo-plugin-preview img {
    position: absolute;
    top: 0;
    left: 0;
}

img#preview-image {
    top: 23%;
    left: 30%;
    width: 71%;
    height: 54%;
    z-index: -1;
    transform-style: preserve-3d;
    transform: rotateY(304deg);
    background-color: white;
}

#photo-plugin .red {
    color: red!important;
}

#order-progress-bar {
    width: 10%;
    height: 100%;
    background-color: #fbb040;

    padding-left: 5%;
    line-height: 60px;

    overflow: hidden;
}