/* =========================================================================
   Styled By Crownlove — front-end editing session (styles)
   Only loaded on the storefront, scoped to .cl- classes.
   ========================================================================= */

.cl-ui, .cl-ui * { box-sizing: border-box; }

/* ---------- the little footer link ---------- */
.cl-edit-link { position: relative; padding-left: 15px !important; }
.cl-edit-link::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 7px;
  margin-top: -4px; border: 1px solid currentColor; border-radius: 1px; opacity: .65;
}
.cl-edit-link::after {
  content: ""; position: absolute; left: 2px; top: 50%; width: 4px; height: 4px;
  margin-top: -8px; border: 1px solid currentColor; border-bottom: 0;
  border-radius: 4px 4px 0 0; opacity: .65;
}

/* ---------- the editing bar ---------- */
.cl-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 9000; display: flex; align-items: center; gap: 6px;
  padding: 7px 8px 7px 14px; background: #14120F; color: #FAF8F3;
  border-radius: 999px; box-shadow: 0 14px 40px rgba(20,18,15,.28);
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none;
}
.cl-bar::-webkit-scrollbar { display: none; }
.cl-bar b { font-weight: 500; letter-spacing: .18em; margin-right: 6px; white-space: nowrap; }
.cl-bar .cl-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #C9A96E;
  box-shadow: 0 0 0 0 rgba(201,169,110,.7); animation: cl-pulse 2.4s infinite;
}
@keyframes cl-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,169,110,.6); }
  70%  { box-shadow: 0 0 0 7px rgba(201,169,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,169,110,0); }
}
.cl-bar button {
  appearance: none; border: 0; background: rgba(250,248,243,.1); color: #FAF8F3;
  font: inherit; letter-spacing: .14em; text-transform: uppercase;
  padding: 8px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s;
}
.cl-bar button:hover { background: rgba(250,248,243,.22); }
.cl-bar button.on { background: #C9A96E; color: #14120F; }
.cl-bar .cl-exit { background: #FAF8F3; color: #14120F; font-weight: 500; }
.cl-bar .cl-exit:hover { background: #C9A96E; }
.cl-bar .cl-lock { background: transparent; padding: 8px 10px; font-size: 11px;
  line-height: 1; opacity: .55; filter: grayscale(1); }
.cl-bar .cl-lock:hover { opacity: 1; background: rgba(250,248,243,.12); }
body.cl-has-bar { padding-bottom: 74px; }
body.cl-panel-open .cl-bar { display: none; }

/* ---------- editable text ---------- */
body.cl-editing [data-i18n][contenteditable], body.cl-editing [data-i18n-html][contenteditable] {
  outline: 1px dashed rgba(169,130,63,.45); outline-offset: 4px;
  border-radius: 2px; cursor: text; transition: outline-color .2s, background .2s;
}
body.cl-editing [data-i18n][contenteditable]:hover, body.cl-editing [data-i18n-html][contenteditable]:hover { outline-color: #A9823F; background: rgba(169,130,63,.05); }
body.cl-editing [data-i18n][contenteditable]:focus, body.cl-editing [data-i18n-html][contenteditable]:focus {
  outline: 2px solid #A9823F; outline-offset: 4px; background: rgba(255,255,255,.5);
}

/* ---------- drawers / modals ---------- */
body.cl-locked { overflow: hidden; }
.cl-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(470px, 100vw);
  z-index: 9100; background: #FAF8F3; color: #14120F; display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(20,18,15,.18);
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  animation: cl-slide .32s cubic-bezier(.22,.61,.36,1);
}
@keyframes cl-slide { from { transform: translateX(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.cl-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid rgba(20,18,15,.12);
}
.cl-panel__head b { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.cl-panel__head span { color: #8A8175; font-weight: 300; }
.cl-panel__body { flex: 1; overflow-y: auto; padding: 16px 16px 26px; }
.cl-panel__foot {
  border-top: 1px solid rgba(20,18,15,.12); padding: 10px 20px; min-height: 38px;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #8A8175;
}
.cl-x {
  appearance: none; border: 0; background: none; font-size: 24px; line-height: 1;
  cursor: pointer; color: #14120F; padding: 0 4px; opacity: .55;
}
.cl-x:hover { opacity: 1; }

.cl-btn {
  appearance: none; border: 1px solid #14120F; background: #14120F; color: #FAF8F3;
  font: inherit; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  padding: 11px 18px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.cl-btn:hover { background: #A9823F; border-color: #A9823F; color: #FFF; }
.cl-btn--ghost { background: transparent; color: #14120F; border-color: rgba(20,18,15,.25); }
.cl-btn--ghost:hover { background: #14120F; border-color: #14120F; color: #FAF8F3; }
.cl-btn--full { width: 100%; margin-top: 6px; }
.cl-btn:disabled { opacity: .5; cursor: default; }

/* ---------- product rows ---------- */
#cl-add { width: 100%; margin-bottom: 14px; }
.cl-row {
  display: flex; gap: 12px; padding: 14px 12px; margin-bottom: 10px;
  background: #FFF; border: 1px solid rgba(20,18,15,.1);
}
.cl-thumb {
  flex: 0 0 62px; width: 62px; height: 78px; padding: 0; cursor: pointer;
  border: 1px solid rgba(20,18,15,.14); background: #F2EDE3; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-thumb span { font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: #8A8175; }
.cl-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cl-fields input, .cl-fields select, .cl-fields textarea {
  width: 100%; font: inherit; font-size: 12.5px; color: #14120F;
  background: #FBF9F5; border: 1px solid rgba(20,18,15,.14); padding: 7px 8px;
  border-radius: 0; outline: none;
}
.cl-fields input:focus, .cl-fields select:focus, .cl-fields textarea:focus {
  border-color: #A9823F; background: #FFF;
}
.cl-line { display: flex; gap: 6px; }
.cl-line input { flex: 1 1 40%; }
.cl-line select { flex: 1 1 30%; min-width: 0; }
.cl-details { margin-top: 2px; }
.cl-details summary {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #8A8175;
  cursor: pointer; padding: 4px 0;
}
.cl-details summary:hover { color: #A9823F; }
.cl-details > *:not(summary) { margin-top: 6px; }
.cl-details textarea { resize: vertical; line-height: 1.5; }
.cl-del {
  align-self: flex-start; appearance: none; background: none; border: 0; padding: 2px 0;
  font: inherit; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #9C3B33; cursor: pointer; opacity: .8;
}
.cl-del:hover { opacity: 1; text-decoration: underline; }

/* ---------- modals ---------- */
.cl-modal {
  position: fixed; inset: 0; z-index: 9200; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(20,18,15,.42); backdrop-filter: blur(3px);
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  animation: cl-fade .2s ease;
}
@keyframes cl-fade { from { opacity: 0; } to { opacity: 1; } }
.cl-card {
  position: relative; background: #FAF8F3; color: #14120F; width: min(420px, 100%);
  padding: 34px 30px 28px; box-shadow: 0 30px 80px rgba(20,18,15,.3);
}
.cl-modal--wide .cl-card { width: min(760px, 100%); }
.cl-card .cl-x { position: absolute; top: 10px; right: 12px; }
.cl-kicker {
  font-size: 9px; letter-spacing: .34em; text-transform: uppercase; color: #A9823F; margin: 0 0 12px;
}
.cl-card h2 {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300;
  font-size: 27px; line-height: 1.15; margin: 0 0 8px;
}
.cl-muted { font-size: 12px; color: #6E675C; line-height: 1.6; margin: 0 0 18px; }
.cl-field { display: block; margin-bottom: 12px; }
.cl-field span {
  display: block; font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: #8A8175; margin-bottom: 5px;
}
.cl-field input, #cl-legal-text {
  width: 100%; font: inherit; font-size: 13.5px; color: #14120F; background: #FFF;
  border: 1px solid rgba(20,18,15,.18); padding: 11px 12px; outline: none; border-radius: 0;
}
.cl-field input:focus, #cl-legal-text:focus { border-color: #A9823F; }
#cl-legal-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.65; resize: vertical;
}
.cl-err { color: #9C3B33; font-size: 12px; margin: 4px 0 10px; }
.cl-alt { margin: 14px 0 0; text-align: center; }
.cl-alt a { font-size: 10.5px; letter-spacing: .1em; color: #6E675C; text-decoration: none; border-bottom: 1px solid rgba(20,18,15,.2); }
.cl-alt a:hover { color: #A9823F; border-color: #A9823F; }
.cl-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

@media (max-width: 700px) {
  .cl-bar { bottom: 76px; font-size: 10px; padding: 6px 7px 6px 12px; }
  .cl-bar b { display: none; }
  .cl-bar button { padding: 7px 10px; }
  .cl-panel { width: 100vw; }
  .cl-card { padding: 28px 20px 22px; }
  body.cl-has-bar { padding-bottom: 130px; }
}
