/* ============================================
   Custom Font Preview Dropdown
   ============================================ */

.cfp-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.cfp-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  box-sizing: border-box;
  user-select: none;
}

.cfp-trigger:hover { border-color: #888; }

.cfp-trigger .cfp-arrow {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  transition: transform 0.2s;
}

.cfp-wrapper.cfp-open .cfp-arrow { transform: rotate(180deg); }

.cfp-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.cfp-wrapper.cfp-open .cfp-dropdown { display: block; }

.cfp-option {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1.4;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.cfp-option:last-child { border-bottom: none; }
.cfp-option:hover     { background: #f5f5f5; }
.cfp-option.cfp-selected { background: #eef; }

.cfp-option[data-font="great-vibes"]            { font-family: 'Great Vibes', cursive; font-weight: 400; }
.cfp-option[data-font="alex-brush"]             { font-family: 'Alex Brush', cursive; font-weight: 400; }
.cfp-option[data-font="cinzel"]                 { font-family: 'Cinzel', serif; font-weight: 400; }
.cfp-option[data-font="copperplate-gothic-bold"]{ font-family: 'Copperplate Gothic Bold','Copperplate','Copperplate Gothic Light',fantasy; font-weight: 700; }
.cfp-option[data-font="rockwell-bold"]          { font-family: Rockwell,'Rockwell Extra Bold',Georgia,serif; font-weight: 700; }
.cfp-option[data-font="bahnschrift-semibold"]   { font-family: Bahnschrift,'Arial Narrow',Arial,sans-serif; font-weight: 600; }
.cfp-option[data-font="impact"]                 { font-family: Impact,Haettenschweiler,'Arial Narrow Bold',sans-serif; font-weight: 400; }
.cfp-option[data-font="georgia-bold"]           { font-family: Georgia,serif; font-weight: 700; }
.cfp-option[data-font="times-new-roman-bold"]   { font-family: 'Times New Roman',Times,serif; font-weight: 700; }
.cfp-option[data-font="arial-bold"]             { font-family: Arial,Helvetica,sans-serif; font-weight: 700; }
.cfp-option[data-font="verdana-bold"]           { font-family: Verdana,Geneva,sans-serif; font-weight: 700; }
.cfp-option[data-font="stencil"]                { font-family: Stencil,'Stencil Std',Impact,fantasy; font-weight: 400; }

/* Mobile responsive */
@media (max-width: 600px) {
  .cfp-wrapper { max-width: 100%; }
  .cfp-option  { font-size: 16px; padding: 12px 14px; }
}
