:root {
  scroll-behavior: auto;
  --text-main: #1c1c1c;
  --text-sub: #555555;
  --bg-page: #ffffff;
  --bg-secondary: #f9f9f9;
  --border: #e2e2e2;
  --accent: #c0a062;
  --header-bg: #000000;
  --header-text: #ffffff;
  --color-accent: #c0a062;
  --color-accent-hover: #b09152;
  --color-primary: #0d6efd;
  --color-secondary: #6c757d;
  --color-success: #198754;
  --color-info: #0dcaf0;
  --color-warning: #ffc107;
  --color-danger: #dc3545;
  --color-light: #f8f9fa;
  --color-dark: #111827;
  --color-text: #2d2d2d;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-secondary: #f9fafb;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --text-primary: #000;
  --announcement-height: 38px;
  --header-height: 80px;
  --heading-font-weight: 500;
  --heading-font-style: normal;
  --heading-text-transform: uppercase;
  --heading-letter-spacing: 0.2em;
  --text-font-weight: 400;
  --text-font-style: normal;
  --text-letter-spacing: 0.15em;
  --button-text-transform: uppercase;
  --button-letter-spacing: 0.2em;
  /* Font sizes */
  --text-heading-size-factor: 1;
  --text-h1: max(
    0.6875rem,
    clamp(1.375rem, 1.146341463414634rem + 0.975609756097561vw, 2rem) *
      var(--text-heading-size-factor)
  );
  --text-h2: max(
    0.6875rem,
    clamp(1.25rem, 1.0670731707317074rem + 0.7804878048780488vw, 1.75rem) *
      var(--text-heading-size-factor)
  );
  --text-h3: max(
    0.6875rem,
    clamp(1.125rem, 1.0335365853658536rem + 0.3902439024390244vw, 1.375rem) *
      var(--text-heading-size-factor)
  );
  --text-h4: max(
    0.6875rem,
    clamp(1rem, 0.9542682926829268rem + 0.1951219512195122vw, 1.125rem) *
      var(--text-heading-size-factor)
  );
  --text-h5: calc(0.875rem * var(--text-heading-size-factor));
  --text-h6: calc(0.75rem * var(--text-heading-size-factor));
  --text-xs: 0.6875rem;
  --text-sm: 0.75rem;
  --text-base: 0.6875rem;
  --text-lg: 0.8125rem;
  --text-xl: 0.9375rem;
}

a {
  text-decoration: none;
  color: #000;
}

.form-control {
  box-shadow: none !important;
  outline: none !important;
}

.bg-gray {
  background: #f5f5f5;
}

.breadcrumbs {
  padding: 20px 40px;
  font-size: 12px;
  text-transform: uppercase;
  background: var(--bg-secondary);
}
.breadcrumbs ol {
  margin-bottom: 0;
}

.password-form input {
  border-color: #dee2e6 !important;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
  box-shadow: none !important;
}
.password-form button {
  border-color: #dee2e6 !important;
  border-left: none;
  background: none !important;
}
.password-form.is-invalid input {
  border-color: #dc3545 !important;
}
.password-form.is-invalid button {
  border-color: #dc3545 !important;
}

.main-nav-bar .navbar-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
  text-transform: uppercase;
}
.main-nav-bar .container,
.main-nav-bar .navbar-collapse,
.main-nav-bar .navbar,
.main-nav-bar .navbar-nav {
  overflow: visible;
}
.main-nav-bar a.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
}
.main-nav-bar .nav-icons {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 24px;
}
.main-nav-bar .nav-icons .nav-icon-btn {
  background: none;
  border: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-nav-bar .nav-icons .nav-icon-btn:hover {
  color: #c8c7c7;
}
.main-nav-bar .navbar-toggler {
  box-shadow: none;
  padding: 2px 5px;
}
.main-nav-bar .nav-cart {
  color: var(--color-text);
  cursor: pointer;
  background: none;
  border: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  display: flex;
  text-decoration: none;
  position: relative;
}
.main-nav-bar .nav-cart .cart-count {
  position: absolute;
  top: -10px;
  right: -8px;
  background: #c0a062;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-nav-bar .login,
.main-nav-bar .login:active {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
  min-height: unset;
}
@media (max-width: 991.98px) {
  .main-nav-bar .dropdown-menu {
    width: calc(100vw - 24px);
    margin-top: 10px;
  }
  .main-nav-bar .navbar-brand {
    font-size: 0.95rem;
  }
  .main-nav-bar .login::after {
    content: unset;
  }
}

.main-footer {
  background: #2e2e2e;
  color: #fff;
}
.main-footer a {
  color: #bbb;
}
.main-footer h4 {
  font-size: 1.25rem;
}

.homepage .carousel .carousel-inner .carousel-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}
.homepage .section-services .item {
  color: #fff;
  text-transform: uppercase;
}
.homepage .section-services .item.item-1 {
  background: #fc4349;
}
.homepage .section-services .item.item-2 {
  background: #8dbf41;
}
.homepage .section-services .item.item-3 {
  background: #3498db;
}
.homepage .section-services .item.item-4 {
  background: #292d33;
}
.homepage .section-services .item .wrapper-text {
  padding: 3rem 1rem;
}
.homepage .section-services .item .btn {
  width: 100%;
  border: none;
  border-radius: 0;
  background: #31353d;
  font-size: 1.3rem;
  text-align: left;
  padding: 0.5rem 0 0.5rem 2rem;
  font-weight: 300;
}
.homepage .section-delivery .item {
  flex: 1 1 0;
}
.homepage .info-block {
  color: #9b9b9b;
  font-size: 0.9em;
}
.homepage .info-block em {
  float: left;
  width: 54px;
  height: 54px;
  margin: -2px 17px 0 0;
  font-size: 35px;
  color: #9c9c9c;
  line-height: 54px;
  text-align: center;
  background: none repeat scroll 0 0 #d4d4d9;
  border-radius: 100%;
}
.homepage .info-block .type-text {
  overflow: hidden;
}
.homepage .info-block h4 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: bold;
  line-height: 18px;
  color: #23b4ca;
  text-transform: uppercase;
}

.photobook .editor-root {
  height: calc(100vh - 151px);
  background: #eef2f6;
}
.photobook .editor-main {
  min-height: 0;
  height: 100%;
}
.photobook .editor-left,
.photobook .editor-right {
  background: #fff;
  overflow: auto;
  min-height: 0;
}
.photobook .editor-left {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}
.photobook .editor-right {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}
.photobook .editor-canvas {
  min-height: 0;
  overflow: auto;
}
.photobook .editor-mobile-panels {
  flex-shrink: 0;
}
.photobook .editor-toolbox-bar {
  height: auto;
  min-height: 48px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  padding: 0 12px;
  flex-shrink: 0;
}
.photobook .toolbox-bar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.photobook .toolbox-bar-left,
.photobook .toolbox-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.photobook .toolbox-bar-btn {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: rgba(15, 23, 42, 0.9);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.photobook .toolbox-bar-btn:hover {
  background: rgba(15, 23, 42, 0.03);
}
.photobook .toolbox-bar-btn.is-active {
  border-color: rgba(255, 140, 0, 0.95);
  box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.18);
}
.photobook .toolbox-bar-btn--primary {
  border-color: rgba(37, 99, 235, 0.35);
}
.photobook .editor-bottom {
  height: 92px;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1030;
}
.photobook .nav-strip {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}
.photobook .nav-move-btn {
  font-size: 18px;
  line-height: 1;
  padding: 0 3px;
  opacity: 0.7;
  cursor: pointer;
  border-radius: 4px;
}
.photobook .nav-move-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}
.photobook .nav-items {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  max-width: 90%;
}
.photobook .nav-item {
  border: 1px dashed rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding: 10px 12px;
  white-space: nowrap;
  font-size: 12px;
  flex: 0 0 auto;
}
.photobook .nav-item.active {
  border-style: solid;
  border-color: rgba(255, 140, 0, 0.95);
}
.photobook .nav-add {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  padding: 10px 12px;
  flex: 0 0 auto;
}
.photobook .nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.photobook .guide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px dashed rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.photobook .label {
  position: absolute;
  top: 10px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  background: rgba(255, 255, 255, 0.75);
  padding: 4px 8px;
  border-radius: 999px;
}
.photobook .label-left {
  left: 10px;
}
.photobook .label-center {
  left: 50%;
  transform: translateX(-50%);
}
.photobook .label-right {
  right: 10px;
}
.photobook .canvas-stage {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: auto;
}
.photobook .canvas-stage.is-export {
  padding: 0 !important;
  overflow: visible !important;
  display: block !important;
}
.photobook .canvas-stage.is-export .canvas-space {
  margin: 0 !important;
}
.photobook .canvas-stage.is-export .canvas-sheet {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.photobook .canvas-stage.is-export .slot-box {
  background: none !important;
  border: none !important;
}
.photobook .canvas-sheet {
  position: relative;
  width: 900px;
  height: 320px;
  max-width: 100%;
  background: #fff;
  border: 2px solid rgba(255, 140, 0, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.photobook .photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
  height: calc(100vh - 300px);
  overflow-y: scroll;
}
.photobook .photo-grid .photo-thumb-wrap {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
  position: relative;
  padding: 2px;
}
.photobook .photo-grid .photo-thumb-wrap.is-used {
  padding: 1px;
  border: 2px solid #7ac2ad;
}
.photobook .photo-grid .photo-thumb-wrap .btn-delete {
  position: absolute;
  top: -2px;
  right: -2px;
  z-index: 7;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 999px;
  background: #212529;
  color: #fff;
}
.photobook .photo-grid .photo-thumb-wrap .photo-thumb {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  height: 92px;
}
.photobook .photo-grid .photo-thumb-wrap .photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photobook .slot-box {
  position: absolute;
  border: 2px dashed rgba(37, 99, 235, 0.65);
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.06);
  cursor: pointer;
  outline: none;
  overflow: hidden;
}
.photobook .slot-box:hover {
  background: rgba(37, 99, 235, 0.1);
}
.photobook .slot-drag-handle {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  cursor: grab;
  user-select: none;
  touch-action: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
}
.photobook .slot-box:hover .slot-drag-handle {
  opacity: 1;
}
.photobook .slot-box.active {
  border-style: solid;
  border-color: rgba(255, 140, 0, 0.95);
  background: rgba(255, 140, 0, 0.1);
}
.photobook .slot-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
  user-select: none;
}
.photobook .slot-img {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: center center;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.photobook .tpl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.photobook .tpl-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.photobook .tpl-item {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 6px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.08s ease;
  position: relative;
}
.photobook .tpl-item.spread::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  top: 0;
  background: rgba(0, 0, 0, 0.12);
  width: 1px;
  height: 100%;
}
.photobook .tpl-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}
.photobook .tpl-item.is-active {
  border-color: rgba(255, 140, 0, 0.95);
  box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.18);
}
.photobook .tpl-mini {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.photobook .tpl-slot {
  position: absolute;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.35);
}
.photobook .tpl-label {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.85);
  font-weight: 600;
  line-height: 1.2;
}
.photobook .bg-panel-block {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  margin-bottom: 12px;
}
.photobook .bg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.photobook .bg-thumb {
  height: 86px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}
.photobook .bg-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.photobook .bg-thumb.active {
  outline: 3px solid rgba(255, 140, 0, 0.95);
  outline-offset: 0;
}
.photobook .photo-thumb img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.photobook .pb-text {
  position: absolute;
  transform: translate(-50%, -50%);
  user-select: none;
  cursor: move;
}
.photobook .pb-text__box {
  position: relative;
  display: inline-block;
}
.photobook .pb-text__box.is-selected {
  outline: 1px solid #4a90e2;
}
.photobook .pb-text__content {
  white-space: pre-wrap;
  border-radius: 4px;
  padding: 4px 6px;
}
.photobook .pb-text__toolbar {
  position: absolute;
  left: 0;
  top: 110%;
  margin-top: 4px;
  padding: 3px 4px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.photobook .pb-text__btn {
  border: 1px solid #cbd5e0;
  background: #f7fafc;
  border-radius: 2px;
  width: 25px;
  height: 25px;
  padding: 4px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.photobook .pb-text__btn:hover {
  background: #e2e8f0;
}
.photobook .pb-text__rotate {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #cbd5e0;
  background: #edf2f7;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 20;
}
.photobook .pb-text__rotate:active {
  cursor: grabbing;
}
.photobook .pb-text__resize {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 18px;
  margin-top: -9px;
  background: #fff;
  border: 1px solid #4a90e2;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  z-index: 25;
}
.photobook .pb-text__resize::before {
  content: "";
  position: absolute;
  inset: -16px;
}
.photobook .pb-text__resize--left {
  left: -6px;
}
.photobook .pb-text__resize--right {
  right: -6px;
}
.photobook .btn-text-editor:hover {
  background: transparent;
  color: #000;
}
.photobook .btn-text-editor.is-active {
  background: #7c7c7c;
  color: #fff;
  border-color: #7c7c7c;
}
.photobook .clipart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.photobook .clipart-thumb-wrap {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.photobook .clipart-thumb {
  width: 100%;
  height: 92px;
  display: block;
  object-fit: contain;
  cursor: grab;
}
.photobook .clipart-sticker.stickerBox {
  position: absolute;
  transform: translate(-50%, -50%);
}
.photobook .clipart-sticker .stickerInner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  cursor: move;
}
.photobook .clipart-sticker .imgWrapper {
  width: 100%;
  height: 100%;
}
.photobook .clipart-sticker .imgWrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.photobook .clipart-sticker .resizeHandle {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #ffffff;
  border: 1px solid #4a5568;
  box-shadow: 0 0 0 1px #edf2f7;
}
.photobook .clipart-sticker .resizeHandle::before {
  content: "";
  position: absolute;
  inset: -16px;
}
.photobook .clipart-sticker .resizeBR {
  right: -5px;
  bottom: -5px;
  cursor: se-resize;
}
.photobook .clipart-sticker .resizeTL {
  left: -5px;
  top: -5px;
  cursor: nw-resize;
}
.photobook .clipart-sticker .resizeTR {
  right: -5px;
  top: -5px;
  cursor: ne-resize;
}
.photobook .clipart-sticker .resizeBL {
  left: -5px;
  bottom: -5px;
  cursor: sw-resize;
}
.photobook .clipart-sticker .toolbar {
  position: absolute;
  left: 0;
  top: 110%;
  margin-top: 4px;
  padding: 3px 4px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.photobook .clipart-sticker .rotateHandle {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid #cbd5e0;
  background: #edf2f7;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
}
.photobook .clipart-sticker .rotateHandle::before {
  content: "";
  position: absolute;
  inset: -12px;
}
@media (max-width: 991.98px) {
  .photobook .editor-main {
    padding-bottom: 92px;
  }
  .photobook .editor-toolbox-bar {
    padding: 0 10px;
  }
  .photobook .toolbox-bar-inner {
    gap: 8px;
  }
  .photobook .toolbox-bar-left,
  .photobook .toolbox-bar-right {
    gap: 6px;
  }
  .photobook .toolbox-bar-btn {
    padding: 6px 8px;
    font-size: 12px;
  }
  .photobook .canvas-stage {
    padding: 10px;
    align-items: flex-start;
  }
  .photobook .canvas-sheet {
    width: 900px;
    max-width: none;
  }
  .photobook .nav-strip {
    gap: 8px;
    padding: 8px 10px;
  }
  .photobook .nav-items {
    max-width: 100%;
    gap: 6px;
  }
  .photobook .nav-item {
    padding: 8px 10px;
    font-size: 11px;
  }
  .photobook .nav-add {
    width: 40px;
    height: 40px;
    padding: 8px 10px;
    font-size: 20px;
  }
  .photobook .nav-tools {
    gap: 6px;
  }
  .photobook .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .photobook .tpl-grid-3,
  .photobook .bg-grid,
  .photobook .clipart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .photobook .canvas-stage {
    padding: 8px;
  }
  .photobook .photo-grid,
  .photobook .tpl-grid,
  .photobook .tpl-grid-3,
  .photobook .bg-grid,
  .photobook .clipart-grid {
    gap: 8px;
  }
  .photobook .photo-grid .photo-thumb-wrap .photo-thumb {
    height: 84px;
  }
  .photobook .clipart-thumb {
    height: 84px;
  }
  .photobook .bg-thumb {
    height: 78px;
  }
  .photobook .label {
    font-size: 11px;
    padding: 3px 7px;
  }
}

.photosheet .editor-root {
  height: calc(100vh - 151px);
}
.photosheet .editor-main {
  min-height: 0;
  height: 100%;
}
.photosheet .editor-left,
.photosheet .editor-right {
  background: #fff;
  overflow: auto;
  min-height: 0;
}
.photosheet .editor-left {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}
.photosheet .editor-right {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}
.photosheet .editor-canvas {
  min-height: 0;
  overflow: auto;
}
.photosheet .editor-mobile-panels {
  flex-shrink: 0;
}
.photosheet .editor-toolbox-bar {
  height: auto;
  min-height: 48px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  padding: 0 12px;
  flex-shrink: 0;
}
.photosheet .toolbox-bar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.photosheet .toolbox-bar-left,
.photosheet .toolbox-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.photosheet .toolbox-bar-btn {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: rgba(15, 23, 42, 0.9);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.photosheet .toolbox-bar-btn:hover {
  background: rgba(15, 23, 42, 0.03);
}
.photosheet .toolbox-bar-btn.is-active {
  border-color: rgba(255, 140, 0, 0.95);
  box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.18);
}
.photosheet .toolbox-bar-btn--primary {
  border-color: rgba(37, 99, 235, 0.35);
}
.photosheet .editor-bottom {
  height: 92px;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1030;
}
.photosheet .nav-strip {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}
.photosheet .nav-items {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: auto;
  max-width: 75%;
}
.photosheet .nav-item {
  border: 1px dashed rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding: 10px 12px;
  white-space: nowrap;
  font-size: 12px;
  flex: 0 0 auto;
}
.photosheet .nav-item.active {
  border-style: solid;
  border-color: rgba(255, 140, 0, 0.95);
}
.photosheet .nav-add {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  padding: 10px 12px;
  flex: 0 0 auto;
}
.photosheet .nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.photosheet .guide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px dashed rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.photosheet .label {
  position: absolute;
  top: 10px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  background: rgba(255, 255, 255, 0.75);
  padding: 4px 8px;
  border-radius: 999px;
}
.photosheet .label-left {
  left: 10px;
}
.photosheet .label-center {
  left: 50%;
  transform: translateX(-50%);
}
.photosheet .label-right {
  right: 10px;
}
.photosheet .canvas-stage {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: auto;
}
.photosheet .canvas-stage.is-export {
  padding: 0 !important;
  overflow: visible !important;
  display: block !important;
}
.photosheet .canvas-stage.is-export .canvas-space {
  margin: 0 !important;
}
.photosheet .canvas-stage.is-export .canvas-sheet {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.photosheet .canvas-stage.is-export .slot-box {
  background: none !important;
  border: none !important;
}
.photosheet .canvas-sheet {
  position: relative;
  width: 900px;
  height: 320px;
  max-width: 100%;
  background: #fff;
  border-radius: 0;
  border: 2px solid rgba(255, 140, 0, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.photosheet .photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
  height: calc(100vh - 300px);
  overflow-y: scroll;
}
.photosheet .photo-grid .photo-thumb-wrap {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
  position: relative;
  padding: 2px;
}
.photosheet .photo-grid .photo-thumb-wrap.is-used {
  padding: 1px;
  border: 2px solid #7ac2ad;
}
.photosheet .photo-grid .photo-thumb-wrap .btn-delete {
  position: absolute;
  top: -2px;
  right: -2px;
  z-index: 7;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 999px;
  background: #212529;
  color: #fff;
}
.photosheet .photo-grid .photo-thumb-wrap .photo-thumb {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  height: 92px;
}
.photosheet .photo-grid .photo-thumb-wrap .photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photosheet .slot-box {
  position: absolute;
  border: 2px dashed rgba(37, 99, 235, 0.65);
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.06);
  cursor: pointer;
  padding: 0;
  margin: 0;
  outline: none;
  overflow: hidden;
}
.photosheet .slot-box:hover {
  background: rgba(37, 99, 235, 0.1);
}
.photosheet .slot-box.active {
  border-style: solid;
  border-color: rgba(255, 140, 0, 0.95);
  background: rgba(255, 140, 0, 0.1);
}
.photosheet .slot-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
  user-select: none;
}
.photosheet .slot-img {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: center center;
  user-select: none;
  pointer-events: none;
}
.photosheet .tpl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.photosheet .tpl-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.photosheet .tpl-item {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 6px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.08s ease;
  position: relative;
}
.photosheet .tpl-item.spread::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  top: 0;
  background: rgba(0, 0, 0, 0.12);
  width: 1px;
  height: 100%;
}
.photosheet .tpl-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}
.photosheet .tpl-item.is-active {
  border-color: rgba(255, 140, 0, 0.95);
  box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.18);
}
.photosheet .tpl-mini {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.photosheet .tpl-slot {
  position: absolute;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.35);
}
.photosheet .tpl-label {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.85);
  font-weight: 600;
  line-height: 1.2;
}
.photosheet .bg-panel-block {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  margin-bottom: 12px;
}
.photosheet .bg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.photosheet .bg-thumb {
  height: 86px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}
.photosheet .bg-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.photosheet .bg-thumb.active {
  outline: 3px solid rgba(255, 140, 0, 0.95);
  outline-offset: 0;
}
.photosheet .photo-thumb img,
.photosheet .slot-img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.photosheet .pb-text {
  position: absolute;
  transform: translate(-50%, -50%);
  user-select: none;
  cursor: move;
}
.photosheet .pb-text__box {
  position: relative;
  display: inline-block;
}
.photosheet .pb-text__box.is-selected {
  outline: 1px solid #4a90e2;
}
.photosheet .pb-text__content {
  white-space: pre-wrap;
  border-radius: 4px;
  padding: 4px 6px;
}
.photosheet .pb-text__toolbar {
  position: absolute;
  left: 0;
  top: 110%;
  margin-top: 4px;
  padding: 3px 4px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  display: inline-flex;
  gap: 2px;
  align-items: center;
}
.photosheet .pb-text__btn {
  border: 1px solid #cbd5e0;
  background: #f7fafc;
  border-radius: 2px;
  width: 25px;
  height: 25px;
  padding: 4px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.photosheet .pb-text__btn:hover {
  background: #e2e8f0;
}
.photosheet .pb-text__rotate {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #cbd5e0;
  background: #edf2f7;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 20;
}
.photosheet .pb-text__rotate:active {
  cursor: grabbing;
}
.photosheet .pb-text__resize {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 18px;
  margin-top: -9px;
  background: #fff;
  border: 1px solid #4a90e2;
  border-radius: 2px;
  cursor: ew-resize;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  z-index: 25;
}
.photosheet .pb-text__resize--left {
  left: -6px;
}
.photosheet .pb-text__resize--right {
  right: -6px;
}
.photosheet .btn-text-editor:hover {
  background: transparent;
  color: #000;
}
.photosheet .btn-text-editor.is-active {
  background: #7c7c7c;
  color: #fff;
  border-color: #7c7c7c;
}
@media (max-width: 991.98px) {
  .photosheet .editor-main {
    padding-bottom: 92px;
  }
  .photosheet .editor-toolbox-bar {
    padding: 0 10px;
  }
  .photosheet .toolbox-bar-inner {
    gap: 8px;
  }
  .photosheet .toolbox-bar-left,
  .photosheet .toolbox-bar-right {
    gap: 6px;
  }
  .photosheet .toolbox-bar-btn {
    padding: 6px 8px;
    font-size: 12px;
  }
  .photosheet .canvas-stage {
    padding: 10px;
    align-items: flex-start;
  }
  .photosheet .canvas-sheet {
    width: 900px;
    max-width: none;
  }
  .photosheet .nav-strip {
    gap: 8px;
    padding: 8px 10px;
  }
  .photosheet .nav-items {
    max-width: 100%;
    gap: 6px;
  }
  .photosheet .nav-item {
    padding: 8px 10px;
    font-size: 11px;
  }
  .photosheet .nav-add {
    width: 40px;
    height: 40px;
    padding: 8px 10px;
    font-size: 20px;
  }
  .photosheet .nav-tools {
    gap: 6px;
  }
  .photosheet .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .photosheet .tpl-grid-3,
  .photosheet .bg-grid,
  .photosheet .clipart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .photosheet .canvas-stage {
    padding: 8px;
  }
  .photosheet .photo-grid,
  .photosheet .tpl-grid,
  .photosheet .tpl-grid-3,
  .photosheet .bg-grid,
  .photosheet .clipart-grid {
    gap: 8px;
  }
  .photosheet .photo-grid .photo-thumb-wrap .photo-thumb {
    height: 84px;
  }
  .photosheet .clipart-thumb {
    height: 84px;
  }
  .photosheet .bg-thumb {
    height: 78px;
  }
  .photosheet .label {
    font-size: 11px;
    padding: 3px 7px;
  }
}

.photo-uploader .photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.photo-uploader .preview-container {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}
.photo-uploader .preview-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.photo-uploader .photo-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
  opacity: 1;
  pointer-events: auto;
}
.photo-uploader .photo-card.selected {
  border: 1px solid #4e4e4e;
  background: #fff7e0;
}
.photo-uploader .photo-card.deleting {
  opacity: 0.6;
  pointer-events: none;
}
.photo-uploader .photo-card .image-wrapper {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f3f3f3;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-uploader .photo-card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: 1.5px solid;
  white-space: nowrap;
}

.status-pill-submitted {
  border-color: #0d6efd;
  color: #0d6efd;
}

.status-pill-paid {
  border-color: #198754;
  color: #198754;
}

.status-pill-in_progress {
  border-color: #0dcaf0;
  color: #0dcaf0;
}

.status-pill-pending_payment {
  border-color: #fd7e14;
  color: #fd7e14;
}

.status-pill-ready {
  border-color: #6f42c1;
  color: #6f42c1;
}

.status-pill-delivered {
  border-color: #6c757d;
  color: #6c757d;
}

.status-pill-cancelled {
  border-color: #dc3545;
  color: #dc3545;
}
