
.nag-logo-form-wrapper {
  max-width: 700px;
  margin: 40px auto;
  font-family: inherit;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.nag-logo-form-wrapper fieldset {
  border: 1px solid #ccc;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 6px;
}
.nag-logo-form-wrapper label {
    margin: 10px 0;
}
.nag-color-picker {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #ddd;
  outline: none;
  margin-top: 8px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #ed2f60;
  border-radius: 50%;
  border: 2px solid #bd1943;
  cursor: pointer;
  margin-top: -4px;
}
input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #ed2f60;
  border-radius: 50%;
  border: 2px solid #bd1943;
  cursor: pointer;
}
#nag-output-box {
  border: 1px solid #ccc;
  margin-top: 20px;
  padding: 20px;
  background: #f9f9f9;
  position: relative;
  border-radius: 6px;
}
.nag-output-header {
  display: flex;
  justify-content: flex-end;
}

button#nag-generate-btn {
  background: #ed2f60;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
    margin: 20px auto 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

fieldset legend {
    font-size: 20px !important;
    font-weight: bold !important;
}

input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}
label {
    font-size: 16px;
        margin-bottom: 10px;
}

.nag-font-options label {
        font-size: 16px;
    margin-bottom: 10px;
}

.nag-logo-form-wrapper fieldset label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    margin-bottom: 10px;
}

.nag-color-picker {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.nag-color-picker label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    min-width: 160px;
}


.nag-color-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.nag-color-picker label {
    align-items: flex-start;
    text-align: left;
}

.nag-slider-block {
    margin-bottom: 20px;
}
.nag-slider-label {
    font-weight: 600;
    margin-bottom: 5px;
    }
.nag-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nag-slider-container input[type="range"] {
    flex: 1;
}
.nag-left-label, .nag-right-label {
    font-size: 14px;
    min-width: 70px;
    text-align: center;
}

.nag-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nag-slider-container input[type="range"] {
    width: 100%;
    max-width: 400px;
}
.nag-slider-block {
        margin-bottom: 20px;
}

.nag-left-label {
    font-size: 14px;
    min-width: 70px;
    text-align: right;
}

.nag-right-label {
    font-size: 14px;
    min-width: 70px;
    text-align: left;
}

.nag-slider-container input[type="range"] {
    width: 125%;
    max-width: 500px;
}

.nag-slider-container {
    display: grid;
    grid-template-columns: 90px 1fr 105px;
    align-items: center;
    gap: 10px;
}

.nag-slider-container input[type="range"] {
    width: 100%;
    max-width: 600px;
}

.nag-logo-form-wrapper fieldset input[type="text"],
.nag-logo-form-wrapper fieldset select,
.nag-logo-form-wrapper fieldset textarea {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.nag-logo-form-wrapper fieldset label {
        font-weight: 600;
    margin-bottom: 5px;
}

.nag-logo-form-wrapper fieldset label {
    font-size: 16px !important;
    font-weight: bold !important;
}

.nag-slider-label,
.nag-left-label,
.nag-right-label {
    font-size: 16px !important;
    font-weight: bold !important;
}











@keyframes flashText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}



.nag-color-picker input[type="color"] {
    height: 48px !important;
    width: 100% !important;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.nag-loading {
    font-size: 14px;
    color: #ed2f60;
    background: none !important;
    animation: flashText 1s infinite;
}

@keyframes flashText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}



h2.nag-form-title {
    color: #212121 !important;
}







.nag-logo-form-wrapper h2 {
    text-align: center;
    color: #424242;
    margin-bottom: 25px;
    font-size: 26px;
    margin-top: 0px;
}

#nag-output-text {
    font-size: 16px;
    color: #424242;
    line-height: 1.5;
}

#nag-copy-btn {
    padding: 5px 10px;
    cursor: pointer;
    background: none;
    color: #ed2f60;
    border: none;
    border-radius: 4px;
    margin-top: -20px;
    margin-right: -20px;
}





input[type="checkbox"], input[type="radio"] {
    margin-right: 0px !important;
}


/* === Patch 5: Correct brand color layout desktop & mobile === */

/* Desktop: consistent full-width color input within label card */
.nag-color-picker{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:flex-start;
}
.nag-color-picker .nag-color-item{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  padding:10px;
  border:1px solid #ccc;
  border-radius:6px;
  flex:1 1 220px;
  max-width:320px;
  box-sizing:border-box;
}
.nag-color-picker .nag-color-title{
  font-weight:600;
  font-size:16px;
  line-height:1.3;
  color:#424242; /* same as other labels */
}
.nag-color-picker input[type="color"]{
  display:block;
  width:100%;
  height:48px;
  border:1px solid #ccc;
  border-radius:6px;
  padding:0;
  box-sizing:border-box;
  background:none;
}

/* Mobile: clean two-line labels, no extra gap, consistent color */
@media (max-width:520px){
  .nag-color-picker{
    gap:10px;
  }
  .nag-color-picker .nag-color-item{
    flex:1 1 calc(50% - 10px);
    min-width:0;
    max-width:100%;
    padding:8px;
  }
  .nag-color-picker .nag-color-title{
    font-size:14px;
    font-weight:600;
    line-height:1.2;
    color:#424242; /* match other labels */
    margin:0;
  }
  .nag-color-picker .nag-color-title::before{
    content: attr(data-word1) "\A" attr(data-word2);
    white-space:pre;
    color:inherit;
  }
  .nag-color-picker .nag-color-title{
    color:transparent; /* hide inline text */
  }
  .nag-color-picker .nag-color-title::before{
    display:block;
  }
  .nag-color-picker input[type="color"]{
    width:100%;
    height:56px !important;
    border-radius:6px !important;
  }
}


/* === Patch 5: Desktop color well sizing, unified label color, clean mobile break === */

/* Desktop/Default */
.nag-color-picker{ display:flex; flex-wrap:wrap; gap:20px; justify-content:flex-start; }
.nag-color-picker .nag-color-item{
  display:flex; flex-direction:column; gap:8px;
  padding:10px; border:1px solid #cccccc; border-radius:6px;
  flex:1 1 240px; min-width:200px; max-width:420px;
}
.nag-color-title{ font-weight:600; font-size:16px; line-height:1.2; color: inherit; }
.nag-mobile-break{ display:none; }

/* The visible well contains the input so it can fill fully across browsers */
.nag-color-well{
  display:block; width:100%; height:56px;
  border:1px solid #ccc; border-radius:8px; overflow:hidden;
}
.nag-color-well input[type="color"]{
  -webkit-appearance: none; appearance: none;
  display:block; width:100%; height:100%;
  border:0; padding:0; margin:0;
}

/* Mobile */
@media (max-width:520px){
  .nag-color-picker{ gap:10px; }
  .nag-color-picker .nag-color-item{ flex:1 1 calc(50% - 10px); min-width:0; max-width:100%; }
  .nag-color-title{ font-size:14px; line-height:1.15; }
  .nag-mobile-break{ display:inline; } /* inserts the intended line break */
  .nag-color-well{ height:56px; }      /* keep square touch target */
}

/* Ensure no unexpected bottom gap under Secondary label */
.nag-color-item > .nag-color-title{ margin:0; }
.nag-color-item > .nag-color-well{ margin:0; }


/* === Patch 6: Robust mobile layout for Style Attributes (no overlap) === */
@media (max-width:520px){
  .nag-logo-form-wrapper .nag-slider-block{ margin-bottom:16px; }
  .nag-logo-form-wrapper .nag-slider-container{
    display:grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows:auto;
    row-gap:10px; column-gap:8px;
    align-items:center;
  }
  .nag-logo-form-wrapper .nag-slider-container .nag-left-label{
    grid-column:1; grid-row:1; text-align:left; font-size:14px;
  }
  .nag-logo-form-wrapper .nag-slider-container .nag-right-label{
    grid-column:2; grid-row:1; text-align:right; font-size:14px;
  }
  .nag-logo-form-wrapper .nag-slider-container input[type="range"]{
    grid-column:1 / -1; grid-row:2; width:100%; min-width:0;
  }
}


/* === Patch 7: User-specified fix for mobile color picker layout === */
@media (max-width: 520px) {
    .nag-color-picker {
        display: block;
    }
}


/* === Patch 8: Slider sizing & base style (per user spec) === */
.nag-slider-container input[type="range"] {
    width: 100%;
    max-width: 600px;
    padding: 0px !important;
    margin-top: 0px;
}
input[type="range"] { 
    height: 10px;
    border-radius: 12px;
    background: #ddd;
    outline: none;
}
/* Keep track height consistent across browsers */
input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 12px; }
input[type="range"]::-moz-range-track { height: 10px; border-radius: 12px; }


/* === Patch 9: Bigger slider thumb only (no track changes) === */
input[type="range"] {
  -webkit-appearance: none; /* ensure custom thumb renders in WebKit */
  appearance: none;
}

/* Chrome / Safari */
input[type="range"]::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  /* Center thumb on a 10px track: -(28-10)/2 = -9px */
  margin-top: -9px;
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* Legacy Edge/IE (optional) */
input[type="range"]::-ms-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}


/* === Patch 10: Slider thumb = 26px (centered on 10px track) === */
input[type="range"]::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -8px; /* -(26-10)/2 */
}
input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
}
input[type="range"]::-ms-thumb {
  width: 26px;
  height: 26px;
}


/* === Patch 11: Slider thumb = 20px (centered on 10px track) === */
input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -5px; /* -(20-10)/2 */
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
}
input[type="range"]::-ms-thumb {
  width: 20px;
  height: 20px;
}


/* === Patch 12: Mobile (≤520px) slider thumb = 22px, centered on 10px track === */
@media (max-width: 520px) {
  input[type="range"]::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    margin-top: -6px; /* -(22-10)/2 */
  }
  input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
  }
  input[type="range"]::-ms-thumb {
    width: 22px;
    height: 22px;
  }
}


/* === Patch 13: iOS/Apple select height fix to match text fields === */
/* Apply consistent height + font size to avoid iOS zoom and shrinking */
.nag-logo-form-wrapper fieldset select {
  height: 44px !important;         /* match typical text input height */
  min-height: 44px;
  line-height: 22px;
  font-size: 16px;                  /* prevents Safari auto-zoom and stabilizes control height */
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 16px;              /* a little breathing room on the right */
  box-sizing: border-box;
}

/* Extra nudge for iOS browsers */
@supports (-webkit-touch-callout: none) {
  .nag-logo-form-wrapper fieldset select {
    height: 44px !important;
    min-height: 44px;
  }
}


/* === Dev1: Mobile stack for Logo Style & Font Style (image on top, radios below) === */
@media (max-width: 520px){
  .nag-flex-pair{ flex-direction: column-reverse !important; }
  .nag-flex-pair > div{ width: 100%; }
}


/* === Dev2: Update mobile stack gap for .nag-flex-pair === */
@media (max-width: 520px) {
    .nag-flex-pair {
        flex-direction: column-reverse !important;
        gap: 6px !important;
    }
}
