@charset "UTF-8";
/* Современная загрузка фотографий (HTML5) и попап создания фотоальбома.
   Файл используется на странице добавления фото
   (clubbergallery/clubber_album_edit_v2.tpl) и на страницах фотоотчётов
   (clubbergallery/gallery_v2.tpl, clubbergallery/album_v2.tpl).
   Акцент макета — #00aeef, плашка загрузки — #d0f2ff. */

/* ------------------------------------------------------------------ */
/* 0. Блок загрузки на странице альбома                                */
/* ------------------------------------------------------------------ */

.cb-upload-block {
  width: 941px;
  margin: 0 auto 16px;
  padding: 12px 20px 16px;
  border: 1px solid #dadada;
  border-radius: 4px;
  background: #f6f6f6;
}
.cb-upload-title { margin-bottom: 10px; color: #1b1b1b; font-size: 13px; font-weight: bold; }
.cb-upload-note { margin-top: 10px; color: #8a949c; font-size: 11px; }
.cb-upload-ext { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e4e9ec; font-size: 12px; }
.cb-upload-ext label { display: block; margin-bottom: 4px; color: #4b5b63; }
.cb-upload-ext textarea {
  width: 480px;
  border: 1px solid #c9c9c9;
  border-radius: 2px;
  font: 12px Arial, Helvetica, sans-serif;
}
.cb-upload-ext input[type=submit] {
  margin-left: 8px;
  padding: 6px 14px;
  border: 0;
  border-radius: 3px;
  background: #00aeef;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  vertical-align: top;
}
.cbphoto-total { margin: 10px 0 4px; color: #4b5b63; font-size: 12px; }

/* ------------------------------------------------------------------ */
/* 1. Загрузчик (перетаскивание + превью + прогресс)                   */
/* ------------------------------------------------------------------ */

.cbup {
  font: 12px Arial, Helvetica, sans-serif;
  color: #1b1b1b;
}
.cbup-plate {
  position: relative;
  /* ALBUM-EDIT-2: поле для перетаскивания сделано заметно крупнее
     (было 14px по вертикали) — по просьбе Владислава. */
  padding: 40px 16px;
  background: #d0f2ff;
  border: 1px dashed #9fdcf5;
  border-radius: 4px;
  color: #00aeef;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  -webkit-transition: background-color .15s;
  transition: background-color .15s;
}
.cbup-plate:hover { background: #c3edff; }
.cbup-plate.cbup-over { background: #b3e7ff; border-color: #00aeef; }
.cbup-plate-ico {
  display: inline-block;
  width: 26px;
  height: 19px;
  margin: 0 8px 0 0;
  vertical-align: middle;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2026%2019%22%20fill%3D%22none%22%20stroke%3D%22%2300aeef%22%20stroke-width%3D%221.7%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%221%22%20y%3D%224%22%20width%3D%2224%22%20height%3D%2214%22%20rx%3D%222.5%22%2F%3E%3Cpath%20d%3D%22M8.5%204l1.4-2.6h6.2L17.5%204%22%2F%3E%3Ccircle%20cx%3D%2213%22%20cy%3D%2211%22%20r%3D%223.8%22%2F%3E%3C%2Fsvg%3E") no-repeat 50% 50%;
  background-size: 26px 19px;
}
.cbup-plate-text { display: inline-block; vertical-align: middle; }
.cbup-plate-hint { display: block; margin-top: 6px; color: #6b7b82; font-size: 11px; }
.cbup-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cbup-list { margin-top: 12px; }
.cbup-list:empty { display: none; }
.cbup-item {
  display: table;
  width: 100%;
  padding: 6px 0;
  border-bottom: 1px solid #eef2f4;
}
.cbup-item:last-child { border-bottom: 0; }
.cbup-item-cell { display: table-cell; vertical-align: middle; }
.cbup-thumb {
  width: 56px;
  height: 56px;
  margin-right: 10px;
  overflow: hidden;
  background: #f2f5f7;
  border: 1px solid #dfe6ea;
  border-radius: 2px;
  text-align: center;
}
.cbup-thumb img { display: block; width: 56px; height: 56px; object-fit: cover; }
.cbup-name {
  display: block;
  max-width: 420px;
  overflow: hidden;
  color: #1b1b1b;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cbup-size { color: #8a949c; font-size: 11px; }
.cbup-bar {
  display: block;
  height: 4px;
  margin-top: 6px;
  overflow: hidden;
  background: #e7edf1;
  border-radius: 2px;
}
.cbup-bar i { display: block; height: 4px; width: 0; background: #00aeef; }
.cbup-state { width: 150px; text-align: right; font-size: 11px; }
.cbup-state-new { color: #8a949c; }
.cbup-state-run { color: #0079a8; }
.cbup-state-ok { color: #2e9e4f; }
.cbup-state-err { color: #cc2222; }
.cbup-del {
  width: 22px;
  padding: 0 0 0 8px;
  border: 0;
  background: none;
  color: #b9c3c9;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  text-align: right;
}
.cbup-del:hover { color: #cc2222; }
.cbup-summary { margin-top: 10px; font-size: 12px; }
.cbup-summary-ok { color: #2e9e4f; }
.cbup-summary-err { color: #cc2222; }
.cbup-actions { margin-top: 12px; }
.cbup-btn {
  display: inline-block;
  margin: 0 8px 0 0;
  padding: 9px 22px;
  border: 0;
  border-radius: 3px;
  background: #00aeef;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
}
.cbup-btn:hover { background: #0099d2; }
.cbup-btn[disabled] { background: #b9c3c9; cursor: default; }
.cbup-btn-plain {
  padding: 9px 14px;
  background: #eef2f4;
  color: #4b5b63;
  text-transform: none;
}
.cbup-btn-plain:hover { background: #e2e9ed; }

/* Превью выбранных файлов сеткой (попап создания альбома) */
.cbup-grid { margin-top: 12px; font-size: 0; }
.cbup-grid:empty { display: none; }
.cbup-grid-item {
  position: relative;
  display: inline-block;
  width: 84px;
  height: 84px;
  margin: 0 10px 10px 0;
  overflow: hidden;
  background: #f2f5f7;
  border: 1px solid #dfe6ea;
  border-radius: 2px;
  vertical-align: top;
}
.cbup-grid-item img { display: block; width: 84px; height: 84px; object-fit: cover; }
.cbup-grid-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
  text-align: center;
}
.cbup-grid-del:hover { background: #cc2222; }
.cbup-grid-item .cbup-bar { position: absolute; left: 3px; right: 3px; bottom: 4px; height: 3px; margin: 0; }
.cbup-grid-item .cbup-bar i { height: 3px; }
.cbup-grid-item.cbup-err { border-color: #cc2222; }
.cbup-grid-item.cbup-ok { border-color: #2e9e4f; }
.cbup-grid-err {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px 3px;
  background: rgba(204, 34, 34, .85);
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
}

/* ------------------------------------------------------------------ */
/* 2. Попап создания альбома (по макету: тёмный фон, светлая карточка)  */
/* ------------------------------------------------------------------ */

.cbm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9000;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: rgba(0, 0, 0, .78);
  -webkit-overflow-scrolling: touch;
}
.cbm-wrap {
  position: relative;
  width: 460px;
  margin: 80px auto 40px;
}
.cbm-close {
  display: block;
  margin: 0 0 8px auto;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: 13px Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.cbm-close-txt { vertical-align: middle; }
.cbm-close-x {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 11px;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  vertical-align: middle;
}
.cbm-close:hover .cbm-close-x { border-color: #fff; background: rgba(255, 255, 255, .15); }
.cbm-card {
  padding: 22px 24px 24px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
  font: 13px Arial, Helvetica, sans-serif;
  color: #1b1b1b;
  text-align: left;
}
.cbm-title { margin-bottom: 10px; color: #1b1b1b; font-size: 13px; font-weight: bold; }
.cbm-name {
  display: block;
  width: 100%;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #c9c9c9;
  border-radius: 3px;
  box-sizing: border-box;
  font: 13px Arial, Helvetica, sans-serif;
  color: #1b1b1b;
  background: #fff;
}
.cbm-name:focus { border-color: #00aeef; outline: none; }
.cbm-uploader { margin-top: 14px; }
.cbm-error {
  margin-top: 12px;
  padding: 8px 10px;
  border-left: 3px solid #cc2222;
  background: #fdecec;
  color: #a01818;
  white-space: pre-line;
}
.cbm-note { margin-top: 12px; color: #8a949c; font-size: 11px; }

.cbm-more { margin-top: 14px; border-top: 1px solid #eef2f4; padding-top: 10px; }
.cbm-more-toggle {
  color: #00aeef;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
.cbm-more-toggle:hover { text-decoration: underline; }
.cbm-more-body { margin-top: 10px; }
.cbm-row { margin-bottom: 10px; }
.cbm-row-half { display: inline-block; width: 48%; vertical-align: top; }
.cbm-row-half + .cbm-row-half { margin-left: 3%; }
.cbm-label { display: block; margin-bottom: 4px; color: #4b5b63; font-size: 11px; }
.cbm-field {
  width: 100%;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #c9c9c9;
  border-radius: 3px;
  box-sizing: border-box;
  font: 12px Arial, Helvetica, sans-serif;
  color: #1b1b1b;
  background: #fff;
}
select.cbm-field { height: 30px; }
.cbm-check { margin: 4px 0 0; color: #4b5b63; font-size: 11px; }
.cbm-check input { vertical-align: middle; margin-right: 4px; }

.cbm-submit-row { margin-top: 18px; text-align: right; }
.cbm-submit {
  display: inline-block;
  padding: 11px 26px;
  border: 0;
  border-radius: 3px;
  background: #00aeef;
  color: #fff;
  font: 13px Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}
.cbm-submit:hover { background: #0099d2; }
.cbm-submit[disabled] { background: #b9c3c9; cursor: default; }
.cbm-progress { margin-top: 12px; color: #0079a8; font-size: 12px; }
.cbm-progress-bar {
  display: block;
  height: 5px;
  margin-top: 6px;
  overflow: hidden;
  background: #e7edf1;
  border-radius: 3px;
}
.cbm-progress-bar i { display: block; height: 5px; width: 0; background: #00aeef; }

@media (max-width: 520px) {
  .cbm-wrap { width: auto; margin: 20px 12px 30px; }
  .cbm-row-half { display: block; width: 100%; }
  .cbm-row-half + .cbm-row-half { margin-left: 0; }
}
