/* cdlook.css - stile "coddec" per textbox e text area (caricato da solo da Profound UI, cartella custom) */

/* =========================================================================
   STILE "CODDEC" PER TEXTBOX E TEXT AREA
   Uso nel Designer: css class (o css class 2) = cdlook
   Stati facoltativi (es. css class 3 bindata): cd-ok (bordo blu), cd-err (rosso)
   Funziona anche con "float placeholder" = true
   ========================================================================= */
input.cdlook,
textarea.cdlook {
  border: 1px solid #a9a9a9 !important;
  border-radius: 2px !important;
  background-color: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 5px !important;
  box-sizing: border-box !important;
  color: #333;
  font-family: Arial, sans-serif;
  font-size: 13px;
  transition: box-shadow .15s, border-color .15s;
}
textarea.cdlook {
  padding: 4px 5px !important;
  line-height: 1.3;
  resize: none;
}
input.cdlook:focus,
textarea.cdlook:focus {
  box-shadow: 0 0 0 2px rgba(51, 0, 102, .18) !important;
}
.cdlook::placeholder {
  color: #aaa;
  font-style: italic;
  opacity: 1;
}
.cdlook[readonly]  { background-color: #f7f7f7 !important; }
.cdlook:disabled   { background-color: #eee !important; color: #888 !important; }
.cdlook.cd-ok      { border-color: royalblue !important; }
.cdlook.cd-err     { border-color: red !important; }

/* float placeholder: etichetta piccola sul bordo, viola quando il campo ha il focus */
.cdlook.pui-floating-placeholder-input + .pui-floating-placeholder-label {
  top: 0;
  left: 5px;
  padding: 0 2px;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-style: normal;
  line-height: 1.2;
  color: #777;
  max-width: calc(100% - 12px);
  transform: translateY(-55%);
}
.cdlook.pui-floating-placeholder-input:focus + .pui-floating-placeholder-label,
.cdlook.pui-floating-placeholder-input:not(:placeholder-shown) + .pui-floating-placeholder-label {
  transform: translateY(-55%);
}
.cdlook.pui-floating-placeholder-input:focus + .pui-floating-placeholder-label {
  color: #330066;
}
