/* Remove header and footer for design page */
body.page-template-design-nowpage-design-php #site-header,
body.page-template-design-nowpage-design-php #footer,
body.page-template-design-nowpage-design-php .site-header,
body.page-template-design-nowpage-design-php .site-footer {
    display: none !important;
}

.design-now-page {
    padding: 10px 0;
    max-width: 100%;
    margin: 0 auto;
}
.fullpage-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--light_background-color, #f9f8f6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullpage-loader .loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--light_border-color, #e5e6e7);
  border-top-color: var(--dark_link-color, #3157ce);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.quoter-attributes {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.quoter-attributes li {
    padding: 6px 0;
}
.design-box {
    padding: 20px;
    margin: 15px 0;
    transition: 0.2s ease;
    position: relative;
}
.button.start-design {
    background: var(--dark_link-color, #3157ce);
    color: var(--white-color, #ffffff);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}
.version-remove {
    position: absolute;
    top: 1px;
    right: 1px;
    background: transparent;
    padding: 0px 3px;
    border-radius: 6px;
    cursor: pointer;
}
.remove-version-btn {
  color: var(--text_color-color, #58595b); 
  border: none; 
  background: transparent;
  font-size: 16px;
}
.button.start-design:hover {
    background: #005f8d;
}
.single_add_to_cart_button.upload-design-now {
    margin-top: 20px;
    color: var(--white-color, #ffffff) !important;
    border: 0px !important;
}

.notice.error {
    background: #f8d7da;
    color: var(--error_back-color, #e60000);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}
.notice {
    background: var(--warning_back-color, #ffe8c2);
    color: var(--warning_font-color, #070615);
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}
#design-boxes {
    margin-top: 30px;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
}

.design-header {
    background: transparent;
}
.design-box {
    background: var(--light_background-color, #f9f8f6);
    transition: background 0.2s ease;
}
.design-number {
    display: inline-block;
    font-weight: 700;
    color: var(--text_color-color, #58595b);
    font-size: 20px;
}
.artwork-thumb img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--light_background-color, #f9f8f6);
    object-fit: cover;
    margin-right: 10px;
}
.col-artwork {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
}
.design-artwork-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.version-label {
    font-weight: 500;
    color: var(--text_color-color, #58595b);
}
.col-actions {
    color: var(--text_color-color, #58595b);
    padding-right: 0;
}
.action-link {
    color: var(--dark_link-color, #3157ce);
    text-decoration: none;
    font-weight: 500;
}
.action-link:hover {
    text-decoration: underline;
}
.drop-area {
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 8px;
    border-radius: 4px;
}
.drop-area.drag-over {
    background-color: #e3f2fd;
    border-color: var(--dark_link-color, #3157ce);
    border-style: dashed;
}
.version-preview-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--light_background-color, #f9f8f6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.col-qty {
    text-align: right;
    font-weight: 700;
    color: var(--primary-color, #2a1f4a);
}
input.version-label-input {
    border: none;
    padding: 5px;
    border-radius: 4px;
    color: var(--text_color-color, #58595b);
}
.design-now-loader {
    position: fixed;
    inset: 0;
    background: var(--light_background-color, #f9f8f6);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text_color-color, #58595b);
    z-index: 9999;
}

input.version-qty-input {
color: var(--primary-color, #2a1f4a);
}

/* Optional: add spinner animation */
.design-now-loader::after {
    content: "";
    width: 40px;
    height: 40px;
    margin-left: 10px;
    border: 4px solid var(--light_border-color, #e5e6e7);
    border-top-color: var(--text_color-color, #58595b);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.design-now-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin: 40px auto;
    max-width: 1200px;
}

.design-left {
    flex: 2;
    background: var(--white-color, #ffffff);
    border-radius: 12px;
}

.re-order-item-section{
  text-align: center;
}

.design-header, .design-box {
    display: grid;
    grid-template-columns: 42px 0.60fr 0.80fr 100px;
    align-items: center;
    padding: 25px 15px;
}

.design-header {
    font-weight: 600;
    grid-template-columns: 80px 1fr 1fr 75px;
    padding: 10px 15px;
}

.design-box:nth-child(even) {
    background: var(--light_background-color, #f9f8f6);
}

.col-remove {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
}

.col-version { text-align: center; font-weight: 800; }
.col-artwork img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; margin-right: 10px; }
.col-actions a { font-weight: 500; text-decoration: none; }
.col-actions a:hover { text-decoration: underline; }

.col-artwork {
  padding: 25px 0 0 0 !important;
}

.design-proof-status {
  text-transform: capitalize;
}

/* Digital Proof Status Tag Styles */
.digital-proof-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

.digital-proof-tag.digital-proof-approved {
  color: var(--success_back-color, #0F6F6A);
  background-color: #d4edda;
}

.digital-proof-tag.digital-proof-pending {
  color: var(--error_back-color, #e60000);
  background-color: var(--warning_back-color, #ffe8c2);
}

.digital-proof-tag .status-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
}

.digital-proof-tag img{
  margin-right: 0 !important;
}

.design-right {
    flex: 1;
    background: var(--white-color, #ffffff);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.design-right h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}
.design-right .amount {
  color: var(--primary-color, #2a1f4a);
}

.selection-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 20px 0;
}

.selection-list li {
    display: flex;
    justify-content: space-between;
    padding: 1px 0;
    font-size: 14px;
}

.selection-list li strong {
    color: var(--text_color-color, #58595b);
}

h4.printing-speed-title {
    margin-bottom: 10px;
    margin-top: 10px;
    color: var(--text_color-color, #58595b);
}

.save-btn {
    display: inline-block;
    width: 100%;
    background: var(--secondary-color, #91206c);
    color: var(--white-color, #ffffff);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s ease;
    margin-top: 10px;
}
.save-btn.disabled {
  background: var(--secondary-color, #91206c) !important;
  cursor: not-allowed;
}

.tooltip-wrapper {
  position: relative;
}

.tooltip-text {
  font-size: 13px;
  color: var(--error_back-color, #e60000);
  line-height: 1.4;
  font-style: italic;
  font-weight: 600;
}

.design_now_save_for_later.disabled {
  cursor: not-allowed;
}

.drop-area {
  border: 2px dashed var(--light_border-color, #e5e6e7);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  color: var(--text_color-color, #58595b);
  background-color: var(--light_background-color, #f9f8f6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  transition: all 0.2s ease-in-out;
}

.drop-area:hover {
  border-color: var(--dark_link-color, #3157ce);
  background-color: var(--light_background-color, #f9f8f6);
}

.upload-icon {
  color: #777;
}

.drop-area .action-link {
  color: var(—black-color);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  margin: 0 0 0 3px;
}

.drop-area .action-link:hover {
  color: var(--dark_link-color, #3157ce);
}

.design-review-overlay {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
}
.design-review-popup {
  background: var(--white-color, #ffffff);
  border-radius: 12px;
  max-width: 60%;
  margin: 10% auto;
  position: relative;
  display: flex;
  padding: 20px;
}
.design-preview-img {
  height: 250px;
  object-fit: cover;
}
#design-review-modal .design-left {
  flex: 1;
  text-align: center;
  position: relative;
  background: var(--white-color, #ffffff);
  border-radius: 12px;
}
#design-review-modal .design-right {
  flex: 1;
  padding: 0 30px;
  text-align: left;
  background: var(--white-color, #ffffff);
  border-radius: 12px;
}
.design-prev,
.design-next {
  position: absolute;
  transform: translateY(-50%);
  background: var(--text_color-color, #58595b);
  color: var(--white-color, #ffffff);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
}
.design-prev {
  left: 20px;
  top: 50%;
  
}
.design-next {
  right: 20px;
  top: 50%;
}
.version-review-title {
  font-size: 30px;
  font-weight: 700;
  color: #2a1a4a;
}
.version-review-product-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color, #2a1f4a);
}
/*Loader overlay inside right panel */
.design-right {
  position: relative;
}

.design-right .loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--light_background-color, #f9f8f6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 10px;
}

/* Simple spinning loader */
.loader-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid var(--light_border-color, #e5e6e7);
  border-top-color: var(--dark_link-color, #3157ce);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.design-editor-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

#project_frame {
    width: 100%;
    height: 80vh;
    min-height: 600px;
    border: 1px solid var(--light_border-color, #e5e6e7);
    border-radius: 8px;
    background: var(--light_background-color, #f9f8f6);
}

.design-editor-actions {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: var(--white-color, #ffffff);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.design-editor-actions button {
    background: var(--text_color-color, #58595b);
    color: var(--white-color, #ffffff);
    padding: 15px 30px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 10px;
    transition: background 0.3s;
}

.design-editor-actions button:hover {
    background: #5a2f85;
}

.design-editor-actions button.secondary {
    background: #6c757d;
}

.design-editor-actions button.secondary:hover {
    background: #5a6268;
}

/* ============================================
   Design Editor Page Styles (from page-design.php)
   ============================================ */

/* Design Editor Custom Styles */
.design-editor-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--light_background-color, #f9f8f6);
}

/* Fixed Header */
.design-editor-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--white-color, #ffffff);
    border-bottom: 1px solid var(--light_border-color, #e5e6e7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    z-index: 1000;
    box-shadow: 0 2px 4px var(--light_border-color, #e5e6e7);
}

.design-editor-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.design-editor-header-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.design-editor-header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}
.design-top-right-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
.design-save-later {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 5px 0;
  text-align: center;
}

.design-editor-header-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    max-width: 150px;
}

.design-editor-header-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text_color-color, #58595b);
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.design-editor-header-title .edit-icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.design-editor-header-btn {
    padding: 10px 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.design-editor-header-btn.save-later {
    background: transparent;
    color: var(--text_color-color, #58595b);
    border: 1px solid var(--light_border-color, #e5e6e7);
}

.design-editor-header-btn.save-later:hover {
    background: var(--light_background-color, #f9f8f6);
}

.design-editor-header-btn.review-proof {
    background: var(--secondary-color, #91206c);
    color: var(--white-color, #ffffff);
    border-radius: 10px;
}

.design-editor-header-btn.review-proof:hover {
    background: var(--text_color-color, #58595b);
}
.return-to-product-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}
a#return-to-pdp-btn {
    display: flex;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color, #2a1f4a);
    align-items: center;
    gap: 10px;
}
a#return-to-pdp-btn:hover span {
  color: var(--secondary-color, #91206c);
}
span#design-title {
    background: var(--light_background-color, #f9f8f6);
    padding: 5px 16px 5px 10px;
    border-radius: 10px;
}
.return-to-pdp {
  color: var(--black-color, #000000);
  font-size: 20px;
  font-weight: 400;
}
.return-to-pdp:hover {
  color: var(--secondary-color, #91206c);
}

.page-template-page-design .elementor.elementor-2863 {
  display: none;
}

/* Main Content Area */
.design-editor-main {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0; /* Start with no sidebar space */
    bottom: 60px; /* Space for Design Guide footer */
    background: var(--light_background-color, #f9f8f6);
    transition: right 0.3s ease;
}

.design-editor-main.order-details-expanded,
.design-editor-main.add-border-expanded {
    right: 300px; /* Space for right sidebar when expanded (Order Details or Add a Border) */
}

/* Body overlay when add border is open (same as order details) */
body.add-border-overlay {
    overflow: hidden;
}

body.add-border-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    pointer-events: auto;
    cursor: pointer;
}

.design-editor-main #project_frame {
    width: 100%;
    height: 100%;
    background: var(--light_background-color, #f9f8f6);
}

/* Body overlay when order details is open */
body.order-details-overlay {
    overflow: hidden;
}

body.order-details-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    pointer-events: auto;
    cursor: pointer;
}

/* Fixed Order Details Sidebar */
.design-editor-order-details {
    background: var(--white-color, #ffffff);
    position: fixed;
    top: 42%;
    right: 0;
    width: 300px;
    max-height: calc(100vh - 120px);
    z-index: 999;
    transition: transform 0.3s ease;
    overflow: hidden;
    transform: translate(100%, -50%); /* Hidden by default, centered vertically */
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    border-radius: 10px 0 0 10px;
}

.design-editor-order-details.expanded {
    transform: translate(0, -50%); /* Slide in when expanded, centered vertically */
}

/* Toggle button - always visible on right edge */
.design-editor-order-details-toggle {
    display: flex;
    width: 218px;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    position: fixed;
    right: -86px;
    top: 35%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;
    z-index: 1001;
    transition: right 0.3s ease, border-radius 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    min-height: 40px;
}

/* When sidebar is expanded, move button to the left edge of sidebar */
.design-editor-order-details.expanded ~ .design-editor-order-details-toggle,
.design-editor-order-details-toggle.collapsed {
    right: 212px; /* Move button to left edge of expanded sidebar */
    box-shadow: none;
}

.design-editor-order-details-header {
    background: var(--primary-color, #2a1f4a);
    color: var(--white-color, #ffffff);
    padding: 15px 20px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    border-radius: 10px 0 0 0;
    flex-shrink: 0;
}

.design-editor-order-details-content {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.order-details-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-details-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.order-details-label {
    font-size: 12px;
    color: var(--text_color-color, #58595b);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-details-value {
    font-size: 16px;
    color: var(--text_color-color, #58595b);
    font-weight: 500;
}

.order-details-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-details-quantity select {
    padding: 8px;
    border: 1px solid var(--light_border-color, #e5e6e7);
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
}

.order-details-divider {
    height: 1px;
    background: var(--light_background-color, #f9f8f6);
    margin: 20px 0;
}

.order-details-printed-samples {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light_background-color, #f9f8f6);
    border-radius: 8px;
}

.order-details-printed-samples-label {
    font-size: 12px;
    color: var(--text_color-color, #58595b);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-details-printed-samples-price {
    font-size: 14px;
    color: var(--text_color-color, #58595b);
    font-weight: 600;
}

.order-details-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.order-details-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.order-details-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light_background-color, #f9f8f6);
    transition: 0.3s;
    border-radius: 24px;
}

.order-details-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white-color, #ffffff);
    transition: 0.3s;
    border-radius: 50%;
}

.order-details-toggle input:checked + .order-details-toggle-slider {
    background-color: var(--text_color-color, #58595b);
}

.order-details-toggle input:checked + .order-details-toggle-slider:before {
    transform: translateX(20px);
}

.order-details-subtotal {
    padding: 20px;
    background: var(--light_background-color, #f9f8f6);
    border-radius: 8px;
    margin-bottom: 20px;
}

.order-details-subtotal-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text_color-color, #58595b);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-details-subtotal-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.order-details-price-per-unit {
    font-size: 12px;
    color: var(--text_color-color, #58595b);
}

.order-details-total {
    font-size: 28px;
    font-weight: 700;
    color: var(--text_color-color, #58595b);
}

.order-details-help {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light_border-color, #e5e6e7);;
    font-size: 12px;
    color: var(--text_color-color, #58595b);
    line-height: 1.6;
}

.order-details-help a {
    color: var(--text_color-color, #58595b);
    text-decoration: underline;
}

/* Fixed Add a Border Sidebar (right edge, below Order Details - same behavior as Order Details) */
.design-editor-add-border {
    background: var(--white-color, #ffffff);
    position: fixed;
    top: calc(65% + 70px); /* Below Order Details panel */
    right: 0;
    width: 300px;
    max-height: calc(100vh - 120px);
    z-index: 999;
    transition: transform 0.3s ease;
    overflow: hidden;
    transform: translate(100%, -50%);
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    border-radius: 10px 0 0 10px;
}

.design-editor-add-border.expanded {
    transform: translate(0, -50%);
}

/* Add a Border toggle - right edge, below Order Details toggle */
.design-editor-add-border-toggle {
    display: flex;
    width: 218px;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    position: fixed;
    right: -90px;
    top: calc(65% + 60px);
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;
    border-radius: 10px 10px 0 0;
    background: var(--white-color, #ffffff);
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.25);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color, #2a1f4a);
    z-index: 1001;
    transition: right 0.3s ease, border-radius 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    min-height: 40px;
}

.design-editor-add-border-toggle:hover {
    background: var(--primary-color, #2a1f4a);
    color: var(--white-color, #ffffff);
}

.design-editor-add-border.expanded ~ .design-editor-add-border-toggle,
.design-editor-add-border-toggle.collapsed {
    right: 212px;
    box-shadow: none;
}

.design-editor-add-border-header {
    background: var(--primary-color, #2a1f4a);
    color: var(--white-color, #ffffff);
    padding: 15px 20px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    border-radius: 10px 0 0 0;
    flex-shrink: 0;
}

.design-editor-add-border-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.add-border-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color, #2a1f4a);
    background: var(--white-color, #ffffff);
    border: 2px solid var(--primary-color, #2a1f4a);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.add-border-btn:hover {
    background: var(--light_background-color, #f9f8f6);
}

.add-border-btn.active {
    background: var(--primary-color, #2a1f4a);
    color: var(--white-color, #ffffff);
    border-color: var(--primary-color, #2a1f4a);
}

.add-border-btn.active:hover {
    background: var(--primary-color, #2a1f4a);
    border-color: var(--primary-color, #2a1f4a);
}

/* Fixed Design Guide Footer */
.design-editor-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white-color, #ffffff);
    border-top: 1px solid var(--light_border-color, #e5e6e7);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    justify-content: space-around;
}

.design-editor-footer-label {
    font-size: 14px;
    color: var(--text_color-color, #58595b);
    margin-right: 30px;
    font-weight: 600;
    white-space: nowrap;
}

.design-editor-footer-guides {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.design-guide-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text_color-color, #58595b);
    white-space: nowrap;
}

.design-guide-line {
    width: 50px;
    height: 3px;
    display: block;
}

.design-guide-line.bleed {
    border-top: 3px dashed var(--dark_link-color, #3157ce);
    background: transparent;
    border-bottom: none;
}

.design-guide-line.cut {
    border-top: 3px solid var(--error_back-color, #e60000);
    background: transparent;
    border-bottom: none;
}

.design-guide-line.caution {
    border-top: 3px dashed var(--error_back-color, #e60000);
    background: transparent;
    border-bottom: none;
}

/* Custom die-cut bottom bar (width, height, quantity, subtotal) */
.design-editor-custom-die-cut .design-editor-main {
  padding-bottom: 40px;
}

.die-cut-bottom-ui {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--white-color, #ffffff);
  border-top: 1px solid var(--light_border-color, #e5e6e7);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
  padding: 12px 24px;
}

.die-cut-bottom-ui-inner {
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.die-cut-size-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.die-cut-size-heading {
  font-size: 20px;
  color: var(--text_color-color, #58595b);
  font-weight: 500;
}

.die-cut-dimensions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.die-cut-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.die-cut-field-label {
  font-size: 16px;
  color: var(--text_color-color, #58595b);
  font-weight: 500;
}

.die-cut-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.die-cut-dimension-input {
  padding: 8px 28px 8px 10px;
  font-size: 16px;
  color: var(--text_color-color, #58595b);
  border: 1px solid var(--light_border-color, #e5e6e7);
  background: var(--white-color, #ffffff);
  min-width: 250px;
  height: 45px;
}

.die-cut-dimension-input:focus {
  outline: none;
  border-color: var(--primary-color, #45246a);
  box-shadow: 0 0 0 1px var(--primary-color, #45246a);
}

.die-cut-field-icon {
  position: absolute;
  right: 6px;
  width: 18px;
  height: 14px;
  pointer-events: none;
  opacity: 0.65;
  background: linear-gradient(135deg, #7b5bb0 0%, #45246a 100%);
  border-radius: 2px;
}

.die-cut-field-icon-width::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  margin: -1px 0 0 -5px;
  background: var(--white-color, #ffffff);
  box-shadow: 0 -4px 0 #fff, 0 4px 0 #fff;
}

.die-cut-field-icon-height::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 10px;
  margin: -5px 0 0 -1px;
  background: var(--white-color, #ffffff);
  box-shadow: -4px 0 0 #fff, 4px 0 0 #fff;
}

.die-cut-times {
  font-size: 14px;
  color: var(--light_border-color, #e5e6e7);
  padding-bottom: 10px;
  line-height: 1;
}

.die-cut-quantity-block {
  font-size: 15px;
  color: var(--text_color-color, #58595b);
  white-space: nowrap;
}

.die-cut-quantity-label {
  font-weight: 700;
  margin-right: 6px;
  color: var(--text_color-color, #58595b);
  font-size: 20px;
}

.die-cut-quantity-value {
  font-weight: 400;
}

.die-cut-subtotal-card {
  background: var(--light_background-color, #f9f8f6);
  border-radius: 10px;
  padding: 7px 15px;
  min-width: 300px;
  flex: 0 1 auto;
}

.die-cut-subtotal-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.die-cut-subtotal-title {
  font-size: 20px;
  font-weight: 700;
  color: #58595b;
}

.die-cut-unit-line {
  font-size: 12px;
  color: var(--light_border-color, #e5e6e7);
  text-align: right;
  white-space: nowrap;
}

.die-cut-unit-line .die-cut-unit-label {
  text-transform: lowercase;
}

.die-cut-grand-total {
  font-size: 36px;
  font-weight: 700;
  color: var(--text_color-color, #58595b);
  text-align: right;
  line-height: 1.1;
}

@media (max-width: 768px) {
  .die-cut-bottom-ui-inner {
      flex-direction: column;
      align-items: stretch;
  }

  .die-cut-size-group {
      width: 100%;
  }

  .die-cut-subtotal-card {
      width: 100%;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .design-editor-main {
        right: 0;
    }
    
    .design-editor-order-details {
        transform: translateX(100%);
    }
    
    .design-editor-order-details.expanded {
        transform: translateX(0);
    }
}

/* Instant Review Proof Sidebar */
.instant-review-proof-overlay {
    display: none;
}

.instant-review-proof-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    max-width: 90vw;
    height: 100%;
    background: var(--white-color, #ffffff);
    z-index: 9999;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.instant-review-proof-sidebar.active {
    transform: translateX(0);
}

.instant-review-proof-header {
    padding: 20px;
    border-bottom: 1px solid var(--light_border-color, #e5e6e7);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.instant-review-proof-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text_color-color, #58595b);
    transition: color 0.2s;
}

.instant-review-proof-close:hover {
    color: var(—black-color);
}

.instant-review-proof-header-link {
    color: var(--secondary-color, #91206c);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    transition: opacity 0.2s;
}

.instant-review-proof-header-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.instant-review-proof-content {
    padding: 40px 30px;
    text-align: center;
}

.instant-review-proof-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.instant-review-proof-icon svg {
    width: 60px;
    height: 43px;
}

.instant-review-proof-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text_color-color, #58595b);
    margin: 0 0 15px 0;
}

.instant-review-proof-message {
    font-size: 14px;
    color: var(--text_color-color, #58595b);
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.review-proof-product-info {
    text-align: left;
    margin-bottom: 30px;
}

.review-proof-product-type {
    font-size: 16px;
    font-weight: 600;
    color: var(--text_color-color, #58595b);
    margin-bottom: 15px;
}

.review-proof-specs {
    margin-bottom: 20px;
}

.review-proof-spec-item {
    font-size: 14px;
    color: var(--text_color-color, #58595b);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-transform: capitalize;;
}

.review-proof-spec-item select {
    padding: 6px 12px;
    border: 1px solid var(--light_border-color, #e5e6e7);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text_color-color, #58595b);
    background: var(--white-color, #ffffff);
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 4 5%22><path fill=%22%23333%22 d=%22M2 0L0 2h4zm0 5L0 3h4z%22/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 30px;
}

.review-proof-spec-item select:hover {
    border-color: var(--secondary-color, #91206c);
}

.review-proof-spec-item select:focus {
    outline: none;
    border-color: var(--secondary-color, #91206c);
    box-shadow: 0 0 0 2px rgba(164, 36, 122, 0.1);
}

.review-proof-spec-item strong {
    color: var(--text_color-color, #58595b);
}

.review-proof-divider {
    height: 1px;
    background: var(--light_background-color, #f9f8f6);
    margin: 20px 0;
}

.review-proof-printed-samples {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light_background-color, #f9f8f6);
    border-radius: 8px;
}

.review-proof-printed-samples-label {
    font-size: 14px;
    color: var(--text_color-color, #58595b);
    font-weight: 500;
}

.review-proof-printed-samples-price {
    font-size: 14px;
    color: var(--text_color-color, #58595b);
    font-weight: 600;
}

.review-proof-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.review-proof-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.review-proof-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light_background-color, #f9f8f6);
    transition: 0.3s;
    border-radius: 24px;
}

.review-proof-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--white-color, #ffffff);
    transition: 0.3s;
    border-radius: 50%;
}

.review-proof-toggle input:checked + .review-proof-toggle-slider {
    background-color: var(--text_color-color, #58595b);
}

.review-proof-toggle input:checked + .review-proof-toggle-slider:before {
    transform: translateX(20px);
}

.review-proof-subtotal {
    padding: 20px;
    background: var(--light_background-color, #f9f8f6);
    border-radius: 8px;
    margin-bottom: 30px;
}

.review-proof-subtotal-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text_color-color, #58595b);
    margin-bottom: 10px;
    text-align: left;
}

.review-proof-subtotal-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.review-proof-price-per-unit {
    font-size: 12px;
    color: var(--text_color-color, #58595b);
}

.review-proof-price-per-unit {
    font-size: 12px;
    color: var(--text_color-color, #58595b);
}

.review-proof-total {
    font-size: 28px;
    font-weight: 700;
    color: var(--text_color-color, #58595b);
}

.instant-review-proof-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#continue-designing-btn {
  position: relative;
}

#continue-designing-btn svg {
  position: absolute;
  margin-left: -25px;
}

.instant-review-proof-link {
    color: var(--text_color-color, #58595b);
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
}

.instant-review-proof-link:hover {
    text-decoration: underline;
}

.design-top-right-buttons .sprink-save-project-link {
  text-decoration: none;
  color: #2F2354;
}
.design-top-right-buttons .sprink-save-project-link:hover {
  color: var(--secondary-color, #91206c);
}

/* Mobile toolbar styles - unobtrusive, matches Sprink rounded buttons */
#mobile-toolbar {
  position: relative; /* Changed from fixed to relative for scrollable layout */
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 1000;
  display: flex;
  gap: 10px;
  padding: 12px;
  justify-content: center;
  align-items: center;
  background: var(--light_background-color, #f9f8f6);
  border-top: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  margin-top: auto; /* Push to bottom of content */
}

/* Button style */
.mobile-toolbar-btn {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:72px;
  padding:10px 8px;
  border-radius:12px;
  border:2px solid var(--light_border-color, #e5e6e7);
  background: var(--white-color, #ffffff);
  box-shadow: 0 2px 8px rgba(69,36,106,0.06);
  color:var(--text_color-color, #58595b);
  font-size:13px;
  text-align:center;
}

/* Icon area */
.mobile-toolbar-btn .icon {
  font-size:18px;
  line-height:1;
}

/* small label */
.mobile-toolbar-btn .label {
  font-size:12px;
}

/* Color picker modal (hidden by default) */
#dh-mobile-bg-panel {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 76px;
  z-index:1300000;
  background:var(--white-color, #ffffff);
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.06);
  padding:14px;
  display:none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* Hide toolbar and mobile order details for desktop (>= 768px) */
@media(min-width: 768px) {
  #mobile-toolbar { display: none !important; }
  .mobile-order-details { display: none !important; }
}
/* Mobile toolbar positioning - only fixed on desktop if needed, but mobile uses relative */
@media (min-width: 769px) {
  #mobile-toolbar {
    position: fixed;
  }
}

#dh-mobile-bg-panel {
  position: fixed;
  z-index: 1300000;
  pointer-events: auto !important;
}

#project_frame iframe {
  pointer-events: auto;
  z-index: 1 !important;
  position: relative;
}

/* Mobile toolbar z-index - only high on desktop */
@media (min-width: 769px) {
  #mobile-toolbar {
    z-index: 999999999 !important;
    pointer-events: auto !important;
  }
}
.design-editor-page,
body,
html {
  transform: none !important;
  overflow-x: visible !important;
  position: static !important;
}
/* ISSUE #6: Mobile Design Updates - Match Screenshot Design */
@media (max-width: 768px) {
  #project_frame,
  #project_frame iframe {
    width: 100% !important;
    height: 450px !important; /* Reduced height to make room for order details */
    min-height: 400px;
    max-height: 450px;
  }

  body {
    overflow-y: auto !important; /* Allow scrolling on mobile */
    overflow-x: hidden;
  }
  
  .design-editor-header-center {
    justify-content: end;
  }
  
  /* ISSUE #6: Hide order details toggle on mobile (like desktop) */
  .design-editor-order-details-toggle {
    display: none !important; /* Hide toggle on mobile */
  }
  
  /* ISSUE #6: Hide order details sidebar on mobile - content will be shown below mobile toolbar */
  .design-editor-order-details {
    display: none !important; /* Hide order details sidebar on mobile */
  }
  
  /* ISSUE #6: Show order details in review proof modal below buttons on mobile */
  .instant-review-proof-sidebar .order-details-content {
    display: block;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light_border-color, #e5e6e7);
  }
  
  /* Hide header buttons (Save for Later and Review Proof) on mobile */
  .design-editor-header-right {
    display: none !important; /* Hide buttons on mobile */
  }
  
  /* ISSUE #6: Mobile proof review modal - full screen overlay (matches second screenshot) */
  .instant-review-proof-sidebar {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    transform: translateX(-100%);
    left: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  }
  
  .instant-review-proof-sidebar.active {
    transform: translateX(0);
  }
  
  /* ISSUE #6: Mobile design editor header adjustments */
  .design-editor-header {
    height: 50px;
    padding: 0 15px;
  }
  
  .design-editor-header-title {
    font-size: 16px;
  }
  
  .design-editor-header-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .design-editor-header-btn.review-proof {
    background: var(--secondary-color, #91206c);
    color: var(--white-color, #ffffff);
    border-radius: 8px;
  }
  
  /* Hide design editor footer on mobile */
  .design-editor-footer {
    display: none !important; /* Hide footer on mobile */
  }
  
  /* Make mobile toolbar NOT fixed - allow scrolling */
  #mobile-toolbar {
    position: relative !important; /* Changed from fixed to relative */
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 1000;
    margin-top: auto; /* Push to bottom of content */
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  }
  
  /* Make mobile order details NOT fixed - appear in document flow below toolbar */
  .mobile-order-details {
    position: relative !important; /* Changed from fixed to relative */
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 999;
    max-height: none;
    overflow-y: visible;
    border-top: none;
    border-bottom: 1px solid var(--light_border-color, #e5e6e7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  /* Make design editor wrapper scrollable on mobile */
  .design-editor-wrapper {
    height: auto !important; /* Changed from 100vh to auto */
    overflow: visible !important; /* Changed from hidden to visible */
    display: flex;
    flex-direction: column;
  }
  
  /* Make design editor main scrollable on mobile */
  .design-editor-main {
    position: relative !important; /* Changed from fixed to relative */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    padding-bottom: 0;
    flex: 1;
    overflow-y: auto;
  }
  
  /* Ensure mobile toolbar and order details are in document flow */
  #mobile-toolbar,
  .mobile-order-details {
    position: relative !important;
    width: 100%;
  }
  
  .design-editor-footer-label {
    font-size: 12px;
    margin-right: 10px;
  }
  
  .design-guide-item {
    font-size: 11px;
    gap: 5px;
  }
  
  .design-guide-line {
    width: 30px;
  }
  
  /* ISSUE #6: Mobile order details content - better spacing */
  .design-editor-order-details-content {
    padding: 15px;
  }
  
  .order-details-item {
    margin-bottom: 15px;
    padding-bottom: 12px;
  }
  
  /* Mobile Order Details Section - Below Mobile Toolbar (in document flow) */
  .mobile-order-details {
    position: relative; /* Changed to relative for scrollable layout */
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 999;
    background: var(--white-color, #ffffff);
    max-height: none;
    overflow-y: visible;
    border-top: none;
    border-bottom: 1px solid var(--light_border-color, #e5e6e7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: block !important; /* Always visible on mobile, like desktop */
    padding-bottom: 35px;
  }
  
  .mobile-order-details.active {
    display: block !important;
  }
  
  .mobile-order-details-header {
    background: #2F2354;
    color: var(--white-color, #ffffff);
    padding: 12px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
  }
  
  .mobile-order-details-content {
    padding: 20px;
  }
  
  .mobile-order-details-content .order-details-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light_border-color, #e5e6e7);
  }
  
  .mobile-order-details-content .order-details-item:last-child {
    border-bottom: none;
  }
  
  .mobile-order-details-content .order-details-label {
    font-size: 14px;
    font-weight: 600;
    color: #2F2354;
    margin-bottom: 8px;
    display: block;
  }
  
  .mobile-order-details-content .order-details-value {
    font-size: 14px;
    color: var(--text_color-color, #58595b);
  }
  
  .mobile-order-details-content .order-details-quantity select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light_border-color, #e5e6e7);
    border-radius: 8px;
    font-size: 14px;
    background: var(--white-color, #ffffff);
  }
  
  .mobile-order-details-content .order-details-subtotal {
    background: var(--light_background-color, #f9f8f6);
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .mobile-order-details-content .order-details-subtotal-label {
    font-size: 16px;
    font-weight: 600;
    color: #2F2354;
  }
  
  .mobile-order-details-content .order-details-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color, #91206c);
  }
  
  .mobile-order-details-content .order-details-price-per-unit {
    font-size: 12px;
    color: var(--text_color-color, #58595b);
    margin-top: 4px;
  }
  
  .mobile-order-details-content .order-details-help {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light_border-color, #e5e6e7);
    font-size: 12px;
    color: var(--text_color-color, #58595b);
    text-align: center;
  }
  
  .mobile-order-details-content .order-details-help a {
    color: var(--secondary-color, #91206c);
    text-decoration: underline;
  }
  
  .mobile-order-details-content .order-details-printed-samples {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--light_background-color, #f9f8f6);
    border-radius: 8px;
  }
  
  .mobile-order-details-content .order-details-printed-samples-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color, #2a1f4a);
  }
  
  .mobile-order-details-content .order-details-printed-samples-price {
    font-size: 14px;
    color: var(--text_color-color, #58595b);
  }
  
  .mobile-order-details-content .order-details-divider {
    height: 1px;
    background: var(--light_background-color, #f9f8f6);
    margin: 16px 0;
  }
  
  .mobile-review-proof-btn {
    width: 85%;
    background: var(--secondary-color, #91206c);
    color: var(--white-color, #ffffff);
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    margin: 0 auto;
    display: block;
  }
  
  .mobile-review-proof-btn:hover {
    background: var(--secondary-color, #91206c);
  }
  
  /* ISSUE #6: Mobile proof review - centered content */
  .instant-review-proof-content {
    padding: 30px 20px;
  }
  
  .instant-review-proof-title {
    font-size: 20px;
  }
  
  .instant-review-proof-message {
    font-size: 14px;
    margin-bottom: 25px;
  }
  
  .instant-review-proof-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  .design-now-page {
    display: block !important;
  }
  .design-box {
    display: flex;
    padding: 20px 6px;
    flex-direction: column;
    gap: 10px;
  }
}

/******Review proof Tooltip css********/
.review-proof-printed-samples-label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.review-proof-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  color: var(--text_color-color, #58595b);
  position: relative;
}
.review-proof-tooltip-icon:hover {
  color: var(--text_color-color, #58595b);
}
.review-proof-tooltip-icon svg {
  width: 16px;
  height: 16px;
}
.review-proof-tooltip-icon[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: var(--text_color-color, #58595b);
  color: var(--white-color, #ffffff);
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 5px;
  pointer-events: none;
}
.review-proof-tooltip-icon[title]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text_color-color, #58595b);
  z-index: 1000;
  margin-bottom: -5px;
}

#popup-yes-btn {
  padding: 12px 30px;
  background: var(--secondary-color, #91206c);
  color: var(--white-color, #ffffff);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.2px;
}

#popup-yes-btn:hover {
  background: var(--secondary-color, #91206c);
}

#popup-no-btn {
  font-size: 18px;
  letter-spacing: 0.2px;
  padding: 12px 30px;
  background: var(--white-color, #ffffff);
  color: var(--secondary-color, #91206c);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  border: 2px solid var(--secondary-color, #91206c);
}

#popup-no-btn:hover {
    color: var(--white-color, #ffffff);
    background: var(--secondary-color, #91206c);
}

.design-now-confirmation-popup-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

@media screen and (max-width: 767px) {
  .design-now-confirmation-popup-buttons {
    flex-direction: column;
  }
}

#add-design-variation-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Order OTP verification (normal page section) */
.sprink-dn-otp-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.sprink-dn-otp-block {
    background: var(--light_background-color, #f9f8f6);
    padding: 28px;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    border: 1px solid var(--light_border-color, #e5e6e7);
}
.sprink-dn-otp-title {
    margin: 0 0 12px;
    font-size: 20px;
}
.sprink-dn-otp-desc,
.sprink-dn-otp-note {
    margin: 0 0 8px;
    font-size: 14px;
    color: #555;
}
.sprink-dn-otp-masked-email {
    font-weight: 600;
    font-size: 16px;
    margin: 12px 0;
    letter-spacing: 0.5px;
}
.sprink-dn-otp-step {
    margin-top: 16px;
}
.sprink-dn-otp-step-verify {
    display: none;
}
.sprink-dn-otp-step-verify label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}
.sprink-dn-otp-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 18px;
    letter-spacing: 8px;
    text-align: center;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.sprink-dn-otp-btn {
    background: var(--secondary-color, #91206c);
    color: var(--white-color, #ffffff);
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
}
.sprink-dn-otp-btn:hover {
    opacity: 0.9;
}
.sprink-dn-otp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.sprink-dn-otp-msg {
    display: block;
    margin-top: 8px;
    font-size: 14px;
}
.sprink-dn-otp-error {
    color: var(--error_back-color, #e60000);
}

/* Sequential Number Styling */

/* Sequential Data section - full-width row when dh_numbering_template_name is 1 */
.design-box-sequential-data {
  grid-column: 1 / -1;
  padding-top: 15px;
  margin-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Variable / numbering data file — full-width row below artwork + qty row */
.design-box-numbering-row {
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
}
.design-box .design-box-numbering-row .numbering-file-upload-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: var(--light_background-color, #f9f8f6);
}

.sequential-data-separator {
  margin-bottom: 12px;
}
.sequential-data-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text_color-color, #333);
  margin-bottom: 10px;
}
.sequential-data-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
}
.sequential-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sequential-input-group input {
  padding: 8px 12px;
  border: 1px solid var(--light_border-color, #e5e6e7);
  border-radius: 4px;
  font-size: 13px;
  min-width: 80px;
  text-align: center;
}
.sequential-input-group input.sequential-start-input {
  min-width: 100px;
}
.sequential-input-group input.sequential-input-locked,
.design-box-sequential-data input[readonly] {
  background-color: var(--light_background-color, #f9f8f6);
  cursor: not-allowed;
  color: var(--text_color-color, #58595b);
}
.sequential-input-label {
  font-size: 11px;
  color:  var(--text_color-color, #58595b);
}
.sequential-data-note {
  font-size: 11px;
  color: var(--text_color-color, #58595b);
  font-style: italic;
  margin-top: 8px;
  float: right;
  padding-right: 50px;
}

.sequential-data-fields{
  display: flex;
  justify-content: space-around;
}

/* Numbering template (upload data file) — matches design tool layout */
.numbering-file-upload-section {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--light_background-color, #f9f8f6);
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}
.numbering-file-upload-inner {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 50px;
  padding: 0 90px;
  flex-wrap: wrap;
}
.numbering-file-upload-copy {
  flex: 1 1 200px;
  min-width: 0;
}
.numbering-file-upload-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.numbering-file-upload-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text_color-color, #2b2b2b);
}
.numbering-upload-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--white-color, #fff);
  background: var(--text_color-color, #58595b);
  cursor: help;
  flex-shrink: 0;
}
.numbering-file-upload-types {
  margin: 0;
  font-size: 13px;
  color: var(--text_color-color, #58595b);
}
.numbering-file-upload-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 160px;
}
.numbering-file-upload-actions .numbering-data-file-input {
  display: none;
}
.numbering-upload-file-btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.numbering-file-upload-max {
  margin: 0;
  font-size: 12px;
  color: var(--primary-color, #2a1f4a);
  text-align: center;
}
.numbering-file-name {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #1e7e34;
}
.numbering-file-name .remove-numbering-file {
  margin-left: 4px;
  background: var(--error_back-color, #e60000);
  color: var(--white-color, #fff);
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

.design-left .design-box{
  background: var(--light_background-color, #f9f8f6);
  border-radius: 10px;
}

.b2bking_subaccount .design-editor-header {
    top: 45px;
}
.b2bking_subaccount .design-editor-main {
    top: 110px;
}