*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-animation: none !important;
  animation: none !important;
  -webkit-transition: none !important;
  transition: none !important;
}

html, body {
  width: 100%;
  min-height: 100%;
  background: #fff;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  font-size: 20px;
}

button, a {
  font: inherit;
}

button {
  min-width: 56px;
  min-height: 56px;
  border: 2px solid #111;
  border-radius: 0;
  background: #fff;
  color: #111;
  cursor: pointer;
}

button:disabled {
  color: #777;
  border-color: #777;
}

.kindle-page {
  width: 100%;
  min-height: 100%;
  padding: 0 24px 24px;
  background: #fff;
}

.kindle-spike-external {
  margin: 16px 0;
  padding: 16px;
  border: 4px solid #111;
  background: #e8e8e8;
  color: #111;
  font-size: 26px;
  line-height: 1.5;
}

.kindle-header {
  width: 100%;
  min-height: 88px;
  display: table;
  table-layout: fixed;
  border-bottom: 2px solid #111;
  text-align: center;
}

.kindle-header-cell,
.kindle-header h1,
.kindle-header-action {
  display: table-cell;
  width: 56px;
  height: 88px;
  vertical-align: middle;
}

.kindle-header h1 {
  width: auto;
  padding: 0 12px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  word-break: break-all;
}

.kindle-header-action {
  border: 0;
  background: transparent;
  color: #111;
  text-decoration: none;
  font-size: 32px;
  line-height: 1;
}

.kindle-header-action svg,
.kindle-header-badge svg {
  display: inline-block;
  width: 30px;
  height: 30px;
  vertical-align: middle;
}

.kindle-home-header {
  table-layout: auto;
  text-align: left;
}

.kindle-home-header-title {
  display: table-cell;
  padding: 8px 8px 8px 0;
  vertical-align: middle;
}

.kindle-home-header-title strong {
  display: block;
  font-size: 30px;
  line-height: 1.2;
}

.kindle-home-header-subtitle {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.35;
}

.kindle-home-header-actions {
  display: table-cell;
  width: 56px;
  vertical-align: middle;
  text-align: right;
  white-space: nowrap;
}

.kindle-home-header-actions .kindle-header-action,
.kindle-header-badge {
  display: inline-block;
  width: 56px;
  min-width: 56px;
  min-height: 56px;
  padding: 10px 4px;
  border: 0;
  background: transparent;
  color: #111;
  text-align: center;
  vertical-align: middle;
}

.kindle-home-header-actions .kindle-header-restock {
  border: 2px solid #111;
  padding: 8px 4px;
}

.kindle-header-badge {
  position: relative;
  padding-top: 8px;
}

.kindle-header-badge font {
  position: absolute;
  top: 2px;
  right: 4px;
  min-width: 20px;
  padding: 1px 3px;
  border: 1px solid #111;
  background: #fff;
  line-height: 1.1;
}

.kindle-header-badge-expired font {
  background: #111;
  color: #fff;
}

.kindle-content {
  width: 100%;
  padding: 24px 8px 32px;
  text-align: center;
}

.kindle-status,
.kindle-hint,
.kindle-copy,
.kindle-footer,
.kindle-subtitle {
  line-height: 1.55;
}

.kindle-status {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 700;
}

.kindle-hint {
  margin-top: 16px;
  color: #555;
  font-size: 19px;
}

.kindle-error {
  color: #8a2018;
}

.kindle-ok {
  color: #244b2b;
}

.kindle-action {
  margin-top: 24px;
  min-width: 180px;
  padding: 8px 16px;
  font-weight: 700;
}

.kindle-primary {
  background: #111;
  color: #fff;
}

.kindle-qr-frame {
  display: block;
  margin: 4px auto 20px;
  padding: 10px;
  border: 2px solid #111;
  background: #fff;
}

.kindle-qr {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.kindle-copy-block {
  width: 100%;
  max-width: none;
  margin: 16px auto 0;
  font-size: 23px;
  line-height: 1.5;
  text-align: left;
}

.kindle-copy-block strong {
  display: block;
  margin-bottom: 4px;
  font-size: 24px;
}

.kindle-entry-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}

.kindle-entry-table td {
  width: 50%;
  padding-left: 18px;
  padding-right: 18px;
  vertical-align: top;
}

.kindle-entry-table .kindle-copy-block {
  margin: 0;
  padding-top: 24px;
}

.kindle-inline-link {
  display: inline-block;
  margin-left: 8px;
  color: #111;
  font-weight: 700;
  text-decoration: underline;
}

.kindle-passcode-panel {
  width: 100%;
  max-width: none;
  margin: 28px auto 0;
  padding-top: 24px;
  border-top: 2px solid #111;
  text-align: left;
}

.kindle-passcode-title {
  font-size: 24px;
  line-height: 1.3;
}

.kindle-passcode-label {
  display: block;
  margin-top: 20px;
  font-size: 19px;
  font-weight: 700;
}

.kindle-passcode-input {
  display: block;
  width: 100%;
  min-height: 56px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 2px solid #111;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: inherit;
  letter-spacing: 0.18em;
  text-align: center;
}

.kindle-passcode-input:focus {
  outline: 4px solid #777;
  outline-offset: 2px;
}

.kindle-passcode-panel .kindle-action {
  display: block;
  width: 100%;
  margin-top: 16px;
}

.kindle-passcode-feedback {
  min-height: 28px;
  margin-top: 12px;
  line-height: 1.5;
  font-size: 19px;
  font-weight: 700;
}

.kindle-footer {
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border-top: 2px solid #111;
  color: #555;
  font-size: 18px;
  text-align: center;
}

.kindle-detail-undo {
  display: block;
  min-width: 0;
  margin: 0 auto 8px;
  padding: 4px 12px;
}

.kindle-detail-autohome {
  padding: 8px 0;
  border-top: 1px solid #111;
  font-size: 18px;
}

.kindle-detail-pager {
  display: table;
  width: 100%;
  min-height: 56px;
  margin: 8px 0 -14px;
  border-top: 2px solid #111;
  table-layout: fixed;
}

.kindle-detail-page-button,
.kindle-detail-page-number {
  display: table-cell;
  width: 100px;
  min-height: 56px;
  padding: 8px;
  border: 0;
  border-right: 1px solid #111;
  background: #fff;
  color: #111;
  text-align: center;
  vertical-align: middle;
}

.kindle-detail-page-number {
  width: auto;
  font-size: 20px;
}

.kindle-detail-page-button-next {
  border-right: 0;
  border-left: 0;
}

.kindle-detail-page-button-next svg {
  transform: rotate(180deg);
}

.kindle-detail-page-button svg,
.kindle-item-action-button svg {
  width: 28px;
  height: 28px;
}

.kindle-item-action-button {
  min-width: 48px;
  min-height: 48px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #111;
}

.kindle-waiting-art {
  width: 150px;
  height: 190px;
  margin: 8px auto 24px;
  border: 4px solid #111;
  position: relative;
}

.kindle-waiting-art:before {
  content: '';
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  border-top: 4px solid #111;
}

.kindle-waiting-art:after {
  content: '…';
  position: absolute;
  top: 82px;
  left: 0;
  right: 0;
  font-size: 48px;
  font-weight: 700;
}

.kindle-home-content {
  padding: 16px 0 0;
  text-align: left;
}

.kindle-home-summary {
  display: table;
  width: 100%;
  min-height: 56px;
  table-layout: fixed;
}

.kindle-home-summary-main,
.kindle-home-actions {
  display: table-cell;
  vertical-align: middle;
}

.kindle-home-summary-main {
  padding-right: 8px;
}

.kindle-home-summary-main strong {
  display: block;
  font-size: 28px;
}

.kindle-subtitle {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
}

.kindle-sync-banner {
  width: 100%;
  color: #111;
}

.kindle-home-actions {
  width: 180px;
  text-align: right;
  white-space: normal;
}

.kindle-home-actions button {
  width: 56px;
  margin-left: 4px;
  padding: 0;
  font-size: 28px;
}

.kindle-home-actions .kindle-alert-restock {
  width: auto;
  min-width: 64px;
  padding-left: 6px;
  padding-right: 6px;
  font-size: 16px;
  white-space: nowrap;
}

.kindle-alert {
  display: inline-block;
  min-width: 36px;
  min-height: 36px;
  margin-left: 4px;
  padding: 6px 4px;
  border: 2px solid #111;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
}

.kindle-alert-expired {
  background: #111;
  color: #fff;
}

.kindle-alert-restock {
  min-width: 64px;
  background: #111;
  color: #fff;
  font-size: 16px;
}

.kindle-alert-error {
  min-width: 64px;
  background: #fff;
  color: #111;
  font-size: 16px;
}

.kindle-home-restock-error {
  margin: 16px 8px 0;
  padding: 12px 8px;
  border: 2px solid #111;
  font-size: 19px;
  line-height: 1.5;
  text-align: center;
}

.kindle-home-restock-retry {
  display: block;
  min-width: 96px;
  min-height: 56px;
  margin: 8px auto 0;
  padding: 4px 12px;
  font-size: 18px;
}

.kindle-fridge {
  width: 100%;
  margin-top: 20px;
  position: relative;
  padding: 0;
  border: 4px solid #111;
  font-size: 0;
}

.kindle-fridge-main,
.kindle-fridge-door {
  position: absolute;
  display: block;
  top: 4px;
  height: 100%;
  border: 3px solid #111;
  background: #fff;
  font-size: 18px;
}

.kindle-fridge-door {
  padding: 0;
}

.kindle-zone {
  display: block;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid #111;
}

.kindle-zone-band {
  display: block;
}

.kindle-zone-band:last-child .kindle-zone {
  border-bottom: 0;
}

.kindle-zone-band-split .kindle-zone:first-child {
  border-right: 1px solid #111;
}

.kindle-zone:last-child {
  border-bottom: 0;
}

.kindle-zone-title {
  padding: 6px 8px;
  border-bottom: 1px solid #111;
  font-size: 16px;
  font-weight: 700;
}

.kindle-slot {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #111;
  text-align: center;
}

.kindle-slot:last-child {
  border-bottom: 0;
}

.kindle-zone-row {
  white-space: nowrap;
}

.kindle-zone-row .kindle-slot {
  display: inline-block;
  vertical-align: top;
  white-space: normal;
}

.kindle-door-segment {
  margin: 0;
  border: 0;
  border-bottom: 3px solid #111;
}

.kindle-door-segment:last-child {
  border-bottom: 0;
}

.kindle-wide-zone {
  margin: 0;
  border: 1px solid #111;
}

.kindle-slot:active {
  background: #111;
  color: #fff;
}

.kindle-food-cluster {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
}

.kindle-food {
  position: absolute;
  display: block;
  width: 40px;
  height: 40px;
}

.kindle-food img {
  display: block;
  width: 36px;
  height: 36px;
  margin: 2px;
}

.kindle-food-count {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 18px;
  padding: 1px 3px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 11px;
  text-align: center;
}

.kindle-food-risk {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 16px;
  padding: 1px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.kindle-slot:active .kindle-food img {
  filter: invert(1);
}

.kindle-legend {
  padding: 16px 8px 0;
  color: #555;
  font-size: 16px;
  text-align: center;
}

.kindle-detail-content {
  padding: 0;
  text-align: left;
}

.kindle-detail-preview {
  position: relative;
  width: 180px;
  height: 120px;
  margin: 12px auto 0;
  padding: 4px;
  border: 2px solid #111;
  font-size: 0;
  text-align: left;
}

.kindle-detail-preview-panel {
  position: relative;
  display: inline-block;
  width: 67%;
  height: 100%;
  vertical-align: top;
}

.kindle-detail-preview-panel-door-left {
  display: none;
}

.kindle-detail-preview-panel-door-right {
  width: 33%;
}

.kindle-detail-preview-wide .kindle-detail-preview-panel-door-left,
.kindle-detail-preview-wide .kindle-detail-preview-panel-door-right {
  display: inline-block;
  width: 22%;
}

.kindle-detail-preview-wide .kindle-detail-preview-panel-cabinet {
  width: 56%;
}

.kindle-detail-preview-zone {
  position: absolute;
  border: 1px solid #111;
}

.kindle-detail-preview-slot {
  position: absolute;
  border-right: 1px solid #111;
  border-bottom: 1px solid #111;
}

.kindle-detail-preview-slot.is-selected {
  background: #111;
}

.kindle-detail-title {
  padding: 20px 0 12px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.kindle-item {
  display: table;
  width: 100%;
  min-height: 100px;
  table-layout: fixed;
  border-top: 1px solid #111;
}

.kindle-item-icon,
.kindle-item-main,
.kindle-item-actions {
  display: table-cell;
  vertical-align: middle;
}

.kindle-item-icon {
  position: relative;
  width: 64px;
  padding: 8px;
  text-align: center;
}

.kindle-item-icon img {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border: 2px solid #111;
}

.kindle-item-risk {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  padding: 1px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.kindle-item-main {
  padding: 12px 8px;
}

.kindle-item-name {
  display: inline-block;
  max-width: 58%;
  font-size: 21px;
  font-weight: 700;
  word-break: break-all;
  vertical-align: middle;
}

.kindle-item-date {
  margin-left: 6px;
  color: #555;
  font-size: 15px;
}

.kindle-item-meta {
  margin-top: 8px;
  font-size: 17px;
}

.kindle-item-actions {
  width: 170px;
  border-left: 2px solid #111;
  text-align: center;
}

.kindle-item-actions button {
  min-width: 52px;
  min-height: 48px;
  margin: 2px;
  padding: 4px 8px;
  font-size: 16px;
}

.kindle-item-actions strong {
  display: inline-block;
  min-width: 72px;
  font-size: 17px;
  text-align: center;
}

.kindle-empty {
  padding: 40px 20px;
  color: #555;
  font-size: 18px;
  text-align: center;
}

.kindle-restock-content {
  width: 100%;
  padding: 0 8px 32px;
  text-align: left;
}

.kindle-restock-intro {
  padding: 20px 8px 12px;
  color: #555;
  text-align: center;
}

.kindle-restock-entry {
  width: 100%;
  padding: 16px 8px;
  border-top: 2px solid #111;
}

.kindle-restock-entry-title {
  margin: 0;
  font-weight: 700;
}

.kindle-restock-missing {
  margin-top: 8px;
  padding-left: 16px;
  border-left: 4px solid #111;
}

.kindle-restock-missing-row {
  min-height: 32px;
  padding: 4px 0;
  border-bottom: 1px solid #777;
  font-size: 20px;
  line-height: 1.5;
}

.kindle-restock-missing-row:last-child {
  border-bottom: 0;
}

.kindle-restock-empty {
  padding: 56px 16px 16px;
  text-align: center;
}

@media (max-width: 380px) {
  .kindle-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .kindle-header h1 {
    font-size: 26px;
  }

  .kindle-home-actions {
    width: 168px;
  }

  .kindle-home-actions button {
    width: 48px;
  }

  .kindle-item-actions {
    width: 140px;
  }

  .kindle-item-actions strong {
    min-width: 54px;
    font-size: 15px;
  }
}
