.gift-shell {
  width: 700px;
}

.gift-product .webshop-product-name {
  font-size: 13px;
}

.gift-editor {
  display: none;
  margin-top: 12px;
  border: 1px solid #d6dee8;
  background: #ffffff;
}

.gift-editor.active {
  display: block;
}

.gift-editor-head {
  display: table;
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  background: #f7f9fb;
  border-bottom: 1px solid #d6dee8;
}

.gift-editor-head > div {
  display: table-cell;
  vertical-align: middle;
}

.gift-editor-title {
  color: #111827;
  font-size: 16px;
  font-weight: bold;
  line-height: 20px;
}

.gift-editor-meta {
  margin-top: 3px;
  color: #64748b;
  line-height: 16px;
}

.gift-editor-close {
  display: table-cell;
  width: 78px;
  padding: 6px 8px;
  border: 1px solid #c7d3e0;
  background: #ffffff;
  color: #1f2933;
  font-weight: bold;
  cursor: pointer;
}

.gift-editor-body {
  display: table;
  width: 100%;
}

.gift-preview-panel {
  display: table-cell;
  width: 468px;
  padding: 12px;
  vertical-align: top;
}

.gift-preview-stage {
  position: relative;
  width: 440px;
  height: 330px;
  border: 1px solid #c7d3e0;
  background: #f2f4f7;
  overflow: hidden;
}

.gift-product-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gift-print-area {
  position: absolute;
  left: 144px;
  top: 74px;
  width: 154px;
  height: 158px;
  border: 0;
  background: transparent;
  overflow: visible;
  box-sizing: border-box;
  cursor: move;
}

.gift-print-curve-svg {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.gift-print-curve-svg path {
  fill: none;
  stroke: #e89400;
  stroke-width: 2;
  stroke-dasharray: 4 3;
}



.gift-print-area.spread {
  overflow: visible;
}

.gift-print-area.spread .gift-user-photo {
  width: 142%;
}

.gift-preview-canvas {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.gift-print-empty {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  z-index: 3;
  text-shadow: 0 1px 2px #fff;
  color: #354457;
  font-weight: bold;
  text-align: center;
  transform: translateY(-50%);
}

.gift-user-photo {
  display: none !important;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
}

.gift-text-layer {
  display: none;
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 8px;
  z-index: 3;
  color: #111827;
  font-size: 17px;
  font-weight: bold;
  line-height: 20px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255,255,255,0.88);
  word-break: break-word;
}

.gift-controls {
  display: table-cell;
  width: 198px;
  padding: 12px 10px 12px 0;
  vertical-align: top;
}

.gift-side-switch {
  display: table;
  width: 100%;
  margin-bottom: 8px;
  border-collapse: collapse;
}

.gift-side-switch button {
  display: table-cell;
  width: 50%;
  border: 1px solid #c7d3e0;
  background: #f3f6fa;
  color: #1f2933;
  font-weight: bold;
  line-height: 28px;
  cursor: pointer;
}

.gift-side-switch button.active {
  border-color: #d98600;
  background: #f39800;
  color: #ffffff;
}

.gift-back-image-row {
  margin-bottom: 8px;
}

.gift-control-button,
.gift-cart-button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  padding: 9px 10px;
  border: 1px solid #bf7300;
  background: #e89400;
  color: #ffffff !important;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
}

.gift-control-button input[type=file] {
  display: none;
}

.gift-control-button.secondary {
  border-color: #c7d3e0;
  background: #f3f6fa;
  color: #1f2933 !important;
}

.gift-control-label {
  display: block;
  margin: 8px 0 4px 0;
  color: #21384f;
  font-weight: bold;
}

.gift-control-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c7d3e0;
  padding: 7px 8px;
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 12px;
}

.gift-control-row {
  overflow: hidden;
  margin-top: 8px;
}

.gift-control-row label {
  float: left;
  color: #21384f;
  font-weight: bold;
  line-height: 26px;
}

.gift-control-row input {
  float: right;
  width: 48px;
  height: 26px;
  padding: 0;
}

.gift-controls input[type=range] {
  width: 100%;
}

.gift-selected-product {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #d6dee8;
  border-radius: 6px;
  background: #ffffff;
}

.gift-selected-product-title {
  color: #111827;
  font-weight: bold;
}

.gift-selected-product-meta {
  margin-top: 3px;
  color: #64748b;
  line-height: 16px;
}

.gift-check-row {
  display: block;
  margin: 10px 0;
  padding: 7px 8px;
  border: 1px solid #d6dee8;
  border-radius: 6px;
  background: #f7f9fb;
  color: #21384f;
  font-weight: bold;
}

.gift-check-row input {
  vertical-align: middle;
}

.gift-output-hints {
  display: none;
  margin: 8px 0;
  padding: 8px 9px;
  border: 1px solid #ead7b8;
  border-radius: 6px;
  background: #fff8ed;
  color: #55412a;
  line-height: 18px;
}

.gift-cart-checkout {
  display: block;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid #bf7300;
  background: #e89400;
  color: #ffffff !important;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}

.gift-cart-panel {
  margin-top: 12px;
  border: 1px solid #d6dee8;
  background: #ffffff;
}

.gift-cart-title {
  padding: 8px 10px;
  border-bottom: 1px solid #d6dee8;
  background: #f7f9fb;
  color: #21384f;
  font-weight: bold;
}

#gift-cart-items {
  padding: 10px;
  color: #64748b;
}

.gift-cart-row {
  display: table;
  width: 100%;
  padding: 6px 0;
  border-bottom: 1px solid #edf1f5;
}

.gift-cart-row:last-child {
  border-bottom: 0;
}

.gift-cart-row-name,
.gift-cart-row-price,
.gift-cart-row-action {
  display: table-cell;
  vertical-align: middle;
}

.gift-cart-row-name {
  color: #111827;
  font-weight: bold;
}

.gift-cart-row-price {
  width: 86px;
  color: #e89400;
  font-weight: bold;
  text-align: right;
}

.gift-cart-row-action {
  width: 58px;
  text-align: right;
}

.gift-cart-delete {
  padding: 4px 7px;
  border: 1px solid #c7d3e0;
  background: #f3f6fa;
  color: #1f2933;
  cursor: pointer;
}

.gift-login-modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.48);
}

.gift-login-modal.active {
  display: block;
}

.gift-login-card {
  width: 330px;
  margin: 120px auto 0 auto;
  border: 1px solid #c7d3e0;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.28);
}

.gift-login-head {
  display: table;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-bottom: 1px solid #d6dee8;
  background: #f7f9fb;
}

.gift-login-head > div {
  display: table-cell;
  vertical-align: middle;
}

.gift-login-title {
  color: #111827;
  font-size: 16px;
  font-weight: bold;
}

.gift-login-subtitle {
  margin-top: 3px;
  color: #64748b;
  line-height: 16px;
}

.gift-login-close {
  display: table-cell;
  width: 34px;
  height: 30px;
  border: 1px solid #c7d3e0;
  background: #ffffff;
  color: #1f2933;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.gift-login-message {
  display: none;
  margin: 10px 12px 0 12px;
  padding: 8px 9px;
  border: 1px solid #d6dee8;
  background: #f7f9fb;
  line-height: 17px;
}

.gift-login-message.active {
  display: block;
}

.gift-login-message.error {
  border-color: #f1b7b7;
  background: #fff1f1;
  color: #9f1239;
}

.gift-login-message.ok {
  border-color: #c7d3e0;
  background: #f7f9fb;
  color: #21384f;
}

.gift-login-label {
  display: block;
  margin: 10px 12px 4px 12px;
  color: #21384f;
  font-weight: bold;
}

.gift-login-input {
  display: block;
  width: 306px;
  box-sizing: border-box;
  margin: 0 12px;
  padding: 8px;
  border: 1px solid #c7d3e0;
  background: #ffffff;
  color: #111827;
}

.gift-login-save {
  display: block;
  margin: 10px 12px;
  color: #475569;
}

.gift-login-save input {
  vertical-align: middle;
}

.gift-login-submit {
  display: block;
  width: 306px;
  box-sizing: border-box;
  margin: 0 12px 10px 12px;
  padding: 9px 10px;
  border: 1px solid #bf7300;
  background: #e89400;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
}

.gift-login-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.gift-login-links {
  padding: 0 12px 12px 12px;
  text-align: center;
}

.gift-login-links a {
  margin: 0 7px;
  color: #2b73a8;
  text-decoration: none;
}

.gift-preview-canvas{pointer-events:auto!important;touch-action:none;cursor:grab}.gift-preview-canvas:active{cursor:grabbing}.gift-color-picker{position:relative;display:flex;align-items:center;gap:10px;cursor:pointer}.gift-color-picker span:first-child{font-size:27px}.gift-color-picker input[type=color]{width:44px!important;height:38px!important;padding:3px!important;cursor:pointer}.gift-drag-help{font-size:13px;line-height:1.5;color:#405847}
