@layer base {
  .note__time-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: flex-start;
  }

  .note__time-block {
    --note-time-block-size: 70px;
    
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: var(--note-time-block-size);
    height: var(--note-time-block-size);
    border: var(--bulma-border-width) solid var(--bulma-border);
    border-radius: var(--bulma-radius);
    padding: var(--bulma-spacing-2);
    background: var(--bulma-white);
    transition: all var(--bulma-speed) ease;
  }

  .note__time-block.occupied {
    border-color: transparent;
    color: var(--bulma-white);
  }

  .note__time-block .time-label {
    font-size: var(--bulma-size-7);
    font-weight: var(--bulma-weight-semibold);
    margin-bottom: var(--bulma-spacing-1);
  }

  .note__time-block .category-label {
    font-size: var(--bulma-size-8);
    text-align: center;
    font-weight: var(--bulma-weight-medium);
    margin-top: var(--bulma-spacing-1);
  }

  .note__time-block button.delete-time-block {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none !important;
    background-color: var(--bulma-danger) !important;
    color: var(--bulma-white) !important;
    font-size: 10px !important;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--bulma-speed) ease;
    padding: 0;
    margin: 0;
    min-height: auto;
    line-height: 1;
  }

  .note__time-block button.delete-time-block:hover {
    background: var(--bulma-danger-dark);
    transform: scale(1.1);
  }

  .note__time-block.marked-for-deletion {
    opacity: 0.3;
    filter: grayscale(100%);
    position: relative;
    transform: scale(0.95);
    background: var(--bulma-grey-lighter) !important;
    border-color: var(--bulma-grey) !important;
    color: var(--bulma-grey) !important;
  }

  .note__time-block.marked-for-deletion::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
      135deg,
      transparent,
      transparent 3px,
      hsla(var(--bulma-danger-h), var(--bulma-danger-s), var(--bulma-danger-l), 0.4) 3px,
      hsla(var(--bulma-danger-h), var(--bulma-danger-s), var(--bulma-danger-l), 0.4) 6px
    );
    pointer-events: none;
    border-radius: var(--bulma-radius);
  }

  .note__time-block.marked-for-deletion .time-label,
  .note__time-block.marked-for-deletion .category-label {
    text-decoration: line-through;
  }
}