.editor-wrapper {
    width: 100%;
    min-height: 800px;
    position: relative;
}
.cv-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.cvctrl-container {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 280px;
    padding: 0px 20px 0 0;
    font-size: 13px;
    font-family: Roboto,"Helvetica Neue",sans-serif;
}

.cv-title {
    font-family: Roboto,"Helvetica Neue",sans-serif;
    font-weight: 400;
    display: inline-block;
    font-size: 18px;
    width: 127px;
}

.cvctrl-container select {
    height: 30px;
    width: calc(100%);
}

.padding0 { padding: 0px !important; }
.margin0 { margin: 0px !important; }
.margintop5 { margin-top: 5px !important; }
.margintop10 { margin-top: 10px !important; }
.margintop15 { margin-top: 15px !important; }
.margintop20 { margin-top: 20px !important; }

.f400 { font-weight: 400 !important; }
.f600 { font-weight: 600 !important; }

.cvctrl-container .panel {
    margin-bottom: 0;
    border-radius: 4px;
    border-color: #ddd;
    background-color: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
    font-size: 16px;
}

.cvctrl-container .panel .panel-heading {
    background-color: #98a4af;
    border-radius: 0;
    color: #333;
    border-color: #ddd;
    border-bottom: 0;
    padding: 10px 15px;
    outline: none;
}

.cvctrl-container .panel table tr {
    text-align: center;
}

.panel-title {
    margin-top: 0;
    margin-bottom: 0;
    color: #fff !important;
}

.cvctrl-container .nav {
  margin-right: 0;
  max-height: 280px;
  overflow-x: scroll;
  overflow-y: scroll;
  padding-bottom: 15px;
  padding-top: 15px;
}

.cvctrl-container .nav .size-tbl {
    padding: 0 10px;
}

.size-tbl table {
    width: 100%;
}

.size-tbl th {
    color: #cd9d4e;
    font-size: 12px;
    padding-bottom: 10px;
    text-align: center;
}

.size-tbl .size-img {
    width: 40px;
    display: inline-block;
}

.cv-multi .size-tbl .size-img {
    width: 55px;
}

.size-img {
    margin: 0;
    padding: 0;
    text-align: center;
    cursor: pointer;
}

.size-img.active {
    background-color: #337ab7;
    color: #fff;
}

.size-img:hover {
    background-color: #ddd;
    color: #337ab7;
}

.size-img.active:hover {
    background-color: #337ab7;
    color: #fff;
}

.size-img a {
    display: inline-block;
    color: #337ab7;
    text-decoration: none;
}

.size-img h5 {
    font-size: 10px;
    margin-top: 15px;
    height: 20px;
    text-align: center;
    word-wrap: break-word;
}

.effect-img {
    float: left;
    position: relative;
    min-width: 1px;
    padding-left: 10px;
    padding-right: 10px;
    cursor: pointer;
}

.effect-img.active {
    background-color: #337ab7;
    color: #fff;
}

.effect-tbl td {
    width: 25%;
}

.effect-img:hover {
    background-color: #ddd;
    color: #337ab7;
}

.effect-img.active:hover {
    background-color: #337ab7;
    color: #fff;
}

#customisebar {
    outline: none;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
    box-sizing: border-box;
    height: 100px;
}

.btn-group-justified {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    position: relative;
    vertical-align: middle;
}

.btn-group .col-sm-3 {
    display: table-cell;
    float: none;
    width: 1%;
    position: relative;
    vertical-align: middle;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.btn-group-justified a {
    width: 100%;
    padding: 10px 5px;
    font-size: 12px;
    color: #cd9d4e;
}

.btn-group-justified i {
    display: block;
    font-size: 30px;
    color: #445861;
    margin-bottom: 5px;
}

.btn-group-justified .options i .fa {
    font: normal normal normal 14px/1 FontAwesome;
}

.cvedit-container {
    position: absolute;
    width: calc(100% - 550px);
    height: 100%;
    left: 300px;
    top: 0;
}

.btn-group .col-sm-3 {
    padding-left: 5px;
    padding-right: 5px;
}

.dropdown ul {
    margin: 0;
    padding: 0 10px;
    min-width: 240px;
}

.wrapper {
    position: relative;
    width: 100%;
    height: calc(100% - 100px);
    background: url("/app/images/viewport-bg.png");

}

#imageboard {
    position: relative;
    width: 100%;
    height: 100%;
}

.cvprice-container {
    position: absolute;
    width: 250px;
    right: 0px;
    top: 0;
    padding-left: 20px;
}

.cvprice-container .panel .panel-heading {
    background-color: #98a4af;
    border-radius: 0;
    color: #333;
    border-color: #ddd;
    border-bottom: 0;
    padding: 10px 15px;
    outline: none;
}

.cvprice-container .nav1 {
    padding: 15px;
}

#imageboard .gpanel {
    position: absolute;
    overflow: hidden;
}

#imageboard .gpanel:hover {
    cursor: pointer;
}

#canvasBoard {
    position: relative;
    /* display: inline; */
}

.gpanel .gorgimg,
.gpanel .gbackimg,
.gpanel .gbackcolor,
.gpanel .wrappanel {
    position: absolute;
} 

.gpanel .gbackimg,
.gpanel .gbackcolor,
.gpanel .wrappanel {
    opacity: 0.5;
    display: none;
}

.gpanel:hover {
    z-index: 999;
}

.gpanel:hover .gbackimg,
.gpanel:hover .gbackcolor,
.gpanel:hover .wrappanel {
    display: unset;
}

.wrappanel .wrap {
    position: absolute;
    overflow: hidden;
    display: inline;
}

.wrappanel img {
    position: absolute;
    object-fit: cover;
    min-height: 100%;
}

.gmove {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
}

.gmove > path {
    fill: rgba(0, 0, 0, .5);
}

.gmove:hover > path {
    fill: rgba(255, 0, 0, .5);
    stroke-width: .1;
    stroke: rgba(255, 0, 0, .5);
}

.gpanel:hover {
    outline: 1px dashed #f00;
}
.gpanel .gview {
    position: absolute;
    overflow: hidden;
}

.gpanel.active .gview {
    outline: 2px solid #0f0;
}

.slidecontainer {
    width: 100%;
}

.slider {
	-webkit-appearance: none;
	width: 70%;
	height: 15px;
	background: #d3d3d3;
	outline: none;
	opacity: 0.7;
	-webkit-transition: .2s;
	transition: opacity .2s;
}

.slider:hover {
	opacity: 1;
}

.slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 10px;
	height: 25px;
	background: #cd9d4e;
	cursor: pointer;
	border-radius: 5px;
}

.slider::-moz-range-thumb {
	width: 10px;
	height: 25px;
	background: #cd9d4e;
	cursor: pointer;
}

#colorPallate {
    padding: 0;
}

.nav1 .size span {
    color: #337ab7;
}

/* The Modal (background) */
#previewModal {
	display: none; 
	/* position: fixed; */
	z-index: 10000; 
	padding-top: 100px; 
	left: 0;
	top: 0;
	width: 100%; 
	height: 100%;
	overflow: auto; /* Enable scroll if needed */
	background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
	margin: auto;
	display: block;
}

/* Add Animation */
.modal-content {
	-webkit-animation-name: zoom;
	-webkit-animation-duration: 0.6s;
	animation-name: zoom;
	animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
	from {-webkit-transform:scale(0)} 
	to {-webkit-transform:scale(1)}
}

@keyframes zoom {
	from {transform:scale(0)} 
	to {transform:scale(1)}
}

/* The Close Button */
#previewModal .close {
	position: absolute;
	top: 15px;
	right: 35px;
	color: #f1f1f1;
	font-size: 40px;
	font-weight: bold;
	transition: 0.3s;
}

#add-to-cart {
    position: absolute;
    right: 35px;
    font-size: 16px;
    transition: 0.3s;
}

.close:hover,
.close:focus {
	color: #bbb;
	text-decoration: none;
	cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
.modal-content {
    width: 100%;
}
}


/* Smart single-canvas size picker */
#single-image-sizes,
#single-image-sizes.legacy-size-table {
    display: none !important;
}

#custom-size-conntainer {
    display: none !important;
}

.smart-size-picker {
    width: 100%;
    padding: 4px 0 8px;
}

.smart-size-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 12px;
}

.smart-size-copy strong {
    font-size: 15px;
    color: #1f2937;
}

.smart-size-copy span,
.smart-size-rule {
    font-size: 11px;
    line-height: 1.35;
    color: #667085;
}

.smart-size-input-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    gap: 8px;
    align-items: end;
}

.smart-size-input-row label {
    margin: 0;
    min-width: 0;
}

.smart-size-input-row label > span {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #475467;
}

.smart-size-input-wrap {
    display: flex;
    align-items: center;
    height: 44px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.smart-size-input-wrap:focus-within {
    border-color: #111827;
    box-shadow: 0 0 0 2px rgba(17,24,39,.08);
}

.smart-size-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    padding: 0 8px 0 11px;
    font-size: 16px;
    font-weight: 700;
    background: transparent;
}

.smart-size-input-wrap em {
    padding-right: 10px;
    font-size: 11px;
    font-style: normal;
    color: #667085;
}

.smart-size-times {
    padding-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #667085;
}

.smart-size-find {
    grid-column: 1 / -1;
    height: 40px;
    margin-top: 2px;
    border: 0;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.smart-size-rule {
    margin-top: 9px;
}

.smart-size-results {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.smart-size-option {
    width: 100%;
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "rank rank"
        "size meta";
    gap: 3px 10px;
    align-items: center;
    padding: 9px 11px;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.smart-size-option:hover {
    border-color: #98a2b3;
    background: #fafafa;
}

.smart-size-option.selected {
    border-color: #111827;
    box-shadow: 0 0 0 1px #111827;
    background: #f9fafb;
}

.smart-size-rank {
    grid-area: rank;
    min-height: 15px;
}

.smart-size-badge {
    display: inline-flex;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef2f6;
    color: #344054;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.smart-size-badge.exact {
    background: #ecfdf3;
    color: #027a48;
}

.smart-size-dim {
    grid-area: size;
    font-size: 16px;
    font-weight: 900;
    color: #101828;
}

.smart-size-meta {
    grid-area: meta;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 13px;
}

.smart-size-meta strong {
    font-size: 14px;
}

.smart-frame-badge {
    font-size: 9.5px;
    font-weight: 700;
    color: #027a48;
    white-space: nowrap;
}

.smart-size-empty {
    padding: 11px;
    border-radius: 8px;
    background: #f9fafb;
    color: #667085;
    font-size: 12px;
}

@media (max-width: 480px) {
    .smart-size-results {
        grid-template-columns: 1fr;
    }
}
/* Canvas editor: prevent global responsive image rules
   from shrinking images used for Gallery and Mirror Wrap */

#canvasBoard .gorgimg,
#canvasBoard .gbackimg,
#canvasBoard .wrappanel img {
  max-width: none !important;
  max-height: none !important;
  object-fit: fill;
}

/* Frame & Wrap - dropdown and colour picker inline */

.tcp-wrap-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

  .tcp-wrap-inline .tcp-wrap-select {
    flex: 1 1 auto;
    min-width: 0;
  }

  .tcp-wrap-inline .tcp-wrap-colour {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

    .tcp-wrap-inline .tcp-wrap-colour label {
      display: none;
    }

    .tcp-wrap-inline .tcp-wrap-colour .sp-replacer,
    .tcp-wrap-inline .tcp-wrap-colour .minicolors {
      margin: 0;
    }

/* TCP editor-only side-wrap guide (not part of the printed artwork) */
#canvasBoard .gpanel.tcp-wrap-visible .gbackimg,
#canvasBoard .gpanel.tcp-wrap-visible .gbackcolor,
#canvasBoard .gpanel.tcp-wrap-visible .wrappanel {
    display: block !important;
}
#canvasBoard .gpanel .tcp-wrap-guide {
    position: absolute;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-sizing: border-box;
    color: #fff;
    font-size: clamp(8px, 0.8vw, 11px);
    font-weight: 700;
    letter-spacing: .03em;
    text-shadow: 0 1px 3px rgba(0,0,0,.9);
    overflow: hidden;
    white-space: nowrap;
}
#canvasBoard .gpanel .tcp-wrap-guide-left,
#canvasBoard .gpanel .tcp-wrap-guide-right {
    writing-mode: vertical-rl;
}
/* Hide guidance during every screenshot/export path. */
html.is-capturing #canvasBoard .tcp-wrap-guide,
#canvasBoard.tcp-capturing .tcp-wrap-guide { display: none !important; }

/* Split/packages: gaps are applied to complete panels by canvasapp.core.js.
   No changes to photo positioning, panel dimensions or print artwork. */
#canvasBoard.tcp-spaced-panels #canvasImageWrapper { overflow: visible; }
#canvasBoard.tcp-spaced-panels .gpanel { will-change: transform; }
#canvasBoard.tcp-spaced-panels .tcp-wrap-guide { opacity: .82; }
