/** Shopify CDN: Minification failed

Line 490:57 Comments in CSS use "/* ... */" instead of "//"
Line 586:8 Expected ":"

**/
#default-image.product__media.media {
  max-width: 600px;
  max-height: 600px;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding-bottom: 0 !important; /* Overrides default Dawn percentage padding */
}
#default-image > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
#popupOverlayImg {
  width: 50%; /* Initial standard fallback state value */
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transition: width 0.05s ease-out; /* Standard smoothing tracking curve */
  z-index: 9999;
  /* FIX 1: Prevent the inner image element from interfering with dragging */
  pointer-events: none !important; 
  user-select: none !important;
}
.designer-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999; /* FIX 2: Raise wrapper depth above the base coin background */
  
  /* FIX 3: CHANGE TO AUTO. This re-enables mouse clicks and cursor updates */
  pointer-events: auto !important; 
  cursor: move !important; /* Visual cue: 4-way arrow icon on hover */
  
  display: flex !important;
  justify-content: center;
  align-items: center;
}
.designer-img-overlay img {
  /* Keep your layout calculations intact */
  width: 93%;
  height: auto;
  max-height: 932%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 2s ease; /* Bonus: creates a smooth fade-in */
}

.designer-img-overlay img.is-active {
  opacity: 1;
  visibility: visible;
}
/* 1. Main outer layout container wrapper (The red dashed border box) */
  .image-radar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    pointer-events: none !important;
  }

  /* Target all children and force structural dimensioning visibility */
  .image-radar > div {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 250px !important;
    height: 250px !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    display: block !important; /* Force browser box-model generation */
  }
  /* Simple, high-compatibility spinning crosshair ring */
  .radar-beam {
    border: 4px solid #009bbf !important;
    border-top-color: transparent !important; /* Creates a spinning crescent wedge */
    border-bottom-color: transparent !important;
    background-color: rgba(0, 155, 191, 0.15) !important; /* Solid tinted fallback fill */
    animation: simple-rotate 2s linear infinite !important;
  }
  /* Simple pulsing ripples */
  .radar-ring {
    border: 3px solid #009bbf !important;
    background: transparent !important;
    opacity: 0 !important;
    animation: simple-pulse 2.5s cubic-bezier(0.1, 0.8, 0.3, 1) infinite !important;
  }
  .radar-ring.ring-2 {
    animation-delay: 1.25s !important;
  }
  /* Standardized keyframes using basic native browser transforms */
  @keyframes simple-rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
  }
  @keyframes simple-pulse {
    0% { transform: translate(-50%, -50%) scale(0.1); opacity: 1; }
    50% { opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
  }
  .image-radar.hidden {
    display: none !important;
  }


.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;                            
    max-width: 1200px;                    
    margin: 20px auto;                     
    padding: 0 20px;
}
.icon-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.icon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.icon-wrapper {
    margin-bottom: 10px;
    color: #3b82f6;        
}
.icon-wrapper svg {
    width: 108px;           
    height: 108px;
    object-fit: contain;
}
.icon-title {
    font-size: 20px;
    margin: 0 0 10px 0;
    color: #1f2937;
}
.icon-description {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}
@media (max-width: 768px) {
    .icon-grid {
        grid-template-columns: 1fr; /* Stacks columns into 1 single vertical line */
        gap: 20px;
    }
}

.help > li {
    font-size: 13px;
}
.prompt-instructions {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border: 1px solid #e9ecef;
    border-left: 4px solid #dc3545;
    border-radius: 6px;
    padding: 0px 15px 10px 15px;
    margin: 5px 0;
    max-width: 550px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.instructions-title h3 {
    color: #212529;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}
.instructions-intro {
    color: #495057;
    margin: 0 0 14px 0;
    font-size: 1.2rem;
    line-height: 1.4;
}
.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 1.2rem;
    line-height: 1.4;
    color: #495057;
}
.list-item:last-child {
    margin-bottom: 0;
}
.list-item .icon {
    margin-right: 10px;
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1.2;
}

/* Main CSS */
div .tab_group {
  padding-bottom: 20px;
  margin-top: 40px;
}
div .folders {
  margin-bottom: 20px;
}
div .tabs { 
  align-items: center; 
  display: block;
}
#folder { 
  margin-top: 0; 
  padding: 15px; 
  border: 1px solid #ccc;
}
#template, #front, #back {
  display: inline-block; 
  padding: 10px 20px; 
  border: 1px solid #ccc; 
  border-bottom: none; 
  border-radius: 5px 5px 0 0; 
  cursor: pointer; 
}
#clear-tab {
  display: none;
}
input[type="radio"] {
   display: none !important; 
}
input[type="radio"]:checked + label {
 color: rgba(var(--color-foreground), 0.90); 
 font-weight: bold; 
}
.input_label { 
  color: rgba(var(--color-foreground), 0.75);
  font-size: 1.4rem; 
  margin: 10px 0 2px 0; 
}
.input_container {
  align-items: center; 
  display: flex; 
  gap: 8px; 
  border: solid 1px; 
  padding: 5px;
}
.icon_input { 
  border: none;
  display: flex;
}
.icon_input:focus {
  display: none;
}
.icon_container {
  display: grid; 
  visibility: hidden;
}
.icon_container > label { 
  grid-area: 1 / 1;
}
#icon_front { 
  z-index: 2;
}
#icon_back {
  z-index: 1;
}
.click_icon:hover {
  cursor: pointer;
  transform: scale(1.2); 
  transition: all 0.4s ease;
}
.icon_box { 
  display: flex; 
  justify-content: 
  center; align-items:
  center; width: 32px;
  height: 32px;
}
.image_upload { 
  position: absolute; 
  width: 1px; 
  height: 1px; 
  padding: 0; 
  margin: -1px; 
  overflow: hidden; 
  clip: rect(0, 0, 0, 0); 
  border: 0;
}
.ai_block {
  display: none;
  margin: 10px 0 0;
}
.ai_prompt_container {
  position: relative;
}
.instructions { 
  margin-top: 15px;
}
.textarea_label {
  display: inline-block;
  margin: 10px 0 2px 0;
} 
textarea::placeholder {
  color: rgba(var(--color-foreground), 0.60);
  padding: 0 5px;
}
.ai_prompt_ta, .icon_input {
  display: block;
  font-size: 1.4rem;
  overflow: hidden;
  padding: 10px;
  width: 100%;
}
.ta_container {
  position: relative;
  display: inline-block;
}
.ta_container textarea {
  padding-bottom: 36px; 
  padding-right: 36px;
  box-sizing: border-box;
}
.label-link {
  font-size: 1.4rem;
}
.label-link a:hover {
  color: rgb(var(--color-link));
  text-decoration-thickness: 0.2rem;
}
.close-btn {
  cursor: pointer; 
  border: none; 
  background: #333; 
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
}
.hidden {
  visibility: hidden;
  pointer-events: none;
}
.is-hidden-block {
  display: none !important;
}

/* AI animated icon setup */
.icon-ai-submit {
  position: absolute;
  bottom: 0;
  right: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
/* Icon pulses and shifts color exactly 3 times, then stays at rest */
.icon-ai-submit.pulse {
  animation: aiPulse 1s ease-in-out 2; 
}
@keyframes aiPulse {
  0% { transform: scale(1); stroke: #009bbf; }
  50% { transform: scale(1.3); stroke: #ff007f; }
  100% { transform: scale(1); stroke: #009bbf; }
}
/* Radar ring shoots out exactly 3 times, then disappears */
.icon-ai-submit.pulse::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid #ff007f;
  border-radius: 50%;
  pointer-events: none;
  animation: radarWave 1s cubic-bezier(0.1, 0.8, 0.3, 1) 3;
}
@keyframes radarWave {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Container holding the sliders */
input[type="range"] {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 300px; 
  vertical-align: middle; 
  flex-shrink: 0;
  accent-color: #009bbf;
}
.coin-controls-row {
  display: flex;
  flex-direction: row; /* Side-by-side on desktop */
  gap: 20px;           
  margin-top: 15px;
  width: 100%;
}
.control-group {
  flex: 1;             /* Splits the 600px space exactly 50/50 */
  display: flex;
  flex-direction: column;
}
.control-group label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 5px;
}
.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.slider-wrapper input[type="range"] {
  flex-grow: 1;        /* Lets the slider track stretch to fill space */
}

/* custom popups */
  .image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
  }
  .image-popup-content {
    background: #fefefe;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.15);
    padding: 30px 20px 32px; 
  }
  #clipart-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    padding: 0 15px 0 0;
    max-height: 400px;
  }
  .template-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr);
    gap: 12px; 
  }
  figcaption { 
    font-size: 1.4rem; 
    text-align: center; 
  }

  .thumbnail-image {
    aspect-ratio: 1 / 1;
    background-color: #ffffff; 
    /* Match the sizing of the checkerboard squares (16px wide/tall) */
    background-image: conic-gradient(
      #e2e2e2 25%, transparent 0 50%, 
      #e2e2e2 0 75%, transparent 0
    );
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px; //shift the layers
    border: 2px solid #e0e0e0;
    border-radius: 3px;
    box-sizing: border-box;
    cursor: pointer;
    object-fit: cover;
    padding: 6px;
    transition: transform 0.2s ease, border-color 0.2s ease;
    width: 100%;
  }
  .thumbnail-image.inverted-checkerboard {
    background-color: #7f7f7f !important; /* The dark charcoal base */
    /* Draws crisp, solid white quadrants instead of dark ones */
    background-image: conic-gradient(
      #999 25%, transparent 0 50%, 
      #999 0 75%, transparent 0
  ) !important;
    border-color: #1a1b1c !important; /* Darker border to match the grid */
  }
  .thumbnail-image:hover {
    transition: all 0.5s ease; 
    border: solid 5px rgba(5, 134, 48, 0.90) ;
    transform: scale(1.05);
  }
  .pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border-top: 1px solid #eeeeee;
  }
  .pagination-controls button {
    padding: 8px 16px;
    background-color: #111111;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  .pagination-controls button:disabled {
    visibility: hidden;
  }
  #page-indicator {
    font-size: 14px;
    font-weight: 600;
    color: #555555;
  }
  .close { 
    float: right; 
    font-size: 2.5rem; 
    cursor: pointer; 
  }

/* ragmill-ai-designer.liquid */
  .ai-popup {
    position: fixed; 
    inset: 0; 
    background-color: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    align-items: center; 
    justify-content: center; 
    backdrop-filter: blur(4px);
  }
  .ai-popup-content {
    background: #fefefe; 
    padding: 25px; 
    border-radius: 8px; 
    max-width: 600px; 
    width: 90%; 
    text-align: center; 
    border: 1px solid #333;
  }
  .ai-canvas {
    background: #e0e0e0;
    margin-bottom: 20px;
  }
  .ai-image {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
  }
  .disable-ai-confirm {
    pointer-events: none; 
    opacity: 0.5;         
    cursor: not-allowed;  
  }    
  button {
    padding: 8px 16px;
    background-color: #111;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0px 8px;
    flex 1;
  }
.reject {
    background: #ff4d4d; 
    color: #fff; 
    border: 1px solid #ff4d4d;
}


/* Mobile Breakpoint: Stacks the controls vertically below 750px */
@media screen and (max-width: 749px) {
  .coin-controls-row {
    flex-direction: column; 
    gap: 15px;
  }
}